vendor: 4,744 bytes, line 1
1import{a as Le}from"/assets/chunk-ZMQW4WDG.js";import"/assets/chunk-L2UUBAKS.js";var sr=Uint8Array,jn=Uint16Array,Sl=Int32Array,kl=new sr([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]),Pl=new sr([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]),df=new sr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),mf=function(t,n){for(var e=new jn(31),r=0;r<31;++r)e[r]=n+=1<<t[r-1];for(var a=new Sl(e[30]),r=1;r<30;++r)for(var o=e[r];o<e[r+1];++o)a[o]=o-e[r]<<5|r;return{b:e,r:a}},bf=mf(kl,2),P1=bf.b,Al=bf.r;P1[28]=258,Al[258]=28;var wf=mf(Pl,0),xd=wf.b,pf=wf.r,Nl=new jn(32768);for(be=0;be<32768;++be)Vr=(be&43690)>>1|(be&21845)<<1,Vr=(Vr&52428)>>2|(Vr&13107)<<2,Vr=(Vr&61680)>>4|(Vr&3855)<<4,Nl[be]=((Vr&65280)>>8|(Vr&255)<<8)>>1;var Vr,be,io=(function(t,n,e){for(var r=t.length,a=0,o=new jn(n);a<r;++a)t[a]&&++o[t[a]-1];var c=new jn(n);for(a=1;a<n;++a)c[a]=c[a-1]+o[a-1]<<1;var l;if(e){l=new jn(1<<n);var f=15-n;for(a=0;a<r;++a)if(t[a])for(var d=a<<4|t[a],v=n-t[a],x=c[t[a]-1]++<<v,N=x|(1<<v)-1;x<=N;++x)l[Nl[x]>>f]=d}else for(l=new jn(r),a=0;a<r;++a)t[a]&&(l[a]=Nl[c[t[a]-1]++]>>15-t[a]);return l}),Mi=new sr(288);for(be=0;be<144;++be)Mi[be]=8;var be;for(be=144;be<256;++be)Mi[be]=9;var be;for(be=256;be<280;++be)Mi[be]=7;var be;for(be=280;be<288;++be)Mi[be]=8;var be,fs=new sr(32);for(be=0;be<32;++be)fs[be]=5;var be,E1=io(Mi,9,0);var I1=io(fs,5,0);var yf=function(t){return(t+7)/8|0},C1=function(t,n,e){return(n==null||n<0)&&(n=0),(e==null||e>t.length)&&(e=t.length),new sr(t.subarray(n,e))};var Zr=function(t,n,e){e<<=n&7;var r=n/8|0;t[r]|=e,t[r+1]|=e>>8},no=function(t,n,e){e<<=n&7;var r=n/8|0;t[r]|=e,t[r+1]|=e>>8,t[r+2]|=e>>16},xl=function(t,n){for(var e=[],r=0;r<t.length;++r)t[r]&&e.push({s:r,f:t[r]});var a=e.length,o=e.slice();if(!a)return{t:xf,l:0};if(a==1){var c=new sr(e[0].s+1);return c[e[0].s]=1,{t:c,l:1}}e.sort(function(it,vt){return it.f-vt.f}),e.push({s:-1,f:25001});var l=e[0],f=e[1],d=0,v=1,x=2;for(e[0]={s:-1,f:l.f+f.f,l,r:f};v!=a-1;)l=e[e[d].f<e[x].f?d++:x++],f=e[d!=v&&e[d].f<e[x].f?d++:x++],e[v++]={s:-1,f:l.f+f.f,l,r:f};for(var N=o[0].s,r=1;r<a;++r)o[r].s>N&&(N=o[r].s);var p=new jn(N+1),T=Ll(e[v-1],p,0);if(T>n){var r=0,E=0,B=T-n,k=1<<B;for(o.sort(function(vt,ut){return p[ut.s]-p[vt.s]||vt.f-ut.f});r<a;++r){var G=o[r].s;if(p[G]>n)E+=k-(1<<T-p[G]),p[G]=n;else break}for(E>>=B;E>0;){var V=o[r].s;p[V]<n?E-=1<<n-p[V]++-1:++r}for(;r>=0&&E;--r){var j=o[r].s;p[j]==n&&(--p[j],++E)}T=n}return{t:new sr(p),l:T}},Ll=function(t,n,e){return t.s==-1?Math.max(Ll(t.l,n,e+1),Ll(t.r,n,e+1)):n[t.s]=e},gf=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new jn(++n),r=0,a=t[0],o=1,c=function(f){e[r++]=f},l=1;l<=n;++l)if(t[l]==a&&l!=n)++o;else{if(!a&&o>2){for(;o>138;o-=138)c(32754);o>2&&(c(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(c(a),--o;o>6;o-=6)c(8304);o>2&&(c(o-3<<5|8208),o=0)}for(;o--;)c(a);o=1,a=t[l]}return{c:e.subarray(0,r),n}},ro=function(t,n){for(var e=0,r=0;r<n.length;++r)e+=t[r]*n[r];return e},_f=function(t,n,e){var r=e.length,a=yf(n+2);t[a]=r&255,t[a+1]=r>>8,t[a+2]=t[a]^255,t[a+3]=t[a+1]^255;for(var o=0;o<r;++o)t[a+o+4]=e[o];return(a+4+r)*8},vf=function(t,n,e,r,a,o,c,l,f,d,v){Zr(n,v++,e),++a[256];for(var x=xl(a,15),N=x.t,p=x.l,T=xl(o,15),E=T.t,B=T.l,k=gf(N),G=k.c,V=k.n,j=gf(E),it=j.c,vt=j.n,ut=new jn(19),Y=0;Y<G.length;++Y)++ut[G[Y]&31];for(var Y=0;Y<it.length;++Y)++ut[it[Y]&31];for(var M=xl(ut,7),tt=M.t,L=M.l,F=19;F>4&&!tt[df[F-1]];--F);var q=d+5<<3,z=ro(a,Mi)+ro(o,fs)+c,rt=ro(a,N)+ro(o,E)+c+14+3*F+ro(ut,tt)+2*ut[16]+3*ut[17]+7*ut[18];if(f>=0&&q<=z&&q<=rt)return _f(n,v,t.subarray(f,f+d));var st,ht,nt,ct;if(Zr(n,v,1+(rt<z)),v+=2,rt<z){st=io(N,p,0),ht=N,nt=io(E,B,0),ct=E;var At=io(tt,L,0);Zr(n,v,V-257),Zr(n,v+5,vt-1),Zr(n,v+10,F-4),v+=14;for(var Y=0;Y<F;++Y)Zr(n,v+3*Y,tt[df[Y]]);v+=3*F;for(var wt=[G,it],_=0;_<2;++_)for(var R=wt[_],Y=0;Y<R.length;++Y){var D=R[Y]&31;Zr(n,v,At[D]),v+=tt[D],D>15&&(Zr(n,v,R[Y]>>5&127),v+=R[Y]>>12)}}else st=E1,ht=Mi,nt=I1,ct=fs;for(var Y=0;Y<l;++Y){var H=r[Y];if(H>255){var D=H>>18&31;no(n,v,st[D+257]),v+=ht[D+257],D>7&&(Zr(n,v,H>>23&31),v+=kl[D]);var $=H&31;no(n,v,nt[$]),v+=ct[$],$>3&&(no(n,v,H>>5&8191),v+=Pl[$])}else no(n,v,st[H]),v+=ht[H]}return no(n,v,st[256]),v+ht[256]},F1=new Sl([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),xf=new sr(0),O1=function(t,n,e,r,a,o){var c=o.z||t.length,l=new sr(r+c+5*(1+Math.ceil(c/7e3))+a),f=l.subarray(r,l.length-a),d=o.l,v=(o.r||0)&7;if(n){v&&(f[0]=o.r>>3);for(var x=F1[n-1],N=x>>13,p=x&8191,T=(1<<e)-1,E=o.p||new jn(32768),B=o.h||new jn(T+1),k=Math.ceil(e/3),G=2*k,V=function(jt){return(t[jt]^t[jt+1]<<k^t[jt+2]<<G)&T},j=new Sl(25e3),it=new jn(288),vt=new jn(32),ut=0,Y=0,M=o.i||0,tt=0,L=o.w||0,F=0;M+2<c;++M){var q=V(M),z=M&32767,rt=B[q];
vendor: 10,000 bytes, lines 1-2
1if(E[z]=rt,B[q]=z,L<=M){var st=c-M;if((ut>7e3||tt>24576)&&(st>423||!d)){v=vf(t,f,0,j,it,vt,Y,tt,F,M-F,v),tt=ut=Y=0,F=M;for(var ht=0;ht<286;++ht)it[ht]=0;for(var ht=0;ht<30;++ht)vt[ht]=0}var nt=2,ct=0,At=p,wt=z-rt&32767;if(st>2&&q==V(M-wt))for(var _=Math.min(N,st)-1,R=Math.min(32767,M),D=Math.min(258,st);wt<=R&&--At&&z!=rt;){if(t[M+nt]==t[M+nt-wt]){for(var H=0;H<D&&t[M+H]==t[M+H-wt];++H);if(H>nt){if(nt=H,ct=wt,H>_)break;for(var $=Math.min(wt,H-2),J=0,ht=0;ht<$;++ht){var at=M-wt+ht&32767,ot=E[at],gt=at-ot&32767;gt>J&&(J=gt,rt=at)}}}z=rt,rt=E[z],wt+=z-rt&32767}if(ct){j[tt++]=268435456|Al[nt]<<18|pf[ct];var xt=Al[nt]&31,kt=pf[ct]&31;Y+=kl[xt]+Pl[kt],++it[257+xt],++vt[kt],L=M+nt,++ut}else j[tt++]=t[M],++it[t[M]]}}for(M=Math.max(M,L);M<c;++M)j[tt++]=t[M],++it[t[M]];v=vf(t,f,d,j,it,vt,Y,tt,F,M-F,v),d||(o.r=v&7|f[v/8|0]<<3,v-=7,o.h=B,o.p=E,o.i=M,o.w=L)}else{for(var M=o.w||0;M<c+d;M+=65535){var St=M+65535;St>=c&&(f[v/8|0]=d,St=c),v=_f(f,v+1,t.subarray(M,St))}o.i=c}return C1(l,0,r+yf(v)+a)};var Af=function(){var t=1,n=0;return{p:function(e){for(var r=t,a=n,o=e.length|0,c=0;c!=o;){for(var l=Math.min(c+2655,o);c<l;++c)a+=r+=e[c];r=(r&65535)+15*(r>>16),a=(a&65535)+15*(a>>16)}t=r,n=a},d:function(){return t%=65521,n%=65521,(t&255)<<24|(t&65280)<<8|(n&255)<<8|n>>8}}},T1=function(t,n,e,r,a){if(!a&&(a={l:1},n.dictionary)){var o=n.dictionary.subarray(-32768),c=new sr(o.length+t.length);c.set(o),c.set(t,o.length),t=c,a.w=o.length}return O1(t,n.level==null?6:n.level,n.mem==null?a.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+n.mem,e,r,a)};var Nf=function(t,n,e){for(;e;++n)t[n]=e,e>>>=8};var R1=function(t,n){var e=n.level,r=e==0?0:e<6?1:e==9?3:2;if(t[0]=120,t[1]=r<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var a=Af();a.p(n.dictionary),Nf(t,2,a.d())}};function cs(t,n){n||(n={});var e=Af();e.p(t);var r=T1(t,n,n.dictionary?6:2,4);return R1(r,n),Nf(r,r.length-4,e.d()),r}var B1=typeof TextDecoder<"u"&&new TextDecoder,M1=0;try{B1.decode(xf,{stream:!0}),M1=1}catch{}function Lf(t){if(Array.isArray(t))return t}function Sf(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var r,a,o,c,l=[],f=!0,d=!1;try{if(o=(e=e.call(t)).next,n===0){if(Object(e)!==e)return;f=!1}else for(;!(f=(r=o.call(e)).done)&&(l.push(r.value),l.length!==n);f=!0);}catch(v){d=!0,a=v}finally{try{if(!f&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(d)throw a}}return l}}function El(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function kf(t,n){if(t){if(typeof t=="string")return El(t,n);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?El(t,n):void 0}}function Pf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Il(t,n){return Lf(t)||Sf(t,n)||kf(t,n)||Pf()}function Cl(t,n="utf8"){return new TextDecoder(n).decode(t)}var D1=new TextEncoder;function Ef(t){return D1.encode(t)}var j1=1024*8,U1=(()=>{let t=new Uint8Array(4),n=new Uint32Array(t.buffer);return!((n[0]=1)&t[0])})(),Fl={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array},ao=class t{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(n=j1,e={}){let r=!1;typeof n=="number"?n=new ArrayBuffer(n):(r=!0,this.lastWrittenByte=n.byteLength);let a=e.offset?e.offset>>>0:0,o=n.byteLength-a,c=a;(ArrayBuffer.isView(n)||n instanceof t)&&(n.byteLength!==n.buffer.byteLength&&(c=n.byteOffset+a),n=n.buffer),r?this.lastWrittenByte=o:this.lastWrittenByte=0,this.buffer=n,this.length=o,this.byteLength=o,this.byteOffset=c,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,c,o),this._mark=0,this._marks=[]}available(n=1){return this.offset+n<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(n=1){return this.offset+=n,this}back(n=1){return this.offset-=n,this}seek(n){return this.offset=n,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){let n=this._marks.pop();if(n===void 0)throw new Error("Mark stack empty");return this.seek(n),this}rewind(){return this.offset=0,this}ensureAvailable(n=1){if(!this.available(n)){let r=(this.offset+n)*2,a=new Uint8Array(r);a.set(new Uint8Array(this.buffer)),this.buffer=a.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(n=1){return this.readArray(n,"uint8")}readArray(n,e){let r=Fl[e].BYTES_PER_ELEMENT*n,a=this.byteOffset+this.offset,o=this.buffer.slice(a,a+r);if(this.littleEndian===U1&&e!=="uint8"&&e!=="int8"){let l=new Uint8Array(this.buffer.slice(a,a+r));l.reverse();let f=new Fl[e](l.buffer);return this.offset+=r,f.reverse(),f}let c=new Fl[e](o);return this.offset+=r,c}readInt16(){let n=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,n}readUint16(){let n=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,n}readInt32(){let n=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,n}readUint32(){let n=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat32(){let n=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat64(){let n=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,n}readBigInt64(){let n=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,n}readBigUint64(){let n=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,n}readChar(){return String.fromCharCode(this.readInt8())}readChars(n=1){let e="";for(let r=0;r<n;r++)e+=this.readChar();return e}readUtf8(n=1){return Cl(this.readBytes(n))}decodeText(n=1,e="utf8"){return Cl(this.readBytes(n),e)}writeBoolean(n){return this.writeUint8(n?255:0),this}writeInt8(n){return this.ensureAvailable(1),this._data.setInt8(this.offset++,n),this._updateLastWrittenByte(),this}writeUint8(n){return this.ensureAvailable(1),this._data.setUint8(this.offset++,n),this._updateLastWrittenByte(),this}writeByte(n){return this.writeUint8(n)}writeBytes(n){this.ensureAvailable(n.length);for(let e=0;e<n.length;e++)this._data.setUint8(this.offset++,n[e]);return this._updateLastWrittenByte(),this}writeInt16(n){return this.ensureAvailable(2),this._data.setInt16(this.offset,n,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(n){return this.ensureAvailable(2),this._data.setUint16(this.offset,n,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(n){return this.ensureAvailable(4),this._data.setInt32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(n){return this.ensureAvailable(4),this._data.setUint32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(n){return this.ensureAvailable(4),this._data.setFloat32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(n){return this.ensureAvailable(8),this._data.setFloat64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(n){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(n){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(n){return this.writeUint8(n.charCodeAt(0))}writeChars(n){for(let e=0;e<n.length;e++)this.writeUint8(n.charCodeAt(e));return this}writeUtf8(n){return this.writeBytes(Ef(n))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}};function ga(t){let n=t.length;for(;--n>=0;)t[n]=0}var z1=0,vc=1,q1=2,H1=3,W1=258,nh=29,yo=256,uo=yo+1+nh,ca=30,rh=19,mc=2*uo+1,Di=15,Ol=16,G1=7,ih=256,bc=16,wc=17,yc=18,Zl=new Uint8Array([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]),ms=new Uint8Array([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]),V1=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),_c=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Z1=512,Yr=new Array((uo+2)*2);ga(Yr);var ho=new Array(ca*2);ga(ho);var po=new Array(Z1);ga(po);var go=new Array(W1-H1+1);ga(go);var ah=new Array(nh);ga(ah);var bs=new Array(ca);ga(bs);function Tl(t,n,e,r,a){this.static_tree=t,this.extra_bits=n,this.extra_base=e,this.elems=r,this.max_length=a,this.has_stree=t&&t.length}var xc,Ac,Nc;function Rl(t,n){this.dyn_tree=t,this.max_code=0,this.stat_desc=n}var Lc=t=>t<256?po[t]:po[256+(t>>>7)],vo=(t,n)=>{t.pending_buf[t.pending++]=n&255,t.pending_buf[t.pending++]=n>>>8&255},En=(t,n,e)=>{t.bi_valid>Ol-e?(t.bi_buf|=n<<t.bi_valid&65535,vo(t,t.bi_buf),t.bi_buf=n>>Ol-t.bi_valid,t.bi_valid+=e-Ol):(t.bi_buf|=n<<t.bi_valid&65535,t.bi_valid+=e)},xr=(t,n,e)=>{En(t,e[n*2],e[n*2+1])},Sc=(t,n)=>{let e=0;do e|=t&1,t>>>=1,e<<=1;while(--n>0);return e>>>1},$1=t=>{t.bi_valid===16?(vo(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>
vendor: 4,940 bytes, line 2
2=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},Y1=(t,n)=>{let e=n.dyn_tree,r=n.max_code,a=n.stat_desc.static_tree,o=n.stat_desc.has_stree,c=n.stat_desc.extra_bits,l=n.stat_desc.extra_base,f=n.stat_desc.max_length,d,v,x,N,p,T,E=0;for(N=0;N<=Di;N++)t.bl_count[N]=0;for(e[t.heap[t.heap_max]*2+1]=0,d=t.heap_max+1;d<mc;d++)v=t.heap[d],N=e[e[v*2+1]*2+1]+1,N>f&&(N=f,E++),e[v*2+1]=N,!(v>r)&&(t.bl_count[N]++,p=0,v>=l&&(p=c[v-l]),T=e[v*2],t.opt_len+=T*(N+p),o&&(t.static_len+=T*(a[v*2+1]+p)));if(E!==0){do{for(N=f-1;t.bl_count[N]===0;)N--;t.bl_count[N]--,t.bl_count[N+1]+=2,t.bl_count[f]--,E-=2}while(E>0);for(N=f;N!==0;N--)for(v=t.bl_count[N];v!==0;)x=t.heap[--d],!(x>r)&&(e[x*2+1]!==N&&(t.opt_len+=(N-e[x*2+1])*e[x*2],e[x*2+1]=N),v--)}},kc=(t,n,e)=>{let r=new Array(Di+1),a=0,o,c;for(o=1;o<=Di;o++)a=a+e[o-1]<<1,r[o]=a;for(c=0;c<=n;c++){let l=t[c*2+1];l!==0&&(t[c*2]=Sc(r[l]++,l))}},K1=()=>{let t,n,e,r,a,o=new Array(Di+1);for(e=0,r=0;r<nh-1;r++)for(ah[r]=e,t=0;t<1<<Zl[r];t++)go[e++]=r;for(go[e-1]=r,a=0,r=0;r<16;r++)for(bs[r]=a,t=0;t<1<<ms[r];t++)po[a++]=r;for(a>>=7;r<ca;r++)for(bs[r]=a<<7,t=0;t<1<<ms[r]-7;t++)po[256+a++]=r;for(n=0;n<=Di;n++)o[n]=0;for(t=0;t<=143;)Yr[t*2+1]=8,t++,o[8]++;for(;t<=255;)Yr[t*2+1]=9,t++,o[9]++;for(;t<=279;)Yr[t*2+1]=7,t++,o[7]++;for(;t<=287;)Yr[t*2+1]=8,t++,o[8]++;for(kc(Yr,uo+1,o),t=0;t<ca;t++)ho[t*2+1]=5,ho[t*2]=Sc(t,5);xc=new Tl(Yr,Zl,yo+1,uo,Di),Ac=new Tl(ho,ms,0,ca,Di),Nc=new Tl(new Array(0),V1,0,rh,G1)},Pc=t=>{let n;for(n=0;n<uo;n++)t.dyn_ltree[n*2]=0;for(n=0;n<ca;n++)t.dyn_dtree[n*2]=0;for(n=0;n<rh;n++)t.bl_tree[n*2]=0;t.dyn_ltree[ih*2]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},Ec=t=>{t.bi_valid>8?vo(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},If=(t,n,e,r)=>{let a=n*2,o=e*2;return t[a]<t[o]||t[a]===t[o]&&r[n]<=r[e]},Bl=(t,n,e)=>{let r=t.heap[e],a=e<<1;for(;a<=t.heap_len&&(a<t.heap_len&&If(n,t.heap[a+1],t.heap[a],t.depth)&&a++,!If(n,r,t.heap[a],t.depth));)t.heap[e]=t.heap[a],e=a,a<<=1;t.heap[e]=r},Cf=(t,n,e)=>{let r,a,o=0,c,l;if(t.sym_next!==0)do r=t.pending_buf[t.sym_buf+o++]&255,r+=(t.pending_buf[t.sym_buf+o++]&255)<<8,a=t.pending_buf[t.sym_buf+o++],r===0?xr(t,a,n):(c=go[a],xr(t,c+yo+1,n),l=Zl[c],l!==0&&(a-=ah[c],En(t,a,l)),r--,c=Lc(r),xr(t,c,e),l=ms[c],l!==0&&(r-=bs[c],En(t,r,l)));while(o<t.sym_next);xr(t,ih,n)},$l=(t,n)=>{let e=n.dyn_tree,r=n.stat_desc.static_tree,a=n.stat_desc.has_stree,o=n.stat_desc.elems,c,l,f=-1,d;for(t.heap_len=0,t.heap_max=mc,c=0;c<o;c++)e[c*2]!==0?(t.heap[++t.heap_len]=f=c,t.depth[c]=0):e[c*2+1]=0;for(;t.heap_len<2;)d=t.heap[++t.heap_len]=f<2?++f:0,e[d*2]=1,t.depth[d]=0,t.opt_len--,a&&(t.static_len-=r[d*2+1]);for(n.max_code=f,c=t.heap_len>>1;c>=1;c--)Bl(t,e,c);d=o;do c=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Bl(t,e,1),l=t.heap[1],t.heap[--t.heap_max]=c,t.heap[--t.heap_max]=l,e[d*2]=e[c*2]+e[l*2],t.depth[d]=(t.depth[c]>=t.depth[l]?t.depth[c]:t.depth[l])+1,e[c*2+1]=e[l*2+1]=d,t.heap[1]=d++,Bl(t,e,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],Y1(t,n),kc(e,f,t.bl_count)},Ff=(t,n,e)=>{let r,a=-1,o,c=n[1],l=0,f=7,d=4;for(c===0&&(f=138,d=3),n[(e+1)*2+1]=65535,r=0;r<=e;r++)o=c,c=n[(r+1)*2+1],!(++l<f&&o===c)&&(l<d?t.bl_tree[o*2]+=l:o!==0?(o!==a&&t.bl_tree[o*2]++,t.bl_tree[bc*2]++):l<=10?t.bl_tree[wc*2]++:t.bl_tree[yc*2]++,l=0,a=o,c===0?(f=138,d=3):o===c?(f=6,d=3):(f=7,d=4))},Of=(t,n,e)=>{let r,a=-1,o,c=n[1],l=0,f=7,d=4;for(c===0&&(f=138,d=3),r=0;r<=e;r++)if(o=c,c=n[(r+1)*2+1],!(++l<f&&o===c)){if(l<d)do xr(t,o,t.bl_tree);while(--l!==0);else o!==0?(o!==a&&(xr(t,o,t.bl_tree),l--),xr(t,bc,t.bl_tree),En(t,l-3,2)):l<=10?(xr(t,wc,t.bl_tree),En(t,l-3,3)):(xr(t,yc,t.bl_tree),En(t,l-11,7));l=0,a=o,c===0?(f=138,d=3):o===c?(f=6,d=3):(f=7,d=4)}},X1=t=>{let n;for(Ff(t,t.dyn_ltree,t.l_desc.max_code),Ff(t,t.dyn_dtree,t.d_desc.max_code),$l(t,t.bl_desc),n=rh-1;n>=3&&t.bl_tree[_c[n]*2+1]===0;n--);return t.opt_len+=3*(n+1)+5+5+4,n},J1=(t,n,e,r)=>{let a;for(En(t,n-257,5),En(t,e-1,5),En(t,r-4,4),a=0;a<r;a++)En(t,t.bl_tree[_c[a]*2+1],3);Of(t,t.dyn_ltree,n-1),Of(t,t.dyn_dtree,e-1)},Q1=t=>{let n=4093624447,e;for(e=0;e<=31;e++,n>>>=1)if(n&1&&t.dyn_ltree[e*2]!==0)return 0;if(t.dyn_ltree[18]!==0||t.dyn_ltree[20]!==0||t.dyn_ltree[26]!==0)return 1;for(e=32;e<yo;e++)if(t.dyn_ltree[e*2]!==0)return 1;return 0},Tf=!1,t2=t=>{Tf||(K1(),Tf=!0),t.l_desc=new Rl(t.dyn_ltree,xc),t.d_desc=new Rl(t.dyn_dtree,Ac),t.bl_desc=new Rl(t.bl_tree,Nc),t.bi_buf=0,t.bi_valid=0,Pc(t)},Ic=(t,n,e,r)=>{En(t,(z1<<1)+(r?1:0),3),Ec(t),vo(t,e),vo(t,~e),e&&t.pending_buf.set(t.window.subarray(n,n+e),t.pending),t.pending+=e},e2=t=>{En(t,vc<<1,3),xr(t,ih,Yr),$1(t)},n2=(t,n,e,r)=>{let a,o,c=0;t.level>0?(t.strm.data_type===2&&(t.strm.data_type=Q1(t)),$l(t,t.l_desc),$l(t,t.d_desc),c=X1(t),a=t.opt_len+3+7>>>3,o=t.static_len+3+7>>>3,o<=a&&(a=o)):a=o=e+5,e+4<=a&&n!==-1?Ic(t,n,e,r):t.strategy===4||o===a?(En(t,(vc<<1)+(r?1:0),3),Cf(t,Yr,ho)):(En(t,(q1<<1)+(r?1:0),3),J1(t,t.l_desc.max_code+1,t.d_de
2sc.max_code+1,c+1),Cf(t,t.dyn_ltree,t.dyn_dtree)),Pc(t),r&&Ec(t)},r2=(t,n,e)=>(t.pending_buf[t.sym_buf+t.sym_next++]=n,t.pending_buf[t.sym_buf+t.sym_next++]=n>>8,t.pending_buf[t.sym_buf+t.sym_next++]=e,n===0?t.dyn_ltree[e*2]++:(t.matches++,n--,t.dyn_ltree[(go[e]+yo+1)*2]++,t.dyn_dtree[Lc(n)*2]++),t.sym_next===t.sym_end),i2=t2,a2=Ic,o2=n2,s2=r2,l2=e2,h2={_tr_init:i2,_tr_stored_block:a2,_tr_flush_block:o2,_tr_tally:s2,_tr_align:l2},f2=(t,n,e,r)=>{let a=t&65535|0,o=t>>>16&65535|0,c=0;for(;e!==0;){c=e>2e3?2e3:e,e-=c;do a=a+n[r++]|0,o=o+a|0;while(--c);a%=65521,o%=65521}return a|o<<16|0},mo=f2,c2=()=>{let t,n=[];for(var e=0;e<256;e++){t=e;for(var r=0;r<8;r++)t=t&1?3988292384^t>>>1:t>>>1;n[e]=t}return n},u2=new Uint32Array(c2()),d2=(t,n,e,r)=>{let a=u2,o=r+e;t^=-1;for(let c=r;c<o;c++)t=t>>>8^a[(t^n[c])&255];return t^-1},on=d2,zi={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"},va={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_MEM_ERROR:-4,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},{_tr_init:p2,_tr_stored_block:Yl,_tr_flush_block:g2,_tr_tally:pi,_tr_align:v2}=h2,{Z_NO_FLUSH:gi,Z_PARTIAL_FLUSH:m2,Z_FULL_FLUSH:b2,Z_FINISH:Xn,Z_BLOCK:Rf,Z_OK:pn,Z_STREAM_END:Bf,Z_STREAM_ERROR:Ar,Z_DATA_ERROR:w2,Z_BUF_ERROR:Ml,Z_DEFAULT_COMPRESSION:y2,Z_FILTERED:_2,Z_HUFFMAN_ONLY:us,Z_RLE:x2,Z_FIXED:A2,Z_DEFAULT_STRATEGY:N2,Z_UNKNOWN:L2,Z_DEFLATED:_s}=va,S2=9,k2=15,P2=8,E2=29,I2=256,Kl=I2+1+E2,C2=30,F2=19,O2=2*Kl+1,T2=15,me=3,di=258,Nr=di+me+1,R2=32,da=42,oh=57,Xl=69,Jl=73,Ql=91,th=103,ji=113,so=666,Ln=1,ma=2,qi=3,ba=4,B2=3,Ui=(t,n)=>(t.msg=zi[n],n),Mf=t=>t*2-(t>4?9:0),ui=t=>{let n=t.length;for(;--n>=0;)t[n]=0},M2=t=>{let n,e,r,a=t.w_size;n=t.hash_size,r=n;do e=t.head[--r],t.head[r]=e>=a?e-a:0;while(--n);n=a,r=n;do e=t.prev[--r],t.prev[r]=e>=a?e-a:0;while(--n)},sh=(t,n,e)=>(n<<t.hash_shift^e)&t.hash_mask,Hi=(t,n)=>{let e;if(t.legacy_hash)e=t.ins_h=sh(t,t.ins_h,t.window[n+me-1]);else{let a=t.window,o=a[n]|a[n+1]<<8|a[n+2]<<16|a[n+3]<<24;e=t.ins_h=Math.imul(o,66521)+66521>>>16&t.hash_mask}let r=t.prev[n&t.w_mask]=t.head[e];return t.head[e]=n,r},Un=t=>{let n=t.state,e=n.pending;e>t.avail_out&&(e=t.avail_out),e!==0&&(t.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+e),t.next_out),t.next_out+=e,n.pending_out+=e,t.total_out+=e,t.avail_out-=e,n.pending-=e,n.pending===0&&(n.pending_out=0))},zn=(t,n)=>{g2(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,n),t.block_start=t.strstart,Un(t.strm)},we=(t,n)=>{t.pending_buf[t.pending++]=n},oo=(t,n)=>{t.pending_buf[t.pending++]=n>>>8&255,t.pending_buf[t.pending++]=n&255},eh=(t,n,e,r)=>{let a=t.avail_in;return a>r&&(a=r),a===0?0:(t.avail_in-=a,n.set(t.input.subarray(t.next_in,t.next_in+a),e),t.state.wrap===1?t.adler=mo(t.adler,n,a,e):t.state.wrap===2&&(t.adler=on(t.adler,n,a,e)),t.next_in+=a,t.total_in+=a,a)},Cc=(t,n)=>{let e=t.max_chain_length,r=t.strstart,a,o,c=t.prev_length,l=t.nice_match,f=t.strstart>t.w_size-Nr?t.strstart-(t.w_size-Nr):0,d=t.window,v=t.w_mask,x=t.prev,N=t.strstart+di,p=d[r+c-1],T=d[r+c];t.prev_length>=t.good_match&&(e>>=2),l>t.lookahead&&(l=t.lookahead);do if(a=n,!(d[a+c]!==T||d[a+c-1]!==p||d[a]!==d[r]||d[++a]!==d[r+1])){r+=2,a++;do;while(d[++r]===d[++a]&&d[++r]===d[++a]&&d[++r]===d[++a]&&d[++r]===d[++a]&&d[++r]===d[++a]&&d[++r]===d[++a]&&d[++r]===d[++a]&&d[++r]===d[++a]&&r<N);if(o=di-(N-r),r=N-di,o>c){if(t.match_start=n,c=o,o>=l)break;p=d[r+c-1],T=d[r+c]}}while((n=x[n&v])>f&&--e!==0);return c<=t.lookahead?c:t.lookahead},pa=t=>{let n=t.w_size,e,r,a;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=n+(n-Nr)&&(t.window.set(t.window.subarray(n,n+n-r),0),t.match_start-=n,t.strstart-=n,t.block_start-=n,t.insert>t.strstart&&(t.insert=t.strstart),M2(t),r+=n),t.strm.avail_in===0)break;if(e=eh(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=e,t.legacy_hash){if(t.lookahead+t.insert>=me)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=sh(t,t.ins_h,t.window[a+1]);t.insert&&(Hi(t,a),a++,t.insert--,!(t.lookahead+t.insert<me)););}else if(t.lookahead+t.insert>me)for(a=t.strstart-t.insert;t.insert&&(Hi(t,a),a++,t.insert--,!(t.lookahead+t.insert<=me)););}while(t.lookahead<Nr&&t.strm.avail_in!==0)},Fc=(t,n)=>{let e=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r,a,o,c=0,l=t.strm.avail_in;
vendor: 36,643 bytes, line 2
2do{if(r=65535,o=t.bi_valid+42>>3,t.strm.avail_out<o||(o=t.strm.avail_out-o,a=t.strstart-t.block_start,r>a+t.strm.avail_in&&(r=a+t.strm.avail_in),r>o&&(r=o),r<e&&(r===0&&n!==Xn||n===gi||r!==a+t.strm.avail_in)))break;c=n===Xn&&r===a+t.strm.avail_in?1:0,Yl(t,0,0,c),t.pending_buf[t.pending-4]=r,t.pending_buf[t.pending-3]=r>>8,t.pending_buf[t.pending-2]=~r,t.pending_buf[t.pending-1]=~r>>8,Un(t.strm),a&&(a>r&&(a=r),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+a),t.strm.next_out),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a,t.block_start+=a,r-=a),r&&(eh(t.strm,t.strm.output,t.strm.next_out,r),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r)}while(c===0);return l-=t.strm.avail_in,l&&(l>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=l&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-l,t.strm.next_in),t.strstart),t.strstart+=l,t.insert+=l>t.w_size-t.insert?t.w_size-t.insert:l),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),c?ba:n!==gi&&n!==Xn&&t.strm.avail_in===0&&t.strstart===t.block_start?ma:(o=t.window_size-t.strstart,t.strm.avail_in>o&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,o+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),o>t.strm.avail_in&&(o=t.strm.avail_in),o&&(eh(t.strm,t.window,t.strstart,o),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.high_water<t.strstart&&(t.high_water=t.strstart),o=t.bi_valid+42>>3,o=t.pending_buf_size-o>65535?65535:t.pending_buf_size-o,e=o>t.w_size?t.w_size:o,a=t.strstart-t.block_start,(a>=e||(a||n===Xn)&&n!==gi&&t.strm.avail_in===0&&a<=o)&&(r=a>o?o:a,c=n===Xn&&t.strm.avail_in===0&&r===a?1:0,Yl(t,t.block_start,r,c),t.block_start+=r,Un(t.strm)),c?qi:Ln)},Dl=(t,n)=>{let e,r;for(;;){if(t.lookahead<Nr){if(pa(t),t.lookahead<Nr&&n===gi)return Ln;if(t.lookahead===0)break}if(e=0,t.lookahead>=me&&(e=Hi(t,t.strstart)),e!==0&&t.strstart-e<=t.w_size-Nr&&(t.match_length=Cc(t,e)),t.match_length>=me)if(r=pi(t,t.strstart-t.match_start,t.match_length-me),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=me){t.match_length--;do t.strstart++,e=Hi(t,t.strstart);while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.legacy_hash&&(t.ins_h=t.window[t.strstart],t.ins_h=sh(t,t.ins_h,t.window[t.strstart+1]));else r=pi(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(zn(t,!1),t.strm.avail_out===0))return Ln}return t.insert=t.strstart<me-1?t.strstart:me-1,n===Xn?(zn(t,!0),t.strm.avail_out===0?qi:ba):t.sym_next&&(zn(t,!1),t.strm.avail_out===0)?Ln:ma},ha=(t,n)=>{let e,r,a;for(;;){if(t.lookahead<Nr){if(pa(t),t.lookahead<Nr&&n===gi)return Ln;if(t.lookahead===0)break}if(e=0,t.lookahead>=me&&(e=Hi(t,t.strstart)),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=me-1,e!==0&&t.prev_length<t.max_lazy_match&&t.strstart-e<=t.w_size-Nr&&(t.match_length=Cc(t,e),t.match_length<=5&&(t.strategy===_2||t.match_length===me&&t.strstart-t.match_start>4096)&&(t.match_length=me-1)),t.prev_length>=me&&t.match_length<=t.prev_length){a=t.strstart+t.lookahead-me,r=pi(t,t.strstart-1-t.prev_match,t.prev_length-me),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=a&&(e=Hi(t,t.strstart));while(--t.prev_length!==0);if(t.match_available=0,t.match_length=me-1,t.strstart++,r&&(zn(t,!1),t.strm.avail_out===0))return Ln}else if(t.match_available){if(r=pi(t,0,t.window[t.strstart-1]),r&&zn(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return Ln}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=pi(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<me-1?t.strstart:me-1,n===Xn?(zn(t,!0),t.strm.avail_out===0?qi:ba):t.sym_next&&(zn(t,!1),t.strm.avail_out===0)?Ln:ma},D2=(t,n)=>{let e,r,a,o,c=t.window;for(;;){if(t.lookahead<=di){if(pa(t),t.lookahead<=di&&n===gi)return Ln;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=me&&t.strstart>0&&(a=t.strstart-1,r=c[a],r===c[++a]&&r===c[++a]&&r===c[++a])){o=t.strstart+di;do;while(r===c[++a]&&r===c[++a]&&r===c[++a]&&r===c[++a]&&r===c[++a]&&r===c[++a]&&r===c[++a]&&r===c[++a]&&a<o);t.match_length=di-(o-a),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=me?(e=pi(t,1,t.match_length-me),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(e=pi(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),e&&(zn(t,!1),t.strm.avail_out===0))return Ln}return t.insert=0,n===Xn?(zn(t,!0),t.strm.avail_out===0?qi:ba):t.sym_next&&(zn(t,!1),t.strm.avail_out===0)?Ln:ma},j2=(t,n)=>{let e;for(;;){if(t.lookahead===0&&(pa(t),t.lookahead===0)){if(n===gi)return Ln;break}if(t.match_length=0,e=pi(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,e&&(zn(t,!1),t.strm.avail_out===0))return Ln}return t.insert=0,n===Xn?(zn(t,!0),t.strm.avail_out===0?qi:ba):t.sym_next&&(zn(t,!1),t.strm.avail_out===0)?Ln:ma};function yr(t,n,e,r,a){this.good_length=t,this.max_lazy=n,this.nice_length=e,this.max_chain=r,this.func=a}var lo=[new yr(0,0,0,0,Fc),new yr(4,4,8,4,Dl),new yr(4,5,16,8,Dl),new yr(4,6,32,32,Dl),new yr(4,4,16,16,ha),new yr(8,16,32,32,ha),new yr(8,16,128,128,ha),new yr(8,32,128,256,ha),new yr(32,128,258,1024,ha),new yr(32,258,258,4096,ha)],U2=t=>{t.window_size=2*t.w_size,ui(t.head),t.max_lazy_match=lo[t.level].max_lazy,t.good_match=lo[t.level].good_length,t.nice_match=lo[t.level].nice_length,t.max_chain_length=lo[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=me-1,t.match_available=0,t.ins_h=0};function z2(){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=_s,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.legacy_hash=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 Uint16Array(O2*2),this.dyn_dtree=new Uint16Array((2*C2+1)*2),this.bl_tree=new Uint16Array((2*F2+1)*2),ui(this.dyn_ltree),ui(this.dyn_dtree),ui(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(T2+1),this.heap=new Uint16Array(2*Kl+1),ui(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Kl+1),ui(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var _o=t=>{if(!t)return 1;let n=t.state;return!n||n.strm!==t||n.status!==da&&n.status!==oh&&n.status!==Xl&&n.status!==Jl&&n.status!==Ql&&n.status!==th&&n.status!==ji&&n.status!==so?1:0},Oc=t=>{if(_o(t))return Ui(t,Ar);t.total_in=t.total_out=0,t.data_type=L2;let n=t.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?oh:n.wrap?da:ji,t.adler=n.wrap===2?0:1,n.last_flush=-2,p2(n),pn},Tc=t=>{let n=Oc(t);return n===pn&&U2(t.state),n},q2=(t,n)=>_o(t)||t.state.wrap!==2?Ar:(t.state.gzhead=n,pn),Rc=(t,n,e,r,a,o,c)=>{if(!t)return Ar;let l=1;if(n===y2&&(n=6),r<0?(l=0,r=-r):r>15&&(l=2,r-=16),a<1||a>S2||e!==_s||r<8||r>15||n<0||n>9||o<0||o>A2||r===8&&l!==1)return Ui(t,Ar);r===8&&(r=9);let f=new z2;return t.state=f,f.strm=t,f.status=da,f.wrap=l,f.gzhead=null,f.w_bits=r,f.w_size=1<<f.w_bits,f.w_mask=f.w_size-1,f.legacy_hash=c?1:0,f.hash_bits=a+7,!f.legacy_hash&&f.hash_bits<15&&(f.hash_bits=15),f.hash_size=1<<f.hash_bits,f.hash_mask=f.hash_size-1,f.hash_shift=~~((f.hash_bits+me-1)/me),f.window=new Uint8Array(f.w_size*2),f.head=new Uint16Array(f.hash_size),f.prev=new Uint16Array(f.w_size),f.lit_bufsize=1<<a+6,f.pending_buf_size=f.lit_bufsize*4,f.pending_buf=new Uint8Array(f.pending_buf_size),f.sym_buf=f.lit_bufsize,f.sym_end=(f.lit_bufsize-1)*3,f.level=n,f.strategy=o,f.method=e,Tc(t)},H2=(t,n)=>Rc(t,n,_s,k2,P2,N2),W2=(t,n)=>{if(_o(t)||n>Rf||n<0)return t?Ui(t,Ar):Ar;let e=t.state;if(!t.output||t.avail_in!==0&&!t.input||e.status===so&&n!==Xn)return Ui(t,t.avail_out===0?Ml:Ar);let r=e.last_flush;if(e.last_flush=n,e.pending!==0){if(Un(t),t.avail_out===0)return e.last_flush=-1,pn}else if(t.avail_in===0&&Mf(n)<=Mf(r)&&n!==Xn)return Ui(t,Ml);if(e.status===so&&t.avail_in!==0)return Ui(t,Ml);if(e.status===da&&e.wrap===0&&(e.status=ji),e.status===da){let a=_s+(e.w_bits-8<<4)<<8,o=-1;if(e.strategy>=us||e.level<2?o=0:e.level<6?o=1:e.level===6?o=2:o=3,a|=o<<6,e.strstart!==0&&(a|=R2),a+=31-a%31,oo(e,a),e.strstart!==0&&(oo(e,t.adler>>>16),oo(e,t.adler&65535)),t.adler=1,e.status=ji,Un(t),e.pending!==0)return e.last_flush=-1,pn}if(e.status===oh){if(t.adler=0,we(e,31),we(e,139),we(e,8),e.gzhead)we(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),we(e,e.gzhead.time&255),we(e,e.gzhead.time>>8&255),we(e,e.gzhead.time>>16&255),we(e,e.gzhead.time>>24&255),we(e,e.level===9?2:e.strategy>=us||e.level<2?4:0),we(e,e.gzhead.os&255),e.gzhead.extra&&e.gzhead.extra.length&&(we(e,e.gzhead.extra.length&255),we(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(t.adler=on(t.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=Xl;else if(we(e,0),we(e,0),we(e,0),we(e,0),we(e,0),we(e,e.level===9?2:e.strategy>=us||e.level<2?4:0),we(e,B2),e.status=ji,Un(t),e.pending!==0)return e.last_flush=-1,pn}if(e.status===Xl){if(e.gzhead.extra){let a=e.pending,o=(e.gzhead.extra.length&65535)-e.gzindex;for(;e.pending+o>e.pending_buf_size;){let l=e.pending_buf_size-e.pending;if(e.pending_buf.set(e.gzhead.extra.subarray(e.gzindex,e.gzindex+l),e.pending),e.pending=e.pending_buf_size,e.gzhead.hcrc&&e.pending>a&&(t.adler=on(t.adler,e.pending_buf,e.pending-a,a)),e.gzindex+=l,Un(t),e.pending!==0)return e.last_flush=-1,pn;a=0,o-=l}let c=new Uint8Array(e.gzhead.extra);e.pending_buf.set(c.subarray(e.gzindex,e.gzindex+o),e.pending),e.pending+=o,e.gzhead.hcrc&&e.pending>a&&(t.adler=on(t.adler,e.pending_buf,e.pending-a,a)),e.gzindex=0}e.status=Jl}if(e.status===Jl){if(e.gzhead.name){let a=e.pending,o;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>a&&(t.adler=on(t.adler,e.pending_buf,e.pending-a,a)),Un(t),e.pending!==0)return e.last_flush=-1,pn;a=0}e.gzindex<e.gzhead.name.length?o=e.gzhead.name.charCodeAt(e.gzindex++)&255:o=0,we(e,o)}while(o!==0);e.gzhead.hcrc&&e.pending>a&&(t.adler=on(t.adler,e.pending_buf,e.pending-a,a)),e.gzindex=0}e.status=Ql}if(e.status===Ql){if(e.gzhead.comment){let a=e.pending,o;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>a&&(t.adler=on(t.adler,e.pending_buf,e.pending-a,a)),Un(t),e.pending!==0)return e.last_flush=-1,pn;a=0}e.gzindex<e.gzhead.comment.length?o=e.gzhead.comment.charCodeAt(e.gzindex++)&255:o=0,we(e,o)}while(o!==0);e.gzhead.hcrc&&e.pending>a&&(t.adler=on(t.adler,e.pending_buf,e.pending-a,a))}e.status=th}if(e.status===th){if(e.gzhead.hcrc){if(e.pending+2>e.pending_buf_size&&(Un(t),e.pending!==0))return e.last_flush=-1,pn;we(e,t.adler&255),we(e,t.adler>>8&255),t.adler=0}if(e.status=ji,Un(t),e.pending!==0)return e.last_flush=-1,pn}if(t.avail_in!==0||e.lookahead!==0||n!==gi&&e.status!==so){let a=e.level===0?Fc(e,n):e.strategy===us?j2(e,n):e.strategy===x2?D2(e,n):lo[e.level].func(e,n);if((a===qi||a===ba)&&(e.status=so),a===Ln||a===qi)return t.avail_out===0&&(e.last_flush=-1),pn;if(a===ma&&(n===m2?v2(e):n!==Rf&&(Yl(e,0,0,!1),n===b2&&(ui(e.head),e.lookahead===0&&(e.strstart=0,e.block_start=0,e.insert=0))),Un(t),t.avail_out===0))return e.last_flush=-1,pn}return n!==Xn?pn:e.wrap<=0?Bf:(e.wrap===2?(we(e,t.adler&255),we(e,t.adler>>8&255),we(e,t.adler>>16&255),we(e,t.adler>>24&255),we(e,t.total_in&255),we(e,t.total_in>>8&255),we(e,t.total_in>>16&255),we(e,t.total_in>>24&255)):(oo(e,t.adler>>>16),oo(e,t.adler&65535)),Un(t),e.wrap>0&&(e.wrap=-e.wrap),e.pending!==0?pn:Bf)},G2=t=>{if(_o(t))return Ar;let n=t.state.status;return t.state=null,n===ji?Ui(t,w2):pn},V2=(t,n)=>{let e=n.length;if(_o(t))return Ar;let r=t.state,a=r.wrap;if(a===2||a===1&&r.status!==da||r.lookahead)return Ar;if(a===1&&(t.adler=mo(t.adler,n,e,0)),r.wrap=0,e>=r.w_size){a===0&&(ui(r.head),r.strstart=0,r.block_start=0,r.insert=0);let f=new Uint8Array(r.w_size);f.set(n.subarray(e-r.w_size,e),0),n=f,e=r.w_size}let o=t.avail_in,c=t.next_in,l=t.input;for(t.avail_in=e,t.next_in=0,t.input=n,pa(r);r.lookahead>=me;){let f=r.strstart,d=r.lookahead-(me-1);do Hi(r,f),f++;while(--d);r.strstart=f,r.lookahead=me-1,pa(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=me-1,r.match_available=0,t.next_in=c,t.input=l,t.avail_in=o,r.wrap=a,pn},Z2=H2,$2=Rc,Y2=Tc,K2=Oc,X2=q2,J2=W2,Q2=G2,t0=V2,e0="pako deflate (from Nodeca project)",fo={deflateInit:Z2,deflateInit2:$2,deflateReset:Y2,deflateResetKeep:K2,deflateSetHeader:X2,deflate:J2,deflateEnd:Q2,deflateSetDictionary:t0,deflateInfo:e0},n0=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),r0=function(t){let n=Array.prototype.slice.call(arguments,1);for(;n.length;){let e=n.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(let r in e)n0(e,r)&&(t[r]=e[r])}}return t},i0=t=>{let n=0;for(let r=0,a=t.length;r<a;r++)n+=t[r].length;let e=new Uint8Array(n);for(let r=0,a=0,o=t.length;r<o;r++){let c=t[r];e.set(c,a),a+=c.length}return e},xs={assign:r0,flattenChunks:i0},Bc=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Bc=!1}var bo=new Uint8Array(256);for(let t=0;t<256;t++)bo[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;bo[254]=bo[255]=1;var a0=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let n,e,r,a,o,c=t.length,l=0;for(a=0;a<c;a++)e=t.charCodeAt(a),(e&64512)===55296&&a+1<c&&(r=t.charCodeAt(a+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),a++)),l+=e<128?1:e<2048?2:e<65536?3:4;for(n=new Uint8Array(l),o=0,a=0;o<l;a++)e=t.charCodeAt(a),(e&64512)===55296&&a+1<c&&(r=t.charCodeAt(a+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),a++)),e<128?n[o++]=e:e<2048?(n[o++]=192|e>>>6,n[o++]=128|e&63):e<65536?(n[o++]=224|e>>>12,n[o++]=128|e>>>6&63,n[o++]=128|e&63):(n[o++]=240|e>>>18,n[o++]=128|e>>>12&63,n[o++]=128|e>>>6&63,n[o++]=128|e&63);return n},o0=(t,n)=>{if(n<65534&&t.subarray&&Bc)return String.fromCharCode.apply(null,t.length===n?t:t.subarray(0,n));let e="";for(let r=0;r<n;r++)e+=String.fromCharCode(t[r]);return e},s0=(t,n)=>{let e=n||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,n));let r,a,o=new Array(e*2);for(a=0,r=0;r<e;){let c=t[r++];if(c<128){o[a++]=c;continue}let l=bo[c];if(l>4){o[a++]=65533,r+=l-1;continue}for(c&=l===2?31:l===3?15:7;l>1&&r<e;)c=c<<6|t[r++]&63,l--;if(l>1){o[a++]=65533;continue}c<65536?o[a++]=c:(c-=65536,o[a++]=55296|c>>10&1023,o[a++]=56320|c&1023)}return o0(o,a)},l0=(t,n)=>{n=n||t.length,n>t.length&&(n=t.length);let e=n-1;for(;e>=0&&(t[e]&192)===128;)e--;return e<0||e===0?n:e+bo[t[e]]>n?e:n},wo={string2buf:a0,buf2string:s0,utf8border:l0};function h0(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Mc=h0,Dc=Object.prototype.toString,{Z_NO_FLUSH:f0,Z_SYNC_FLUSH:c0,Z_FULL_FLUSH:u0,Z_FINISH:d0,Z_OK:ws,Z_STREAM_END:p0,Z_DEFAULT_COMPRESSION:g0,Z_DEFAULT_STRATEGY:v0,Z_DEFLATED:m0}=va,b0={level:g0,method:m0,chunkSize:16384,windowBits:15,memLevel:8,strategy:v0,legacyHash:!0};function xo(t){this.options=xs.assign({},b0,t||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Mc,this.strm.avail_out=0;let e=fo.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy,n.legacyHash);if(e!==ws)throw new Error(zi[e]);if(n.header&&fo.deflateSetHeader(this.strm,n.header),n.dictionary){let r;if(typeof n.dictionary=="string"?r=wo.string2buf(n.dictionary):Dc.call(n.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(n.dictionary):r=n.dictionary,e=fo.deflateSetDictionary(this.strm,r),e!==ws)throw new Error(zi[e]);this._dict_set=!0}}xo.prototype.push=function(t,n){let e=this.strm,r=this.options.chunkSize,a,o;if(this.ended)return!1;for(n===~~n?o=n:o=n===!0?d0:f0,typeof t=="string"?e.input=wo.string2buf(t):Dc.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){if(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),(o===c0||o===u0)&&e.avail_out<=6){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(a=fo.deflate(e,o),a===p0)return e.next_out>0&&this.onData(e.output.subarray(0,e.next_out)),a=fo.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===ws;if(e.avail_out===0){this.onData(e.output);continue}if(o>0&&e.next_out>0){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(e.avail_in===0)break}return!0};xo.prototype.onData=function(t){this.chunks.push(t)};xo.prototype.onEnd=function(t){t===ws&&(this.result=xs.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function lh(t,n){let e=new xo(n);if(e.push(t,!0),e.err)throw e.msg||zi[e.err];return e.result}function w0(t,n){return n=n||{},n.raw=!0,lh(t,n)}function y0(t,n){return n=n||{},n.gzip=!0,lh(t,n)}var _0=xo,x0=lh,A0=w0,N0=y0,L0=va,S0={Deflate:_0,deflate:x0,deflateRaw:A0,gzip:N0,constants:L0},ds=16209,k0=16191,P0=function(n,e){let r,a,o,c,l,f,d,v,x,N,p,T,E,B,k,G,V,j,it,vt,ut,Y,M,tt,L=n.state;r=n.next_in,M=n.input,a=r+(n.avail_in-5),o=n.next_out,tt=n.output,c=o-(e-n.avail_out),l=o+(n.avail_out-257),f=L.dmax,d=L.wsize,v=L.whave,x=L.wnext,N=L.window,p=L.hold,T=L.bits,E=L.lencode,B=L.distcode,k=(1<<L.lenbits)-1,G=(1<<L.distbits)-1;t:do{T<15&&(p+=M[r++]<<T,T+=8,p+=M[r++]<<T,T+=8),V=E[p&k];e:for(;;){if(j=V>>>24,p>>>=j,T-=j,j=V>>>16&255,j===0)tt[o++]=V&65535;else if(j&16){it=V&65535,j&=15,j&&(T<j&&(p+=M[r++]<<T,T+=8),it+=p&(1<<j)-1,p>>>=j,T-=j),T<15&&(p+=M[r++]<<T,T+=8,p+=M[r++]<<T,T+=8),V=B[p&G];n:for(;;){if(j=V>>>24,p>>>=j,T-=j,j=V>>>16&255,j&16){if(vt=V&65535,j&=15,T<j&&(p+=M[r++]<<T,T+=8,T<j&&(p+=M[r++]<<T,T+=8)),vt+=p&(1<<j)-1,vt>f){n.msg="invalid distance too far back",L.mode=ds;break t}if(p>>>=j,T-=j,j=o-c,vt>j){if(j=vt-j,j>v&&L.sane){n.msg="invalid distance too far back",L.mode=ds;break t}if(ut=0,Y=N,x===0){if(ut+=d-j,j<it){it-=j;do tt[o++]=N[ut++];while(--j);ut=o-vt,Y=tt}}else if(x<j){if(ut+=d+x-j,j-=x,j<it){it-=j;do tt[o++]=N[ut++];while(--j);if(ut=0,x<it){j=x,it-=j;do tt[o++]=N[ut++];while(--j);ut=o-vt,Y=tt}}}else if(ut+=x-j,j<it){it-=j;do tt[o++]=N[ut++];while(--j);ut=o-vt,Y=tt}for(;it>2;)tt[o++]=Y[ut++],tt[o++]=Y[ut++],tt[o++]=Y[ut++],it-=3;it&&(tt[o++]=Y[ut++],it>1&&(tt[o++]=Y[ut++]))}else{ut=o-vt;do tt[o++]=tt[ut++],tt[o++]=tt[ut++],tt[o++]=tt[ut++],it-=3;while(it>2);it&&(tt[o++]=tt[ut++],it>1&&(tt[o++]=tt[ut++]))}}else if((j&64)===0){V=B[(V&65535)+(p&(1<<j)-1)];continue n}else{n.msg="invalid distance code",L.mode=ds;break t}break}}else if((j&64)===0){V=E[(V&65535)+(p&(1<<j)-1)];continue e}else if(j&32){L.mode=k0;break t}else{n.msg="invalid literal/length code",L.mode=ds;break t}break}}while(r<a&&o<l);it=T>>3,r-=it,T-=it<<3,p&=(1<<T)-1,n.next_in=r,n.next_out=o,n.avail_in=r<a?5+(a-r):5-(r-a),n.avail_out=o<l?257+(l-o):257-(o-l),L.hold=p,L.bits=T},fa=15,Df=852,jf=592,Uf=0,jl=1,zf=2,E0=new Uint16Array([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]),I0=new Uint8Array([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,199,75]),C0=new Uint16Array([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]),F0=new Uint8Array([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]),O0=(t,n,e,r,a,o,c,l)=>{let f=l.bits,d=0,v=0,x=0,N=0,p=0,T=0,E=0,B=0,k=0,G=0,V,j,it,vt,ut,Y=null,M,tt=new Uint16Array(fa+1),L=new Uint16Array(fa+1),F=null,q,z,rt;for(d=0;d<=fa;d++)tt[d]=0;for(v=0;v<r;v++)tt[n[e+v]]++;for(p=f,N=fa;N>=1&&tt[N]===0;N--);if(p>N&&(p=N),N===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,l.bits=1,0;for(x=1;x<N&&tt[x]===0;x++);for(p<x&&(p=x),B=1,d=1;d<=fa;d++)if(B<<=1,B-=tt[d],B<0)return-1;if(B>0&&(t===Uf||N!==1))return-1;for(L[1]=0,d=1;d<fa;d++)L[d+1]=L[d]+tt[d];for(v=0;v<r;v++)n[e+v]!==0&&(c[L[n[e+v]]++]=v);if(t===Uf?(Y=F=c,M=20):t===jl?(Y=E0,F=I0,M=257):(Y=C0,F=F0,M=0),G=0,v=0,d=x,ut=o,T=p,E=0,it=-1,k=1<<p,vt=k-1,t===jl&&k>Df||t===zf&&k>jf)return 1;for(;;){q=d-E,c[v]+1<M?(z=0,rt=c[v]):c[v]>=M?(z=F[c[v]-M],rt=Y[c[v]-M]):(z=96,rt=0),V=1<<d-E,j=1<<T,x=j;do j-=V,a[ut+(G>>E)+j]=q<<24|z<<16|rt|0;while(j!==0);for(V=1<<d-1;G&V;)V>>=1;if(V!==0?(G&=V-1,G+=V):G=0,v++,--tt[d]===0){if(d===N)break;d=n[e+c[v]]}if(d>p&&(G&vt)!==it){for(E===0&&(E=p),ut+=x,T=d-E,B=1<<T;T+E<N&&(B-=tt[T+E],!(B<=0));)T++,B<<=1;if(k+=1<<T,t===jl&&k>Df||t===zf&&k>jf)return 1;it=G&vt,a[it]=p<<24|T<<16|ut-o|0}}return G!==0&&(a[ut+G]=d-E<<24|64<<16|0),l.bits=p,0},co=O0,T0=0,jc=1,Uc=2,{Z_FINISH:qf,Z_BLOCK:R0,Z_TREES:ps,Z_OK:Wi,Z_STREAM_END:B0,Z_NEED_DICT:M0,Z_STREAM_ERROR:Jn,Z_DATA_ERROR:zc,Z_MEM_ERROR:qc,Z_BUF_ERROR:D0,Z_DEFLATED:Hf}=va,As=16180,Wf=16181,Gf=16182,Vf=16183,Zf=16184,$f=16185,Yf=16186,Kf=16187,Xf=16188,Jf=16189,ys=16190,$r=16191,Ul=16192,Qf=16193,zl=16194,tc=16195,ec=16196,nc=16197,rc=16198,gs=16199,vs=16200,ic=16201,ac=16202,oc=16203,sc=16204,lc=16205,ql=16206,hc=16207,fc=16208,Re=16209,Hc=16210,Wc=16211,j0=852,U0=592,z0=15,q0=z0,cc=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function H0(){this.strm=null,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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Gi=t=>{if(!t)return 1;let n=t.state;return!n||n.strm!==t||n.mode<As||n.mode>Wc?1:0},Gc=t=>{if(Gi(t))return Jn;let n=t.state;return t.total_in=t.total_out=n.total=0,t.msg="",n.wrap&&(t.adler=n.wrap&1),n.mode=As,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(j0),n.distcode=n.distdyn=new Int32Array(U0),n.sane=1,n.back=-1,Wi},Vc=t=>{if(Gi(t))return Jn;let n=t.state;return n.wsize=0,n.whave=0,n.wnext=0,Gc(t)},Zc=(t,n)=>{let e;if(Gi(t))return Jn;let r=t.state;return n<0?(e=0,n=-n):(e=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?Jn:(r.window!==null&&r.wbits!==n&&(r.window=null),r.wrap=e,r.wbits=n,Vc(t))},$c=(t,n)=>{if(!t)return Jn;let e=new H0;t.state=e,e.strm=t,e.window=null,e.mode=As;let r=Zc(t,n);return r!==Wi&&(t.state=null),r},W0=t=>$c(t,q0),uc=!0,Hl,Wl,G0=t=>{if(uc){Hl=new Int32Array(512),Wl=new Int32Array(32);let n=0;for(;n<144;)t.lens[n++]=8;for(;n<256;)t.lens[n++]=9;for(;n<280;)t.lens[n++]=7;for(;n<288;)t.lens[n++]=8;for(co(jc,t.lens,0,288,Hl,0,t.work,{bits:9}),n=0;n<32;)t.lens[n++]=5;co(Uc,t.lens,0,32,Wl,0,t.work,{bits:5}),uc=!1}t.lencode=Hl,t.lenbits=9,t.distcode=Wl,t.distbits=5},Yc=(t,n,e,r)=>{let a,o=t.state;return o.window===null&&(o.window=new Uint8Array(1<<o.wbits)),o.wsize===0&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0),r>=o.wsize?(o.window.set(n.subarray(e-o.wsize,e),0),o.wnext=0,o.whave=o.wsize):(a=o.wsize-o.wnext,a>r&&(a=r),o.window.set(n.subarray(e-r,e-r+a),o.wnext),r-=a,r?(o.window.set(n.subarray(e-r,e),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0},V0=(t,n)=>{let e,r,a,o,c,l,f,d,v,x,N,p,T,E,B=0,k,G,V,j,it,vt,ut,Y,M=new Uint8Array(4),tt,L,F=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Gi(t)||!t.output||!t.input&&t.avail_in!==0)return Jn;e=t.state,e.mode===$r&&(e.mode=Ul),c=t.next_out,a=t.output,f=t.avail_out,o=t.next_in,r=t.input,l=t.avail_in,d=e.hold,v=e.bits,x=l,N=f,Y=Wi;t:for(;;)switch(e.mode){case As:if(e.wrap===0){e.mode=Ul;break}for(;v<16;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}if(e.wrap&2&&d===35615){e.wbits===0&&(e.wbits=15),e.check=0,M[0]=d&255,M[1]=d>>>8&255,e.check=on(e.check,M,2,0),d=0,v=0,e.mode=Wf;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((d&255)<<8)+(d>>8))%31){t.msg="incorrect header check",e.mode=Re;break}if((d&15)!==Hf){t.msg="unknown compression method",e.mode=Re;break}if(d>>>=4,v-=4,ut=(d&15)+8,e.wbits===0&&(e.wbits=ut),ut>15||ut>e.wbits){t.msg="invalid window size",e.mode=Re;break}e.dmax=1<<e.wbits,e.flags=0,t.adler=e.check=1,e.mode=d&512?Jf:$r,d=0,v=0;break;case Wf:for(;v<16;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}if(e.flags=d,(e.flags&255)!==Hf){t.msg="unknown compression method",e.mode=Re;break}if(e.flags&57344){t.msg="unknown header flags set",e.mode=Re;break}e.head&&(e.head.text=d>>8&1),e.flags&512&&e.wrap&4&&(M[0]=d&255,M[1]=d>>>8&255,e.check=on(e.check,M,2,0)),d=0,v=0,e.mode=Gf;case Gf:for(;v<32;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}e.head&&(e.head.time=d),e.flags&512&&e.wrap&4&&(M[0]=d&255,M[1]=d>>>8&255,M[2]=d>>>16&255,M[3]=d>>>24&255,e.check=on(e.check,M,4,0)),d=0,v=0,e.mode=Vf;case Vf:for(;v<16;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}e.head&&(e.head.xflags=d&255,e.head.os=d>>8),e.flags&512&&e.wrap&4&&(M[0]=d&255,M[1]=d>>>8&255,e.check=on(e.check,M,2,0)),d=0,v=0,e.mode=Zf;case Zf:if(e.flags&1024){for(;v<16;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}e.length=d,e.head&&(e.head.extra_len=d),e.flags&512&&e.wrap&4&&(M[0]=d&255,M[1]=d>>>8&255,e.check=on(e.check,M,2,0)),d=0,v=0}else e.head&&(e.head.extra=null);e.mode=$f;case $f:if(e.flags&1024&&(p=e.length,p>l&&(p=l),p&&(e.head&&(ut=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(r.subarray(o,o+p),ut)),e.flags&512&&e.wrap&4&&(e.check=on(e.check,r,p,o)),l-=p,o+=p,e.length-=p),e.length))break t;e.length=0,e.mode=Yf;case Yf:if(e.flags&2048){if(l===0)break t;p=0;do ut=r[o+p++],e.head&&ut&&e.length<65536&&(e.head.name+=String.fromCharCode(ut));while(ut&&p<l);if(e.flags&512&&e.wrap&4&&(e.check=on(e.check,r,p,o)),l-=p,o+=p,ut)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=Kf;case Kf:if(e.flags&4096){if(l===0)break t;p=0;do ut=r[o+p++],e.head&&ut&&e.length<65536&&(e.head.comment+=String.fromCharCode(ut));while(ut&&p<l);if(e.flags&512&&e.wrap&4&&(e.check=on(e.check,r,p,o)),l-=p,o+=p,ut)break t}else e.head&&(e.head.comment=null);e.mode=Xf;case Xf:if(e.flags&512){for(;v<16;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}if(e.wrap&4&&d!==(e.check&65535)){t.msg="header crc mismatch",e.mode=Re;break}d=0,v=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),t.adler=e.check=0,e.mode=$r;break;case Jf:for(;v<32;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}t.adler=e.check=cc(d),d=0,v=0,e.mode=ys;case ys:if(e.havedict===0)return t.next_out=c,t.avail_out=f,t.next_in=o,t.avail_in=l,e.hold=d,e.bits=v,M0;t.adler=e.check=1,e.mode=$r;case $r:if(n===R0||n===ps)break t;case Ul:if(e.last){d>>>=v&7,v-=v&7,e.mode=ql;break}for(;v<3;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}switch(e.last=d&1,d>>>=1,v-=1,d&3){case 0:e.mode=Qf;break;case 1:if(G0(e),e.mode=gs,n===ps){d>>>=2,v-=2;break t}break;case 2:e.mode=ec;break;case 3:t.msg="invalid block type",e.mode=Re}d>>>=2,v-=2;break;case Qf:for(d>>>=v&7,v-=v&7;v<32;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}if((d&65535)!==(d>>>16^65535)){t.msg="invalid stored block lengths",e.mode=Re;break}if(e.length=d&65535,d=0,v=0,e.mode=zl,n===ps)break t;case zl:e.mode=tc;case tc:if(p=e.length,p){if(p>l&&(p=l),p>f&&(p=f),p===0)break t;a.set(r.subarray(o,o+p),c),l-=p,o+=p,f-=p,c+=p,e.length-=p;break}e.mode=$r;break;case ec:for(;v<14;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}if(e.nlen=(d&31)+257,d>>>=5,v-=5,e.ndist=(d&31)+1,d>>>=5,v-=5,e.ncode=(d&15)+4,d>>>=4,v-=4,e.nlen>286||e.ndist>30){t.msg="too many length or distance symbols",e.mode=Re;break}e.have=0,e.mode=nc;case nc:for(;e.have<e.ncode;){for(;v<3;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}e.lens[F[e.have++]]=d&7,d>>>=3,v-=3}for(;e.have<19;)e.lens[F[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,tt={bits:e.lenbits},Y=co(T0,e.lens,0,19,e.lencode,0,e.work,tt),e.lenbits=tt.bits,Y){t.msg="invalid code lengths set",e.mode=Re;break}e.have=0,e.mode=rc;case rc:for(;e.have<e.nlen+e.ndist;){for(;B=e.lencode[d&(1<<e.lenbits)-1],k=B>>>24,G=B>>>16&255,V=B&65535,!(k<=v);){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}if(V<16)d>>>=k,v-=k,e.lens[e.have++]=V;else{if(V===16){for(L=k+2;v<L;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}if(d>>>=k,v-=k,e.have===0){t.msg="invalid bit length repeat",e.mode=Re;break}ut=e.lens[e.have-1],p=3+(d&3),d>>>=2,v-=2}else if(V===17){for(L=k+3;v<L;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}d>>>=k,v-=k,ut=0,p=3+(d&7),d>>>=3,v-=3}else{for(L=k+7;v<L;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}d>>>=k,v-=k,ut=0,p=11+(d&127),d>>>=7,v-=7}if(e.have+p>e.nlen+e.ndist){t.msg="invalid bit length repeat",e.mode=Re;break}for(;p--;)e.lens[e.have++]=ut}}if(e.mode===Re)break;if(e.lens[256]===0){t.msg="invalid code -- missing end-of-block",e.mode=Re;break}if(e.lenbits=9,tt={bits:e.lenbits},Y=co(jc,e.lens,0,e.nlen,e.lencode,0,e.work,tt),e.lenbits=tt.bits,Y){t.msg="invalid literal/lengths set",e.mode=Re;break}if(e.distbits=6,e.distcode=e.distdyn,tt={bits:e.distbits},Y=co(Uc,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,tt),e.distbits=tt.bits,Y){t.msg="invalid distances set",e.mode=Re;break}if(e.mode=gs,n===ps)break t;case gs:e.mode=vs;case vs:if(l>=6&&f>=258){t.next_out=c,t.avail_out=f,t.next_in=o,t.avail_in=l,e.hold=d,e.bits=v,P0(t,N),c=t.next_out,a=t.output,f=t.avail_out,o=t.next_in,r=t.input,l=t.avail_in,d=e.hold,v=e.bits,e.mode===$r&&(e.back=-1);break}for(e.back=0;B=e.lencode[d&(1<<e.lenbits)-1],k=B>>>24,G=B>>>16&255,V=B&65535,!(k<=v);){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}if(G&&(G&240)===0){for(j=k,it=G,vt=V;B=e.lencode[vt+((d&(1<<j+it)-1)>>j)],k=B>>>24,G=B>>>16&255,V=B&65535,!(j+k<=v);){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}d>>>=j,v-=j,e.back+=j}if(d>>>=k,v-=k,e.back+=k,e.length=V,G===0){e.mode=lc;break}if(G&32){e.back=-1,e.mode=$r;break}if(G&64){t.msg="invalid literal/length code",e.mode=Re;break}e.extra=G&15,e.mode=ic;case ic:if(e.extra){for(L=e.extra;v<L;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}e.length+=d&(1<<e.extra)-1,d>>>=e.extra,v-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=ac;case ac:for(;B=e.distcode[d&(1<<e.distbits)-1],k=B>>>24,G=B>>>16&255,V=B&65535,!(k<=v);){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}if((G&240)===0){for(j=k,it=G,vt=V;B=e.distcode[vt+((d&(1<<j+it)-1)>>j)],k=B>>>24,G=B>>>16&255,V=B&65535,!(j+k<=v);){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}d>>>=j,v-=j,e.back+=j}if(d>>>=k,v-=k,e.back+=k,G&64){t.msg="invalid distance code",e.mode=Re;break}e.offset=V,e.extra=G&15,e.mode=oc;case oc:if(e.extra){for(L=e.extra;v<L;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}e.offset+=d&(1<<e.extra)-1,d>>>=e.extra,v-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){t.msg="invalid distance too far back",e.mode=Re;break}e.mode=sc;case sc:if(f===0)break t;if(p=N-f,e.offset>p){if(p=e.offset-p,p>e.whave&&e.sane){t.msg="invalid distance too far back",e.mode=Re;break}p>e.wnext?(p-=e.wnext,T=e.wsize-p):T=e.wnext-p,p>e.length&&(p=e.length),E=e.window}else E=a,T=c-e.offset,p=e.length;p>f&&(p=f),f-=p,e.length-=p;do a[c++]=E[T++];while(--p);e.length===0&&(e.mode=vs);break;case lc:if(f===0)break t;a[c++]=e.length,f--,e.mode=vs;break;case ql:if(e.wrap){for(;v<32;){if(l===0)break t;l--,d|=r[o++]<<v,v+=8}if(N-=f,t.total_out+=N,e.total+=N,e.wrap&4&&N&&(t.adler=e.check=e.flags?on(e.check,a,N,c-N):mo(e.check,a,N,c-N)),N=f,e.wrap&4&&(e.flags?d:cc(d))!==e.check){t.msg="incorrect data check",e.mode=Re;break}d=0,v=0}e.mode=hc;case hc:if(e.wrap&&e.flags){for(;v<32;){if(l===0)break t;l--,d+=r[o++]<<v,v+=8}if(e.wrap&4&&d!==(e.total&4294967295)){t.msg="incorrect length check",e.mode=Re;break}d=0,v=0}e.mode=fc;case fc:Y=B0;break t;case Re:Y=zc;break t;case Hc:return qc;case Wc:default:return Jn}return t.next_out=c,t.avail_out=f,t.next_in=o,t.avail_in=l,e.hold=d,e.bits=v,(e.wsize||N!==t.avail_out&&e.mode<Re&&(e.mode<ql||n!==qf))&&Yc(t,t.output,t.next_out,N-t.avail_out),x-=t.avail_in,N-=t.avail_out,t.total_in+=x,t.total_out+=N,e.total+=N,e.wrap&4&&N&&(t.adler=e.check=e.flags?on(e.check,a,N,t.next_out-N):mo(e.check,a,N,t.next_out-N)),t.data_type=e.bits+(e.last?64:0)+(e.mode===$r?128:0)+(e.mode===gs||e.mode===zl?256:0),(x===0&&N===0||n===qf)&&Y===Wi&&(Y=D0),Y},Z0=t=>{if(Gi(t))return Jn;let n=t.state;return n.window&&(n.window=null),t.state=null,Wi},$0=(t,n)=>{if(Gi(t))return Jn;let e=t.state;return(e.wrap&2)===0?Jn:(e.head=n,n.done=!1,Wi)},Y0=(t,n)=>{let e=n.length,r,a,o;return Gi(t)||(r=t.state,r.wrap!==0&&r.mode!==ys)?Jn:r.mode===ys&&(a=1,a=mo(a,n,e,0),a!==r.check)?zc:(o=Yc(t,n,e,e),o?(r.mode=Hc,qc):(r.havedict=1,Wi))},K0=Vc,X0=Zc,J0=Gc,Q0=W0,t5=$c,e5=V0,n5=Z0,r5=$0,i5=Y0,a5="pako inflate (from Nodeca project)",_r={inflateReset:K0,inflateReset2:X0,inflateResetKeep:J0,inflateInit:Q0,inflateInit2:t5,inflate:e5,inflateEnd:n5,inflateGetHeader:r5,inflateSetDictionary:i5,inflateInfo:a5};function o5(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var s5=o5,Kc=Object.prototype.toString,{Z_NO_FLUSH:l5,Z_FINISH:dc,Z_OK:ua,Z_STREAM_END:Gl,Z_NEED_DICT:Vl,Z_STREAM_ERROR:h5,Z_DATA_ERROR:pc,Z_MEM_ERROR:f5,Z_BUF_ERROR:gc}=va,c5={chunkSize:1024*64,windowBits:15,to:""};function Ao(t){this.options=xs.assign({},c5,t||{});let n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(t&&t.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15)===0&&(n.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Mc,this.strm.avail_out=0;let e=_r.inflateInit2(this.strm,n.windowBits);if(e!==ua)throw new Error(zi[e]);if(this.header=new s5,_r.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=wo.string2buf(n.dictionary):Kc.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(e=_r.inflateSetDictionary(this.strm,n.dictionary),e!==ua)))throw new Error(zi[e])}Ao.prototype.push=function(t,n){let e=this.strm,r=this.options.chunkSize,a=this.options.dictionary,o,c,l;if(this.ended)return!1;for(n===~~n?c=n:c=n===!0?dc:l5,Kc.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),o=_r.inflate(e,c),o===Vl&&a&&(o=_r.inflateSetDictionary(e,a),o===ua?o=_r.inflate(e,c):o===pc&&(o=Vl));e.avail_in>0&&o===Gl&&e.state.wrap&2&&e.state.flags!==0&&e.input[e.next_in]!==0;)_r.inflateReset(e),o=_r.inflate(e,c);switch(o){case h5:case pc:case Vl:case f5:return this.onEnd(o),this.ended=!0,!1}if(l=e.avail_out,e.next_out&&(e.avail_out===0||o===Gl||c>0))if(this.options.to==="string"){let f=wo.utf8border(e.output,e.next_out),d=e.next_out-f,v=wo.buf2string(e.output,f);e.next_out=d,e.avail_out=r-d,d&&e.output.set(e.output.subarray(f,f+d),0),this.onData(v)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out)),e.avail_out=0,e.next_out=0;if(!((o===ua||o===gc)&&l===0)){if(o===Gl)return o=_r.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(e.avail_in===0){if(c===dc)return o=_r.inflateEnd(this.strm),this.onEnd(o===ua?gc:o),this.ended=!0,!1;break}}}return!0};Ao.prototype.onData=function(t){this.chunks.push(t)};Ao.prototype.onEnd=function(t){t===ua&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=xs.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function hh(t,n){let e=new Ao(n);if(e.push(t,!0),e.err)throw e.msg||zi[e.err];return e.result}function u5(t,n){return n=n||{},n.raw=!0,hh(t,n)}var d5=Ao,p5=hh,g5=u5,v5=hh,m5=va,b5={Inflate:d5,inflate:p5,inflateRaw:g5,ungzip:v5,constants:m5}
2,{Deflate:Dd,deflate:jd,deflateRaw:Ud,gzip:zd}=S0,{Inflate:w5,inflate:y5,inflateRaw:qd,ungzip:Hd}=b5;var fh=w5,Xc=y5;var Qc=[];for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n&1?n=3988292384^n>>>1:n=n>>>1;Qc[t]=n}var Jc=4294967295;function _5(t,n,e){let r=t;for(let a=0;a<e;a++)r=Qc[(r^n[a])&255]^r>>>8;return r}function x5(t,n){return(_5(Jc,t,n)^Jc)>>>0}function ch(t,n,e){let r=t.readUint32(),a=x5(new Uint8Array(t.buffer,t.byteOffset+t.offset-n-4,n),n);if(a!==r)throw new Error(`CRC mismatch for chunk ${e}. Expected ${r}, found ${a}`)}function Ns(t,n,e){for(let r=0;r<e;r++)n[r]=t[r]}function Ls(t,n,e,r){let a=0;for(;a<r;a++)n[a]=t[a];for(;a<e;a++)n[a]=t[a]+n[a-r]&255}function Ss(t,n,e,r){let a=0;if(e.length===0)for(;a<r;a++)n[a]=t[a];else for(;a<r;a++)n[a]=t[a]+e[a]&255}function ks(t,n,e,r,a){let o=0;if(e.length===0){for(;o<a;o++)n[o]=t[o];for(;o<r;o++)n[o]=t[o]+(n[o-a]>>1)&255}else{for(;o<a;o++)n[o]=t[o]+(e[o]>>1)&255;for(;o<r;o++)n[o]=t[o]+(n[o-a]+e[o]>>1)&255}}function Ps(t,n,e,r,a){let o=0;if(e.length===0){for(;o<a;o++)n[o]=t[o];for(;o<r;o++)n[o]=t[o]+n[o-a]&255}else{for(;o<a;o++)n[o]=t[o]+e[o]&255;for(;o<r;o++)n[o]=t[o]+A5(n[o-a],e[o],e[o-a])&255}}function A5(t,n,e){let r=t+n-e,a=Math.abs(r-t),o=Math.abs(r-n),c=Math.abs(r-e);return a<=o&&a<=c?t:o<=c?n:e}function tu(t,n,e,r,a,o){switch(t){case 0:Ns(n,e,a);break;case 1:Ls(n,e,a,o);break;case 2:Ss(n,e,r,a);break;case 3:ks(n,e,r,a,o);break;case 4:Ps(n,e,r,a,o);break;default:throw new Error(`Unsupported filter: ${t}`)}}var N5=new Uint16Array([255]),L5=new Uint8Array(N5.buffer),S5=L5[0]===255;function eu(t){let{data:n,width:e,height:r,channels:a,depth:o}=t,c=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],l=Math.ceil(o/8)*a,f=new Uint8Array(r*e*l),d=0;for(let v=0;v<7;v++){let x=c[v],N=Math.ceil((e-x.x)/x.xStep),p=Math.ceil((r-x.y)/x.yStep);if(N<=0||p<=0)continue;let T=N*l,E=new Uint8Array(T);for(let B=0;B<p;B++){let k=n[d++],G=n.subarray(d,d+T);d+=T;let V=new Uint8Array(T);tu(k,G,V,E,T,l),E.set(V);for(let j=0;j<N;j++){let it=x.x+j*x.xStep,vt=x.y+B*x.yStep;if(!(it>=e||vt>=r))for(let ut=0;ut<l;ut++)f[(vt*e+it)*l+ut]=V[j*l+ut]}}}if(o===16){let v=new Uint16Array(f.buffer);if(S5)for(let x=0;x<v.length;x++)v[x]=k5(v[x]);return v}else return f}function k5(t){return(t&255)<<8|t>>8&255}var P5=new Uint16Array([255]),E5=new Uint8Array(P5.buffer),I5=E5[0]===255,C5=new Uint8Array(0);function uh(t){let{data:n,width:e,height:r,channels:a,depth:o}=t,c=Math.ceil(o/8)*a,l=Math.ceil(o/8*a*e),f=new Uint8Array(r*l),d=C5,v=0,x,N;for(let p=0;p<r;p++){switch(x=n.subarray(v+1,v+1+l),N=f.subarray(p*l,(p+1)*l),n[v]){case 0:Ns(x,N,l);break;case 1:Ls(x,N,l,c);break;case 2:Ss(x,N,d,l);break;case 3:ks(x,N,d,l,c);break;case 4:Ps(x,N,d,l,c);break;default:throw new Error(`Unsupported filter: ${n[v]}`)}d=N,v+=l+1}if(o===16){let p=new Uint16Array(f.buffer);if(I5)for(let T=0;T<p.length;T++)p[T]=F5(p[T]);return p}else return f}function F5(t){return(t&255)<<8|t>>8&255}var Es=Uint8Array.of(137,80,78,71,13,10,26,10);function dh(t){if(!nu(t.readBytes(Es.length)))throw new Error("wrong PNG signature")}function nu(t){if(t.length<Es.length)return!1;for(let n=0;n<Es.length;n++)if(t[n]!==Es[n])return!1;return!0}var ru="tEXt",T5=0,iu=new TextDecoder("latin1");function R5(t){if(M5(t),t.length===0||t.length>79)throw new Error("keyword length must be between 1 and 79")}var B5=/^[\u0000-\u00FF]*$/;function M5(t){if(!B5.test(t))throw new Error("invalid latin1 text")}function au(t,n,e){let r=ph(n);t[r]=D5(n,e-r.length-1)}function ph(t){for(t.mark();t.readByte()!==T5;);let n=t.offset;t.reset();let e=iu.decode(t.readBytes(n-t.offset-1));return t.skip(1),R5(e),e}function D5(t,n){return iu.decode(t.readBytes(n))}var Sn={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},No={UNKNOWN:-1,DEFLATE:0},Is={UNKNOWN:-1,ADAPTIVE:0},Lo={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},So={NONE:0,BACKGROUND:1,PREVIOUS:2},Cs={SOURCE:0,OVER:1};var ko=class extends ao{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(n,e={}){super(n);let{checkCrc:r=!1}=e;this._checkCrc=r,this._inflator=new fh,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=No.UNKNOWN,this._filterMethod=Is.UNKNOWN,this._interlaceMethod=Lo.UNKNOWN,this._colorType=Sn.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(dh(this);!this._end;){let n=this.readUint32(),e=this.readChars(4);this.decodeChunk(n,e)}return this.decodeImage(),this._png}decodeApng(){for(dh(this);!this._end;){let n=this.readUint32(),e=this.readChars(4);this.decodeApngChunk(n,e)}return this.decodeApngImage(),this._apng}decodeChunk(n,e){let r=this.offset;switch(e){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(n);break;case"IDAT":this.decodeIDAT(n);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(n);break;case"iCCP":this.decodeiCCP(n);break;case ru:au(this._png.text,this,n);break;case"pHYs":this.decodepHYs();break;default:this.skip(n);break}if(this.offset-r!==n)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?ch(this,n+4,e):this.skip(4)}decodeApngChunk(n,e){let r=this.offset;switch(e!=="fdAT"&&e!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),e){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(n);break;default:this.decodeChunk(n,e),this.offset=r+n;break}if(this.offset-r!==n)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?ch(this,n+4,e):this.skip(4)}decodeIHDR(){let n=this._png;n.width=this.readUint32(),n.height=this.readUint32(),n.depth=j5(this.readUint8());let e=this.readUint8();this._colorType=e;let r;switch(e){case Sn.GREYSCALE:r=1;break;case Sn.TRUECOLOUR:r=3;break;case Sn.INDEXED_COLOUR:r=1;break;case Sn.GREYSCALE_ALPHA:r=2;break;case Sn.TRUECOLOUR_ALPHA:r=4;break;case Sn.UNKNOWN:default:throw new Error(`Unknown color type: ${e}`)}if(this._png.channels=r,this._compressionMethod=this.readUint8(),this._compressionMethod!==No.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){let n={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(n)}
2decodePLTE(n){if(n%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${n}`);let e=n/3;this._hasPalette=!0;let r=[];this._palette=r;for(let a=0;a<e;a++)r.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(n){this._writingDataChunks=!0;let e=n,r=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,r,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodeFDAT(n){this._writingDataChunks=!0;let e=n,r=this.offset+this.byteOffset;if(r+=4,e-=4,this._inflator.push(new Uint8Array(this.buffer,r,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodetRNS(n){switch(this._colorType){case Sn.GREYSCALE:case Sn.TRUECOLOUR:{if(n%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${n}`);if(n/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${n/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(n/2);for(let e=0;e<n/2;e++)this._transparency[e]=this.readUint16();break}case Sn.INDEXED_COLOUR:{if(n>this._palette.length)throw new Error(`tRNS chunk contains more alph
2a values than there are palette colors (${n} vs ${this._palette.length})`);let e=0;for(;e<n;e++){let r=this.readByte();this._palette[e].push(r)}for(;e<this._palette.length;e++)this._palette[e].push(255);break}case Sn.UNKNOWN:case Sn.GREYSCALE_ALPHA:case Sn.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(n){let e=ph(this),r=this.readUint8();if(r!==No.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${r}`);let a=this.readBytes(n-e.length-2);this._png.iccEmbeddedProfile={name:e,profile:Xc(a)}}decodepHYs(){let n=this.readUint32(),e=this.readUint32(),r=this.readByte();this._png.resolution={x:n,y:e,unit:r}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let n=0;n<this._numberOfFrames;n++){let e={sequenceNumber:this._frames[n].sequenceNumber,delayNumber:this._frames[n].delayNumber,delayDenominator:this._frames[n].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},r=this._frames.at(n);if(r){if(r.data=uh({data:r.data,width:r.width,height:r.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),n===0||r.xOffset===0&&r.yOffset===0&&r.width===this._png.width&&r.height===this._png.height)e.data=r.data;else{let a=this._apng.frames.at(n-1);this.disposeFrame(r,a,e),this.addFrameDataToCanvas(e,r)}this._apng.frames.push(e)}}return this._apng}disposeFrame(n,e,r){switch(n.disposeOp){case So.NONE:break;case So.BACKGROUND:for(let a=0;a<this._png.height;a++)for(let o=0;o<this._png.width;o++){let c=(a*n.width+o)*this._png.channels;for(let l=0;l<this._png.channels;l++)r.data[c+l]=0}break;case So.PREVIOUS:r.data.set(e.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(n,e){let r=1<<this._png.depth,a=(o,c)=>{let l=((o+e.yOffset)*this._png.width+e.xOffset+c)*this._png.channels,f=(o*e.width+c)*this._png.channels;return{index:l,frameIndex:f}};switch(e.blendOp){case Cs.SOURCE:for(let o=0;o<e.height;o++)for(let c=0;c<e.width;c++){let{index:l,frameIndex:f}=a(o,c);for(let d=0;d<this._png.channels;d++)n.data[l+d]=e.data[f+d]}break;case Cs.OVER:for(let o=0;o<e.height;o++)for(let c=0;c<e.width;c++){let{index:l,frameIndex:f}=a(o,c);for(let d=0;d<this._png.channels;d++){let v=e.data[f+this._png.channels-1]/r,x=d%(this._png.channels-1)===0?1:e.data[f+d],N=Math.floor(v*x+(1-v)*n.data[l+d]);n.data[l+d]+=N}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);let n=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==Is.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Lo.NO_INTERLACE)this._png.data=uh({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===Lo.ADAM7)this._png.data=eu({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){let n=this._inflator.result,e=this._frames.at(-1);e?e.data=n:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:So.NONE,blendOp:Cs.SOURCE,data:n}),this._inflator=new fh,this._writingDataChunks=!1}};function j5(t){if(t!==1&&t!==2&&t!==4&&t!==8&&t!==16)throw new Error(`invalid bit depth: ${t}`);return t}var ou;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.METRE=1]="METRE"})(ou||(ou={}));function su(t,n){return new ko(t,n).decode()}var $t=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function gh(){$t.console&&typeof $t.console.log=="function"&&$t.console.log.apply($t.console,arguments)}var Pe={log:gh,warn:function(t){$t.console&&(typeof $t.console.warn=="function"?$t.console.warn.apply($t.console,arguments):gh.call(null,arguments))},error:function(t){$t.console&&(typeof $t.console.error=="function"?$t.console.error.apply($t.console,arguments):gh(t))}};function vh(t,n,e){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){Vi(r.response,n,e)},r.onerror=function(){Pe.error("could not download file")},r.send()}function lu(t){var n=new XMLHttpRequest;n.open("HEAD",t,!1);try{n.send()}catch{}return n.status>=200&&n.status<=299}function Fs(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var n=document.createEvent("MouseEvents");
vendor: 3,223 bytes, line 2
2n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}var Vi=$t.saveAs||((typeof window>"u"?"undefined":Le(window))!=="object"||window!==$t?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,n,e){var r=$t.URL||$t.webkitURL,a=document.createElement("a");n=n||t.name||"download",a.download=n,a.rel="noopener",typeof t=="string"?(a.href=t,a.origin!==location.origin?lu(a.href)?vh(t,n,e):Fs(a,a.target="_blank"):Fs(a)):(a.href=r.createObjectURL(t),setTimeout(function(){r.revokeObjectURL(a.href)},4e4),setTimeout(function(){Fs(a)},0))}:"msSaveOrOpenBlob"in navigator?function(t,n,e){if(n=n||t.name||"download",typeof t=="string")if(lu(t))vh(t,n,e);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){Fs(r)})}else navigator.msSaveOrOpenBlob((function(a,o){return o===void 0?o={autoBom:!1}:Le(o)!=="object"&&(Pe.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a})(t,e),n)}:function(t,n,e,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return vh(t,n,e);var a=t.type==="application/octet-stream",o=/constructor/i.test($t.HTMLElement)||$t.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&o)&&(typeof FileReader>"u"?"undefined":Le(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var v=l.result;v=c?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=v:location=v,r=null},l.readAsDataURL(t)}else{var f=$t.URL||$t.webkitURL,d=f.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout(function(){f.revokeObjectURL(d)},4e4)}});function Fu(t){var n;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={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:"90ee9
20",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"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;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)]}}],r=0;r<e.length;r++){var a=e[r].re,o=e[r].process,c=a.exec(t);c&&(n=o(c),this.r=n[0],this.g=n[1],this.b=n[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),f=this.g.toString(16),d=this.b.toString(16);return l.length==1&&(l="0"+l),f.length==1&&(f="0"+f),d.length==1&&(d="0"+d),"#"+l+f+d}}var Bs=$t.atob.bind($t),hu=$t.btoa.bind($t);function mh(t,n){var e=t[0],r=t[1],a=t[2],o=t[3];e=mn(e,r,a,o,n[0],7,-680876936),o=mn(o,e,r,a,n[1],12,-389564586),a=mn(a,o,e,r,n[2],17,606105819),r=mn(r,a,o,e,n[3],22,-1044525330),e=mn(e,r,a,o,n[4],7,-176418897),o=mn(o,e,r,a,n[5],12,1200080426),a=mn(a,o,e,r,n[6],17,-1473231341),r=mn(r,a,o,e,n[7],22,-45705983),e=mn(e,r,a,o,n[8],7,1770035416),o=mn(o,e,r,a,n[9],12,-1958414417),a=mn(a,o,e,r,n[10],17,-42063),r=mn(r,a,o,e,n[11],22,-1990404162),e=mn(e,r,a,o,n[12],7,1804603682),o=mn(o,e,r,a,n[13],12,-40341101),a=mn(a,o,e,r,n[14],17,-1502002290),e=bn(e,r=mn(r,a,o,e,n[15],22,1236535329),a,o,n[1],5,-165796510),o=bn(o,e,r,a,n[6],9,-1069501632),a=bn(a,o,e,r,n[11],14,643717713),r=bn(r,a,o,e,n[0],20,-373897302),e=bn(e,r,a,o,n[5],5,-701558691),o=bn(o,e,r,a,n[10],9,38016083),a=bn(a,o,e,r,n[15],14,-660478335),r=bn(r,a,o,e,n[4],20,-405537848),e=bn(e,r,a,o,n[9],5,568446438),o=bn(o,e,r,a,n[14],9,-1019803690),a=bn(a,o,e,r,n[3],14,-187363961),r=bn(r,a,o,e,n[8],20,1163531501),e=bn(e,r,a,o,n[13],5,-1444681467),o=bn(o,e,r,a,n[2],9,-51403784),a=bn(a,o,e,r,n[7],14,1735328473),e=wn(e,r=bn(r,a,o,e,n[12],20,-1926607734),a,o,n[5],4,-378558),o=wn(o,e,r,a,n[8],11,-2022574463),a=wn(a,o,e,r,n[11],16,1839030562),r=wn(r,a,o,e,n[14],23,-35309556),e=wn(e,r,a,o,n[1],4,-1530992060),o=wn(o,e,r,a,n[4],11,1272893353),a=wn(a,o,e,r,n[7],16,-155497632),r=wn(r,a,o,e,n[10],23,-1094730640),e=wn(e,r,a,o,n[13],4,681279174),o=wn(o,e,r,a,n[0],11,-358537222),a=wn(a,o,e,r,n[3],16,-722521979),r=wn(r,a,o,e,n[6],23,76029189),e=wn(e,r,a,o,n[9],4,-640364487),o=wn(o,e,r,a,n[12],11,-421815835),a=wn(a,o,e,r,n[15],16,530742520),e=yn(e,r=wn(r,a,o,e,
vendor: 9,868 bytes, line 2
2n[2],23,-995338651),a,o,n[0],6,-198630844),o=yn(o,e,r,a,n[7],10,1126891415),a=yn(a,o,e,r,n[14],15,-1416354905),r=yn(r,a,o,e,n[5],21,-57434055),e=yn(e,r,a,o,n[12],6,1700485571),o=yn(o,e,r,a,n[3],10,-1894986606),a=yn(a,o,e,r,n[10],15,-1051523),r=yn(r,a,o,e,n[1],21,-2054922799),e=yn(e,r,a,o,n[8],6,1873313359),o=yn(o,e,r,a,n[15],10,-30611744),a=yn(a,o,e,r,n[6],15,-1560198380),r=yn(r,a,o,e,n[13],21,1309151649),e=yn(e,r,a,o,n[4],6,-145523070),o=yn(o,e,r,a,n[11],10,-1120210379),a=yn(a,o,e,r,n[2],15,718787259),r=yn(r,a,o,e,n[9],21,-343485551),t[0]=mi(e,t[0]),t[1]=mi(r,t[1]),t[2]=mi(a,t[2]),t[3]=mi(o,t[3])}function Hs(t,n,e,r,a,o){return n=mi(mi(n,t),mi(r,o)),mi(n<<a|n>>>32-a,e)}function mn(t,n,e,r,a,o,c){return Hs(n&e|~n&r,t,n,a,o,c)}function bn(t,n,e,r,a,o,c){return Hs(n&r|e&~r,t,n,a,o,c)}function wn(t,n,e,r,a,o,c){return Hs(n^e^r,t,n,a,o,c)}function yn(t,n,e,r,a,o,c){return Hs(e^(n|~r),t,n,a,o,c)}function Ou(t){var n,e=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=t.length;n+=64)mh(r,U5(t.substring(n-64,n)));t=t.substring(n-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n<t.length;n++)a[n>>2]|=t.charCodeAt(n)<<(n%4<<3);if(a[n>>2]|=128<<(n%4<<3),n>55)for(mh(r,a),n=0;n<16;n++)a[n]=0;return a[14]=8*e,mh(r,a),r}function U5(t){var n,e=[];for(n=0;n<64;n+=4)e[n>>2]=t.charCodeAt(n)+(t.charCodeAt(n+1)<<8)+(t.charCodeAt(n+2)<<16)+(t.charCodeAt(n+3)<<24);return e}var fu="0123456789abcdef".split("");function z5(t){for(var n="",e=0;e<4;e++)n+=fu[t>>8*e+4&15]+fu[t>>8*e&15];return n}function q5(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function Ah(t){return Ou(t).map(q5).join("")}var H5=(function(t){for(var n=0;n<t.length;n++)t[n]=z5(t[n]);return t.join("")})(Ou("hello"))!="5d41402abc4b2a76b9719d911017c592";function mi(t,n){if(H5){var e=(65535&t)+(65535&n);return(t>>16)+(n>>16)+(e>>16)<<16|65535&e}return t+n&4294967295}function Nh(t,n){var e,r,a,o;if(t!==e){for(var c=(a=t,o=1+(256/t.length|0),new Array(o+1).join(a)),l=[],f=0;f<256;f++)l[f]=f;var d=0;for(f=0;f<256;f++){var v=l[f];d=(d+v+c.charCodeAt(f))%256,l[f]=l[d],l[d]=v}e=t,r=l}else l=r;var x=n.length,N=0,p=0,T="";for(f=0;f<x;f++)p=(p+(v=l[N=(N+1)%256]))%256,l[N]=l[p],l[p]=v,c=l[(l[N]+l[p])%256],T+=String.fromCharCode(n.charCodeAt(f)^c);return T}var cu={print:4,modify:8,copy:16,"annot-forms":32};function _a(t,n,e,r){this.v=1,this.r=2;var a=192;t.forEach(function(l){if(cu.perm!==void 0)throw new Error("Invalid permission: "+l);a+=cu[l]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA�\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var o=(n+this.padding).substr(0,32),c=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,c),this.P=-(1+(255^a)),this.encryptionKey=Ah(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Nh(this.encryptionKey,this.padding)}function xa(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var n="",e=t.length,r=0;r<e;r++){var a=t.charCodeAt(r);n+=a<33||a===35||a===37||a===40||a===41||a===47||a===60||a===62||a===91||a===93||a===123||a===125||a>126?"#"+("0"+a.toString(16)).slice(-2):t[r]}return n}function uu(t){if(Le(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};this.subscribe=function(e,r,a){if(a=a||!1,typeof e!="string"||typeof r!="function"||typeof a!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");n.hasOwnProperty(e)||(n[e]={});var o=Math.random().toString(35);return n[e][o]=[r,!!a],o},this.unsubscribe=function(e){for(var r in n)if(n[r][e])return delete n[r][e],Object.keys(n[r]).length===0&&delete n[r],!0;return!1},this.publish=function(e){if(n.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),a=[];for(var o in n[e]){var c=n[e][o];try{c[0].apply(t,r)}catch(l){$t.console&&Pe.error("jsPDF PubSub Error",l.message,l)}c[1]&&a.push(o)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function zs(t){if(!(this instanceof zs))return new zs(t);var n="opacity,stroke-opacity".split(",");for(var e in t)t.hasOwnProperty(e)&&n.indexOf(e)>=0&&(this[e]=t[e]);this.id="",this.objectNumber=-1}function Tu(t,n){this.gState=t,this.matrix=n,this.id="",this.objectNumber=-1}function Zi(t,n,e,r,a){if(!(this instanceof Zi))return new Zi(t,n,e,r,a);this.type=t==="axial"?2:3,this.coords=n,this.colors=e,Tu.call(this,r,a)}function Aa(t,n,e,r,a){if(!(this instanceof Aa))return new Aa(t,n,e,r,a);this.boundingBox=t,this.xStep=n,this.yStep=e,this.stream="",this.cloneIndex=0,Tu.call(this,r,a)}function Dt(t){var n,e=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],a=arguments[2],o=arguments[3],c=[],l=1,f=16,d="S",v=null;Le(t=t||{})==="object"&&(e=t.orientation,r=t.unit||r,a=t.format||a,o=t.compress||t.compressPdf||o,(v=t.encryption||null)!==null&&(v.userPassword=v.userPassword||"",v.ownerPassword=v.ownerPassword||"",v.userPermissions=v.userPermissions||[]),l=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(n=t.precision),t.floatPrecision!==void 0&&(f=t.floatPrecision),d=t.defaultPathOperation||"S"),c=t.filters||(o===!0?["FlateEncode"]:c),r=r||"mm",e=(""+(e||"P")).toLowerCase();var x=t.putOnlyUsedFonts||!1,N={},p={internal:{},__private__:{}};p.__private__.PubSub=uu;var T="1.3",E=p.__private__.getPdfVersion=function(){return T};p.__private__.setPdfVersion=function(h){T=h};var B={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]};p.__private__.getPageFormats=function(){return B};var k=p.__private__.getPageFormat=function(h){return B[h]};a=a||"a4";var G="compat",V="advanced",j=G;function it(){this.saveGraphicsState(),P(new Vt(ee,0,0,-ee,0,ki()*ee).toString()+" cm"),this.setFontSize(this.getFontSize()/ee),d="n",j=V}function vt(){this.restoreGraphicsState(),d="S",j=G}var ut=p.__private__.combineFontStyleAndFontWeight=function(h,m){if(h=="bold"&&m=="normal"||h=="bold"&&m==400||h=="normal"&&m=="italic"||h=="bold"&&m=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return m&&(h=m==400||m==="normal"?h==="italic"?"italic":"normal":m!=700&&m!=="bold"||h!=="normal"?(m==700?"bold":m)+""+h:"bold"),h};p.advancedAPI=function(h){var m=j===G;return m&&it.call(this),typeof h!="function"||(h(this),m&&vt.call(this)),this},p.compatAPI=function(h){var m=j===V;return m&&vt.call(this),typeof h!="function"||(h(this),m&&it.call(this)),this},p.isAdvancedAPI=function(){return j===V};var Y,M=function(h){if(j!==V)throw new Error(h+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},tt=p.roundToPrecision=p.__private__.roundToPrecision=function(h,m){var O=n||m;if(isNaN(h)||isNaN(O))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return h.toFixed(O).replace(/0+$/,"")};Y=p.hpf=p.__private__.hpf=typeof f=="number"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return tt(h,f)}:f==="smart"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return tt(h,h>-1&&h<1?16:5)}:function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return tt(h,16)};var L=p.f2=p.__private__.f2=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f2");return tt(h,2)},F=p.__private__.f3=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f3");return tt(h,3)},q=p.scale=p.__private__.scale=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.scale");return j===G?h*ee:j===V?h:void 0},z=function(h){return q((function(m){return j===G?ki()-m:j===V?m:void 0})(h))};p.__private__.setPrecision=p.setPrecision=function(h){typeof parseInt(h,10)=="number"&&(n=parseInt(h,10))};var rt,st="00000000000000000000000000000000",ht=p.__private__.getFileId=function(){return st},nt=p.__private__.setFileId=function(h){return st=h!==void 0&&/^[a-fA-F0-9]{32}$/.test(h)?h.toUpperCase():st.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),v!==null&&(Je=new _a(v.userPermissions,v.userPassword,v.ownerPassword,st)),st};p.setFileId=function(h){return nt(h),this},p.getFileId=function(){return ht()};var ct=p.__private__.convertDateToPDFDate=function(h){var m=h.getTimezoneOffset(),O=m<0?"+":"-",U=Math.floor(Math.abs(m/60)),K=Math.abs(m%60),dt=[O,D(U),"'",D(K),"'"].join("");return["D:",h.getFullYear(),D(h.getMonth()+1),D(h.getDate()),D(h.getHours()),D(h.getMinutes()),D(h.getSeconds()),dt].join("")},At=p.__private__.convertPDFDateToDate=function(h){var m=parseInt(h.substr(2,4),10),O=parseInt(h.substr(6,2),10)-1,U=parseInt(h.substr(8,2),10),K=parseInt(h.substr(10,2),10),dt=parseInt(h.substr(12,2),10),mt=parseInt(h.substr(14,2),10);return new Date(m,O,U,K,dt,mt,0)},wt=p.__private__.setCreationDate=function(h){var m;if(h===void 0&&(h=new Date),h instanceof Date)m=ct(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
2jsPDF.setCreationDate");m=h}return rt=m},_=p.__private__.getCreationDate=function(h){var m=rt;return h==="jsDate"&&(m=At(rt)),m};p.setCreationDate=function(h){return wt(h),this},p.getCreationDate=function(h){return _(h)};var R,D=p.__private__.padd2=function(h){return("0"+parseInt(h)).slice(-2)},H=p.__private__.padd2Hex=function(h){return("00"+(h=h.toString())).substr(h.length)},$=0,J=[],at=[],ot=0,gt=[],xt=[],kt=!1,St=at;p.__private__.setCustomOutputDestination=function(h){kt=!0,St=h};var jt=function(h){kt||(St=h)};p.__private__.resetCustomOutputDestination=function(){kt=!1,St=at};var P=p.__private__.out=function(h){return h=h.toString(),ot+=h.length+1,St.push(h),St},Lt=p.__private__.write=function(h){return P(arguments.length===1?h.toString():Array.prototype.join.call(arguments," "))},ae=p.__private__.getArrayBuffer=function(h){for(var m=h.length,O=new ArrayBuffer(m),U=new Uint8Array(O);m--;)U[m]=h.charCodeAt(m);return O},Ht=[["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]];p.__private__.getStandardFonts=function(){return Ht};var yt=t.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(h){return yt=j===V?h/ee:h,this};var Wt,Et=p.__private__.getFontSize=p.getFontSize=function(){return j===G?yt:yt*ee},qt=t.R2L||!1;p.__private__.setR2L=p.setR2L=function(h){return qt=h,this},p.__private__.getR2L=p.getR2L=function(){return qt};var Ut,ye=p.__private__.setZoomMode=function(h){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(h))Wt=h;else if(isNaN(h)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].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.');Wt=h}else Wt=parseInt(h,10)};p.__private__.getZoomMode=function(){return Wt};var he,Jt=p.__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.');Ut=h};p.__private__.getPageMode=function(){return Ut};var ce=p.__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.');he=h};p.__private__.getLayoutMode=function(){return he},p.__private__.setDisplayMode=p.setDisplayMode=function(h,m,O){return ye(h),ce(m),Jt(O),this};var fe={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(h){if(Object.keys(fe).indexOf(h)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return fe[h]},p.__private__.getDocumentProperties=function(){return fe},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(h){for(var m in fe)fe.hasOwnProperty(m)&&h[m]&&(fe[m]=h[m]);return this},p.__private__.setDocumentProperty=function(h,m){if(Object.keys(fe).indexOf(h)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return fe[h]=m};var Tt,ee,Mt,ze,pe,oe={},se={},Oe=[],zt={},Ee={},Zt={},Qt={},Te=null,le=0,Gt=[],_e=new uu(p),wi=t.hotfixes||[],gn={},Pr={},cr=[],Vt=function h(m,O,U,K,dt,mt){if(!(this instanceof h))return new h(m,O,U,K,dt,mt);isNaN(m)&&(m=1),isNaN(O)&&(O=0),isNaN(U)&&(U=0),isNaN(K)&&(K=1),isNaN(dt)&&(dt=0),isNaN(mt)&&(mt
vendor: 23,604 bytes, lines 2-8
2=0),this._matrix=[m,O,U,K,dt,mt]};Object.defineProperty(Vt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(Vt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(Vt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(Vt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(Vt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(Vt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(Vt.prototype,"a",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(Vt.prototype,"b",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(Vt.prototype,"c",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(Vt.prototype,"d",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(Vt.prototype,"e",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(Vt.prototype,"f",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(Vt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Vt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Vt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Vt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Vt.prototype.join=function(h){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Y).join(h)},Vt.prototype.multiply=function(h){var m=h.sx*this.sx+h.shy*this.shx,O=h.sx*this.shy+h.shy*this.sy,U=h.shx*this.sx+h.sy*this.shx,K=h.shx*this.shy+h.sy*this.sy,dt=h.tx*this.sx+h.ty*this.shx+this.tx,mt=h.tx*this.shy+h.ty*this.sy+this.ty;return new Vt(m,O,U,K,dt,mt)},Vt.prototype.decompose=function(){var h=this.sx,m=this.shy,O=this.shx,U=this.sy,K=this.tx,dt=this.ty,mt=Math.sqrt(h*h+m*m),Ct=(h/=mt)*O+(m/=mt)*U;O-=h*Ct,U-=m*Ct;var Rt=Math.sqrt(O*O+U*U);return Ct/=Rt,h*(U/=Rt)<m*(O/=Rt)&&(h=-h,m=-m,Ct=-Ct,mt=-mt),{scale:new Vt(mt,0,0,Rt,0,0),translate:new Vt(1,0,0,1,K,dt),rotate:new Vt(h,m,-m,h,0,0),skew:new Vt(1,0,Ct,1,0,0)}},Vt.prototype.toString=function(h){return this.join(" ")},Vt.prototype.inversed=function(){var h=this.sx,m=this.shy,O=this.shx,U=this.sy,K=this.tx,dt=this.ty,mt=1/(h*U-m*O),Ct=U*mt,Rt=-m*mt,Yt=-O*mt,ne=h*mt;return new Vt(Ct,Rt,Yt,ne,-Ct*K-Yt*dt,-Rt*K-ne*dt)},Vt.prototype.applyToPoint=function(h){var m=h.x*this.sx+h.y*this.shx+this.tx,O=h.x*this.shy+h.y*this.sy+this.ty;return new Rr(m,O)},Vt.prototype.applyToRectangle=function(h){var m=this.applyToPoint(h),O=this.applyToPoint(new Rr(h.x+h.w,h.y+h.h));return new Ba(m.x,m.y,O.x-m.x,O.y-m.y)},Vt.prototype.clone=function(){var h=this.sx,m=this.shy,O=this.shx,U=this.sy,K=this.tx,dt=this.ty;return new Vt(h,m,O,U,K,dt)},p.Matrix=Vt;var Er=p.matrixMult=function(h,m){return m.multiply(h)},Ir=new Vt(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Ir;var qn=function(h,m){if(!Ee[h]){var O=(m instanceof Zi?"Sh":"P")+(Object.keys(zt).length+1).toString(10);m.id=O,Ee[h]=O,zt[O]=m,_e.publish("addPattern",m)}};p.ShadingPattern=Zi,p.TilingPattern=Aa,p.addShadingPattern=function(h,m){return M("addShadingPattern()"),qn(h,m),this},p.beginTilingPattern=function(h){M("beginTilingPattern()"),Ma(h.boundingBox[0],h.boundingBox[1],h.boundingBox[2]-h.boundingBox[0],h.boundingBox[3]-h.boundingBox[1],h.matrix)},p.endTilingPattern=function(h,m){M("endTilingPattern()"),m.stream=xt[R].join(` 3`),qn(h,m),_e.publish("endTilingPattern",m),cr.pop().restore()};var Hn,Me=p.__private__.newObject=function(){var h=an();return ln(h,!0),h},an=p.__private__.newObjectDeferred=function(){return $++,J[$]=function(){return ot},$},ln=function(h,m){return m=typeof m=="boolean"&&m,J[h]=ot,m&&P(h+" 0 obj"),h},yi=p.__private__.newAdditionalObject=function(){var h={objId:an(),content:""};return gt.push(h),h},Kr=an(),Qn=an(),ur=p.__private__.decodeColorString=function(h){var m=h.split(" ");if(m.length!==2||m[1]!=="g"&&m[1]!=="G")m.length!==5||m[4]!=="k"&&m[4]!=="K"||(m=[(1-m[0])*(1-m[3]),(1-m[1])*(1-m[3]),(1-m[2])*(1-m[3]),"r"]);else{var O=parseFloat(m[0]);m=[O,O,O,"r"]}for(var U="#",K=0;K<3;K++)U+=("0"+Math.floor(255*parseFloat(m[K])).toString(16)).slice(-2);return U},tr=p.__private__.encodeColorString=function(h){var m;typeof h=="string"&&(h={ch1:h});var O=h.ch1,U=h.ch2,K=h.ch3,dt=h.ch4,mt=h.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof O=="string"&&O.charAt(0)!=="#"){var Ct=new Fu(O);if(Ct.ok)O=Ct.toHex();else if(!/^\d*\.?\d*$/.test(O))throw new Error('Invalid color "'+O+'" passed to jsPDF.encodeColorString.')}if(typeof O=="string"&&/^#[0-9A-Fa-f]{3}$/.test(O)&&(O="#"+O[1]+O[1]+O[2]+O[2]+O[3]+O[3]),typeof O=="string"&&/^#[0-9A-Fa-f]{6}$/.test(O)){var Rt=parseInt(O.substr(1),16);O=Rt>>16&255,U=Rt>>8&255,K=255&Rt}if(U===void 0||dt===void 0&&O===U&&U===K)m=typeof O=="string"?O+" "+mt[0]:h.precision===2?L(O/255)+" "+mt[0]:F(O/255)+" "+mt[0];else if(dt===void 0||Le(dt)==="object"){if(dt&&!isNaN(dt.a)&&dt.a===0)return["1.","1.","1.",mt[1]].join(" ");m=typeof O=="string"?[O,U,K,mt[1]].join(" "):h.precision===2?[L(O/255),L(U/255),L(K/255),mt[1]].join(" "):[F(O/255),F(U/255),F(K/255),mt[1]].join(" ")}else m=typeof O=="string"?[O,U,K,dt,mt[2]].join(" "):h.precision===2?[L(O),L(U),L(K),L(dt),mt[2]].join(" "):[F(O),F(U),F(K),F(dt),mt[2]].join(" ");return m},er=p.__private__.getFilters=function(){return c},Wn=p.__private__.putStream=function(h){var m=(h=h||{}).data||"",O=h.filters||er(),U=h.alreadyAppliedFilters||[],K=h.addLength1||!1,dt=m.length,mt=h.objectId,Ct=function(Qe){return Qe};if(v!==null&&mt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");v!==null&&(Ct=Je.encryptor(mt,0));var Rt={};O===!0&&(O=["FlateEncode"]);var Yt=h.additionalKeyValues||[],ne=(Rt=Dt.API.processDataByFilters!==void 0?Dt.API.processDataByFilters(m,O):{data:m,reverseChain:[]}).reverseChain+(Array.isArray(U)?U.join(" "):U.toString());if(Rt.data.length!==0&&(Yt.push({key:"Length",value:Rt.data.length}),K===!0&&Yt.push({key:"Length1",value:dt})),ne.length!=0)if(ne.split("/").length-1==1)Yt.push({key:"Filter",value:ne});else{Yt.push({key:"Filter",value:"["+ne+"]"});for(var ge=0;ge<Yt.length;ge+=1)if(Yt[ge].key==="DecodeParms"){for(var Be=[],Ke=0;Ke<Rt.reverseChain.split("/").length-1;Ke+=1)Be.push("null");Be.push(Yt[ge].value),Yt[ge].value="["+Be.join(" ")+"]"}}P("<<");for(var Ie=0;Ie<Yt.length;Ie++)P("/"+Yt[Ie].key+" "+Yt[Ie].value);P(">>"),Rt.data.length!==0&&(P("stream"),P(Ct(Rt.data)),P("endstream"))},_i=p.__private__.putPage=function(h){var m=h.number,O=h.data,U=h.objId,K=h.contentsObjId;ln(U,!0),P("<</Type /Page"),P("/Parent "+h.rootDictionaryObjId+" 0 R"),P("/Resources "+h.resourceDictionaryObjId+" 0 R"),P("/MediaBox ["+parseFloat(Y(h.mediaBox.bottomLeftX))+" "+parseFloat(Y(h.mediaBox.bottomLeftY))+" "+Y(h.mediaBox.topRightX)+" "+Y(h.mediaBox.topRightY)+"]"),h.cropBox!==null&&P("/CropBox ["+Y(h.cropBox.bottomLeftX)+" "+Y(h.cropBox.bottomLeftY)+" "+Y(h.cropBox.topRightX)+" "+Y(h.cropBox.topRightY)+"]"),h.bleedBox!==null&&P("/BleedBox ["+Y(h.bleedBox.bottomLeftX)+" "+Y(h.bleedBox.bottomLeftY)+" "+Y(h.bleedBox.topRightX)+" "+Y(h.bleedBox.topRightY)+"]"),h.trimBox!==null&&P("/TrimBox ["+Y(h.trimBox.bottomLeftX)+" "+Y(h.trimBox.bottomLeftY)+" "+Y(h.trimBox.topRightX)+" "+Y(h.trimBox.topRightY)+"]"),h.artBox!==null&&P("/ArtBox ["+Y(h.artBox.bottomLeftX)+" "+Y(h.artBox.bottomLeftY)+" "+Y(h.artBox.topRightX)+" "+Y(h.artBox.topRightY)+"]"),typeof h.userUnit=="number"&&h.userUnit!==1&&P("/UserUnit "+h.userUnit),_e.publish("putPage",{objId:U,pageContext:Gt[m],pageNumber:m,page:O}),P("/Contents "+K+" 0 R"),P(">>"),P("endobj");var dt=O.join(` 4`);return j===V&&(dt+=` 5Q`),ln(K,!0),Wn({data:dt,filters:er(),objectId:K}),P("endobj"),U},dr=p.__private__.putPages=function(){var h,m,O=[];for(h=1;h<=le;h++)Gt[h].objId=an(),Gt[h].contentsObjId=an();for(h=1;h<=le;h++)O.push(_i({number:h,data:xt[h],objId:Gt[h].objId,contentsObjId:Gt[h].contentsObjId,mediaBox:Gt[h].mediaBox,cropBox:Gt[h].cropBox,bleedBox:Gt[h].bleedBox,trimBox:Gt[h].trimBox,artBox:Gt[h].artBox,userUnit:Gt[h].userUnit,rootDictionaryObjId:Kr,resourceDictionaryObjId:Qn}));ln(Kr,!0),P("<</Type /Pages");var U="/Kids [";for(m=0;m<le;m++)U+=O[m]+" 0 R ";P(U+"]"),P("/Count "+le),P(">>"),P("endobj"),_e.publish("postPutPages")},xi=function(h){_e.publish("putFont",{font:h,out:P,newObject:Me,putStream:Wn}),h.isAlreadyPutted!==!0&&(h.objectNumber=Me(),P("<<"),P("/Type /Font"),P("/BaseFont /"+xa(h.postScriptName)),P("/Subtype /Type1"),typeof h.encoding=="string"&&P("/Encoding /"+h.encoding),P("/FirstChar 32"),P("/LastChar 255"),P(">>"),P("endobj"))},Ki=function(h){h.objectNumber=Me();var m=[];m.push({key:"Type",value:"/XObject"}),m.push({key:"Subtype",value:"/Form"}),m.push({key:"BBox",value:"["+[Y(h.x),Y(h.y),Y(h.x+h.width),Y(h.y+h.height)].join(" ")+"]"}),m.push({key:"Matrix",value:"["+h.matrix.toString()+"]"});var O=h.pages[1].join(` 6`);Wn({data:O,additionalKeyValues:m,objectId:h.objectNumber}),P("endobj")},Xi=function(h,m){m||(m=21);var O=Me(),U=(function(mt,Ct){var Rt,Yt=[],ne=1/(Ct-1);for(Rt=0;Rt<1;Rt+=ne)Yt.push(Rt);if(Yt.push(1),mt[0].offset!=0){var ge={offset:0,color:mt[0].color};mt.unshift(ge)}if(mt[mt.length-1].offset!=1){var Be={offset:1,color:mt[mt.length-1].color};mt.push(Be)}for(var Ke="",Ie=0,Qe=0;Qe<Yt.length;Qe++){for(Rt=Yt[Qe];Rt>mt[Ie+1].offset;)Ie++;var Xe=mt[Ie].offset,hn=(Rt-Xe)/(mt[Ie+1].offset-Xe),Dr=mt[Ie].color,rr=mt[Ie+1].color;Ke+=H(Math.round((1-hn)*Dr[0]+hn*rr[0]).toString(16))+H(Math.round((1-hn)*Dr[1]+hn*rr[1]).toString(16))+H(Math.round((1-hn)*Dr[2]+hn*rr[2]).toString(16))}return Ke.trim()})(h.colors,m),K=[];K.push({key:"FunctionType",value:"0"}),K.push({key:"Domain",value:"[0.0 1.0]"}),K.push({key:"Size",value:"["+m+"]"}),K.push({key:"BitsPerSample",value:"8"}),K.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),K.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Wn({data:U,additionalKeyValues:K,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:O}),P("endobj"),h.objectNumber=Me(),P("<< /ShadingType "+h.type),P("/ColorSpace /DeviceRGB");var dt="/Coords ["+Y(parseFloat(h.coords[0]))+" "+Y(parseFloat(h.coords[1]))+" ";h.type===2?dt+=Y(parseFloat(h.coords[2]))+" "+Y(parseFloat(h.coords[3])):dt+=Y(parseFloat(h.coords[2]))+" "+Y(parseFloat(h.coords[3]))+" "+Y(parseFloat(h.coords[4]))+" "+Y(parseFloat(h.coords[5])),P(dt+="]"),h.matrix&&P("/Matrix ["+h.matrix.toString()+"]"),P("/Function "+O+" 0 R"),P("/Extend [true true]"),P(">>"),P("endobj")},Ji=function(h,m){var O=an(),U=Me();m.push({resourcesOid:O,objectOid:U}),h.objectNumber=U;var K=[];K.push({key:"Type",value:"/Pattern"}),K.push({key:"PatternType",value:"1"}),K.push({key:"PaintType",value:"1"}),K.push({key:"TilingType",value:"1"}),K.push({key:"BBox",value:"["+h.boundingBox.map(Y).join(" ")+"]"}),K.push({key:"XStep",value:Y(h.xStep)}),K.push({key:"YStep",value:Y(h.yStep)}),K.push({key:"Resources",value:O+" 0 R"}),h.matrix&&K.push({key:"Matrix",value:"["+h.matrix.toString()+"]"}),Wn({data:h.stream,additionalKeyValues:K,objectId:h.objectNumber}),P("endobj")},Ws=function(h){for(var m in h.objectNumber=Me(),P("<<"),h)switch(m){case"opacity":P("/ca "+L(h[m]));break;case"stroke-opacity":P("/CA "+L(h[m]))}P(">>"),P("endobj")},Pa=function(h){ln(h.resourcesOid,!0),P("<<"),P("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var m in P("/Font <<"),oe)oe.hasOwnProperty(m)&&(x===!1||x===!0&&N.hasOwnProperty(m))&&P("/"+m+" "+oe[m].objectNumber+" 0 R");P(">>")})(),(function(){if(Object.keys(zt).length>0){for(var m in P("/Shading <<"),zt)zt.hasOwnProperty(m)&&zt[m]instanceof Zi&&zt[m].objectNumber>=0&&P("/"+m+" "+zt[m].objectNumber+" 0 R");_e.publish("putShadingPatternDict"),P(">>")}})(),(function(m){if(Object.keys(zt).length>0){for(var O in P("/Pattern <<"),zt)zt.hasOwnProperty(O)&&zt[O]instanceof p.TilingPattern&&zt[O].objectNumber>=0&&zt[O].objectNumber<m&&P("/"+O+" "+zt[O].objectNumber+" 0 R");_e.publish("putTilingPatternDict"),P(">>")}})(h.objectOid),(function(){if(Object.keys(Zt).length>0){var m;for(m in P("/ExtGState <<"),Zt)Zt.hasOwnProperty(m)&&Zt[m].objectNumber>=0&&P("/"+m+" "+Zt[m].objectNumber+" 0 R");_e.publish("putGStateDict"),P(">>")}})(),(function(){for(var m in P("/XObject <<"),gn)gn.hasOwnProperty(m)&&gn[m].objectNumber>=0&&P("/"+m+" "+gn[m].objectNumber+" 0 R");_e.publish("putXobjectDict"),P(">>")})(),P(">>"),P("endobj")},Po=function(h){se[h.fontName]=se[h.fontName]||{},se[h.fontName][h.fontStyle]=h.id},Eo=function(h,m,O,U,K){var dt={id:"F"+(Object.keys(oe).length+1).toString(10),postScriptName:h,fontName:m,fontStyle:O,encoding:U,isStandardFont:K||!1,metadata:{}};return _e.publish("addFont",{font:dt,instance:this}),oe[dt.id]=dt,Po(dt),dt.id},Gn=p.__private__.pdfEscape=p.pdfEscape=function(h,m){return(function(O,U){var K,dt,mt,Ct,Rt,Yt,ne,ge,Be;if(mt=(U=U||{}).sourceEncoding||"Unicode",Rt=U.outputEncoding,(U.autoencode||Rt)&&oe[Tt].metadata&&oe[Tt].metadata[mt]&&oe[Tt].metadata[mt].encoding&&(Ct=oe[Tt].metadata[mt].encoding,!Rt&&oe[Tt].encoding&&(Rt=oe[Tt].encoding),!Rt&&Ct.codePages&&(Rt=Ct.codePages[0]),typeof Rt=="string"&&(Rt=Ct[Rt]),Rt)){for(ne=!1,Yt=[],K=0,dt=O.length;K<dt;K++)(ge=Rt[O.charCodeAt(K)])?Yt.push(String.fromCharCode(ge)):Yt.push(O[K]),Yt[K].charCodeAt(0)>>8&&(ne=!0);O=Yt.join("")}for(K=O.length;ne===void 0&&K!==0;)O.charCodeAt(K-1)>>8&&(ne=!0),K--;if(!ne)return O;for(Yt=U.noBOM?[]:[254,255],K=0,dt=O.length;K<dt;K++){if((Be=(ge=O.charCodeAt(K))>>8)>>8)throw new Error("Character at position "+K+" of string '"+O+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Yt.push(Be),Yt.push(ge-(Be<<8))}return String.fromCharCode.apply(void 0,Yt)})(h,m).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ea=p.__private__.beginPage=function(h){xt[++le]=[],Gt[le]={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])}},Co(le),jt(xt[R])},Io=function(h,m){var O,U,K;switch(e=m||e,typeof h=="string"&&(O=k(h.toLowerCase()),Array.isArray(O)&&(U=O[0],K=O[1])),Array.isArray(h)&&(U=h[0]*ee,K=h[1]*ee),isNaN(U)&&(U=a[0],K=a[1]),(U>14400||K>14400)&&(Pe.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),U=Math.min(14400,U),K=Math.min(14400,K)),a=[U,K],e.substr(0,1)){case"l":K>U&&(a=[K,U]);break;case"p":U>K&&(a=[K,U])}Ea(a),Kt(Fa),P(na),Ta!==0&&P(Ta+" J"),Ra!==0&&P(Ra+" j"),_e.publish("addPage",{pageNumber:le})},Ia=function(h){h>0&&h<=le&&(xt.splice(h,1),Gt.splice(h,1),le--,R>le&&(R=le),this.setPage(R))},Co=function(h){h>0&&h<=le&&(R=h)},Fo=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return xt.length-1},Oo=function(h,m,O){var U,K=void 0;return O=O||{},h=h!==void 0?h:oe[Tt].fontName,m=m!==void 0?m:oe[Tt].fontStyle,U=h.toLowerCase(),se[U]!==void 0&&se[U][m]!==void 0?K=se[U][m]:se[h]!==void 0&&se[h][m]!==void 0?K=se[h][m]:O.disableWarning===!1&&Pe.warn("Unable to look up font label for font '"+h+"', '"+m+"'. Refer to getFontList() for available fonts."),K||O.noFallback||(K=se.times[m])==null&&(K=se.times.normal),K},pr=p.__private__.putInfo=function(){var h=Me(),m=function(U){return U};for(var O in v!==null&&(m=Je.encryptor(h,0)),P("<<"),P("/Producer ("+Gn(m("jsPDF "+Dt.version))+")"),fe)fe.hasOwnProperty(O)&&fe[O]&&P("/"+O.substr(0,1).toUpperCase()+O.substr(1)+" ("+Gn(m(fe[O]))+")");P("/CreationDate ("+Gn(m(rt))+")"),P(">>"),P("endobj")},Qi=p.__private__.putCatalog=function(h){var m=(h=h||{}).rootDictionaryObjId||Kr;switch(Me(),P("<<"),P("/Type /Catalog"),P("/Pages "+m+" 0 R"),Wt||(Wt="fullwidth"),Wt){case"fullwidth":P("/OpenAction [3 0 R /FitH null]");break;case"fullheight":P("/OpenAction [3 0 R /FitV null]");break;case"fullpage":P("/OpenAction [3 0 R /Fit]");break;case"original":P("/OpenAction [3 0 R /XYZ null null 1]");break;default:var O=""+Wt;O.substr(O.length-1)==="%"&&(Wt=parseInt(Wt)/100),typeof Wt=="number"&&P("/OpenAction [3 0 R /XYZ null null "+L(Wt)+"]")}switch(he||(he="continuous"),he){case"continuous":P("/PageLayout /OneColumn");break;case"single":P("/PageLayout /SinglePage");break;case"two":case"twoleft":P("/PageLayout /TwoColumnLeft");break;case"tworight":P("/PageLayout /TwoColumnRight")}Ut&&P("/PageMode /"+Ut),_e.publish("putCatalog"),P(">>"),P("endobj")},Gs=p.__private__.putTrailer=function(){P("trailer"),P("<<"),P("/Size "+($+1)),P("/Root "+$+" 0 R"),P("/Info "+($-1)+" 0 R"),v!==null&&P("/Encrypt "+Je.oid+" 0 R"),P("/ID [ <"+st+"> <"+st+"> ]"),P(">>")},Ye=p.__private__.putHeader=function(){P("%PDF-"+T),P("%\xBA\xDF\xAC\xE0")},To=p.__private__.putXRef=function(){var h="0000000000";P("xref"),P("0 "+($+1)),P("0000000000 65535 f ");for(var m=1;m<=$;m++)typeof J[m]=="function"?P((h+J[m]()).slice(-10)+" 00000 n "):J[m]!==void 0?P((h+J[m]).slice(-10)+" 00000 n "):P("0000000000 00000 n ")},gr=p.__private__.buildDocument=function(){var h;$=0,ot=0,at=[],J=[],gt=[],Kr=an(),Qn=an(),jt(at),_e.publish("buildDocument"),Ye(),dr(),(function(){_e.publish("putAdditionalObjects");for(var O=0;O<gt.length;O++){var U=gt[O];ln(U.objId,!0),P(U.content),P("endobj")}_e.publish("postPutAdditionalObjects")})(),h=[],(function(){for(var O in oe)oe.hasOwnProperty(O)&&(x===!1||x===!0&&N.hasOwnProperty(O))&&xi(oe[O])})(),(function(){var O;for(O in Zt)Zt.hasOwnProperty(O)&&Ws(Zt[O])})(),(function(){for(var O in gn)gn.hasOwnProperty(O)&&Ki(gn[O])})(),(function(O){var U;for(U in zt)zt.hasOwnProperty(U)&&(zt[U]instanceof Zi?Xi(zt[U]):zt[U]instanceof Aa&&Ji(zt[U],O))})(h),_e.publish("putResources"),h.forEach(Pa),Pa({resourcesOid:Qn,objectOid:Number.MAX_SAFE_INTEGER}),_e.publish("postPutResources"),v!==null&&(Je.oid=Me(),P("<<"),P("/Filter /Standard"),P("/V "+Je.v),P("/R "+Je.r),P("/U <"+Je.toHexString(Je.U)+">"),P("/O <"+Je.toHexString(Je.O)+">"),P("/P "+Je.P),P(">>"),P("endobj")),pr(),Qi();var m=ot;return To(),Gs(),P("startxref"),P(""+m),P("%%EOF"),jt(xt[R]),at.join(` 7`)},ta=p.__private__.getBlob=function(h){return new Blob([ae(h)],{type:"application/pdf"})},Ro=p.output=p.__private__.output=(Hn=function(h,m){switch(typeof(m=m||{})=="string"?m={filename:m}:m.filename=m.filename||"generated.pdf",h){case void 0:return gr();case"save":p.save(m.filename);break;case"arraybuffer":return ae(gr());case"blob":return ta(gr());case"bloburi":case"bloburl":if($t.URL!==void 0&&typeof $t.URL.createObjectURL=="function")return $t.URL&&$t.URL.createObjectURL(ta(gr()))||void 0;Pe.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var O="",U=gr();try{O=hu(U)}catch{O=hu(unescape(encodeURIComponent(U)))}return"data:application/pdf;filename="+m.filename+";base64,"+O;case"pdfobjectnewwindow":if(Object.prototype.toString.call($t)==="[object Window]"){var K="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",dt=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';m.pdfObjectUrl&&(K=m.pdfObjectUrl,dt="");var mt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+K+'"'+dt+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(m)+");<\/script></body></html>",Ct=$t.open();return Ct!==null&&Ct.document.write(mt),Ct}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call($t)==="[object Window]"){var Rt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(m.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+m.filename+'" width="500px" height="400px" /></body></html>',Yt=$t.open();if(Yt!==null){Yt.document.write(Rt);var ne=this;Yt.document.documentElement.querySelector("#pdfViewer").onload=function(){Yt.document.title=m.filename,Yt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(ne.output("bloburl"))}}return Yt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call($t)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ge='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",m)+'"></iframe></body></html>',Be=$t.open();if(Be!==null&&(Be.document.write(ge),Be.document.title=m.filename),Be||typeof safari>"u")return Be;break;case"datauri":case"dataurl":return $t.document.location.href=this.output("datauristring",m);default:return null}},Hn.foo=function(){try{return Hn.apply(this,arguments)}catch(O){var h=O.stack||"";~h.indexOf(" at ")&&(h=h.split(" at ")[1]);var m="Error in function "+h.split(` 8`)[0].split("<")[0]+": "+O.message;if(!$t.console)throw new Error(m);$t.console.error(m,O),$t.alert&&alert(m)}},Hn.foo.bar=Hn,Hn.foo),Vn=function(h){return Array.isArray(wi)===!0&&wi.indexOf(h)>-1};switch(r){case"pt":ee=1;break;case"mm":ee=72/25.4;break;case"cm":ee=72/2.54;break;case"in":ee=72;break;case"px":ee=Vn("px_scaling")==1?.75:96/72;break;case"pc":case"em":ee=12;break;case"ex":ee=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);ee=r}var Je=null;wt(),nt();var Cr=p.__private__.getPageInfo=p.getPageInfo=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Gt[h].objId,pageNumber:h,pageContext:Gt[h]}},Bo=p.__private__.getPageInfoByObjId=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var m in Gt)if(Gt[m].objId===h)break;return Cr(m)},Vs=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Gt[R].objId,pageNumber:R,pageContext:Gt[R]}};p.addPage=function(){return Io.apply(this,arguments),this},p.setPage=function(){return Co.apply(this,arguments),jt.call(this,xt[R]),this},p.insertPage=function(h){return this.addPage(),this.movePage(R,h),this},p.movePage=function(h,m){var O,U;if(h>m){O=xt[h],U=Gt[h];for(var K=h;K>m;K--)xt[K]=xt[K-1],Gt[K]=Gt[K-1];xt[m]=O,Gt[m]=U,this.setPage(m)}else if(h<m){O=xt[h],U=Gt[h];for(var dt=h;dt<m;dt++)xt[dt]=xt[dt+1],Gt[dt]=Gt[dt+1];xt[m]=O,Gt[m]=U,this.setPage(m)}return this},p.deletePage=function(){return Ia.apply(this,arguments),this},p.__private__.text=p.text=function(h,m,O,U,K){var dt,mt,Ct,Rt,Yt,ne,ge,Be,Ke,Ie=(U=U||{}).scope||this;if(typeof h=="number"&&typeof m=="number"&&(typeof O=="string"||Array.isArray(O))){var Qe=O;O=m,m=h,h=Qe}if(arguments[3]instanceof Vt==0?(Ct=arguments[4],Rt=arguments[5],Le(ge=arguments[3])==="object"&&ge!==null||(typeof Ct=="string"&&(Rt=Ct,Ct=null),typeof ge=="string"&&(Rt=ge,ge=null),typeof ge=="number"&&(Ct=ge,ge=null),U={flags:ge,angle:Ct,align:Rt})):(M("The transform parameter of text() with a Matrix value"),Ke=K),isNaN(m)||isNaN(O)||h==null)throw new Error("Invalid arguments passed to
8jsPDF.text");if(h.length===0)return Ie;var Xe,hn="",Dr=typeof U.lineHeightFactor=="number"?U.lineHeightFactor:Ni,rr=Ie.internal.scaleFactor;function jr(xe){return xe=xe.split(" ").join(Array(U.TabLen||9).join(" ")),Gn(xe,ge)}function ja(xe){for(var Se,He=xe.concat(),tn=[],qr=He.length;qr--;)typeof(Se=He.shift())=="string"?tn.push(Se):Array.isArray(xe)&&(Se.length===1||Se[1]===void 0&&Se[2]===void 0)?tn.push(Se[0]):tn.push([Se[0],Se[1],Se[2]]);return tn}function ia(xe,Se){var He;if(typeof xe=="string")He=Se(xe)[0];else if(Array.isArray(xe)){for(var tn,qr,Ya=xe.concat(),sa=[],Zo=Ya.length;Zo--;)typeof(tn=Ya.shift())=="string"?sa.push(Se(tn)[0]):Array.isArray(tn)&&typeof tn[0]=="string"&&(qr=Se(tn[0],tn[1],tn[2]),sa.push([qr[0],qr[1],qr[2]]));He=sa}return He}var Xr=!1,Pi=!0;if(typeof h=="string")Xr=!0;else if(Array.isArray(h)){var Ei=h.concat();mt=[];for(var Jr,fn=Ei.length;fn--;)(typeof(Jr=Ei.shift())!="string"||Array.isArray(Jr)&&typeof Jr[0]!="string")&&(Pi=!1);Xr=Pi}if(Xr===!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 Ii=yt/Ie.internal.scaleFactor,Ci=Ii*(Dr-1);switch(U.baseline){case"bottom":O-=Ci;break;case"top":O+=Ii-Ci;break;case"hanging":O+=Ii-2*Ci;break;case"middle":O+=Ii/2-Ci}if((ne=U.maxWidth||0)>0&&(typeof h=="string"?h=Ie.splitTextToSize(h,ne):Object.prototype.toString.call(h)==="[object Array]"&&(h=h.reduce(function(xe,Se){return xe.concat(Ie.splitTextToSize(Se,ne))},[]))),dt={text:h,x:m,y:O,options:U,mutex:{pdfEscape:Gn,activeFontKey:Tt,fonts:oe,activeFontSize:yt}},_e.publish("preProcessText",dt),h=dt.text,Ct=(U=dt.options).angle,Ke instanceof Vt==0&&Ct&&typeof Ct=="number"){Ct*=Math.PI/180,U.rotationDirection===0&&(Ct=-Ct),j===V&&(Ct=-Ct);var Ua=Math.cos(Ct),za=Math.sin(Ct);Ke=new Vt(Ua,za,-za,Ua,0,0)}else Ct&&Ct instanceof Vt&&(Ke=Ct);j!==V||Ke||(Ke=Ir),(Yt=U.charSpace||Tr)!==void 0&&(hn+=Y(q(Yt))+` Tc 9`,this.setCharSpace(this.getCharSpace()||0)),(Be=U.horizontalScale)!==void 0&&(hn+=Y(100*Be)+` Tz 10`),U.lang;var _n=-1,Ur=U.renderingMode!==void 0?U.renderingMode:U.stroke,aa=Ie.internal.getCurrentPageInfo().pageContext;switch(Ur){case 0:case!1:case"fill":_n=0;break;case 1:case!0:case"stroke":_n=1;break;case 2:case"fillThenStroke":_n=2;break;case 3:case"invisible":_n=3;break;case 4:case"fillAndAddForClipping":_n=4;break;case 5:case"strokeAndAddPathForClipping":_n=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":_n=6;break;case 7:case"addToPathForClipping":_n=7}var Go=aa.usedRenderingMode!==void 0?aa.usedRenderingMode:-1;_n!==-1?hn+=_n+` Tr 11`:Go!==-1&&(hn+=`0 Tr 12`),_n!==-1&&(aa.usedRenderingMode=_n),Rt=U.align||"left";var Zn,Fi=yt*Dr,qa=Ie.internal.pageSize.getWidth(),Ha=oe[Tt];Yt=U.charSpace||Tr,ne=U.maxWidth||0,ge=Object.assign({autoencode:!0,noBOM:!0},U.flags);var Qr=[],Oi=function(xe){return Ie.getStringUnitWidth(xe,{font:Ha,charSpace:Yt,fontSize:yt,doKerning:!1})*yt/rr};if(Object.prototype.toString.call(h)==="[object Array]"){var Cn;mt=ja(h),Rt!=="left"&&(Zn=mt.map(Oi));var Fn,ti=0;if(Rt==="right"){m-=Zn[0],h=[],fn=mt.length;for(var zr=0;zr<fn;zr++)zr===0?(Fn=Fr(m),Cn=Or(O)):(Fn=q(ti-Zn[zr]),Cn=-Fi),h.push([mt[zr],Fn,Cn]),ti=Zn[zr]}else if(Rt==="center"){m-=Zn[0]/2,h=[],fn=mt.length;for(var ei=0;ei<fn;ei++)ei===0?(Fn=Fr(m),Cn=Or(O)):(Fn=q((ti-Zn[ei])/2),Cn=-Fi),h.push([mt[ei],Fn,Cn]),ti=Zn[ei]}else if(Rt==="left"){h=[],fn=mt.length;for(var Wa=0;Wa<fn;Wa++)h.push(mt[Wa])}else if(Rt==="justify"&&Ha.encoding==="Identity-H"){h=[],fn=mt.length,ne=ne!==0?ne:qa;for(var oa=0,qe=0;qe<fn;qe++)if(Cn=qe===0?Or(O):-Fi,Fn=qe===0?Fr(m):oa,qe<fn-1){var Vo=q((ne-Zn[qe])/(mt[qe].split(" ").length-1)),mr=mt[qe].split(" ");h.push([mr[0]+" ",Fn,Cn]),oa=0;for(var br=1;br<mr.length;br++){var Ga=(Oi(mr[br-1]+" "+mr[br])-Oi(mr[br]))*rr+Vo;br==mr.length-1?h.push([mr[br],Ga,0]):h.push([mr[br]+" ",Ga,0]),oa-=Ga}}else h.push([mt[qe],Fn,Cn]);h.push(["",oa,0])}else{if(Rt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(h=[],fn=mt.length,ne=ne!==0?ne:qa,qe=0;qe<fn;qe++){Cn=qe===0?Or(O):-Fi,Fn=qe===0?Fr(m):0;var Va=mt[qe].split(" ").length-1,Za=Va>0?(ne-Zn[qe])/Va:0;qe<fn-1?Qr.push(Y(q(Za))):Qr.push(0),h.push([mt[qe],Fn,Cn])}}}(typeof U.R2L=="boolean"?U.R2L:qt)===!0&&(h=ia(h,function(xe,Se,He){return[xe.split("").reverse().join(""),Se,He]})),dt={text:h,x:m,y:O,options:U,mutex:{pdfEscape:Gn,activeFontKey:Tt,fonts:oe,activeFontSize:yt}},_e.publish("postProcessText",dt),h=dt.text,Xe=dt.mutex.isHex||!1;var $a=oe[Tt].encoding;$a!=="WinAnsiEncoding"&&$a!=="StandardEncoding"||(h=ia(h,function(xe,Se,He){return[jr(xe),Se,He]})),mt=ja(h),h=[];for(var ni,ri,ii,Ti=Array.isArray(mt[0])?1:0,ai="",Ri=function(xe,Se,He){var tn="";return He instanceof Vt?(He=typeof U.angle=="number"?Er(He,new Vt(1,0,0,1,xe,Se)):Er(new Vt(1,0,0,1,xe,Se),He),j===V&&(He=Er(new Vt(1,0,0,-1,0,0),He)),tn=He.join(" ")+` Tm 13`):tn=Y(xe)+" "+Y(Se)+` Td 14`,tn},$n=0;$n<mt.length;$n++){switch(ai="",Ti){case 1:ii=(Xe?"<":"(")+mt[$n][0]+(Xe?">":")"),ni=parseFloat(mt[$n][1]),ri=parseFloat(mt[$n][2]);break;case 0:ii=(Xe?"<":"(")+mt[$n]+(Xe?">
14":")"),ni=Fr(m),ri=Or(O)}Qr!==void 0&&Qr[$n]!==void 0&&(ai=Qr[$n]+` Tw 15`),$n===0?h.push(ai+Ri(ni,ri,Ke)+ii):Ti===0?h.push(ai+ii):Ti===1&&h.push(ai+Ri(ni,ri,Ke)+ii)}h=Ti===0?h.join(` Tj 16T* `):h.join(` Tj 17`),h+=` Tj 18`;var wr=`BT 19/`;return wr+=Tt+" "+yt+` Tf 20`,wr+=Y(yt*Dr)+` TL 21`,wr+=Li+` 22`,wr+=hn,wr+=h,P(wr+="ET"),N[Tt]=!0,Ie};var Zs=p.__private__.clip=p.clip=function(h){return P(h==="evenodd"?"W*":"W"),this};p.clipEvenOdd=function(){return Zs("evenodd")},p.__private__.discardPath=p.discardPath=function(){return P("n"),this};var vr=p.__private__.isValidStyle=function(h){var m=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(h)!==-1&&(m=!0),m};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(h){return vr(h)&&(d=h),this};var Mo=p.__private__.getStyle=p.getStyle=function(h){var m=d;switch(h){case"D":case"S":m="S";break;case"F":m="f";break;case"FD":case"DF":m="B";break;case"f":case"f*":case"B":case"B*":m=h}return m},Do=p.close=function(){return P("h"),this};p.stroke=function(){return P("S"),this},p.fill=function(h){return ea("f",h),this},p.fillEvenOdd=function(h){return ea("f*",h),this},p.fillStroke=function(h){return ea("B",h),this},p.fillStrokeEvenOdd=function(h){return ea("B*",h),this};var ea=function(h,m){Le(m)==="object"?Ys(m,h):P(h)},Ai=function(h){h===null||j===V&&h===void 0||(h=Mo(h),P(h))};function $s(h,m,O,U,K){var dt=new Aa(m||this.boundingBox,O||this.xStep,U||this.yStep,this.gState,K||this.matrix);dt.stream=this.stream;var mt=h+"$$"+this.cloneIndex+++"$$";return qn(mt,dt),dt}var Ys=function(h,m){var O=Ee[h.key],U=zt[O];if(U instanceof Zi)P("q"),P(Ks(m)),U.gState&&p.setGState(U.gState),P(h.matrix.toString()+" cm"),P("/"+O+" sh"),P("Q");else if(U instanceof Aa){var K=new Vt(1,0,0,-1,0,ki());h.matrix&&(K=K.multiply(h.matrix||Ir),O=$s.call(U,h.key,h.boundingBox,h.xStep,h.yStep,K).id),P("q"),P("/Pattern cs"),P("/"+O+" scn"),U.gState&&p.setGState(U.gState),P(m),P("Q")}},Ks=function(h){switch(h){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Ca=p.moveTo=function(h,m){return P(Y(q(h))+" "+Y(z(m))+" m"),this},jo=p.lineTo=function(h,m){return P(Y(q(h))+" "+Y(z(m))+" l"),this},nr=p.curveTo=function(h,m,O,U,K,dt){return P([Y(q(h)),Y(z(m)),Y(q(O)),Y(z(U)),Y(q(K)),Y(z(dt)),"c"].join(" ")),this};p.__private__.line=p.line=function(h,m,O,U,K){if(isNaN(h)||isNaN(m)||isNaN(O)||isNaN(U)||!vr(K))throw new Error("Invalid arguments passed to jsPDF.line");return j===G?this.lines([[O-h,U-m]],h,m,[1,1],K||"S"):this.lines([[O-h,U-m]],h,m,[1,1]).stroke()},p.__private__.lines=p.lines=function(h,m,O,U,K,dt){var mt,Ct,Rt,Yt,ne,ge,Be,Ke,Ie,Qe,Xe,hn;if(typeof h=="number"&&(hn=O,O=m,m=h,h=hn),U=U||[1,1],dt=dt||!1,isNaN(m)||isNaN(O)||!Array.isArray(h)||!Array.isArray(U)||!vr(K)||typeof dt!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Ca(m,O),mt=U[0],Ct=U[1],Yt=h.length,Qe=m,Xe=O,Rt=0;Rt<Yt;Rt++)(ne=h[Rt]).length===2?(Qe=ne[0]*mt+Qe,Xe=ne[1]*Ct+Xe,jo(Qe,Xe)):(ge=ne[0]*mt+Qe,Be=ne[1]*Ct+Xe,Ke=ne[2]*mt+Qe,Ie=ne[3]*Ct+Xe,Qe=ne[4]*mt+Qe,Xe=ne[5]*Ct+Xe,nr(ge,Be,Ke,Ie,Qe,Xe));return dt&&Do(),Ai(K),this},p.path=function(h){for(var m=0;m<h.length;m++){var O=h[m],U=O.c;switch(O.op){case"m":Ca(U[0],U[1]);break;case"l":jo(U[0],U[1]);break;case"c":nr.apply(this,U);break;case"h":Do()}}return this},p.__private__.rect=p.rect=function(h,m,O,U,K){if(isNaN(h)||isNaN(m)||isNaN(O)||isNaN(U)||!vr(K))throw new Error("Invalid arguments passed to jsPDF.rect");return j===G&&(U=-U),P([Y(q(h)),Y(z(m)),Y(q(O)),Y(q(U)),"re"].join(" ")),Ai(K),this},p.__private__.triangle=p.triangle=function(h,m,O,U,K,dt,mt){if(isNaN(h)||isNaN(m)||isNaN(O)||isNaN(U)||isNaN(K)||isNaN(dt)||!vr(mt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[O-h,U-m],[K-O,dt-U],[h-K,m-dt]],h,m,[1,1],mt,!0),this},p.__private__.roundedRect=p.roundedRect=function(h,m,O,U,K,dt,mt){if(isNaN(h)||isNaN(m)||isNaN(O)||isNaN(U)||isNaN(K)||isNaN(dt)||!vr(mt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Ct=4/3*(Math.SQRT2-1);return K=Math.min(K,.5*O),dt=Math.min(dt,.5*U),this.lines([[O-2*K,0],[K*Ct,0,K,dt-dt*Ct,K,dt],[0,U-2*dt],[0,dt*Ct,-K*Ct,dt,-K,dt],[2*K-O,0],[-K*Ct,0,-K,-dt*Ct,-K,-dt],[0,2*dt-U],[0,-dt*Ct,K*Ct,-dt,K,-dt]],h+K,m,[1,1],mt,!0),this},p.__private__.ellipse=p.ellipse=function(h,m,O,U,K){if(isNaN(h)||isNaN(m)||isNaN(O)||isNaN(U)||!vr(K))throw new Error("Invalid arguments passed to
22jsPDF.ellipse");var dt=4/3*(Math.SQRT2-1)*O,mt=4/3*(Math.SQRT2-1)*U;return Ca(h+O,m),nr(h+O,m-mt,h+dt,m-U,h,m-U),nr(h-dt,m-U,h-O,m-mt,h-O,m),nr(h-O,m+mt,h-dt,m+U,h,m+U),nr(h+dt,m+U,h+O,m+mt,h+O,m),Ai(K),this},p.__private__.circle=p.circle=function(h,m,O,U){if(isNaN(h)||isNaN(m)||isNaN(O)||!vr(U))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(h,m,O,O,U)},p.setFont=function(h,m,O){return O&&(m=ut(m,O)),Tt=Oo(h,m,{disableWarning:!1}),this};var Xs=p.__private__.getFont=p.getFont=function(){return oe[Oo.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var h,m,O={};for(h in se)if(se.hasOwnProperty(h))for(m in O[h]=[],se[h])se[h].hasOwnProperty(m)&&O[h].push(m);return O},p.addFont=function(h,m,O,U,K){var dt=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&dt.indexOf(arguments[3])!==-1?K=arguments[3]:arguments[3]&&dt.indexOf(arguments[3])==-1&&(O=ut(O,U)),Eo.call(this,h,m,O,K=K||"Identity-H")};var Ni,Fa=t.lineWidth||.200025,Js=p.__private__.getLineWidth=p.getLineWidth=function(){return Fa},Kt=p.__private__.setLineWidth=p.setLineWidth=function(h){return Fa=h,P(Y(q(h))+" w"),this};p.__private__.setLineDash=Dt.API.setLineDash=Dt.API.setLineDashPattern=function(h,m){if(h=h||[],m=m||0,isNaN(m)||!Array.isArray(h))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return h=h.map(function(O){return Y(q(O))}).join(" "),m=Y(q(m)),P("["+h+"] "+m+" d"),this};var Qs=p.__private__.getLineHeight=p.getLineHeight=function(){return yt*Ni};p.__private__.getLineHeight=p.getLineHeight=function(){return yt*Ni};var tl=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(h){return typeof(h=h||1.15)=="number"&&(Ni=h),this},el=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return Ni};tl(t.lineHeight);var Fr=p.__private__.getHorizontalCoordinate=function(h){return q(h)},Or=p.__private__.getVerticalCoordinate=function(h){return j===V?h:Gt[R].mediaBox.topRightY-Gt[R].mediaBox.bottomLeftY-q(h)},nl=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(h){return Y(Fr(h))},rl=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(h){return Y(Or(h))},na=t.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return ur(na)},p.__private__.setStrokeColor=p.setDrawColor=function(h,m,O,U){return na=tr({ch1:h,ch2:m,ch3:O,ch4:U,pdfColorType:"draw",precision:2}),P(na),this};var Oa=t.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return ur(Oa)},p.__private__.setFillColor=p.setFillColor=function(h,m,O,U){return Oa=tr({ch1:h,ch2:m,ch3:O,ch4:U,pdfColorType:"fill",precision:2}),P(Oa),this};var Li=t.textColor||"0 g",il=p.__private__.getTextColor=p.getTextColor=function(){return ur(Li)};p.__private__.setTextColor=p.setTextColor=function(h,m,O,U){return Li=tr({ch1:h,ch2:m,ch3:O,ch4:U,pdfColorType:"text",precision:3}),this};var Tr=t.charSpace,al=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(Tr||0)};p.__private__.setCharSpace=p.setCharSpace=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Tr=h,this};var Ta=0;p.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},p.__private__.setLineCap=p.setLineCap=function(h){var m=p.CapJoinStyles[h];if(m===void 0)throw new Error("Line cap style of '"+h+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ta=m,P(m+" J"),this};var Ra=0;p.__private__.setLineJoin=p.setLineJoin=function(h){var m=p.CapJoinStyles[h];if(m===void 0)throw new Error("Line join style of '"+h+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ra=m,P(m+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(h){if(h=h||0,isNaN(h))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return P(Y(q(h))+" M"),this},p.GState=zs,p.setGState=function(h){(h=typeof h=="string"?Zt[Qt[h]]:Uo(null,h)).equals(Te)||(P("/"+h.id+" gs"),Te=h)};var Uo=function(h,m){if(!h||!Qt[h]){var O=!1;
vendor: 31,009 bytes, lines 22-35
22for(var U in Zt)if(Zt.hasOwnProperty(U)&&Zt[U].equals(m)){O=!0;break}if(O)m=Zt[U];else{var K="GS"+(Object.keys(Zt).length+1).toString(10);Zt[K]=m,m.id=K}return h&&(Qt[h]=m.id),_e.publish("addGState",m),m}};p.addGState=function(h,m){return Uo(h,m),this},p.saveGraphicsState=function(){return P("q"),Oe.push({key:Tt,size:yt,color:Li}),this},p.restoreGraphicsState=function(){P("Q");var h=Oe.pop();return Tt=h.key,yt=h.size,Li=h.color,Te=null,this},p.setCurrentTransformationMatrix=function(h){return P(h.toString()+" cm"),this},p.comment=function(h){return P("#"+h),this};var Rr=function(h,m){var O=h||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return O},set:function(dt){isNaN(dt)||(O=parseFloat(dt))}});var U=m||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return U},set:function(dt){isNaN(dt)||(U=parseFloat(dt))}});var K="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return K},set:function(dt){K=dt.toString()}}),this},Ba=function(h,m,O,U){Rr.call(this,h,m),this.type="rect";var K=O||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return K},set:function(mt){isNaN(mt)||(K=parseFloat(mt))}});var dt=U||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return dt},set:function(mt){isNaN(mt)||(dt=parseFloat(mt))}}),this},ra=function(){this.page=le,this.currentPage=R,this.pages=xt.slice(0),this.pagesContext=Gt.slice(0),this.x=Mt,this.y=ze,this.matrix=pe,this.width=Da(R),this.height=qo(R),this.outputDestination=St,this.id="",this.objectNumber=-1};ra.prototype.restore=function(){le=this.page,R=this.currentPage,Gt=this.pagesContext,xt=this.pages,Mt=this.x,ze=this.y,pe=this.matrix,zo(R,this.width),Br(R,this.height),St=this.outputDestination};var Ma=function(h,m,O,U,K){cr.push(new ra),le=R=0,xt=[],Mt=h,ze=m,pe=K,Ea([O,U])};for(var Si in p.beginFormObject=function(h,m,O,U,K){return Ma(h,m,O,U,K),this},p.endFormObject=function(h){return(function(m){if(Pr[m])cr.pop().restore();else{var O=new ra,U="Xo"+(Object.keys(gn).length+1).toString(10);O.id=U,Pr[m]=U,gn[U]=O,_e.publish("addFormObject",O),cr.pop().restore()}})(h),this},p.doFormObject=function(h,m){var O=gn[Pr[h]];return P("q"),P(m.toString()+" cm"),P("/"+O.id+" Do"),P("Q"),this},p.getFormObject=function(h){var m=gn[Pr[h]];return{x:m.x,y:m.y,width:m.width,height:m.height,matrix:m.matrix}},p.save=function(h,m){return h=h||"generated.pdf",(m=m||{}).returnPromise=m.returnPromise||!1,m.returnPromise===!1?(Vi(ta(gr()),h),typeof Vi.unload=="function"&&$t.setTimeout&&setTimeout(Vi.unload,911),this):new Promise(function(O,U){try{var K=Vi(ta(gr()),h);typeof Vi.unload=="function"&&$t.setTimeout&&setTimeout(Vi.unload,911),O(K)}catch(dt){U(dt.message)}})},Dt.API)Dt.API.hasOwnProperty(Si)&&(Si==="events"&&Dt.API.events.length?(function(h,m){var O,U,K;for(K=m.length-1;K!==-1;K--)O=m[K][0],U=m[K][1],h.subscribe.apply(h,[O].concat(typeof U=="function"?[U]:U))})(_e,Dt.API.events):p[Si]=Dt.API[Si]);function Da(h){return Gt[h].mediaBox.topRightX-Gt[h].mediaBox.bottomLeftX}function zo(h,m){Gt[h].mediaBox.topRightX=m+Gt[h].mediaBox.bottomLeftX}function qo(h){return Gt[h].mediaBox.topRightY-Gt[h].mediaBox.bottomLeftY}function Br(h,m){Gt[h].mediaBox.topRightY=m+Gt[h].mediaBox.bottomLeftY}var Mr=p.getPageWidth=function(h){return Da(h=h||R)/ee},Ho=p.setPageWidth=function(h,m){zo(h,m*ee)},ki=p.getPageHeight=function(h){return qo(h=h||R)/ee},Wo=p.setPageHeight=function(h,m){Br(h,m*ee)};return p.internal={pdfEscape:Gn,getStyle:Mo,getFont:Xs,getFontSize:Et,getCharSpace:al,getTextColor:il,getLineHeight:Qs,getLineHeightFactor:el,getLineWidth:Js,write:Lt,getHorizontalCoordinate:Fr,getVerticalCoordinate:Or,getCoordinateString:nl,getVerticalCoordinateString:rl,collections:{},newObject:Me,newAdditionalObject:yi,newObjectDeferred:an,newObjectDeferredBegin:ln,getFilters:er,putStream:Wn,events:_e,scaleFactor:ee,pageSize:{getWidth:function(){return Mr(R)},setWidth:function(h){Ho(R,h)},getHeight:function(){return ki(R)},setHeight:function(h){Wo(R,h)}},encryptionOptions:v,encryption:Je,getEncryptor:function(h){return v!==null?Je.encryptor(h,0):function(m){return m}},output:Ro,getNumberOfPages:Fo,get pages(){return xt},out:P,f2:L,f3:F,getPageInfo:Cr,getPageInfoByObjId:Bo,getCurrentPageInfo:Vs,getPDFVersion:E,Point:Rr,Rectangle:Ba,Matrix:Vt,hasHotfix:Vn},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return Mr(R)},set:function(h){Ho(R,h)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return ki(R)},set:function(h){Wo(R,h)},enumerable:!0,configurable:!0}),function(h){for(var m=0,O=Ht.length;m<O;m++){var U=Eo.call(this,h[m][0],h[m][1],h[m][2],Ht[m][3],!0);x===!1&&(N[U]=!0);var K=h[m][0].split("-");Po({id:U,fontName:K[0],fontStyle:K[1]||""})}_e.publish("addFonts",{fonts:oe,dictionary:se})}.call(p,Ht),Tt="F1",Io(a,e),_e.publish("initialized"),p}_a.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},_a.prototype.toHexString=function(t){return t.split("").map(function(n){return("0"+(255&n.charCodeAt(0)).toString(16)).slice(-2)}).join("")},_a.prototype.hexToBytes=function(t){for(var n=[],e=0;e<t.length;e+=2)n.push(String.fromCharCode(parseInt(t.substr(e,2),16)));return n.join("")},_a.prototype.processOwnerPassword=function(t,n){return Nh(Ah(n).substr(0,5),t)},_a.prototype.encryptor=function(t,n){var e=Ah(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&n,n>>8&255)).substr(0,10);return function(r){return Nh(e,r)}},zs.prototype.equals=function(t){var n,e="id,objectNumber,equals";if(!t||Le(t)!==Le(this))return!1;var r=0;for(n in this)if(!(e.indexOf(n)>=0)){if(this.hasOwnProperty(n)&&!t.hasOwnProperty(n)||this[n]!==t[n])return!1;r++}for(n in t)t.hasOwnProperty(n)&&e.indexOf(n)<0&&r--;return r===0},Dt.API={events:[]},Dt.version="4.0.0";var Ue=Dt.API,kh=1,Yi=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},wa=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Xt=function(t){return t.toFixed(2)},vi=function(t){return t.toFixed(5)};Ue.__acroform__={};var In=function(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t},du=function(t){return t*kh},Lr=function(t){var n=new Bu,e=It.internal.getHeight(t)||0,r=It.internal.getWidth(t)||0;return n.BBox=[0,0,Number(Xt(r)),Number(Xt(e))],n},W5=Ue.__acroform__.setBit=function(t,n){if(t=t||0,n=n||0,isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<n},G5=Ue.__acroform__.clearBit=function(t,n){if(t=t||0,n=n||0,isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<n)},V5=Ue.__acroform__.getBit=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<n?1:0},Ve=Ue.__acroform__.getBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return V5(t,n-1)},Ze=Ue.__acroform__.setBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return W5(t,n-1)},$e=Ue.__acroform__.clearBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return G5(t,n-1)},Z5=Ue.__acroform__.calculateCoordinates=function(t,n){var e=n.internal.getHorizontalCoordinate,r=n.internal.getVerticalCoordinate,a=t[0],o=t[1],c=t[2],l=t[3],f={};return f.lowerLeft_X=e(a)||0,f.lowerLeft_Y=r(o+l)||0,f.upperRight_X=e(a+c)||0,f.upperRight_Y=r(o)||0,[Number(Xt(f.lowerLeft_X)),Number(Xt(f.lowerLeft_Y)),Number(Xt(f.upperRight_X)),Number(Xt(f.upperRight_Y))]},$5=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var n=[],e=t._V||t.DV,r=Lh(t,e),a=t.scope.internal.getFont(t.fontName,t.fontStyle).id;n.push("/Tx BMC"),n.push("q"),n.push("BT"),n.push(t.scope.__private__.encodeColorString(t.color)),n.push("/"+a+" "+Xt(r.fontSize)+" Tf"),n.push("1 0 0 1 0 0 Tm"),n.push(r.text),n.push("ET"),n.push("Q"),n.push("EMC");var o=Lr(t);return o.scope=t.scope,o.stream=n.join(` 23`),o}},Lh=function(t,n){var e=t.fontSize===0?t.maxFontSize:t.fontSize,r={text:"",fontSize:""},a=(n=(n=n.substr(0,1)=="("?n.substr(1):n).substr(n.length-1)==")"?n.substr(0,n.length-1):n).split(" ");a=t.multiline?a.map(function(L){return L.split(` 24`)}):a.map(function(L){return[L]});var o=e,c=It.internal.getHeight(t)||0;c=c<0?-c:c;var l=It.internal.getWidth(t)||0;l=l<0?-l:l;var f=function(L,F,q){if(L+1<a.length){var z=F+" "+a[L+1][0];return Os(z,t,q).width<=l-4}return!1};o++;t:for(;o>0;){n="",o--;var d,v,x=Os("3",t,o).height,N=t.multiline?c-o:(c-x)/2,p=N+=2,T=0,E=0,B=0;if(o<=0){n=`(...) Tj 25`,n+="% Width of Text: "+Os(n,t,o=12).width+", FieldWidth:"+l+` 26`;break}for(var k="",G=0,V=0;V<a.length;V++)if(a.hasOwnProperty(V)){var j=!1;if(a[V].length!==1&&B!==a[V].length-1){if((x+2)*(G+2)+2>c)continue t;k+=a[V][B],j=!0,E=V,V--}else{k=(k+=a[V][B]+" ").substr(k.length-1)==" "?k.substr(0,k.length-1):k;var it=parseInt(V),vt=f(it,k,o),ut=V>=a.length-1;if(vt&&!ut){k+=" ",B=0;continue}if(vt||ut){if(ut)E=it;else if(t.multiline&&(x+2)*(G+2)+2>c)continue t}else{if(!t.multiline||(x+2)*(G+2)+2>c)continue t;E=it}}for(var Y="",M=T;M<=E;M++){var tt=a[M];if(t.multiline){if(M===E){Y+=tt[B]+" ",B=(B+1)%tt.length;continue}if(M===T){Y+=tt[tt.length-1]+" ";continue}}Y+=tt[0]+" "}switch(Y=Y.substr(Y.length-1)==" "?Y.substr(0,Y.length-1):Y,v=Os(Y,t,o).width,t.textAlign){case"right":d=l-v-2;break;case"center":d=(l-v)/2;break;default:d=2}n+=Xt(d)+" "+Xt(p)+` Td 27`,n+="("+Yi(Y)+`) Tj 28`,n+=-Xt(d)+` 0 Td 29`,p=-(o+2),v=0,T=j?E:E+1,G++,k=""}break}return r.text=n,r.fontSize=o,r},Os=function(t,n,e){var r=n.scope.internal.getFont(n.fontName,n.fontStyle),a=n.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:n.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:a}},Y5={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},K5=function(t,n){var e={type:"reference",object:t};n.internal.getPageInfo(t.page).pageContext.annotations.find(function(r){return r.type===e.type&&r.object===e.object})===void 0&&n.internal.getPageInfo(t.page).pageContext.annotations.push(e)},X5=function(t,n){if(n.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(hr.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(Y5)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");kh=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new Mu,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.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})(t)}),t.internal.events.subscribe("buildDocument",function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var a in r)if(r.hasOwnProperty(a)){var o=r[a];o.objId=void 0,o.hasAnnotation&&K5(o,e)}})(t)}),t.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")})(t)}),t.internal.events.subscribe("postPutPages",function(e){(function(r,a){var o=!r;for(var c in r||(a.internal.newObjectDeferredBegin(a.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),a.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||a.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(c)){var l=r[c],f=[],d=l.Rect;if(l.Rect&&(l.Rect=Z5(l.Rect,a)),a.internal.newObjectDeferredBegin(l.objId,!0),l.DA=It.createDefaultAppearanceStream(l),Le(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(f=l.getKeyValueListForStream()),l.Rect=d,l.hasAppearanceStream&&!l.appearanceStreamContent){var v=$5(l);f.push({key:"AP",value:"<</N "+v+">>"}),a.internal.acroformPlugin.xForms.push(v)}if(l.appearanceStreamContent){var x="";for(var N in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(N)){var p=l.appearanceStreamContent[N];if(x+="/"+N+" ",x+="<<",Object.keys(p).length>=1||Array.isArray(p)){for(var c in p)if(p.hasOwnProperty(c)){var T=p[c];typeof T=="function"&&(T=T.call(a,l)),x+="/"+c+" "+T+" ",a.internal.acroformPlugin.xForms.indexOf(T)>=0||a.internal.acroformPlugin.xForms.push(T)}}else typeof(T=p)=="function"&&(T=T.call(a,l)),x+="/"+c+" "+T,a.internal.acroformPlugin.xForms.indexOf(T)>=0||a.internal.acroformPlugin.xForms.push(T);x+=">>"}f.push({key:"AP",value:`<< 30`+x+">>"})}a.internal.putStream({additionalKeyValues:f,objectId:l.objId}),a.internal.out("endobj")}o&&(function(E,B){for(var k in E)if(E.hasOwnProperty(k)){var G=k,V=E[k];B.internal.newObjectDeferredBegin(V.objId,!0),Le(V)==="object"&&typeof V.putStream=="function"&&V.putStream(),delete E[G]}})(a.internal.acroformPlugin.xForms,a)})(e,t)}),t.internal.acroformPlugin.isInitialized=!0}},Ru=Ue.__acroform__.arrayToPdfArray=function(t,n,e){var r=function(c){return c};if(Array.isArray(t)){for(var a="[",o=0;o<t.length;o++)switch(o!==0&&(a+=" "),Le(t[o])){case"boolean":case"number":case"object":a+=t[o].toString();break;case"string":t[o].substr(0,1)!=="/"?(n!==void 0&&e&&(r=e.internal.getEncryptor(n)),a+="("+Yi(r(t[o].toString()))+")"):a+=t[o].toString()}return a+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},bh=function(t,n,e){var r=function(a){return a};return n!==void 0&&e&&(r=e.internal.getEncryptor(n)),(t=t||"").toString(),"("+Yi(r(t))+")"},Sr=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(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Sr.prototype.toString=function(){return this.objId+" 0 R"},Sr.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},Sr.prototype.getKeyValueListForStream=function(){var t=[],n=Object.getOwnPropertyNames(this).filter(function(o){return o!="content"&&o!="appearanceStreamContent"&&o!="scope"&&o!="objId"&&o.substring(0,1)!="_"});for(var e in n)if(Object.getOwnPropertyDescriptor(this,n[e]).configurable===!1){var r=n[e],a=this[r];a&&(Array.isArray(a)?t.push({key:r,value:Ru(a,this.objId,this.scope)}):a instanceof Sr?(a.scope=this.scope,t.push({key:r,value:a.objId+" 0 R"})):typeof a!="function"&&t.push({key:r,value:a}))}return t};var Bu=function(){Sr.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 t,n=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};In(Bu,Sr);var Mu=function(){Sr.call(this);var t,n=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return n.length>0?n:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return n}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(r){return r};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Yi(e(t))+")"}},set:function(e){t=e}})};In(Mu,Sr);var hr=function t(){Sr.call(this);var n=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return n},set:function(k){if(isNaN(k))throw new Error('Invalid value "'+k+'" for attribute F supplied.');n=k}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Ve(n,3)},set:function(k){k?this.F=Ze(n,3):this.F=$e(n,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(k){if(isNaN(k))throw new Error('Invalid value "'+k+'" for attribute Ff supplied.');e=k}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(k){r=k!==void 0?k:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(k){r[0]=k}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(k){r[1]=k}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(k){r[2]=k}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(k){r[3]=k}});var a="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return a},set:function(k){switch(k){case"/Btn":case"/Tx":case"/Ch":case"/Sig":a=k;break;default:throw new Error('Invalid value "'+k+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof qs)return;o="FieldObject"+t.FieldNum++}var k=function(G){return G};return this.scope&&(k=this.scope.internal.getEncryptor(this.objId)),"("+Yi(k(o))+")"},set:function(k){o=k.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(k){o=k}});var c="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return c},set:function(k){c=k}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(k){l=k}});var f=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return f},set:function(k){f=k}});var d=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return d===void 0?50/kh:d},set:function(k){d=k}});var v="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return v},set:function(k){v=k}});var x="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!x||this instanceof qs||this instanceof $i))return bh(x,this.objId,this.scope)},set:function(k){k=k.toString(),x=k}});var N=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(N)return this instanceof sn==0?bh(N,this.objId,this.scope):N},set:function(k){k=k.toString(),N=this instanceof sn==0?k.substr(0,1)==="("?wa(k.substr(1,k.length-2)):wa(k):k}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof sn==1?wa(N.substr(1,N.length-1)):N},set:function(k){k=k.toString(),N=this instanceof sn==1?"/"+k:k}});var p=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(k){this.V=k}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof sn==0?bh(p,this.objId,this.scope):p},set:function(k){k=k.toString(),p=this instanceof sn==0?k.substr(0,1)==="("?wa(k.substr(1,k.length-2)):wa(k):k}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof sn==1?wa(p.substr(1,p.length-1)):p},set:function(k){k=k.toString(),p=this instanceof sn==1?"/"+k:k}}),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 T,E=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return E},set:function(k){k=!!k,E=k}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(T)return T},set:function(k){T=k}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,1)},set:function(k){k?this.Ff=Ze(this.Ff,1):this.Ff=$e(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,2)},set:function(k){k?this.Ff=Ze(this.Ff,2):this.Ff=$e(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,3)},set:function(k){k?this.Ff=Ze(this.Ff,3):this.Ff=$e(this.Ff,3)}});var B=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(B!==null)return B},set:function(k){if([0,1,2].indexOf(k)===-1)throw new Error('Invalid value "'+k+'" for attribute Q supplied.');B=k}}),Object.defineProperty(this,"textAlign",{get:function(){var k;switch(B){case 0:default:k="left";break;case 1:k="center";break;case 2:k="right"}return k},configurable:!0,enumerable:!0,set:function(k){switch(k){case"right":case 2:B=2;break;case"center":case 1:B=1;break;default:B=0}}})};In(hr,Sr);var Na=function(){hr.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var n=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ru(n,this.objId,this.scope)},set:function(e){var r,a;a=[],typeof(r=e)=="string"&&(a=(function(o,c,l){l||(l=1);for(var f,d=[];f=c.exec(o);)d.push(f[l]);return d})(r,/\((.*?)\)/g)),n=a}}),this.getOptions=function(){return n},this.setOptions=function(e){n=e,this.sort&&n.sort()},this.addOption=function(e){e=(e=e||"").toString(),n.push(e),this.sort&&n.sort()},this.removeOption=function(e,r){for(r=r||!1,e=(e=e||"").toString();n.indexOf(e)!==-1&&(n.splice(n.indexOf(e),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,18)},set:function(e){e?this.Ff=Ze(this.Ff,18):this.Ff=$e(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=Ze(this.Ff,19):this.Ff=$e(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,20)},set:function(e){e?(this.Ff=Ze(this.Ff,20),n.sort()):this.Ff=$e(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,22)},set:function(e){e?this.Ff=Ze(this.Ff,22):this.Ff=$e(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,23)},set:function(e){e?this.Ff=Ze(this.Ff,23):this.Ff=$e(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,27)},set:function(e){e?this.Ff=Ze(this.Ff,27):this.Ff=$e(this.Ff,27)}}),this.hasAppearanceStream=!1};In(Na,hr);var La=function(){Na.call(this),this.fontName="helvetica",this.combo=!1};In(La,Na);var Sa=function(){La.call(this),this.combo=!0};In(Sa,La);var Ms=function(){Sa.call(this),this.edit=!0};In(Ms,Sa);var sn=function(){hr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,15)},set:function(e){e?this.Ff=Ze(this.Ff,15):this.Ff=$e(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,16)},set:function(e){e?this.Ff=Ze(this.Ff,16):this.Ff=$e(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,17)},set:function(e){e?this.Ff=Ze(this.Ff,17):this.Ff=$e(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,26)},set:function(e){e?this.Ff=Ze(this.Ff,26):this.Ff=$e(this.Ff,26)}});var t,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(o){return o};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(n).length!==0){var r,a=[];for(r in a.push("<<"),n)a.push("/"+r+" ("+Yi(e(n[r]))+")");return a.push(">>"),a.join(` 31`)}},set:function(e){Le(e)==="object"&&(n=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(e){typeof e=="string"&&(n.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};In(sn,hr);var Ds=function(){sn.call(this),this.pushButton=!0};In(Ds,sn);var ka=function(){sn.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=n!==void 0?n:[]}})};In(ka,sn);var qs=function(){var t,n;hr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(a){t=a}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(a){n=a}});var e,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var a=function(l){return l};this.scope&&(a=this.scope.internal.getEncryptor(this.objId));var o,c=[];for(o in c.push("<<"),r)c.push("/"+o+" ("+Yi(a(r[o]))+")");return c.push(">>"),c.join(` 32`)},set:function(a){Le(a)==="object"&&(r=a)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(a){typeof a=="string"&&(r.CA=a)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(a){e=a}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(a){e="/"+a}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=It.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};In(qs,hr),ka.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var n in this.Kids)if(this.Kids.hasOwnProperty(n)){var e=this.Kids[n];e.appearanceStreamContent=t.createAppearanceStream(e.optionName),e.caption=t.getCA()}},ka.prototype.createOption=function(t){var n=new qs;return n.Parent=this,n.optionName=t,this.Kids.push(n),J5.call(this.scope,n),n};var js=function(){sn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=It.CheckBox.createAppearanceStream()};In(js,sn);var $i=function(){hr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,13)},set:function(n){n?this.Ff=Ze(this.Ff,13):this.Ff=$e(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,21)},set:function(n){n?this.Ff=Ze(this.Ff,21):this.Ff=$e(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,23)},set:function(n){n?this.Ff=Ze(this.Ff,23):this.Ff=$e(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,24)},set:function(n){n?this.Ff=Ze(this.Ff,24):this.Ff=$e(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,25)},set:function(n){n?this.Ff=Ze(this.Ff,25):this.Ff=$e(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,26)},set:function(n){n?this.Ff=Ze(this.Ff,26):this.Ff=$e(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(n){Number.isInteger(n)&&(t=n)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};In($i,hr);var Us=function(){$i.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Ve(this.Ff,14)},set:function(t){t?this.Ff=Ze(this.Ff,14):this.Ff=$e(this.Ff,14)}}),this.password=!0};In(Us,$i);var It={CheckBox:{createAppearanceStream:function(){return{N:{On:It.CheckBox.YesNormal},D:{On:It.CheckBox.YesPushDown,Off:It.CheckBox.OffPushDown}}},YesPushDown:function(t){var n=Lr(t);n.scope=t.scope;var e=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,a=t.scope.__private__.encodeColorString(t.color),o=Lh(t,t.caption);return e.push("0.749023 g"),e.push("0 0 "+Xt(It.internal.getWidth(t))+" "+Xt(It.internal.getHeight(t))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+r+" "+Xt(o.fontSize)+" Tf "+a),e.push("BT"),e.push(o.text),e.push("ET"),e.push("Q"),e.push("EMC"),n.stream=e.join(` 33`),n},YesNormal:function(t){var n=Lr(t);n.scope=t.scope;var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),a=[],o=It.internal.getHeight(t),c=It.internal.getWidth(t),l=Lh(t,t.caption);return a.push("1 g"),a.push("0 0 "+Xt(c)+" "+Xt(o)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+Xt(c-1)+" "+Xt(o-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+e+" "+Xt(l.fontSize)+" Tf "+r),a.push(l.text),a.push("ET"),a.push("Q"),n.stream=a.join(` 34`),n},OffPushDown:function(t){var n=Lr(t);n.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Xt(It.internal.getWidth(t))+" "+Xt(It.internal.getHeight(t))+" re"),e.push("f"),n.stream=e.join(` 35`),n}},RadioButton:{Circle:{createAppearanceStream:function(t){var n={D:{Off:It.RadioButton.Circle.OffPushDown},N:{}}
vendor: 3,477 bytes, lines 35-39
35;return n.N[t]=It.RadioButton.Circle.YesNormal,n.D[t]=It.RadioButton.Circle.YesPushDown,n},getCA:function(){return"l"},YesNormal:function(t){var n=Lr(t);n.scope=t.scope;var e=[],r=It.internal.getWidth(t)<=It.internal.getHeight(t)?It.internal.getWidth(t)/4:It.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var a=It.internal.Bezier_C,o=Number((r*a).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+vi(It.internal.getWidth(t)/2)+" "+vi(It.internal.getHeight(t)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),e.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),e.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),e.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),e.push("f"),e.push("Q"),n.stream=e.join(` 36`),n},YesPushDown:function(t){var n=Lr(t);n.scope=t.scope;var e=[],r=It.internal.getWidth(t)<=It.internal.getHeight(t)?It.internal.getWidth(t)/4:It.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var a=Number((2*r).toFixed(5)),o=Number((a*It.internal.Bezier_C).toFixed(5)),c=Number((r*It.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+vi(It.internal.getWidth(t)/2)+" "+vi(It.internal.getHeight(t)/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"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+vi(It.internal.getWidth(t)/2)+" "+vi(It.internal.getHeight(t)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+c+" "+c+" "+r+" 0 "+r+" c"),e.push("-"+c+" "+r+" -"+r+" "+c+" -"+r+" 0 c"),e.push("-"+r+" -"+c+" -"+c+" -"+r+" 0 -"+r+" c"),e.push(c+" -"+r+" "+r+" -"+c+" "+r+" 0 c"),e.push("f"),e.push("Q"),n.stream=e.join(` 37`),n},OffPushDown:function(t){var n=Lr(t);n.scope=t.scope;var e=[],r=It.internal.getWidth(t)<=It.internal.getHeight(t)?It.internal.getWidth(t)/4:It.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var a=Number((2*r).toFixed(5)),o=Number((a*It.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+vi(It.internal.getWidth(t)/2)+" "+vi(It.internal.getHeight(t)/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"),n.stream=e.join(` 38`),n}},Cross:{createAppearanceStream:function(t){var n={D:{Off:It.RadioButton.Cross.OffPushDown},N:{}};return n.N[t]=It.RadioButton.Cross.YesNormal,n.D[t]=It.RadioButton.Cross.YesPushDown,n},getCA:function(){return"8"},YesNormal:function(t){var n=Lr(t);n.scope=t.scope;var e=[],r=It.internal.calculateCross(t);return e.push("q"),e.push("1 1 "+Xt(It.internal.getWidth(t)-2)+" "+Xt(It.internal.getHeight(t)-2)+" re"),e.push("W"),e.push("n"),e.push(Xt(r.x1.x)+" "+Xt(r.x1.y)+" m"),e.push(Xt(r.x2.x)+" "+Xt(r.x2.y)+" l"),e.push(Xt(r.x4.x)+" "+Xt(r.x4.y)+" m"),e.push(Xt(r.x3.x)+" "+Xt(r.x3.y)+" l"),e.push("s"),e.push("Q"),n.stream=e.join(` 39`),n},YesPushDown:function(t){var n=Lr(t);n.scope=t.scope;var e=It.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+Xt(It.internal.getWidth(t))+" "+Xt(It.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Xt(It.internal.getWidth(t)-2)+" "+Xt(It.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(Xt(e.x1.x)+" "+Xt(e.x1.y)+" m"),r.push(Xt(e.x2.x)+" "+Xt(e.x2.y)+" l"),r.push(Xt(e.x4.x)+" "+Xt(e.x4.y
vendor: 9,839 bytes, lines 39-41
39)+" m"),r.push(Xt(e.x3.x)+" "+Xt(e.x3.y)+" l"),r.push("s"),r.push("Q"),n.stream=r.join(` 40`),n},OffPushDown:function(t){var n=Lr(t);n.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Xt(It.internal.getWidth(t))+" "+Xt(It.internal.getHeight(t))+" re"),e.push("f"),n.stream=e.join(` 41`),n}}},createDefaultAppearanceStream:function(t){var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color);return"/"+n+" "+t.fontSize+" Tf "+e}};It.internal={Bezier_C:.551915024494,calculateCross:function(t){var n=It.internal.getWidth(t),e=It.internal.getHeight(t),r=Math.min(n,e);return{x1:{x:(n-r)/2,y:(e-r)/2+r},x2:{x:(n-r)/2+r,y:(e-r)/2},x3:{x:(n-r)/2,y:(e-r)/2},x4:{x:(n-r)/2+r,y:(e-r)/2+r}}}},It.internal.getWidth=function(t){var n=0;return Le(t)==="object"&&(n=du(t.Rect[2])),n},It.internal.getHeight=function(t){var n=0;return Le(t)==="object"&&(n=du(t.Rect[3])),n};var J5=Ue.addField=function(t){if(X5(this,t),!(t instanceof hr))throw new Error("Invalid argument passed to jsPDF.addField.");var n;return(n=t).scope.internal.acroformPlugin.printedOut&&(n.scope.internal.acroformPlugin.printedOut=!1,n.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),n.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(n),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};Ue.AcroFormChoiceField=Na,Ue.AcroFormListBox=La,Ue.AcroFormComboBox=Sa,Ue.AcroFormEditBox=Ms,Ue.AcroFormButton=sn,Ue.AcroFormPushButton=Ds,Ue.AcroFormRadioButton=ka,Ue.AcroFormCheckBox=js,Ue.AcroFormTextField=$i,Ue.AcroFormPasswordField=Us,Ue.AcroFormAppearance=It,Ue.AcroForm={ChoiceField:Na,ListBox:La,ComboBox:Sa,EditBox:Ms,Button:sn,PushButton:Ds,RadioButton:ka,CheckBox:js,TextField:$i,PasswordField:Us,Appearance:It},Dt.AcroForm={ChoiceField:Na,ListBox:La,ComboBox:Sa,EditBox:Ms,Button:sn,PushButton:Ds,RadioButton:ka,CheckBox:js,TextField:$i,PasswordField:Us,Appearance:It};var Bp=Dt.AcroForm;function Du(t){return t.reduce(function(n,e,r){return n[e]=r,n},{})}(function(t){var n="addImage_";t.__addimage__={};var e="UNKNOWN",r={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=t.__addimage__.getImageFileTypeByImageData=function(L,F){var q,z,rt,st,ht,nt=e;if((F=F||e)==="RGBA"||L.data!==void 0&&L.data instanceof Uint8ClampedArray&&"height"in L&&"width"in L)return"RGBA";if(vt(L))for(ht in r)for(rt=r[ht],q=0;q<rt.length;q+=1){for(st=!0,z=0;z<rt[q].length;z+=1)if(rt[q][z]!==void 0&&rt[q][z]!==L[z]){st=!1;break}if(st===!0){nt=ht;break}}else for(ht in r)for(rt=r[ht],q=0;q<rt.length;q+=1){for(st=!0,z=0;z<rt[q].length;z+=1)if(rt[q][z]!==void 0&&rt[q][z]!==L.charCodeAt(z)){st=!1;break}if(st===!0){nt=ht;break}}return nt===e&&F!==e&&(nt=F),nt},o=function L(F){for(var q=this.internal.write,z=this.internal.putStream,rt=(0,this.internal.getFilters)();rt.indexOf("FlateEncode")!==-1;)rt.splice(rt.indexOf("FlateEncode"),1);F.objectId=this.internal.newObject();var st=[];if(st.push({key:"Type",value:"/XObject"}),st.push({key:"Subtype",value:"/Image"}),st.push({key:"Width",value:F.width}),st.push({key:"Height",value:F.height}),F.colorSpace===k.INDEXED?st.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(F.palette.length/3-1)+" "+("sMask"in F&&F.sMask!==void 0?F.objectId+2:F.objectId+1)+" 0 R]"}):(st.push({key:"ColorSpace",value:"/"+F.colorSpace}),F.colorSpace===k.DEVICE_CMYK&&st.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),st.push({key:"BitsPerComponent",value:F.bitsPerComponent}),"decodeParameters"in F&&F.decodeParameters!==void 0&&st.push({key:"DecodeParms",value:"<<"+F.decodeParameters+">>"}),"transparency"in F&&Array.isArray(F.transparency)&&F.transparency.length>0){for(var ht="",nt=0,ct=F.transparency.length;nt<ct;nt++)ht+=F.transparency[nt]+" "+F.transparency[nt]+" ";st.push({key:"Mask",value:"["+ht+"]"})}F.sMask!==void 0&&st.push({key:"SMask",value:F.objectId+1+" 0 R"});var At=F.filter!==void 0?["/"+F.filter]:void 0;if(z({data:F.data,additionalKeyValues:st,alreadyAppliedFilters:At,objectId:F.objectId}),q("endobj"),"sMask"in F&&F.sMask!==void 0){var wt,_=(wt=F.sMaskBitsPerComponent)!==null&&wt!==void 0?wt:F.bitsPerComponent,R={width:F.width,height:F.height,colorSpace:"DeviceGray",bitsPerComponent:_,data:F.sMask};"filter"in F&&(R.decodeParameters="/Predictor ".concat(F.predictor," /Colors 1 /BitsPerComponent ").concat(_," /Columns ").concat(F.width),R.filter=F.filter),L.call(this,R)}if(F.colorSpace===k.INDEXED){var D=this.internal.newObject();z({data:Y(new Uint8Array(F.palette)),objectId:D}),q("endobj")}},c=function(){var L=this.internal.collections[n+"images"];for(var F in L)o.call(this,L[F])},l=function(){var L,F=this.internal.collections[n+"images"],q=this.internal.write;for(var z in F)q("/I"+(L=F[z]).index,L.objectId,"0","R")},f=function(){this.internal.collections[n+"images"]||(this.internal.collections[n+"images"]={},this.internal.events.subscribe("putResources",c),this.internal.events.subscribe("putXobjectDict",l))},d=function(){var L=this.internal.collections[n+"images"];return f.call(this),L},v=function(){return Object.keys(this.internal.collections[n+"images"]).length},x=function(L){return typeof t["process"+L.toUpperCase()]=="function"},N=function(L){return Le(L)==="object"&&L.nodeType===1},p=function(L,F){if(L.nodeName==="IMG"&&L.hasAttribute("src")){var q=""+L.getAttribute("src");if(q.indexOf("data:image/")===0)return Bs(unescape(q).split("base64,").pop());var z=t.loadFile(q,!0);if(z!==void 0)return z}if(L.nodeName==="CANVAS"){if(L.width===0||L.height===0)throw new Error("Given canvas must have data. Canvas width: "+L.width+", height: "+L.height);var rt;switch(F){case"PNG":rt="image/png";break;case"WEBP":rt="image/webp";break;default:rt="image/jpeg"}return Bs(L.toDataURL(rt,1).split("base64,").pop())}},T=function(L){var F=this.internal.collections[n+"images"];if(F){for(var q in F)if(L===F[q].alias)return F[q]}},E=function(L,F,q){return L||F||(L=-96,F=-96),L<0&&(L=-1*q.width*72/L/this.internal.scaleFactor),F<0&&(F=-1*q.height*72/F/this.internal.scaleFactor),L===0&&(L=F*q.width/q.height),F===0&&(F=L*q.height/q.width),[L,F]},B=function(L,F,q,z,rt,st){var ht=E.call(this,q,z,rt),nt=this.internal.getCoordinateString,ct=this.internal.getVerticalCoordinateString,At=d.call(this);if(q=ht[0],z=ht[1],At[rt.index]=rt,st){st*=Math.PI/180;var wt=Math.cos(st),_=Math.sin(st),R=function(H){return H.toFixed(4)},D=[R(wt),R(_),R(-1*_),R(wt),0,0,"cm"]}this.internal.write("q"),st?(this.internal.write([1,"0","0",1,nt(L),ct(F+z),"cm"].join(" ")),this.internal.write(D.join(" ")),this.internal.write([nt(q),"0","0",nt(z),"0","0","cm"].join(" "))):this.internal.write([nt(q),"0","0",nt(z),nt(L),ct(F+z),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+rt.index+" Do"),this.internal.write("Q")},k=t.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"};t.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 G=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},V=t.__addimage__.sHashCode=function(L){var F,q,z=0;if(typeof L=="string")for(q=L.length,F=0;F<q;F++)z=(z<<5)-z+L.charCodeAt(F),z|=0;else if(vt(L))for(q=L.byteLength/2,F=0;F<q;F++)z=(z<<5)-z+L[F],z|=0;return z},j=t.__addimage__.validateStringAsBase64=function(L){(L=L||"").toString().trim();var F=!0;return L.length===0&&(F=!1),L.length%4!=0&&(F=!1),/^[A-Za-z0-9+/]+$/.test(L.substr(0,L.length-2))===!1&&(F=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(L.substr(-2))===!1&&(F=!1),F},it=t.__addimage__.extractImageFromDataUrl=function(L){if(L==null||!(L=L.trim()).startsWith("data:"))return null;var F=L.indexOf(",");return F<0?null:L.substring(0,F).trim().endsWith("base64")?L.substring(F+1):null};t.__addimage__.isArrayBuffer=function(L){return L instanceof ArrayBuffer};var vt=t.__addimage__.isArrayBufferView=function(L){return L instanceof Int8Array||L instanceof Uint8Array||L instanceof Uint8ClampedArray||L instanceof Int16Array||L instanceof Uint16Array||L instanceof Int32Array||L instanceof Uint32Array||L instanceof Float32Array||L instanceof Float64Array},ut=t.__addimage__.binaryStringToUint8Array=function(L){for(var F=L.length,q=new Uint8Array(F),z=0;z<F;z++)q[z]=L.charCodeAt(z);return q},Y=t.__addimage__.arrayBufferToBinaryString=function(L){for(var F="",q=vt(L)?L:new Uint8Array(L),z=0;z<q.length;z+=8192)F+=String.fromCharCode.apply(null,q.subarray(z,z+8192));return F};t.addImage=function(){var L,F,q,z,rt,st,ht,nt,ct;if(typeof arguments[1]=="number"?(F=e,q=arguments[1],z=arguments[2],rt=arguments[3],st=arguments[4],ht=arguments[5],nt=arguments[6],ct=arguments[7]):(F=arguments[1],q=arguments[2],z=arguments[3],rt=arguments[4],st=arguments[5],ht=arguments[6],nt=arguments[7],ct=arguments[8]),Le(L=arguments[0])==="object"&&!N(L)&&"imageData"in L){var At=L;L=At.imageData,F=At.format||F||e,q=At.x||q||0,z=At.y||z||0,rt=At.w||At.width||rt,st=At.h||At.height||st,ht=At.alias||ht,nt=At.compression||nt,ct=At.rotation||At.angle||ct}var wt=this.internal.getFilters();if(nt===void 0&&wt.indexOf("FlateEncode")!==-1&&(nt="SLOW"),isNaN(q)||isNaN(z))throw new Error("Invalid coordinates passed to
41jsPDF.addImage");f.call(this);var _=M.call(this,L,F,ht,nt);return B.call(this,q,z,rt,st,_,ct),this};var M=function(L,F,q,z){var rt,st,ht;if(typeof L=="string"&&a(L)===e){L=unescape(L);var nt=tt(L,!1);(nt!==""||(nt=t.loadFile(L,!0))!==void 0)&&(L=nt)}if(N(L)&&(L=p(L,F)),F=a(L,F),!x(F))throw new Error("addImage does not support files of type '"+F+"', please ensure that a plugin for '"+F+"' support is added.");if(((ht=q)==null||ht.length===0)&&(q=(function(ct){return typeof ct=="string"||vt(ct)?V(ct):vt(ct.data)?V(ct.data):null})(L)),(rt=T.call(this,q))||(L instanceof Uint8Array||F==="RGBA"||(st=L,L=ut(L)),rt=this["process"+F.toUpperCase()](L,v.call(this),q,(function(ct){return ct&&typeof ct=="string"&&(ct=ct.toUpperCase()),ct in t.image_compression?ct:G.NONE})(z),st)),!rt)throw new Error("An unknown error occurred whilst processing the image.");return rt},tt=t.__addimage__.convertBase64ToBinaryString=function(L,F){F=typeof F!="boolean"||F;var q,z="";if(typeof L=="string"){var rt;q=(rt=it(L))!==null&&rt!==void 0?rt:L;try{z=Bs(q)}catch(st){if(F)throw j(q)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+st.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return z};t.getImageProperties=function(L){var F,q,z="";if(N(L)&&(L=p(L)),typeof L=="string"&&a(L)===e&&((z=tt(L,!1))===""&&(z=t.loadFile(L)||""),L=z),q=a(L),!x(q))throw new Error("addImage does not support files of type '"+q+"', please ensure that a plugin for '"+q+"' support is added.");if(L instanceof Uint8Array||(L=ut(L)),!(F=this["process"+q.toUpperCase()](L)))throw new Error("An unknown error occurred whilst processing the image");return F.fileType=q,F}})(Dt.API),(function(t){var n=function(e){if(e!==void 0&&e!="")return!0};Dt.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(e){for(var r,a,o,c=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,f=this.internal.getPageInfoByObjId(e.objId),d=e.pageContext.annotations,v=!1,x=0;x<d.length&&!v;x++)switch((r=d[x]).type){case"link":(n(r.options.url)||n(r.options.pageNumber))&&(v=!0);break;case"reference":case"text":case"freetext":v=!0}if(v!=0){this.internal.write("/Annots [");for(var N=0;N<d.length;N++){r=d[N];var p=this.internal.pdfEscape,T=this.internal.getEncryptor(e.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var E=this.internal.newAdditionalObject(),B=this.internal.newAdditionalObject(),k=this.internal.getEncryptor(E.objId),G=r.title||"Note";o="<</Type /Annot /Subtype /Text "+(a="/Rect ["+c(r.bounds.x)+" "+l(r.bounds.y+r.bounds.h)+" "+c(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y)+"] ")+"/Contents ("+p(k(r.contents))+")",o+=" /Popup "+B.objId+" 0 R",o+=" /P "+f.objId+" 0 R",o+=" /T ("+p(k(G))+") >>",E.content=o;var V=E.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(a="/Rect ["+c(r.bounds.x+30)+" "+l(r.bounds.y+r.bounds.h)+" "+c(r.bounds.x+r.bounds.w+30)+" "+l(r.bounds.y)+"] ")+" /Parent "+V,r.open&&(o+=" /Open true"),o+=" >>",B.content=o,this.internal.write(E.objId,"0 R",B.objId,"0 R");break;case"freetext":a="/Rect ["+c(r.bounds.x)+" "+l(r.bounds.y)+" "+c(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y+r.bounds.h)+"] ";var j=r.color||"#000000";o="<</Type /Annot /Subtype /FreeText "+a+"/Contents ("+p(T(r.contents))+")",o+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+j+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(r.options.name){var it=this.annotations._nameMap[r.options.name];r.options.pageNumber=it.page,r.options.top=it.y}else r.options.top||(r.options.top=0);if(a="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",o="",r.options.url)o="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /A <</S /URI /URI ("+p(T(r.options.url))+") >>";else if(r.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":o+=" /Fit]";break;case"FitH":o+=" /FitH "+r.options.top+"]";break;
vendor: 53,158 bytes, line 41
41case"FitV":r.options.left=r.options.left||0,o+=" /FitV "+r.options.left+"]";break;default:var vt=l(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),o+=" /XYZ "+r.options.left+" "+vt+" "+r.options.zoom+"]"}o!=""&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),t.createAnnotation=function(e){var r=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":r.pageContext.annotations.push(e)}},t.link=function(e,r,a,o,c){var l=this.internal.getCurrentPageInfo(),f=this.internal.getCoordinateString,d=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:f(e),y:d(r),w:f(e+a),h:d(r+o)},options:c,type:"link"})},t.textWithLink=function(e,r,a,o){var c,l,f=this.getTextWidth(e),d=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){l=o.maxWidth;var v=this.splitTextToSize(e,l).length;c=Math.ceil(d*v)}else l=f,c=d;return this.text(e,r,a,o),a+=.2*d,o.align==="center"&&(r-=f/2),o.align==="right"&&(r-=f),this.link(r,a-d,l,c,o),f},t.getTextWidth=function(e){var r=this.internal.getFontSize();return this.getStringUnitWidth(e)*r/this.internal.scaleFactor}})(Dt.API),(function(t){var n={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}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},a=[1570,1571,1573,1575];t.__arabicParser__={};var o=t.__arabicParser__.isInArabicSubstitutionA=function(E){return n[E.charCodeAt(0)]!==void 0},c=t.__arabicParser__.isArabicLetter=function(E){return typeof E=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(E)},l=t.__arabicParser__.isArabicEndLetter=function(E){return c(E)&&o(E)&&n[E.charCodeAt(0)].length<=2},f=t.__arabicParser__.isArabicAlfLetter=function(E){return c(E)&&a.indexOf(E.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(E){return c(E)&&o(E)&&n[E.charCodeAt(0)].length>=1};var d=t.__arabicParser__.arabicLetterHasFinalForm=function(E){return c(E)&&o(E)&&n[E.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(E){return c(E)&&o(E)&&n[E.charCodeAt(0)].length>=3};var v=t.__arabicParser__.arabicLetterHasMedialForm=function(E){return c(E)&&o(E)&&n[E.charCodeAt(0)].length==4},x=t.__arabicParser__.resolveLigatures=function(E){var B=0,k=e,G="",V=0;for(B=0;B<E.length;B+=1)k[E.charCodeAt(B)]!==void 0?(V++,typeof(k=k[E.charCodeAt(B)])=="number"&&(G+=String.fromCharCode(k),k=e,V=0),B===E.length-1&&(k=e,G+=E.charAt(B-(V-1)),B-=V-1,V=0)):(k=e,G+=E.charAt(B-V),B-=V,V=0);return G};t.__arabicParser__.isArabicDiacritic=function(E){return E!==void 0&&r[E.charCodeAt(0)]!==void 0};var N=t.__arabicParser__.getCorrectForm=function(E,B,k){return c(E)?o(E)===!1?-1:!d(E)||!c(B)&&!c(k)||!c(k)&&l(B)||l(E)&&!c(B)||l(E)&&f(B)||l(E)&&l(B)?0:v(E)&&c(B)&&!l(B)&&c(k)&&d(k)?3:l(E)||!c(k)?1:2:-1},p=function(E){var B=0,k=0,G=0,V="",j="",it="",vt=(E=E||"").split("\\s+"),ut=[];for(B=0;B<vt.length;B+=1){for(ut.push(""),k=0;k<vt[B].length;k+=1)V=vt[B][k],j=vt[B][k-1],it=vt[B][k+1],c(V)?(G=N(V,j,it),ut[B]+=G!==-1?String.fromCharCode(n[V.charCodeAt(0)][G]):V):ut[B]+=V;ut[B]=x(ut[B])}return ut.join(" ")},T=t.__arabicParser__.processArabic=t.processArabic=function(){var E,B=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,k=[];if(Array.isArray(B)){var G=0;for(k=[],G=0;G<B.length;G+=1)Array.isArray(B[G])?k.push([p(B[G][0]),B[G][1],B[G][2]]):k.push([p(B[G])]);E=k}else E=p(B);return typeof arguments[0]=="string"?E:(arguments[0].text=E,arguments[0])};t.events.push(["preProcessText",T])})(Dt.API),Dt.API.autoPrint=function(t){var n;return(t=t||{}).variant=t.variant||"non-conform",t.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){n=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 "+n+" 0 R")})),this},(function(t){var n=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(l){e=l}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(l){r=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var a=300;Object.defineProperty(this,"height",{get:function(){return a},set:function(l){a=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=a+1)}});var o=[];Object.defineProperty(this,"childNodes",{get:function(){return o},set:function(l){o=l}});var c={};Object.defineProperty(this,"style",{get:function(){return c},set:function(l){c=l}}),Object.defineProperty(this,"parentNode",{})};n.prototype.getContext=function(e,r){var a;if((e=e||"2d")!=="2d")return null;for(a in r)this.pdf.context2d.hasOwnProperty(a)&&(this.pdf.context2d[a]=r[a]);return this.pdf.context2d._canvas=this,this.pdf.context2d},n.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new n,this.canvas.pdf=this}])})(Dt.API),(function(t){var n={left:0,top:0,bottom:0,right:0},e=!1,r=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({},n),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var f=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return f},set:function(E){f=E}});var d=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return d},set:function(E){d=E}});var v=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return v},set:function(E){v=E}});var x=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return x},set:function(E){x=E}});var N=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return N},set:function(E){N=E}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return p},set:function(E){p=E}});var T=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return T},set:function(E){T=E}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(f){return r.call(this),this.internal.__cell__.headerFunction=typeof f=="function"?f:void 0,this},t.getTextDimensions=function(f,d){r.call(this);var v=(d=d||{}).fontSize||this.getFontSize(),x=d.font||this.getFont(),N=d.scaleFactor||this.internal.scaleFactor,p=0,T=0,E=0,B=this;if(!Array.isArray(f)&&typeof f!="string"){if(typeof f!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");f=String(f)}var k=d.maxWidth;k>0?typeof f=="string"?f=this.splitTextToSize(f,k):Object.prototype.toString.call(f)==="[object Array]"&&(f=f.reduce(function(V,j){return V.concat(B.splitTextToSize(j,k))},[])):f=Array.isArray(f)?f:[f];for(var G=0;G<f.length;G++)p<(E=this.getStringUnitWidth(f[G],{font:x})*v)&&(p=E);return p!==0&&(T=f.length),{w:p/=N,h:Math.max((T*v*this.getLineHeightFactor()-v*(this.getLineHeightFactor()-1))/N,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var f=this.internal.__cell__.margins||n;return this.internal.__cell__.lastCell=new o(f.left,f.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var c=t.cell=function(){var f;f=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var d=this.internal.__cell__.lastCell,v=this.internal.__cell__.padding,x=this.internal.__cell__.margins||n,N=this.internal.__cell__.tableHeaderRow,p=this.internal.__cell__.printHeaders;return d.lineNumber!==void 0&&(d.lineNumber===f.lineNumber?(f.x=(d.x||0)+(d.width||0),f.y=d.y||0):d.y+d.height+f.height+x.bottom>this.getPageHeight()?(this.cellAddPage(),f.y=x.top,p&&N&&(this.printHeaderRow(f.lineNumber,!0),f.y+=N[0].height)):f.y=d.y+d.height||f.y),f.text[0]!==void 0&&(this.rect(f.x,f.y,f.width,f.height,e===!0?"FD":void 0),f.align==="right"?this.text(f.text,f.x+f.width-v,f.y+v,{align:"right",baseline:"top"}):f.align==="center"?this.text(f.text,f.x+f.width/2,f.y+v,{align:"center",baseline:"top",maxWidth:f.width-v-v}):this.text(f.text,f.x+v,f.y+v,{align:"left",baseline:"top",maxWidth:f.width-v-v})),this.internal.__cell__.lastCell=f,this};t.table=function(f,d,v,x,N){if(r.call(this),!v)throw new Error("No data for PDF table.");var p,T,E,B,k=[],G=[],V=[],j={},it={},vt=[],ut=[],Y=(N=N||{}).autoSize||!1,M=N.printHeaders!==!1,tt=N.css&&N.css["font-size"]!==void 0?16*N.css["font-size"]:N.fontSize||12,L=N.margins||Object.assign({width:this.getPageWidth()},n),F=typeof N.padding=="number"?N.padding:3,q=N.headerBackgroundColor||"#c8c8c8",z=N.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=M,this.internal.__cell__.margins=L,this.internal.__cell__.table_font_size=tt,this.internal.__cell__.padding=F,this.internal.__cell__.headerBackgroundColor=q,this.internal.__cell__.headerTextColor=z,this.setFontSize(tt),x==null)G=k=Object.keys(v[0]),V=k.map(function(){return"left"});else if(Array.isArray(x)&&Le(x[0])==="object")for(k=x.map(function(At){return At.name}),G=x.map(function(At){return At.prompt||At.name||""}),V=x.map(function(At){return At.align||"left"}),p=0;p<x.length;p+=1)it[x[p].name]=.7499990551181103*x[p].width;else Array.isArray(x)&&typeof x[0]=="string"&&(G=k=x,V=k.map(function(){return"left"}));if(Y||Array.isArray(x)&&typeof x[0]=="string")for(p=0;p<k.length;p+=1){for(j[B=k[p]]=v.map(function(At){return At[B]}),this.setFont(void 0,"bold"),vt.push(this.getTextDimensions(G[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),T=j[B],this.setFont(void 0,"normal"),E=0;E<T.length;E+=1)vt.push(this.getTextDimensions(T[E],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);it[B]=Math.max.apply(null,vt)+F+F,vt=[]}if(M){var rt={};for(p=0;p<k.length;p+=1)rt[k[p]]={},rt[k[p]].text=G[p],rt[k[p]].align=V[p];var st=l.call(this,rt,it);ut=k.map(function(At){return new o(f,d,it[At],st,rt[At].text,void 0,rt[At].align)}),this.setTableHeaderRow(ut),this.printHeaderRow(1,!1)}var ht=x.reduce(function(At,wt){return At[wt.name]=wt.align,At},{});for(p=0;p<v.length;p+=1){"rowStart"in N&&N.rowStart instanceof Function&&N.rowStart({row:p,data:v[p]},this);var nt=l.call(this,v[p],it);for(E=0;E<k.length;E+=1){var ct=v[p][k[E]];"cellStart"in N&&N.cellStart instanceof Function&&N.cellStart({row:p,col:E,data:ct},this),c.call(this,new o(f,d,it[k[E]],nt,ct,p+2,ht[k[E]]))}}return this.internal.__cell__.table_x=f,this.internal.__cell__.table_y=d,this};var l=function(f,d){var v=this.internal.__cell__.padding,x=this.internal.__cell__.table_font_size,N=this.internal.scaleFactor;return Object.keys(f).map(function(p){var T=f[p];return this.splitTextToSize(T.hasOwnProperty("text")?T.text:T,d[p]-v-v)},this).map(function(p){return this.getLineHeightFactor()*p.length*x/N+v+v},this).reduce(function(p,T){return Math.max(p,T)},0)};t.setTableHeaderRow=function(f){r.call(this),this.internal.__cell__.tableHeaderRow=f},t.printHeaderRow=function(f,d){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var v;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var x=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(x[0],x[1],x[2],x[3],void 0,-1)}this.setFont(void 0,"bold");for(var N=[],p=0;p<this.internal.__cell__.tableHeaderRow.length;p+=1){v=this.internal.__cell__.tableHeaderRow[p].clone(),d&&(v.y=this.internal.__cell__.margins.top||0,N.push(v)),v.lineNumber=f;var T=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),c.call(this,v),this.setTextColor(T)}N.length>0&&this.setTableHeaderRow(N),this.setFont(void 0,"normal"),e=!1}})(Dt.API);var ju={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Uu=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Sh=Du(Uu),zu=[100,200,300,400,500,600,700,800,900],Q5=Du(zu);function wh(t){var n=t.family.replace(/"|'/g,"").toLowerCase(),e=(function(o){return ju[o=o||"normal"]?o:"normal"})(t.style),r=(function(o){return o?typeof o=="number"?o>=100&&o<=900&&o%100==0?o:400:/^\d00$/.test(o)?parseInt(o):o==="bold"?700:400:400})(t.weight),a=(function(o){return typeof Sh[o=o||"normal"]=="number"?o:"normal"})(t.stretch);return{family:n,style:e,weight:r,stretch:a,src:t.src||[],ref:t.ref||{name:n,style:[a,e,r].join(" ")}}}function pu(t,n,e,r){var a;for(a=e;a>=0&&a<n.length;a+=r)if(t[n[a]])return t[n[a]];for(a=e;a>=0&&a<n.length;a-=r)if(t[n[a]])return t[n[a]]}var td={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},gu={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function vu(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function mu(t){return t.trimLeft()}function ed(t,n){for(var e=0;e<t.length;){if(t.charAt(e)===n)return[t.substring(0,e),t.substring(e+1)];e+=1}return null}function nd(t){var n=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return n===null?null:[n[0],t.substring(n[0].length)]}var Ts,bu,wu,ya,Rs,yu,_u,xu,yh=["times"];function Au(t,n,e,r,a){var o=4,c=Lu;switch(a){case Dt.API.image_compression.FAST:o=1,c=Nu;break;case Dt.API.image_compression.MEDIUM:o=6,c=Su;break;case Dt.API.image_compression.SLOW:o=9,c=ku}t=(function(f,d,v,x){for(var N,p=f.length/d,T=new Uint8Array(f.length+p),E=[rd,Nu,Lu,Su,ku],B=0;B<p;B+=1){var k=B*d,G=f.subarray(k,k+d);if(x)T.set(x(G,v,N),k+B);else{for(var V=E.length,j=[],it=0;it<V;it+=1)j[it]=E[it](G,v,N);var vt=ad(j.concat());T.set(j[vt],k+B)}N=G}return T})(t,n,Math.ceil(e*r/8),c);var l=cs(t,{level:o});return Dt.API.__addimage__.arrayBufferToBinaryString(l)}function rd(t){var n=Array.apply([],t);return n.unshift(0),n}function Nu(t,n){var e=t.length,r=[];r[0]=1;for(var a=0;a<e;a+=1){var o=t[a-n]||0;r[a+1]=t[a]-o+256&255}return r}function Lu(t,n,e){var r=t.length,a=[];a[0]=2;for(var o=0;o<r;o+=1){var c=e&&e[o]||0;a[o+1]=t[o]-c+256&255}return a}function Su(t,n,e){var r=t.length,a=[];a[0]=3;for(var o=0;o<r;o+=1){var c=t[o-n]||0,l=e&&e[o]||0;a[o+1]=t[o]+256-(c+l>>>1)&255}return a}function ku(t,n,e){var r=t.length,a=[];a[0]=4;for(var o=0;o<r;o+=1){var c=id(t[o-n]||0,e&&e[o]||0,e&&e[o-n]||0);a[o+1]=t[o]-c+256&255}return a}function id(t,n,e){if(t===n&&n===e)return t;var r=Math.abs(n-e),a=Math.abs(t-e),o=Math.abs(t+n-e-e);return r<=a&&r<=o?t:a<=o?n:e}function ad(t){var n=t.map(function(e){return e.reduce(function(r,a){return r+Math.abs(a)},0)});return n.indexOf(Math.min.apply(null,n))}function _h(t,n,e){var r=n*e,a=Math.floor(r/8),o=16-(r-8*a+e),c=(1<<e)-1;return qu(t,a)>>o&c}function Pu(t,n,e,r){var a=e*r,o=Math.floor(a/8),c=16-(a-8*o+r),l=(1<<r)-1,f=(n&l)<<c;(function(d,v,x){if(v+1<d.byteLength)d.setUint16(v,x,!1);else{var N=x>>8&255;d.setUint8(v,N)}})(t,o,qu(t,o)&~(l<<c)&65535|f)}function qu(t,n){return n+1<t.byteLength?t.getUint16(n,!1):t.getUint8(n)<<8}function od(t){var n=0;if(t[n++]!==71||t[n++]!==73||t[n++]!==70||t[n++]!==56||(t[n++]+1&253)!=56||t[n++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=t[n++]|t[n++]<<8,r=t[n++]|t[n++]<<8,a=t[n++],o=a>>7,c=1<<1+(7&a);t[n++],t[n++];var l=null,f=null;o&&(l=n,f=c,n+=3*c);var d=!0,v=[],x=0,N=null,p=0,T=null;for(this.width=e,this.height=r;d&&n<t.length;)switch(t[n++]){case 33:switch(t[n++]){case 255:if(t[n]!==11||t[n+1]==78&&t[n+2]==69&&t[n+3]==84&&t[n+4]==83&&t[n+5]==67&&t[n+6]==65&&t[n+7]==80&&t[n+8]==69&&t[n+9]==50&&t[n+10]==46&&t[n+11]==48&&t[n+12]==3&&t[n+13]==1&&t[n+16]==0)n+=14,T=t[n++]|t[n++]<<8,n++;else for(n+=12;;){if(!((L=t[n++])>=0))throw Error("Invalid block size");if(L===0)break;n+=L}break;case 249:if(t[n++]!==4||t[n+4]!==0)throw new Error("Invalid graphics extension block.");var E=t[n++];x=t[n++]|t[n++]<<8,N=t[n++],1&E||(N=null),p=E>>2&7,n++;break;case 254:for(;;){if(!((L=t[n++])>=0))throw Error("Invalid block size");if(L===0)break;n+=L}break;default:throw new Error("Unknown graphic control label: 0x"+t[n-1].toString(16))}break;case 44:var B=t[n++]|t[n++]<<8,k=t[n++]|t[n++]<<8,G=t[n++]|t[n++]<<8,V=t[n++]|t[n++]<<8,j=t[n++],it=j>>6&1,vt=1<<1+(7&j),ut=l,Y=f,M=!1;j>>7&&(M=!0,ut=n,Y=vt,n+=3*vt);var tt=n;for(n++;;){var L;if(!((L=t[n++])>=0))throw Error("Invalid block size");if(L===0)break;n+=L}v.push({x:B,y:k,width:G,height:V,has_local_palette:M,palette_offset:ut,palette_size:Y,data_offset:tt,data_length:n-tt,transparent_index:N,interlaced:!!it,delay:x,disposal:p});break;case 59:d=!1;break;default:throw new Error("Unknown gif block: 0x"+t[n-1].toString(16))}this.numFrames=function(){return v.length},this.loopCount=function(){return T},this.frameInfo=function(F){if(F<0||F>=v.length)throw new Error("Frame index out of range.");return v[F]},this.decodeAndBlitFrameBGRA=function(F,q){var z=this.frameInfo(F),rt=z.width*z.height,st=new Uint8Array(rt);Eu(t,z.data_offset,st,rt);var ht=z.palette_offset,nt=z.transparent_index;nt===null&&(nt=256);var ct=z.width,At=e-ct,wt=ct,_=4*(z.y*e+z.x),R=4*((z.y+z.height)*e+z.x),D=_,H=4*At;z.interlaced===!0&&(H+=4*e*7);for(var $=8,J=0,at=st.length;J<at;++J){var ot=st[J];if(wt===0&&(wt=ct,(D+=H)>=R&&(H=4*At+4*e*($-1),D=_+(ct+At)*($<<1),$>>=1)),ot===nt)D+=4;else{var gt=t[ht+3*ot],xt=t[ht+3*ot+1],kt=t[ht+3*ot+2];q[D++]=kt,q[D++]=xt,q[D++]=gt,q[D++]=255}--wt}},this.decodeAndBlitFrameRGBA=function(F,q){var z=this.frameInfo(F),rt=z.width*z.height,st=new Uint8Array(rt);Eu(t,z.data_offset,st,rt);var ht=z.palette_offset,nt=z.transparent_index;nt===null&&(nt=256);var ct=z.width,At=e-ct,wt=ct,_=4*(z.y*e+z.x),R=4*((z.y+z.height)*e+z.x),D=_,H=4*At;z.interlaced===!0&&(H+=4*e*7);for(var $=8,J=0,at=st.length;J<at;++J){var ot=st[J];if(wt===0&&(wt=ct,(D+=H)>=R&&(H=4*At+4*e*($-1),D=_+(ct+At)*($<<1),$>>=1)),ot===nt)D+=4;else{var gt=t[ht+3*ot],xt=t[ht+3*ot+1],kt=t[ht+3*ot+2];q[D++]=gt,q[D++]=xt,q[D++]=kt,q[D++]=255}--wt}}}function Eu(t,n,e,r){for(var a=t[n++],o=1<<a,c=o+1,l=c+1,f=a+1,d=(1<<f)-1,v=0,x=0,N=0,p=t[n++],T=new Int32Array(4096),E=null;;){for(;v<16&&p!==0;)x|=t[n++]<<v,v+=8,p===1?p=t[n++]:--p;if(v<f)break;var B=x&d;if(x>>=f,v-=f,B!==o){if(B===c)break;for(var k=B<l?B:E,G=0,V=k;V>o;)V=T[V]>>8,++G;var j=V;if(N+G+(k!==B?1:0)>r)return void Pe.log("Warning, gif stream longer than expected.");e[N++]=j;var it=N+=G;for(k!==B&&(e[N++]=j),V=k;G--;)V=T[V],e[--it]=255&V,V>>=8;E!==null&&l<4096&&(T[l++]=E<<8|j,l>=d+1&&f<12&&(++f,d=d<<1|1)),E=B}else l=c+1,d=(1<<(f=a+1))-1,E=null}return N!==r&&Pe.log("Warning, gif stream shorter than expected."),e}function xh(t){var n,e,r,a,o,c=Math.floor,l=new Array(64),f=new Array(64),d=new Array(64),v=new Array(64),x=new Array(65535),N=new Array(65535),p=new Array(64),T=new Array(64),E=[],B=0,k=7,G=new Array(64),V=new Array(64),j=new Array(64),it=new Array(256),vt=new Array(2048),ut=[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],Y=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],M=[0,1,2,3,4,5,6,7,8,9,10,11],tt=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],L=[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],F=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],q=[0,1,2,3,4,5,6,7,8,9,10,11],z=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],rt=[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 st(_,R){for(var D=0,H=0,$=new Array,J=1;J<=16;J++){for(var at=1;at<=_[J];at++)$[R[H]]=[],$[R[H]][0]=D,$[R[H]][1]=J,H++,D++;D*=2}return $}function ht(_){for(var R=_[0],D=_[1]-1;D>=0;)R&1<<D&&(B|=1<<k),D--,--k<0&&(B==255?(nt(255),nt(0)):nt(B),k=7,B=0)}function nt(_){E.push(_)}function ct(_){nt(_>>8&255),nt(255&_)}function At(_,R,D,H,$){for(var J,at=$[0],ot=$[240],gt=(function(yt,Wt){var Et,qt,Ut,ye,he,Jt,ce,fe,Tt,ee,Mt=0;for(Tt=0;Tt<8;++Tt){Et=yt[Mt],qt=yt[Mt+1],Ut=yt[Mt+2],ye=yt[Mt+3],he=yt[Mt+4],Jt=yt[Mt+5],ce=yt[Mt+6];var ze=Et+(fe=yt[Mt+7]),pe=Et-fe,oe=qt+ce,se=qt-ce,Oe=Ut+Jt,zt=Ut-Jt,Ee=ye+he,Zt=ye-he,Qt=ze+Ee,Te=ze-Ee,le=oe+Oe,Gt=oe-Oe;yt[Mt]=Qt+le,yt[Mt+4]=Qt-le;var _e=.707106781*(Gt+Te);yt[Mt+2]=Te+_e,yt[Mt+6]=Te-_e;var wi=.382683433*((Qt=Zt+zt)-(Gt=se+pe)),gn=.5411961*Qt+wi,Pr=1.306562965*Gt+wi,cr=.707106781*(le=zt+se),Vt=pe+cr,Er=pe-cr;yt[Mt+5]=Er+gn,yt[Mt+3]=Er-gn,yt[Mt+1]=Vt+Pr,yt[Mt+7]=Vt-Pr,Mt+=8}for(Mt=0,Tt=0;Tt<8;++Tt){Et=yt[Mt],qt=yt[Mt+8],Ut=yt[Mt+16],ye=yt[Mt+24],he=yt[Mt+32],Jt=yt[Mt+40],ce=yt[Mt+48];var Ir=Et+(fe=yt[Mt+56]),qn=Et-fe,Hn=qt+ce,Me=qt-ce,an=Ut+Jt,ln=Ut-Jt,yi=ye+he,Kr=ye-he,Qn=Ir+yi,ur=Ir-yi,tr=Hn+an,er=Hn-an;yt[Mt]=Qn+tr,yt[Mt+32]=Qn-tr;var Wn=.707106781*(er+ur);yt[Mt+16]=ur+Wn,yt[Mt+48]=ur-Wn;var _i=.382683433*((Qn=Kr+ln)-(er=Me+qn)),dr=.5411961*Qn+_i,xi=1.306562965*er+_i,Ki=.707106781*(tr=ln+Me),Xi=qn+Ki,Ji=qn-Ki;yt[Mt+40]=Ji+dr,yt[Mt+24]=Ji-dr,yt[Mt+8]=Xi+xi,yt[Mt+56]=Xi-xi,Mt++}for(Tt=0;Tt<64;++Tt)ee=yt[Tt]*Wt[Tt],p[Tt]=ee>0?ee+.5|0:ee-.5|0;return p})(_,R),xt=0;xt<64;++xt)T[ut[xt]]=gt[xt];var kt=T[0]-D;D=T[0],kt==0?ht(H[0]):(ht(H[N[J=32767+kt]]),ht(x[J]));for(var St=63;St>0&&T[St]==0;)St--;if(St==0)return ht(at),D;for(var jt,P=1;P<=St;){for(var Lt=P;T[P]==0&&P<=St;)++P;var ae=P-Lt;if(ae>=16){jt=ae>>4;for(var Ht=1;Ht<=jt;++Ht)ht(ot);ae&=15}J=32767+T[P],ht($[(ae<<4)+N[J]]),ht(x[J]),P++}return St!=63&&ht(at),D}function wt(_){_=Math.min(Math.max(_,1),100),o!=_&&((function(R){for(var D=[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],H=0;H<64;H++){var $=c((D[H]*R+50)/100);$=Math.min(Math.max($,1),255),l[ut[H]]=$}for(var J=[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],at=0;at<64;at++){var ot=c((J[at]*R+50)/100);ot=Math.min(Math.max(ot,1),255),f[ut[at]]=ot}for(var gt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],xt=0,kt=0;kt<8;kt++)for(var St=0;St<8;St++)d[xt]=1/(l[ut[xt]]*gt[kt]*gt[St]*8),v[xt]=1/(f[ut[xt]]*gt[kt]*gt[St]*8),xt++})(_<50?Math.floor(5e3/_):Math.floor(200-2*_)),o=_)}this.encode=function(_,R){R&&wt(R),E=new Array,B=0,k=7,ct(65496),ct(65504),ct(16),nt(74),nt(70),nt(73),nt(70),nt(0),nt(1),nt(1),nt(0),ct(1),ct(1),nt(0),nt(0),(function(){ct(65499),ct(132),nt(0);for(var qt=0;qt<64;qt++)nt(l[qt]);nt(1);for(var Ut=0;Ut<64;Ut++)nt(f[Ut])})(),(function(qt,Ut){ct(65472),ct(17),nt(8),ct(Ut),ct(qt),nt(3),nt(1),nt(17),nt(0),nt(2),nt(17),nt(1),nt(3),nt(17),nt(1)})(_.width,_.height),(function(){ct(65476),ct(418),nt(0);for(var qt=0;qt<16;qt++)nt(Y[qt+1]);for(var Ut=0;Ut<=11;Ut++)nt(M[Ut]);nt(16);for(var ye=0;ye<16;ye++)nt(tt[ye+1]);for(var he=0;he<=161;he++)nt(L[he]);nt(1);for(var Jt=0;Jt<16;Jt++)nt(F[Jt+1]);for(var ce=0;ce<=11;ce++)nt(q[ce]);nt(17);for(var fe=0;fe<16;fe++)nt(z[fe+1]);for(var Tt=0;Tt<=161;Tt++)nt(rt[Tt])})(),ct(65498),ct(12),nt(3),nt(1),nt(0),nt(2),nt(17),nt(3),nt(17),nt(0),nt(63),nt(0);var D=0,H=0,$=0;B=0,k=7,this.encode.displayName="_encode_";for(var J,at,ot,gt,xt,kt,St,jt,P,Lt=_.data,ae=_.width,Ht=_.height,yt=4*ae,Wt=0;Wt<Ht;){for(J=0;J<yt;){for(xt=yt*Wt+J,St=-1,jt=0,P=0;P<64;P++)kt=xt+(jt=P>>3)*yt+(St=4*(7&P)),Wt+jt>=Ht&&(kt-=yt*(Wt+1+jt-Ht)),J+St>=yt&&(kt-=J+St-yt+4),at=Lt[kt++],ot=Lt[kt++],gt=Lt[kt++],G[P]=(vt[at]+vt[ot+256|0]+vt[gt+512|0]>>16)-128,V[P]=(vt[at+768|0]+vt[ot+1024|0]+vt[gt+1280|0]>>16)-128,j[P]=(vt[at+1280|0]+vt[ot+1536|0]+vt[gt+1792|0]>>16)-128;D=At(G,d,D,n,r),H=At(V,v,H,e,a),$=At(j,v,$,e,a),J+=32}Wt+=8}if(k>=0){var Et=[];Et[1]=k+1,Et[0]=(1<<k+1)-1,ht(Et)}return ct(65497),new Uint8Array(E)},t=t||50,(function(){for(var _=String.fromCharCode,R=0;R<256;R++)it[R]=_(R)})(),n=st(Y,M),e=st(F,q),r=st(tt,L),a=st(z,rt),(function(){for(var _=1,R=2,D=1;D<=15;D++){for(var H=_;H<R;H++)N[32767+H]=D,x[32767+H]=[],x[32767+H][1]=D,x[32767+H][0]=H;for(var $=-(R-1);$<=-_;$++)N[32767+$]=D,x[32767+$]=[],x[32767+$][1]=D,x[32767+$][0]=R-1+$;_<<=1,R<<=1}})(),(function(){for(var _=0;_<256;_++)vt[_]=19595*_,vt[_+256|0]=38470*_,vt[_+512|0]=7471*_+32768,vt[_+768|0]=-11059*_,vt[_+1024|0]=-21709*_,vt[_+1280|0]=32768*_+8421375,vt[_+1536|0]=-27439*_,vt[_+1792|0]=-5329*_})(),wt(t)}function lr(t,n){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!n,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 Iu(t){function n(M){if(!M)throw Error("assert :P")}function e(M,tt,L){for(var F=0;4>F;F++)if(M[tt+F]!=L.charCodeAt(F))return!0;return!1}function r(M,tt,L,F,q){for(var z=0;z<q;z++)M[tt+z]=L[F+z]}function a(M,tt,L,F){for(var q=0;q<F;q++)M[tt+q]=L}function o(M){return new Int32Array(M)}function c(M,tt){for(var L=[],F=0;F<M;F++)L.push(new tt);return L}function l(M,tt){var L=[];return(function F(q,z,rt){for(var st=rt[z],ht=0;ht<st&&(q.push(rt.length>z+1?[]:new tt),!(rt.length<z+1));ht++)F(q[ht],z+1,rt)})(L,0,M),L}var f=function(){var M=this;function tt(i,s){for(var u=1<<s-1>>>0;i&u;)u>>>=1;return u?(i&u-1)+u:i}function L(i,s,u,g,b){n(!(g%u));do i[s+(g-=u)]=b;while(0<g)}function F(i,s,u,g,b){if(n(2328>=b),512>=b)var w=o(512);else if((w=o(b))==null)return 0;return(function(y,A,S,I,W,et){var C,Z,X=A,lt=1<<S,Q=o(16),ft=o(16);for(n(W!=0),n(I!=null),n(y!=null),n(0<S),Z=0;Z<W;++Z){if(15<I[Z])return 0;++Q[I[Z]]}if(Q[0]==W)return 0;for(ft[1]=0,C=1;15>C;++C){if(Q[C]>1<<C)return 0;ft[C+1]=ft[C]+Q[C]}for(Z=0;Z<W;++Z)C=I[Z],0<I[Z]&&(et[ft[C]++]=Z);if(ft[15]==1)return(I=new q).g=0,I.value=et[0],L(y,X,1,lt,I),lt;var pt,_t=-1,bt=lt-1,Bt=0,Pt=1,re=1,Ft=1<<S;for(Z=0,C=1,W=2;C<=S;++C,W<<=1){if(Pt+=re<<=1,0>(re-=Q[C]))return 0;for(;0<Q[C];--Q[C])(I=new q).g=C,I.value=et[Z++],L(y,X+Bt,W,Ft,I),Bt=tt(Bt,C)}for(C=S+1,W=2;15>=C;++C,W<<=1){if(Pt+=re<<=1,0>(re-=Q[C]))return 0;for(;0<Q[C];--Q[C]){if(I=new q,(Bt&bt)!=_t){for(X+=Ft,pt=1<<(_t=C)-S;15>_t&&!(0>=(pt-=Q[_t]));)++_t,pt<<=1;lt+=Ft=1<<(pt=_t-S),y[A+(_t=Bt&bt)].g=pt+S,y[A+_t].value=X-A-_t}I.g=C-S,I.value=et[Z++],L(y,X+(Bt>>S),W,Ft,I),Bt=tt(Bt,C)}}return Pt!=2*ft[15]-1?0:lt})(i,s,u,g,b,w)}function q(){this.value=this.g=0}function z(){this.value=this.g=0}function rt(){this.G=c(5,q),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=c(Oi,z)}function st(i,s,u,g){n(i!=null),n(s!=null),n(2147483648>g),i.Ca=254,i.I=0,i.b=-8,i.Ka=0,i.oa=s,i.pa=u,i.Jd=s,i.Yc=u+g,i.Zc=4<=g?u+g-4+1:u,at(i)}function ht(i,s){for(var u=0;0<s--;)u|=gt(i,128)<<s;return u}function nt(i,s){var u=ht(i,s);return ot(i)?-u:u}function ct(i,s,u,g){var b,w=0;for(n(i!=null),n(s!=null),n(4294967288>g),i.Sb=g,i.Ra=0,i.u=0,i.h=0,4<g&&(g=4),b=0;b<g;++b)w+=s[u+b]<<8*b;i.Ra=w,i.bb=g,i.oa=s,i.pa=u}function At(i){for(;8<=i.u&&i.bb<i.Sb;)i.Ra>>>=8,i.Ra+=i.oa[i.pa+i.bb]<<ti-8>>>0,++i.bb,i.u-=8;H(i)&&(i.h=1,i.u=0)}function wt(i,s){if(n(0<=s),!i.h&&s<=Fn){var u=D(i)&Cn[s];return i.u+=s,At(i),u}return i.h=1,i.u=0}function _(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function R(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function D(i){return i.Ra>>>(i.u&ti-1)>>>0}function H(i){return n(i.bb<=i.Sb),i.h||i.bb==i.Sb&&i.u>ti}function $(i,s){i.u=s,i.h=H(i)}function J(i){i.u>=zr&&(n(i.u>=zr),At(i))}function at(i){n(i!=null&&i.oa!=null),i.pa<i.Zc?(i.I=(i.oa[i.pa++]|i.I<<8)>>>0,i.b+=8):(n(i!=null&&i.oa!=null),i.pa<i.Yc?(i.b+=8,i.I=i.oa[i.pa++]|i.I<<8):i.Ka?i.b=0:(i.I<<=8,i.b+=8,i.Ka=1))}function ot(i){return ht(i,1)}function gt(i,s){var u=i.Ca;0>i.b&&at(i);var g=i.b,b=u*s>>>8,w=(i.I>>>g>b)+0;for(w?(u-=b,i.I-=b+1<<g>>>0):u=b+1,g=u,b=0;256<=g;)b+=8,g>>=8;return g=7^b+ei[g],i.b-=g,i.Ca=(u<<g)-1,w}function xt(i,s,u){i[s+0]=u>>24&255,i[s+1]=u>>16&255,i[s+2]=u>>8&255,i[s+3]=255&u}function kt(i,s){return i[s+0]|i[s+1]<<8}function St(i,s){return kt(i,s)|i[s+2]<<16}function jt(i,s){return kt(i,s)|kt(i,s+2)<<16}function P(i,s){var u=1<<s;return n(i!=null),n(0<s),i.X=o(u),i.X==null?0:(i.Mb=32-s,i.Xa=s,1)}function Lt(i,s){n(i!=null),n(s!=null),n(i.Xa==s.Xa),r(s.X,0,i.X,0,1<<s.Xa)}function ae(){this.X=[],this.Xa=this.Mb=0}function Ht(i,s,u,g){n(u!=null),n(g!=null);var b=u[0],w=g[0];return b==0&&(b=(i*w+s/2)/s),w==0&&(w=(s*b+i/2)/i),0>=b||0>=w?0:(u[0]=b,g[0]=w,1)}function yt(i,s){return i+(1<<s)-1>>>s}function Wt(i,s){return((4278255360&i)+(4278255360&s)>>>0&4278255360)+((16711935&i)+(16711935&s)>>>0&16711935)>>>0}function Et(i,s){M[s]=function(u,g,b,w,y,A,S){var I;for(I=0;I<y;++I){var W=M[i](A[S+I-1],b,w+I);A[S+I]=Wt(u[g+I],W)}}}function qt(){this.ud=this.hd=this.jd=0}function Ut(i,s){return((4278124286&(i^s))>>>1)+(i&s)>>>0}function ye(i){return 0<=i&&256>i?i:0>i?0:255<i?255:void 0}function he(i,s){return ye(i+(i-s+.5>>1))}function Jt(i,s,u){return Math.abs(s-u)-Math.abs(i-u)}function ce(i,s,u,g,b,w,y){for(g=w[y-1],u=0;u<b;++u)w[y+u]=g=Wt(i[s+u],g)}function fe(i,s,u,g,b){var w;for(w=0;w<u;++w){var y=i[s+w],A=y>>8&255,S=16711935&(S=(S=16711935&y)+((A<<16)+A));g[b+w]=(4278255360&y)+S>>>0}}function Tt(i,s){s.jd=255&i,s.hd=i>>8&255,s.ud=i>>16&255}function ee(i,s,u,g,b,w){var y;for(y=0;y<g;++y){var A=s[u+y],S=A>>>8,I=A,W=255&(W=(W=A>>>16)+((i.jd<<24>>24)*(S<<24>>24)>>>5));I=255&(I=(I+=(i.hd<<24>>24)*(S<<24>>24)>>>5)+((i.ud<<24>>24)*(W<<24>>24)>>>5)),b[w+y]=(4278255360&A)+(W<<16)+I}}function Mt(i,s,u,g,b){M[s]=function(w,y,A,S,I,W,et,C,Z){for(S=et;S<C;++S)for(et=0;et<Z;++et)I[W++]=b(A[g(w[y++])])},M[i]=function(w,y,A,S,I,W,et){var C=8>>w.b,Z=w.Ea,X=w.K[0],lt=w.w;if(8>C)for(w=(1<<w.b)-1,lt=(1<<C)-1;y<A;++y){var Q,ft=0;for(Q=0;Q<Z;++Q)Q&w||(ft=g(S[I++])),W[et++]=b(X[ft<]),ft>>=C}else M["VP8LMapColor"+u](S,I,X,lt,W,et,y,A,Z)}}function ze(i,s,u,g,b){for(u=s+u;s<u;){var w=i[s++];g[b++]=w>>16&255,g[b++]=w>>8&255,g[b++]=255&w}}function pe(i,s,u,g,b){for(u=s+u;s<u;){var w=i[s++];g[b++]=w>>16&255,g[b++]=w>>8&255,g[b++]=255&w,g[b++]=w>>24&255}}function oe(i,s,u,g,b){for(u=s+u;s<u;){var w=(y=i[s++])>>16&240|y>>12&15,y=240&y|y>>28&15;g[b++]=w,g[b++]=y}}function se(i,s,u,g,b){for(u=s+u;s<u;){var w=(y=i[s++])>>16&248|y>>13&7,y=y>>5&224|y>>3&31;g[b++]=w,g[b++]=y}}function Oe(i,s,u,g,b){for(u=s+u;s<u;){var w=i[s++];g[b++]=255&w,g[b++]=w>>8&255,g[b++]=w>>16&255}}function zt(i,s,u,g,b,w){if(w==0)for(u=s+u;s<u;)xt(g,((w=i[s++])[0]>>24|w[1]>>8&65280|w[2]<<8&16711680|w[3]<<24)>>>0),b+=32;else r(g,b,i,s,u)}function Ee(i,s){M[s][0]=M[i+"0"],M[s][1]=M[i+"1"],M[s][2]=M[i+"2"],M[s][3]=M[i+"3"],M[s][4]=M[i+"4"],M[s][5]=M[i+"5"],M[s][6]=M[i+"6"],M[s][7]=M[i+"7"],M[s][8]=M[i+"8"],M[s][9]=M[i+"9"],M[s][10]=M[i+"10"],M[s][11]=M[i+"11"],M[s][12]=M[i+"12"],M[s][13]=M[i+"13"],M[s][14]=M[i+"0"],M[s][15]=M[i+"0"]}function Zt(i){return i==ll||i==hl||i==Qo||i==fl}function Qt(){this.eb=[],this.size=this.A=this.fb=0}function Te(){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 le(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Qt,this.f.kb=new Te,this.sd=null}function Gt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function _e(){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 wi(i){return alert("todo:WebPSamplerProcessPlane"),i.T}function gn(i,s){var u=i.T,g=s.ba.f.RGBA,b=g.eb,w=g.fb+i.ka*g.A,y=Kn[s.ba.S],A=i.y,S=i.O,I=i.f,W=i.N,et=i.ea,C=i.W,Z=s.cc,X=s.dc,lt=s.Mc,Q=s.Nc,ft=i.ka,pt=i.ka+i.T,_t=i.U,bt=_t+1>>1;for(ft==0?y(A,S,null,null,I,W,et,C,I,W,et,C,b,w,null,null,_t):(y(s.ec,s.fc,A,S,Z,X,lt,Q,I,W,et,C,b,w-g.A,b,w,_t),++u);ft+2<pt;ft+=2)Z=I,X=W,lt=et,Q=C,W+=i.Rc,C+=i.Rc,w+=2*g.A,y(A,(S+=2*i.fa)-i.fa,A,S,Z,X,lt,Q,I,W,et,C,b,w-g.A,b,w,_t);return S+=i.fa,i.j+pt<i.o?(r(s.ec,s.fc,A,S,_t),r(s.cc,s.dc,I,W,bt),r(s.Mc,s.Nc,et,C,bt),u--):1&pt||y(A,S,null,null,I,W,et,C,I,W,et,C,b,w+g.A,null,null,_t),u}function Pr(i,s,u){var g=i.F,b=[i.J];if(g!=null){var w=i.U,y=s.ba.S,A=y==Jo||y==Qo;s=s.ba.f.RGBA;var S=[0],I=i.ka;S[0]=i.T,i.Kb&&(I==0?--S[0]:(--I,b[0]-=i.width),i.j+i.ka+i.T==i.o&&(S[0]=i.o-i.j-I));var W=s.eb;I=s.fb+I*s.A,i=Rh(g,b[0],i.width,w,S,W,I+(A?0:3),s.A),n(u==S),i&&Zt(y)&&Ka(W,I,A,w,S,s.A)}return 0}function cr(i){var s=i.ma,u=s.ba.S,g=11>u,b=u==Ko||u==Xo||u==Jo||u==sl||u==12||Zt(u);if(s.memory=null,s.Ib=null,s.Jb=null,s.Nd=null,!qa(s.Oa,i,b?11:12))return 0;if(b&&Zt(u)&&ja(),i.da)alert("todo:use_scaling");else{if(g){if(s.Ib=wi,i.Kb){if(u=i.U+1>>1,s.memory=o(i.U+2*u),s.memory==null)return 0;s.ec=s.memory,s.fc=0,s.cc=s.ec,s.dc=s.fc+i.U,s.Mc=s.cc,s.Nc=s.dc+u,s.Ib=gn,ja()}}else alert("todo:EmitYUV");b&&(s.Jb=Pr,g&&rr())}if(g&&!Jh){for(i=0;256>i;++i)h1[i]=89858*(i-128)+es>>ts,u1[i]=-22014*(i-128)+es,c1[i]=-45773*(i-128),f1[i]=113618*(i-128)+es>>ts;for(i=Ja;i<dl;++i)s=76283*(i-16)+es>>ts,d1[i-Ja]=pr(s,255),p1[i-Ja]=pr(s+8>>4,15);Jh=1}return 1}function Vt(i){var s=i.ma,u=i.U,g=i.T;return n(!(1&i.ka)),0>=u||0>=g?0:(u=s.Ib(i,s),s.Jb!=null&&s.Jb(i,s,u),s.Dc+=u,1)}function Er(i){i.ma.memory=null}function Ir(i,s,u,g){return wt(i,8)!=47?0:(s[0]=wt(i,14)+1,u[0]=wt(i,14)+1,g[0]=wt(i,1),wt(i,3)!=0?0:!i.h)}function qn(i,s){if(4>i)return i+1;var u=i-2>>1;return(2+(1&i)<<u)+wt(s,u)+1}function Hn(i,s){return 120<s?s-120:1<=(u=((u=Yu[s-1])>>4)*i+(8-(15&u)))?u:1;var u}function Me(i,s,u){var g=D(u),b=i[s+=255&g].g-8;return 0<b&&($(u,u.u+8),g=D(u),s+=i[s].value,s+=g&(1<<b)-1),$(u,u.u+i[s].g),i[s].value}function an(i,s,u){return u.g+=i.g,u.value+=i.value<<s>>>0,n(8>=u.g),i.g}function ln(i,s,u){var g=i.xc;return n((s=g==0?0:i.vc[i.md*(u>>g)+(s>>g)])<i.Wb),i.Ya[s]}function yi(i,s,u,g){var b=i.ab,w=i.c*s,y=i.C;s=y+s;var A=u,S=g;for(g=i.Ta,u=i.Ua;0<b--;){var I=i.gc[b],W=y,et=s,C=A,Z=S,X=(S=g,A=u,I.Ea);switch(n(W<et),n(et<=I.nc),I.hc){case 2:qe(C,Z,(et-W)*X,S,A);break;case 0:var lt=W,Q=et,ft=S,pt=A,_t=(Ft=I).Ea;lt==0&&(Wa(C,Z,null,null,1,ft,pt),ce(C,Z+1,0,0,_t-1,ft,pt+1),Z+=_t,pt+=_t,++lt);for(var bt=1<<Ft.b,Bt=bt-1,Pt=yt(_t,Ft.b),re=Ft.K,Ft=Ft.w+(lt>>Ft.b)*Pt;lt<Q;){var ue=re,en=Ft,ie=1;for(oa(C,Z,ft,pt-_t,1,ft,pt);ie<_t;){var Ot=(ie&~Bt)+bt;Ot>_t&&(Ot=_t),(0,Va[ue[en++]>>8&15])(C,Z+ +ie,ft,pt+ie-_t,Ot-ie,ft,pt+ie),ie=Ot}Z+=_t,pt+=_t,++lt&Bt||(Ft+=Pt)}et!=I.nc&&r(S,A-X,S,A+(et-W-1)*X,X);break;case 1:for(X=C,Q=Z,_t=(C=I.Ea)-(pt=C&~(ft=(Z=1<<I.b)-1)),lt=yt(C,I.b),bt=I.K,I=I.w+(W>>I.b)*lt;W<et;){for(Bt=bt,Pt=I,re=new qt,Ft=Q+pt,ue=Q+C;Q<Ft;)Tt(Bt[Pt++],re),Za(re,X,Q,Z,S,A),Q+=Z,A+=Z;Q<ue&&(Tt(Bt[Pt++],re),Za(re,X,Q,_t,S,A),Q+=_t,A+=_t),++W&ft||(I+=lt)}break;case 3:if(C==S&&Z==A&&0<I.b){for(Q=S,C=X=A+(et-W)*X-(pt=(et-W)*yt(I.Ea,I.b)),Z=S,ft=A,lt=[],pt=(_t=pt)-1;0<=pt;--pt)lt[pt]=Z[ft+pt];for(pt=_t-1;0<=pt;--pt)Q[C+pt]=lt[pt];Vo(I,W,et,S,X,S,A)}else Vo(I,W,et,C,Z,S,A)}A=g,S=u}S!=u&&r(g,u,A,S,w)}function Kr(i,s){var u=i.V,g=i.Ba+i.c*i.C,b=s-i.C;if(n(s<=i.l.o),n(16>=b),0<b){var w=i.l,y=i.Ta,A=i.Ua,S=w.width;if(yi(i,b,u,g),b=A=[A],n((u=i.C)<(g=s)),n(w.v<w.va),g>w.o&&(g=w.o),u<w.j){var I=w.j-u;u=w.j,b[0]+=I*S}if(u>=g?u=0:(b[0]+=4*w.v,w.ka=u-w.j,w.U=w.va-w.v,w.T=g-u,u=1),u){if(A=A[0],11>(u=i.ca).S){var W=u.f.RGBA,et=(g=u.S,b=w.U,w=w.T,I=W.eb,W.A),C=w;for(W=W.fb+i.Ma*W.A;0<C--;){var Z=y,X=A,lt=b,Q=I,ft=W;switch(g){case Yo:$a(Z,X,lt,Q,ft);break;case Ko:ni(Z,X,lt,Q,ft);break;case ll:ni(Z,X,lt,Q,ft),Ka(Q,ft,0,lt,1,0);break;case qh:Ti(Z,X,lt,Q,ft);break;case Xo:zt(Z,X,lt,Q,ft,1);break;case hl:zt(Z,X,lt,Q,ft,1),Ka(Q,ft,0,lt,1,0);break;case Jo:zt(Z,X,lt,Q,ft,0);break;case Qo:zt(Z,X,lt,Q,ft,0),Ka(Q,ft,1,lt,1,0);break;case sl:ri(Z,X,lt,Q,ft);break;case fl:ri(Z,X,lt,Q,ft),Th(Q,ft,lt,1,0);break;case Hh:ii(Z,X,lt,Q,ft);break;default:n(0)}A+=S,W+=et}i.Ma+=w}else alert("todo:EmitRescaledRowsYUVA");n(i.Ma<=u.height)}}i.C=s,n(i.C<=i.i)}function Qn(i){var s;if(0<i.ua)return 0;for(s=0;s<i.Wb;++s){var u=i.Ya[s].G,g=i.Ya[s].H;if(0<u[1][g[1]+0].g||0<u[2][g[2]+0].g||0<u[3][g[3]+0].g)return 0}return 1}function ur(i,s,u,g,b,w){if(i.Z!=0){var y=i.qd,A=i.rd;for(n(si[i.Z]!=null);s<u;++s)si[i.Z](y,A,g,b,g,b,w),y=g,A=b,b+=w;i.qd=y,i.rd=A}}function tr(i,s){var u=i.l.ma,g=u.Z==0||u.Z==1?i.l.j:i.C;if(g=i.C<g?g:i.C,n(s<=i.l.o),s>g){var b=i.l.width,w=u.ca,y=u.tb+b*g,A=i.V,S=i.Ba+i.c*g,I=i.gc;n(i.ab==1),n(I[0].hc==3),br(I[0],g,s,A,S,w,y),ur(u,g,s,w,y,b)}i.C=i.Ma=s}function er(i,s,u,g,b,w,y){var A=i.$/g,S=i.$%g,I=i.m,W=i.s,et=u+i.$,C=et;b=u+g*b;var Z=u+g*w,X=280+W.ua,lt=i.Pb?A:16777216,Q=0<W.ua?W.Wa:null,ft=W.wc,pt=et<Z?ln(W,S,A):null;n(i.C<w),n(Z<=b);var _t=!1;t:for(;;){for(;_t||et<Z;){var bt=0;if(A>=lt){var Bt=et-u;n((lt=i).Pb),lt.wd=lt.m,lt.xd=Bt,0<lt.s.ua&&Lt(lt.s.Wa,lt.s.vb),lt=A+Xu}if(S&ft||(pt=ln(W,S,A)),n(pt!=null),pt.Qb&&(s[et]=pt.qb,_t=!0),!_t)if(J(I),pt.jc){bt=I,Bt=s;var Pt=et,re=pt.pd[D(bt)&Oi-1];n(pt.jc),256>re.g?($(bt,bt.u+re.g),Bt[Pt]=re.value,bt=0):($(bt,bt.u+re.g-256),n(256<=re.value),bt=re.value),bt==0&&(_t=!0)}else bt=Me(pt.G[0],pt.H[0],I);if(I.h)break;if(_t||256>bt){if(!_t)if(pt.nd)s[et]=(pt.qb|bt<<8)>>>0;else{if(J(I),_t=Me(pt.G[1],pt.H[1],I),J(I),Bt=Me(pt.G[2],pt.H[2],I),Pt=Me(pt.G[3],pt.H[3],I),I.h)break;s[et]=(Pt<<24|_t<<16|bt<<8|Bt)>>>0}if(_t=!1,++et,++S>=g&&(S=0,++A,y!=null&&A<=w&&!(A%16)&&y(i,A),Q!=null))for(;C<et;)bt=s[C++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt}else if(280>bt){if(bt=qn(bt-256,I),Bt=Me(pt.G[4],pt.H[4],I),J(I),Bt=Hn(g,Bt=qn(Bt,I)),I.h)break;if(et-u<Bt||b-et<bt)break t;for(Pt=0;Pt<bt;++Pt)s[et+Pt]=s[et+Pt-Bt];for(et+=bt,S+=bt;S>=g;)S-=g,++A,y!=null&&A<=w&&!(A%16)&&y(i,A);if(n(et<=b),S&ft&&(pt=ln(W,S,A)),Q!=null)for(;C<et;)bt=s[C++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt}else{if(!(bt<X))break t;for(_t=bt-280,n(Q!=null);C<et;)bt=s[C++],Q.X[(506832829*bt&4294967295)>>>Q.Mb]=bt;bt=et,n(!(_t>>>(Bt=Q).Xa)),s[bt]=Bt.X[_t],_t=!0}_t||n(I.h==H(I))}if(i.Pb&&I.h&&et<b)n(i.m.h),i.a=5,i.m=i.wd,i.$=i.xd,0<i.s.ua&&Lt(i.s.vb,i.s.Wa);else{if(I.h)break t;y?.(i,A>w?w:A),i.a=0,i.$=et-u}return 1}return i.a=3,0}function Wn(i){n(i!=null),i.vc=null,i.yc=null,i.Ya=null;var s=i.Wa;s!=null&&(s.X=null),i.vb=null,n(i!=null)}function _i(){var i=new Yt;return i==null?null:(i.a=0,i.xb=Vh,Ee("Predictor","VP8LPredictors"),Ee("Predictor","VP8LPredictors_C"),Ee("PredictorAdd","VP8LPredictorsAdd"),Ee("PredictorAdd","VP8LPredictorsAdd_C"),qe=fe,Za=ee,$a=ze,ni=pe,ri=oe,ii=se,Ti=Oe,M.VP8LMapColor32b=mr,M.VP8LMapColor8b=Ga,i)}function dr(i,s,u,g,b){var w=1,y=[i],A=[s],S=g.m,I=g.s,W=null,et=0;t:for(;;){if(u)for(;w&&wt(S,1);){var C=y,Z=A,X=g,lt=1,Q=X.m,ft=X.gc[X.ab],pt=wt(Q,2);if(X.Oc&1<<pt)w=0;else{switch(X.Oc|=1<<pt,ft.hc=pt,ft.Ea=C[0],ft.nc=Z[0],ft.K=[null],++X.ab,n(4>=X.ab),pt){case 0:case 1:ft.b=wt(Q,3)+2,lt=dr(yt(ft.Ea,ft.b),yt(ft.nc,ft.b),0,X,ft.K),ft.K=ft.K[0];break;case 3:var _t,bt=wt(Q,8)+1,Bt=16<bt?0:4<bt?1:2<bt?2:3;if(C[0]=yt(ft.Ea,Bt),ft.b=Bt,_t=lt=dr(bt,1,0,X,ft.K)){var Pt,re=bt,Ft=ft,ue=1<<(8>>Ft.b),en=o(ue);if(en==null)_t=0;else{var ie=Ft.K[0],Ot=Ft.w;for(en[0]=Ft.K[0][0],Pt=1;Pt<1*re;++Pt)en[Pt]=Wt(ie[Ot+Pt],en[Pt-1]);for(;Pt<4*ue;++Pt)en[Pt]=0;Ft.K[0]=null,Ft.K[0]=en,_t=1}}lt=_t;break;case 2:break;default:n(0)}w=lt}}if(y=y[0],A=A[0],w&&wt(S,1)&&!(w=1<=(et=wt(S,4))&&11>=et)){g.a=3;break t}var Nt;if(Nt=w)e:{var We,te,de,Fe=g,cn=y,xn=A,De=et,vn=u,An=Fe.m,nn=Fe.s,ve=[null],Ae=1,je=0,Ne=Ku[De];n:for(;;){if(vn&&wt(An,1)){var un=wt(An,3)+2,ar=yt(cn,un),Ge=yt(xn,un),kn=ar*Ge;if(!dr(ar,Ge,0,Fe,ve))break n;for(ve=ve[0],nn.xc=un,We=0;We<kn;++We){var ke=ve[We]>>8&65535;ve[We]=ke,ke>=Ae&&(Ae=ke+1)}}if(An.h)break n;for(te=0;5>te;++te){var rn=Wh[te];!te&&0<De&&(rn+=1<<De),je<rn&&(je=rn)}var Tn=c(Ae*Ne,q),Nn=Ae,Rn=c(Nn,rt);if(Rn==null)var Bn=null;else n(65536>=Nn),Bn=Rn;var Pn=o(je);if(Bn==null||Pn==null||Tn==null){Fe.a=1;break n}var Mn=Tn;for(We=de=0;We<Ae;++We){var Ce=Bn[We],Dn=Ce.G,or=Ce.H,Bi=0,Wr=1,dn=0;for(te=0;5>te;++te){rn=Wh[te],Dn[te]=Mn,or[te]=de,!te&&0<De&&(rn+=1<<De);i:{var rs,pl=rn,is=Fe,Qa=Pn,m1=Mn,b1=de,gl=0,li=is.m,w1=wt(li,1);if(a(Qa,0,0,pl),w1){var y1=wt(li,1)+1,_1=wt(li,1),ef=wt(li,_1==0?1:8);Qa[ef]=1,y1==2&&(Qa[ef=wt(li,8)]=1);var as=1}else{var nf=o(19),rf=wt(li,4)+4;if(19<rf){is.a=3;var os=0;break i}for(rs=0;rs<rf;++rs)nf[$u[rs]]=wt(li,3);var vl=void 0,to=void 0,af=is,x1=nf,ss=pl,of=Qa,ml=0,hi=af.m,sf=8,lf=c(128,q);r:for(;F(lf,0,7,x1,19);){if(wt(hi,1)){var A1=2+2*wt(hi,3);if((vl=2+wt(hi,A1))>ss)break r}else vl=ss;for(to=0;to<ss&&vl--;){J(hi);var hf=lf[0+(127&D(hi))];$(hi,hi.u+hf.g);var la=hf.value;if(16>la)of[to++]=la,la!=0&&(sf=la);else{var N1=la==16,ff=la-16,L1=Vu[ff],cf=wt(hi,Gu[ff])+L1;if(to+cf>ss)break r;for(var S1=N1?sf:0;0<cf--;)of[to++]=S1}}ml=1;break r}ml||(af.a=3),as=ml}(as=as&&!li.h)&&(gl=F(m1,b1,8,Qa,pl)),as&&gl!=0?os=gl:(is.a=3,os=0)}if(os==0)break n;if(Wr&&Zu[te]==1&&(Wr=Mn[de].g==0),Bi+=Mn[de].g,de+=os,3>=te){var eo,bl=Pn[0];for(eo=1;eo<rn;++eo)Pn[eo]>bl&&(bl=Pn[eo]);dn+=bl}}if(Ce.nd=Wr,Ce.Qb=0,Wr&&(Ce.qb=(Dn[3][or[3]+0].value<<24|Dn[1][or[1]+0].value<<16|Dn[2][or[2]+0].value)>>>0,Bi==0&&256>Dn[0][or[0]+0].value&&(Ce.Qb=1,Ce.qb+=Dn[0][or[0]+0].value<<8)),Ce.jc=!Ce.Qb&&6>dn,Ce.jc){var ls,Gr=Ce;for(ls=0;ls<Oi;++ls){var fi=ls,ci=Gr.pd[fi],hs=Gr.G[0][Gr.H[0]+fi];256<=hs.value?(ci.g=hs.g+256,ci.value=hs.value):(ci.g=0,ci.value=0,fi>>=an(hs,8,ci),fi>>=an(Gr.G[1][Gr.H[1]+fi],16,ci),fi>>=an(Gr.G[2][Gr.H[2]+fi],0,ci),an(Gr.G[3][Gr.H[3]+fi],24,ci))}}}nn.vc=ve,nn.Wb=Ae,nn.Ya=Bn,nn.yc=Tn,Nt=1;break e}Nt=0}if(!(w=Nt)){g.a=3;break t}if(0<et){if(I.ua=1<<et,!P(I.Wa,et)){g.a=1,w=0;break t}}else I.ua=0;var wl=g,uf=y,k1=A,yl=wl.s,_l=yl.xc;if(wl.c=uf,wl.i=k1,yl.md=yt(uf,_l),yl.wc=_l==0?-1:(1<<_l)-1,u){g.xb=i1;break t}if((W=o(y*A))==null){g.a=1,w=0;break t}w=(w=er(g,W,0,y,A,A,null))&&!S.h;break t}return w?(b!=null?b[0]=W:(n(W==null),n(u)),g.$=0,u||Wn(I)):Wn(I),w}function xi(i,s){var u=i.c*i.i,g=u+s+16*s;return n(i.c<=s),i.V=o(g),i.V==null?(i.Ta=null,i.Ua=0,i.a=1,0):(i.Ta=i.V,i.Ua=i.Ba+u+s,1)}function Ki(i,s){var u=i.C,g=s-u,b=i.V,w=i.Ba+i.c*u;for(n(s<=i.l.o);0<g;){var y=16<g?16:g,A=i.l.ma,S=i.l.width,I=S*y,W=A.ca,et=A.tb+S*u,C=i.Ta,Z=i.Ua;yi(i,y,b,w),Bh(C,Z,W,et,I),ur(A,u,u+y,W,et,S),g-=y,b+=y*i.c,u+=y}n(u==s),i.C=i.Ma=s}function Xi(){this.ub=this.yd=this.td=this.Rb=0}function Ji(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ws(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function Pa(){this.Yb=(function(){var i=[];return(function s(u,g,b){for(var w=b[g],y=0;y<w&&(u.push(b.length>g+1?[]:0),!(b.length<g+1));y++)s(u[y],g+1,b)})(i,0,[3,11]),i})()}function Po(){this.jb=o(3),this.Wc=l([4,8],Pa),this.Xc=l([4,17],Pa)}function Eo(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function Gn(){this.ld=this.La=this.dd=this.tc=0}function Ea(){this.Na=this.la=0}function Io(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ia(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Co(){this.uc=this.M=this.Nb=0,this.wa=Array(new Gn),this.Y=0,this.ya=Array(new Ia),this.aa=0,this.l=new Qi}function Fo(){this.y=o(16),this.f=o(8),this.ea=o(8)}function Oo(){this.cb=this.a=0,this.sc="",this.m=new _,this.Od=new Xi,this.Kc=new Ji,this.ed=new Eo,this.Qa=new Ws,this.Ic=this.$c=this.Aa=0,this.D=new Co,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=c(8,_),this.ia=0,this.pb=c(4,Io),this.Pa=new Po,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Fo),this.Hd=0,this.rb=Array(new Ea),this.sb=0,this.wa=Array(new Gn),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 Ia),this.L=this.aa=0,this.gd=l([4,2],Gn),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 pr(i,s){return 0>i?0:i>s?s:i}function Qi(){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 Gs(){var i=new Oo;return i!=null&&(i.a=0,i.sc="OK",i.cb=0,i.Xb=0,Xa||(Xa=ta)),i}function Ye(i,s,u){return i.a==0&&(i.a=s,i.sc=u,i.cb=0),0}function To(i,s,u){return 3<=u&&i[s+0]==157&&i[s+1]==1&&i[s+2]==42}function gr(i,s){if(i==null)return 0;if(i.a=0,i.sc="OK",s==null)return Ye(i,2,"null VP8Io passed to VP8GetHeaders()");var u=s.data,g=s.w,b=s.ha;if(4>b)return Ye(i,7,"Truncated header.");var w=u[g+0]|u[g+1]<<8|u[g+2]<<16,y=i.Od;if(y.Rb=!(1&w),y.td=w>>1&7,y.yd=w>>4&1,y.ub=w>>5,3<y.td)return Ye(i,3,"Incorrect keyframe parameters.");if(!y.yd)return Ye(i,4,"Frame not displayable.");g+=3,b-=3;var A=i.Kc;if(y.Rb){if(7>b)return Ye(i,7,"cannot parse picture header");if(!To(u,g,b))return Ye(i,3,"Bad code word");A.c=16383&(u[g+4]<<8|u[g+3]),A.Td=u[g+4]>>6,A.i=16383&(u[g+6]<<8|u[g+5]),A.Ud=u[g+6]>>6,g+=7,b-=7,i.za=A.c+15>>4,i.Ub=A.i+15>>4,s.width=A.c,s.height=A.i,s.Da=0,s.j=0,s.v=0,s.va=s.width,s.o=s.height,s.da=0,s.ib=s.width,s.hb=s.height,s.U=s.width,s.T=s.height,a((w=i.Pa).jb,0,255,w.jb.length),n((w=i.Qa)!=null),w.Cb=0,w.Bb=0,w.Fb=1,a(w.Zb,0,0,w.Zb.length),a(w.Lb,0,0,w.Lb)}if(y.ub>b)return Ye(i,7,"bad partition length");st(w=i.m,u,g,y.ub),g+=y.ub,b-=y.ub,y.Rb&&(A.Ld=ot(w),A.Kd=ot(w)),A=i.Qa;var S,I=i.Pa;if(n(w!=null),n(A!=null),A.Cb=ot(w),A.Cb){if(A.Bb=ot(w),ot(w)){for(A.Fb=ot(w),S=0;4>S;++S)A.Zb[S]=ot(w)?nt(w,7):0;for(S=0;4>S;++S)A.Lb[S]=ot(w)?nt(w,6):0}if(A.Bb)for(S=0;3>S;++S)I.jb[S]=ot(w)?ht(w,8):255}else A.Bb=0;if(w.Ka)return Ye(i,3,"cannot parse segment header");if((A=i.ed).zd=ot(w),A.Tb=ht(w,6),A.wb=ht(w,3),A.Pc=ot(w),A.Pc&&ot(w)){for(I=0;4>I;++I)ot(w)&&(A.vd[I]=nt(w,6));for(I=0;4>I;++I)ot(w)&&(A.od[I]=nt(w,6))}if(i.L=A.Tb==0?0:A.zd?1:2,w.Ka)return Ye(i,3,"cannot parse filter header");var W=b;if(b=S=g,g=S+W,A=W,i.Xb=(1<<ht(i.m,2))-1,W<3*(I=i.Xb))u=7;else{for(S+=3*I,A-=3*I,W=0;W<I;++W){var et=u[b+0]|u[b+1]<<8|u[b+2]<<16;et>A&&(et=A),st(i.Jc[+W],u,S,et),S+=et,A-=et,b+=3}st(i.Jc[+I],u,S,A),u=S<g?0:5}if(u!=0)return Ye(i,u,"cannot parse partitions");for(u=ht(S=i.m,7),b=ot(S)?nt(S,4):0,g=ot(S)?nt(S,4):0,A=ot(S)?nt(S,4):0,I=ot(S)?nt(S,4):0,S=ot(S)?nt(S,4):0,W=i.Qa,et=0;4>et;++et){if(W.Cb){var C=W.Zb[et];W.Fb||(C+=u)}else{if(0<et){i.pb[et]=i.pb[0];continue}C=u}var Z=i.pb[et];Z.Sc[0]=cl[pr(C+b,127)],Z.Sc[1]=ul[pr(C+0,127)],Z.Eb[0]=2*cl[pr(C+g,127)],Z.Eb[1]=101581*ul[pr(C+A,127)]>>16,8>Z.Eb[1]&&(Z.Eb[1]=8),Z.Qc[0]=cl[pr(C+I,117)],Z.Qc[1]=ul[pr(C+S,127)],Z.lc=C+S}if(!y.Rb)return Ye(i,4,"Not a key frame.");for(ot(w),y=i.Pa,u=0;4>u;++u){for(b=0;8>b;++b)for(g=0;3>g;++g)for(A=0;11>A;++A)I=gt(w,n1[u][b][g][A])?ht(w,8):t1[u][b][g][A],y.Wc[u][b].Yb[g][A]=I;for(b=0;17>b;++b)y.Xc[u][b]=y.Wc[u][r1[b]]}return i.kc=ot(w),i.kc&&(i.Bd=ht(w,8)),i.cb=1}function ta(i,s,u,g,b,w,y){var A=s[b].Yb[u];for(u=0;16>b;++b){if(!gt(i,A[u+0]))return b;for(;!gt(i,A[u+1]);)if(A=s[++b].Yb[0],u=0,b==16)return 16;var S=s[b+1].Yb;if(gt(i,A[u+2])){var I=i,W=0;if(gt(I,(C=A)[(et=u)+3]))if(gt(I,C[et+6])){for(A=0,et=2*(W=gt(I,C[et+8]))+(C=gt(I,C[et+9+W])),W=0,C=Ju[et];C[A];++A)W+=W+gt(I,C[A]);W+=3+(8<<et)}else gt(I,C[et+7])?(W=7+2*gt(I,165),W+=gt(I,145)):W=5+gt(I,159);else W=gt(I,C[et+4])?3+gt(I,C[et+5]):2;A=S[2]}else W=1,A=S[1];S=y+Qu[b],0>(I=i).b&&at(I);var et,C=I.b,Z=(et=I.Ca>>1)-(I.I>>C)>>31;--I.b,I.Ca+=Z,I.Ca|=1,I.I-=(et+1&Z)<<C,w[S]=((W^Z)-Z)*g[(0<b)+0]}return 16}function Ro(i){var s=i.rb[i.sb-1];s.la=0,s.Na=0,a(i.zc,0,0,i.zc.length),i.ja=0}function Vn(i,s,u,g,b){b=i[s+u+32*g]+(b>>3),i[s+u+32*g]=-256&b?0>b?0:255:b}function Je(i,s,u,g,b,w){Vn(i,s,0,u,g+b),Vn(i,s,1,u,g+w),Vn(i,s,2,u,g-w),Vn(i,s,3,u,g-b)}function Cr(i){return(20091*i>>16)+i}function Bo(i,s,u,g){var b,w=0,y=o(16);for(b=0;4>b;++b){var A=i[s+0]+i[s+8],S=i[s+0]-i[s+8],I=(35468*i[s+4]>>16)-Cr(i[s+12]),W=Cr(i[s+4])+(35468*i[s+12]>>16);y[w+0]=A+W,y[w+1]=S+I,y[w+2]=S-I,y[w+3]=A-W,w+=4,s++}for(b=w=0;4>b;++b)A=(i=y[w+0]+4)+y[w+8],S=i-y[w+8],I=(35468*y[w+4]>>16)-Cr(y[w+12]),Vn(u,g,0,0,A+(W=Cr(y[w+4])+(35468*y[w+12]>>16))),Vn(u,g,1,0,S+I),Vn(u,g,2,0,S-I),Vn(u,g,3,0,A-W),w++,g+=32}function Vs(i,s,u,g){var b=i[s+0]+4,w=35468*i[s+4]>>16,y=Cr(i[s+4]),A=35468*i[s+1]>>16;Je(u,g,0,b+y,i=Cr(i[s+1]),A),Je(u,g,1,b+w,i,A),Je(u,g,2,b-w,i,A),Je(u,g,3,b-y,i,A)}function Zs(i,s,u,g,b){Bo(i,s,u,g),b&&Bo(i,s+16,u,g+4)}function vr(i,s,u,g){Ri(i,s+0,u,g,1),Ri(i,s+32,u,g+128,1)}function Mo(i,s,u,g){var b;for(i=i[s+0]+4,b=0;4>b;++b)for(s=0;4>s;++s)Vn(u,g,s,b,i)}function Do(i,s,u,g){i[s+0]&&xe(i,s+0,u,g),i[s+16]&&xe(i,s+16,u,g+4),i[s+32]&&xe(i,s+32,u,g+128),i[s+48]&&xe(i,s+48,u,g+128+4)}function ea(i,s,u,g){var b,w=o(16);for(b=0;4>b;++b){var y=i[s+0+b]+i[s+12+b],A=i[s+4+b]+i[s+8+b],S=i[s+4+b]-i[s+8+b],I=i[s+0+b]-i[s+12+b];w[0+b]=y+A,w[8+b]=y-A,w[4+b]=I+S,w[12+b]=I-S}for(b=0;4>b;++b)y=(i=w[0+4*b]+3)+w[3+4*b],A=w[1+4*b]+w[2+4*b],S=w[1+4*b]-w[2+4*b],I=i-w[3+4*b],u[g+0]=y+A>>3,u[g+16]=I+S>>3,u[g+32]=y-A>>3,u[g+48]=I-S>>3,g+=64}function Ai(i,s,u){var g,b=s-32,w=On,y=255-i[b-1];for(g=0;g<u;++g){var A,S=w,I=y+i[s-1];for(A=0;A<u;++A)i[s+A]=S[I+i[b+A]];s+=32}}function $s(i,s){Ai(i,s,4)}function Ys(i,s){Ai(i,s,8)}function Ks(i,s){Ai(i,s,16)}function Ca(i,s){var u;for(u=0;16>u;++u)r(i,s+32*u,i,s-32,16)}function jo(i,s){var u;for(u=16;0<u;--u)a(i,s,i[s-1],16),s+=32}function nr(i,s,u){var g;for(g=0;16>g;++g)a(s,u+32*g,i,16)}
vendor: 4,168 bytes, line 41
41function Xs(i,s){var u,g=16;for(u=0;16>u;++u)g+=i[s-1+32*u]+i[s+u-32];nr(g>>5,i,s)}function Ni(i,s){var u,g=8;for(u=0;16>u;++u)g+=i[s-1+32*u];nr(g>>4,i,s)}function Fa(i,s){var u,g=8;for(u=0;16>u;++u)g+=i[s+u-32];nr(g>>4,i,s)}function Js(i,s){nr(128,i,s)}function Kt(i,s,u){return i+2*s+u+2>>2}function Qs(i,s){var u,g=s-32;for(g=new Uint8Array([Kt(i[g-1],i[g+0],i[g+1]),Kt(i[g+0],i[g+1],i[g+2]),Kt(i[g+1],i[g+2],i[g+3]),Kt(i[g+2],i[g+3],i[g+4])]),u=0;4>u;++u)r(i,s+32*u,g,0,g.length)}function tl(i,s){var u=i[s-1],g=i[s-1+32],b=i[s-1+64],w=i[s-1+96];xt(i,s+0,16843009*Kt(i[s-1-32],u,g)),xt(i,s+32,16843009*Kt(u,g,b)),xt(i,s+64,16843009*Kt(g,b,w)),xt(i,s+96,16843009*Kt(b,w,w))}function el(i,s){var u,g=4;for(u=0;4>u;++u)g+=i[s+u-32]+i[s-1+32*u];for(g>>=3,u=0;4>u;++u)a(i,s+32*u,g,4)}function Fr(i,s){var u=i[s-1+0],g=i[s-1+32],b=i[s-1+64],w=i[s-1-32],y=i[s+0-32],A=i[s+1-32],S=i[s+2-32],I=i[s+3-32];i[s+0+96]=Kt(g,b,i[s-1+96]),i[s+1+96]=i[s+0+64]=Kt(u,g,b),i[s+2+96]=i[s+1+64]=i[s+0+32]=Kt(w,u,g),i[s+3+96]=i[s+2+64]=i[s+1+32]=i[s+0+0]=Kt(y,w,u),i[s+3+64]=i[s+2+32]=i[s+1+0]=Kt(A,y,w),i[s+3+32]=i[s+2+0]=Kt(S,A,y),i[s+3+0]=Kt(I,S,A)}function Or(i,s){var u=i[s+1-32],g=i[s+2-32],b=i[s+3-32],w=i[s+4-32],y=i[s+5-32],A=i[s+6-32],S=i[s+7-32];i[s+0+0]=Kt(i[s+0-32],u,g),i[s+1+0]=i[s+0+32]=Kt(u,g,b),i[s+2+0]=i[s+1+32]=i[s+0+64]=Kt(g,b,w),i[s+3+0]=i[s+2+32]=i[s+1+64]=i[s+0+96]=Kt(b,w,y),i[s+3+32]=i[s+2+64]=i[s+1+96]=Kt(w,y,A),i[s+3+64]=i[s+2+96]=Kt(y,A,S),i[s+3+96]=Kt(A,S,S)}function nl(i,s){var u=i[s-1+0],g=i[s-1+32],b=i[s-1+64],w=i[s-1-32],y=i[s+0-32],A=i[s+1-32],S=i[s+2-32],I=i[s+3-32];i[s+0+0]=i[s+1+64]=w+y+1>>1,i[s+1+0]=i[s+2+64]=y+A+1>>1,i[s+2+0]=i[s+3+64]=A+S+1>>1,i[s+3+0]=S+I+1>>1,i[s+0+96]=Kt(b,g,u),i[s+0+64]=Kt(g,u,w),i[s+0+32]=i[s+1+96]=Kt(u,w,y),i[s+1+32]=i[s+2+96]=Kt(w,y,A),i[s+2+32]=i[s+3+96]=Kt(y,A,S),i[s+3+32]=Kt(A,S,I)}function rl(i,s){var u=i[s+0-32],g=i[s+1-32],b=i[s+2-32],w=i[s+3-32],y=i[s+4-32],A=i[s+5-32],S=i[s+6-32],I=i[s+7-32];i[s+0+0]=u+g+1>>1,i[s+1+0]=i[s+0+64]=g+b+1>>1,i[s+2+0]=i[s+1+64]=b+w+1>>1,i[s+3+0]=i[s+2+64]=w+y+1>>1,i[s+0+32]=Kt(u,g,b),i[s+1+32]=i[s+0+96]=Kt(g,b,w),i[s+2+32]=i[s+1+96]=Kt(b,w,y),i[s+3+32]=i[s+2+96]=Kt(w,y,A),i[s+3+64]=Kt(y,A,S),i[s+3+96]=Kt(A,S,I)}function na(i,s){var u=i[s-1+0],g=i[s-1+32],b=i[s-1+64],w=i[s-1+96];i[s+0+0]=u+g+1>>1,i[s+2+0]=i[s+0+32]=g+b+1>>1,i[s+2+32]=i[s+0+64]=b+w+1>>1,i[s+1+0]=Kt(u,g,b),i[s+3+0]=i[s+1+32]=Kt(g,b,w),i[s+3+32]=i[s+1+64]=Kt(b,w,w),i[s+3+64]=i[s+2+64]=i[s+0+96]=i[s+1+96]=i[s+2+96]=i[s+3+96]=w}function Oa(i,s){var u=i[s-1+0],g=i[s-1+32],b=i[s-1+64],w=i[s-1+96],y=i[s-1-32],A=i[s+0-32],S=i[s+1-32],I=i[s+2-32];i[s+0+0]=i[s+2+32]=u+y+1>>1,i[s+0+32]=i[s+2+64]=g+u+1>>1,i[s+0+64]=i[s+2+96]=b+g+1>>1,i[s+0+96]=w+b+1>>1,i[s+3+0]=Kt(A,S,I),i[s+2+0]=Kt(y,A,S),i[s+1+0]=i[s+3+32]=Kt(u,y,A),i[s+1+32]=i[s+3+64]=Kt(g,u,y),i[s+1+64]=i[s+3+96]=Kt(b,g,u),i[s+1+96]=Kt(w,b,g)}function Li(i,s){var u;for(u=0;8>u;++u)r(i,s+32*u,i,s-32,8)}function il(i,s){var u;for(u=0;8>u;++u)a(i,s,i[s-1],8),s+=32}function Tr(i,s,u){var g;for(g=0;8>g;++g)a(s,u+32*g,i,8)}function al(i,s){var u,g=8;for(u=0;8>u;++u)g+=i[s+u-32]+i[s-1+32*u];Tr(g>>4,i,s)}function Ta(i,s){var u,g=4;for(u=0;8>u;++u)g+=i[s+u-32];Tr(g>>3,i,s)}function Ra(i,s){var u,g=4;for(u=0;8>u;++u)g+=i[s-1+32*u];Tr(g>>3,i,s)}function Uo(i,s){Tr(128,i,s)}function Rr(i,s,u){var g=i[s-u],b=i[s+0],w=3*(b-g)+ol[1020+i[s-2*u]-i[s+u]],y=$o[112+(w+4>>3)];i[s-u]=On[255+g+$o[112+(w+3>>3)]],i[s+0]=On[255+b-y]}function Ba(i,s,u,g){var b=i[s+0],w=i[s+u];return Yn[255+i[s-2*u]-i[s-u]]>g||Yn[255+w-b]>g}function ra(i,s,u,g){return 4*Yn[255+i[s-u]-i[s+0]]+Yn[255+i[s-2*u]-i[s+u]]<=g}function Ma(i,s,u,g,b){var w=i[s-3*u],y=i[s-2*u],A=i[s-u],S=i[s+0],I=i[s+u],W=i[s+2*u],et=i[s+3*u];return 4*Yn[255+A-S]+Yn[255+y-I]>g?0:Yn[255+i[s-4*u]-w]<=b&&Yn[255+w-y]<=b&&Yn[255+y-A]<=b&&Yn[255+et-W]<=b&&Yn[255+W-I]<=b&&Yn[255+I-S]<=b}function Si(i,s,u,g){var b=2*g+1;for(g=0;16>g;++g)ra(i,s+g,u,b)&&Rr(i,s+g,u)}function Da(i,s,u,g){var b=2*g+1;for(g=0;16>g;++g)ra(i,s+g*u,1,b)&&Rr(i,s+g*u,1)}function zo(i,s,u,g){var b;for(b=3;0<b;--b)Si(i,s+=4*u,u,g)}function qo(i,s,u,g){var b;for(b=3;0<b;--b)Da(i,s+=4,u,g)}function Br(i,s,u,g,b,w,y,A){for(w=2*w+1;0<b--;
vendor: 17,632 bytes, line 41
41){if(Ma(i,s,u,w,y))if(Ba(i,s,u,A))Rr(i,s,u);else{var S=i,I=s,W=u,et=S[I-2*W],C=S[I-W],Z=S[I+0],X=S[I+W],lt=S[I+2*W],Q=27*(pt=ol[1020+3*(Z-C)+ol[1020+et-X]])+63>>7,ft=18*pt+63>>7,pt=9*pt+63>>7;S[I-3*W]=On[255+S[I-3*W]+pt],S[I-2*W]=On[255+et+ft],S[I-W]=On[255+C+Q],S[I+0]=On[255+Z-Q],S[I+W]=On[255+X-ft],S[I+2*W]=On[255+lt-pt]}s+=g}}function Mr(i,s,u,g,b,w,y,A){for(w=2*w+1;0<b--;){if(Ma(i,s,u,w,y))if(Ba(i,s,u,A))Rr(i,s,u);else{var S=i,I=s,W=u,et=S[I-W],C=S[I+0],Z=S[I+W],X=$o[112+(4+(lt=3*(C-et))>>3)],lt=$o[112+(lt+3>>3)],Q=X+1>>1;S[I-2*W]=On[255+S[I-2*W]+Q],S[I-W]=On[255+et+lt],S[I+0]=On[255+C-X],S[I+W]=On[255+Z-Q]}s+=g}}function Ho(i,s,u,g,b,w){Br(i,s,u,1,16,g,b,w)}function ki(i,s,u,g,b,w){Br(i,s,1,u,16,g,b,w)}function Wo(i,s,u,g,b,w){var y;for(y=3;0<y;--y)Mr(i,s+=4*u,u,1,16,g,b,w)}function h(i,s,u,g,b,w){var y;for(y=3;0<y;--y)Mr(i,s+=4,1,u,16,g,b,w)}function m(i,s,u,g,b,w,y,A){Br(i,s,b,1,8,w,y,A),Br(u,g,b,1,8,w,y,A)}function O(i,s,u,g,b,w,y,A){Br(i,s,1,b,8,w,y,A),Br(u,g,1,b,8,w,y,A)}function U(i,s,u,g,b,w,y,A){Mr(i,s+4*b,b,1,8,w,y,A),Mr(u,g+4*b,b,1,8,w,y,A)}function K(i,s,u,g,b,w,y,A){Mr(i,s+4,1,b,8,w,y,A),Mr(u,g+4,1,b,8,w,y,A)}function dt(){this.ba=new le,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new _e,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function mt(){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 Ct(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Rt(){this.ua=0,this.Wa=new ae,this.vb=new ae,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new rt,this.yc=new q}function Yt(){this.xb=this.a=0,this.l=new Qi,this.ca=new le,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new R,this.Pb=0,this.wd=new R,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Rt,this.ab=0,this.gc=c(4,Ct),this.Oc=0}function ne(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Qi,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ge(i,s,u,g,b,w,y){for(i=i==null?0:i[s+0],s=0;s<y;++s)b[w+s]=i+u[g+s]&255,i=b[w+s]}function Be(i,s,u,g,b,w,y){var A;if(i==null)ge(null,null,u,g,b,w,y);else for(A=0;A<y;++A)b[w+A]=i[s+A]+u[g+A]&255}function Ke(i,s,u,g,b,w,y){if(i==null)ge(null,null,u,g,b,w,y);else{var A,S=i[s+0],I=S,W=S;for(A=0;A<y;++A)I=W+(S=i[s+A])-I,W=u[g+A]+(-256&I?0>I?0:255:I)&255,I=S,b[w+A]=W}}function Ie(i,s,u,g){var b=s.width,w=s.o;if(n(i!=null&&s!=null),0>u||0>=g||u+g>w)return null;if(!i.Cc){if(i.ga==null){var y;if(i.ga=new ne,(y=i.ga==null)||(y=s.width*s.o,n(i.Gb.length==0),i.Gb=o(y),i.Uc=0,i.Gb==null?y=0:(i.mb=i.Gb,i.nb=i.Uc,i.rc=null,y=1),y=!y),!y){y=i.ga;var A=i.Fa,S=i.P,I=i.qc,W=i.mb,et=i.nb,C=S+1,Z=I-1,X=y.l;if(n(A!=null&&W!=null&&s!=null),si[0]=null,si[1]=ge,si[2]=Be,si[3]=Ke,y.ca=W,y.tb=et,y.c=s.width,y.i=s.height,n(0<y.c&&0<y.i),1>=I)s=0;else if(y.$a=3&A[S+0],y.Z=A[S+0]>>2&3,y.Lc=A[S+0]>>4&3,S=A[S+0]>>6&3,0>y.$a||1<y.$a||4<=y.Z||1<y.Lc||S)s=0;else if(X.put=Vt,X.ac=cr,X.bc=Er,X.ma=y,X.width=s.width,X.height=s.height,X.Da=s.Da,X.v=s.v,X.va=s.va,X.j=s.j,X.o=s.o,y.$a)t:{n(y.$a==1),s=_i();e:for(;;){if(s==null){s=0;break t}if(n(y!=null),y.mc=s,s.c=y.c,s.i=y.i,s.l=y.l,s.l.ma=y,s.l.width=y.c,s.l.height=y.i,s.a=0,ct(s.m,A,C,Z),!dr(y.c,y.i,1,s,null)||(s.ab==1&&s.gc[0].hc==3&&Qn(s.s)?(y.ic=1,A=s.c*s.i,s.Ta=null,s.Ua=0,s.V=o(A),s.Ba=0,s.V==null?(s.a=1,s=0):s=1):(y.ic=0,s=xi(s,y.c)),!s))break e;s=1;break t}y.mc=null,s=0}else s=Z>=y.c*y.i;y=!s}if(y)return null;i.ga.Lc!=1?i.Ga=0:g=w-u}n(i.ga!=null),n(u+g<=w);t:{if(s=(A=i.ga).c,w=A.l.o,A.$a==0){if(C=i.rc,Z=i.Vc,X=i.Fa,S=i.P+1+u*s,I=i.mb,W=i.nb+u*s,n(S<=i.P+i.qc),A.Z!=0)for(n(si[A.Z]!=null),y=0;y<g;++y)si[A.Z](C,Z,X,S,I,W,s),C=I,Z=W,W+=s,S+=s;else for(y=0;y<g;++y)r(I,W,X,S,s),C=I,Z=W,W+=s,S+=s;i.rc=C,i.Vc=Z}else{if(n(A.mc!=null),s=u+g,n((y=A.mc)!=null),n(s<=y.i),y.C>=s)s=1;else if(A.ic||rr(),A.ic){A=y.V,C=y.Ba,Z=y.c;var lt=y.i,Q=(X=1,S=y.$/Z,I=y.$%Z,W=y.m,et=y.s,y.$),ft=Z*lt,pt=Z*s,_t=et.wc,bt=Q<pt?ln(et,I,S):null;n(Q<=ft),n(s<=lt),n(Qn(et));e:for(;;){for(;!W.h&&Q<pt;){if(I&_t||(bt=ln(et,I,S)),n(bt!=null),J(W),256>(lt=Me(bt.G[0],bt.H[0],W)))A[C+Q]=lt,++Q,++I>=Z&&(I=0,++S<=s&&!(S%16)&&tr(y,S));else{if(!(280>lt)){X=0;break e}lt=qn(lt-256,W);var Bt,Pt=Me(bt.G[4],bt.H[4],W);if(J(W),!(Q>=(Pt=Hn(Z,Pt=qn(Pt,W)))&&ft-Q>=lt)){X=0;break e}for(Bt=0;Bt<lt;++Bt)A[C+Q+Bt]=A[C+Q+Bt-Pt];for(Q+=lt,I+=lt;I>=Z;)I-=Z,++S<=s&&!(S%16)&&tr(y,S);Q<pt&&I&_t&&(bt=ln(et,I,S))}n(W.h==H(W))}tr(y,S>s?s:S);break e}!X||W.h&&Q<ft?(X=0,y.a=W.h?5:3):y.$=Q,s=X}else s=er(y,y.V,y.Ba,y.c,y.i,s,Ki);if(!s){g=0;break t}}u+g>=w&&(i.Cc=1),g=1}if(!g)return null;if(i.Cc&&((g=i.ga)!=null&&(g.mc=null),i.ga=null,0<i.Ga))return alert("todo:WebPDequantizeLevels"),null}return i.nb+u*b}function Qe(i,s,u,g,b,w){for(;0<b--;){var y,A=i,S=s+(u?1:0),I=i,W=s+(u?0:3);for(y=0;y<g;++y){var et=I[W+4*y];et!=255&&(et*=32897,A[S+4*y+0]=A[S+4*y+0]*et>>23,A[S+4*y+1]=A[S+4*y+1]*et>>23,A[S+4*y+2]=A[S+4*y+2]*et>>23)}s+=w}}function Xe(i,s,u,g,b){for(;0<g--;){var w;for(w=0;w<u;++w){var y=i[s+2*w+0],A=15&(I=i[s+2*w+1]),S=4369*A,I=(240&I|I>>4)*S>>16;i[s+2*w+0]=(240&y|y>>4)*S>>16&240|(15&y|y<<4)*S>>16>>4&15,i[s+2*w+1]=240&I|A}s+=b}}function hn(i,s,u,g,b,w,y,A){var S,I,W=255;for(I=0;I<b;++I){for(S=0;S<g;++S){var et=i[s+S];w[y+4*S]=et,W&=et}s+=u,y+=A}return W!=255}function Dr(i,s,u,g,b){var w;for(w=0;w<b;++w)u[g+w]=i[s+w]>>8}function rr(){Ka=Qe,Th=Xe,Rh=hn,Bh=Dr}function jr(i,s,u){M[i]=function(g,b,w,y,A,S,I,W,et,C,Z,X,lt,Q,ft,pt,_t){var bt,Bt=_t-1>>1,Pt=A[S+0]|I[W+0]<<16,re=et[C+0]|Z[X+0]<<16;n(g!=null);var Ft=3*Pt+re+131074>>2;for(s(g[b+0],255&Ft,Ft>>16,lt,Q),w!=null&&(Ft=3*re+Pt+131074>>2,s(w[y+0],255&Ft,Ft>>16,ft,pt)),bt=1;bt<=Bt;++bt){var ue=A[S+bt]|I[W+bt]<<16,en=et[C+bt]|Z[X+bt]<<16,ie=Pt+ue+re+en+524296,Ot=ie+2*(ue+re)>>3;Ft=Ot+Pt>>1,Pt=(ie=ie+2*(Pt+en)>>3)+ue>>1,s(g[b+2*bt-1],255&Ft,Ft>>16,lt,Q+(2*bt-1)*u),s(g[b+2*bt-0],255&Pt,Pt>>16,lt,Q+(2*bt-0)*u),w!=null&&(Ft=ie+re>>1,Pt=Ot+en>>1,s(w[y+2*bt-1],255&Ft,Ft>>16,ft,pt+(2*bt-1)*u),s(w[y+2*bt+0],255&Pt,Pt>>16,ft,pt+(2*bt+0)*u)),Pt=ue,re=en}1&_t||(Ft=3*Pt+re+131074>>2,s(g[b+_t-1],255&Ft,Ft>>16,lt,Q+(_t-1)*u),w!=null&&(Ft=3*re+Pt+131074>>2,s(w[y+_t-1],255&Ft,Ft>>16,ft,pt+(_t-1)*u)))}}function ja(){Kn[Yo]=a1,Kn[Ko]=Zh,Kn[qh]=o1,Kn[Xo]=$h,Kn[Jo]=Yh,Kn[sl]=Kh,Kn[Hh]=s1,Kn[ll]=Zh,Kn[hl]=$h,Kn[Qo]=Yh,Kn[fl]=Kh}function ia(i){return i&~l1?0>i?0:255:i>>Xh}function Xr(i,s){return ia((19077*i>>8)+(26149*s>>8)-14234)}function Pi(i,s,u){return ia((19077*i>>8)-(6419*s>>8)-(13320*u>>8)+8708)}function Ei(i,s){return ia((19077*i>>8)+(33050*s>>8)-17685)}function Jr(i,s,u,g,b){g[b+0]=Xr(i,u),g[b+1]=Pi(i,s,u),g[b+2]=Ei(i,s)}function fn(i,s,u,g,b){g[b+0]=Ei(i,s),g[b+1]=Pi(i,s,u),g[b+2]=Xr(i,u)}function Ii(i,s,u,g,b){var w=Pi(i,s,u);s=w<<3&224|Ei(i,s)>>3,g[b+0]=248&Xr(i,u)|w>>5,g[b+1]=s}function Ci(i,s,u,g,b){var w=240&Ei(i,s)|15;g[b+0]=240&Xr(i,u)|Pi(i,s,u)>>4,g[b+1]=w}function Ua(i,s,u,g,b){g[b+0]=255,Jr(i,s,u,g,b+1)}function za(i,s,u,g,b){fn(i,s,u,g,b),g[b+3]=255}function _n(i,s,u,g,b){Jr(i,s,u,g,b),g[b+3]=255}function Ur(i,s,u){M[i]=function(g,b,w,y,A,S,I,W,et){for(var C=W+(-2&et)*u;W!=C;)s(g[b+0],w[y+0],A[S+0],I,W),s(g[b+1],w[y+0],A[S+0],I,W+u),b+=2,++y,++S,W+=2*u;1&et&&s(g[b+0],w[y+0],A[S+0],I,W)}}function aa(i,s,u){return u==0?i==0?s==0?6:5:s==0?4:0:u}function Go(i,s,u,g,b){switch(i>>>30){case 3:Ri(s,u,g,b,0);break;case 2:$n(s,u,g,b);break;case 1:xe(s,u,g,b)}}function Zn(i,s){var u,g,b=s.M,w=s.Nb,y=i.oc,A=i.pc+40,S=i.oc,I=i.pc+584,W=i.oc,et=i.pc+600;for(u=0;16>u;++u)y[A+32*u-1]=129;for(u=0;8>u;++u)S[I+32*u-1]=129,W[et+32*u-1]=129;for(0<b?y[A-1-32]=S[I-1-32]=W[et-1-32]=129:(a(y,A-32-1,127,21),a(S,I-32-1,127,9),a(W,et-32-1,127,9)),g=0;g<i.za;++g){var C=s.ya[s.aa+g];if(0<g){for(u=-1;16>u;++u)r(y,A+32*u-4,y,A+32*u+12,4);for(u=-1;8>u;++u)r(S,I+32*u-4,S,I+32*u+4,4),r(W,et+32*u-4,W,et+32*u+4,4)}var Z=i.Gd,X=i.Hd+g,lt=C.ad,Q=C.Hc;if(0<b&&(r(y,A-32,Z[X].y,0,16),r(S,I-32,Z[X].f,0,8),r(W,et-32,Z[X].ea,0,8)),C.Za){var ft=y,pt=A-32+16;for(0<b&&(g>=i.za-1?a(ft,pt,Z[X].y[15],4):r(ft,pt,Z[X+1].y,0,4)),u=0;4>u;u++)ft[pt+128+u]=ft[pt+256+u]=ft[pt+384+u]=ft[pt+0+u];for(u=0;16>u;++u,Q<<=2)ft=y,pt=A+Qh[u],ir[C.Ob[u]](ft,pt),Go(Q,lt,16*+u,ft,pt)}else if(ft=aa(g,b,C.Ob[0]),oi[ft](y,A),Q!=0)for(u=0;16>u;++u,Q<<=2)Go(Q,lt,16*+u,y,A+Qh[u]);for(u=C.Gc,ft=aa(g,b,C.Dd),Hr[ft](S,I),Hr[ft](W,et),Q=lt,ft=S,pt=I,255&(C=0|u)&&(170&C?wr(Q,256,ft,pt):Se(Q,256,ft,pt)),C=W,Q=et,255&(u>>=8)&&(170&u?wr(lt,320,C,Q):Se(lt,320,C,Q)),b<i.Ub-1&&(r(Z[X].y,0,y,A+480,16),r(Z[X].f,0,S,I+224,8),r(Z[X].ea,0,W,et+224,8)),u=8*w*i.B,Z=i.sa,X=i.ta+16*g+16*w*i.R,lt=i.qa,C=i.ra+8*g+u,Q=i.Ha,ft=i.Ia+8*g+u,u=0;16>u;++u)r(Z,X+u*i.R,y,A+32*u,16);for(u=0;8>u;++u)r(lt,C+u*i.B,S,I+32*u,8),r(Q,ft+u*i.B,W,et+32*u,8)}}function Fi(i,s,u,g,b,w,y,A,S){var I=[0],W=[0],et=0,C=S!=null?S.kd:0,Z=S??new mt;if(i==null||12>u)return 7;Z.data=i,Z.w=s,Z.ha=u,s=[s],u=[u],Z.gb=[Z.gb];t:{var X=s,lt=u,Q=Z.gb;if(n(i!=null),n(lt!=null),n(Q!=null),Q[0]=0,12<=lt[0]&&!e(i,X[0],"RIFF")){if(e(i,X[0]+8,"WEBP")){Q=3;break t}var ft=jt(i,X[0]+4);if(12>ft||4294967286<ft){Q=3;break t}if(C&&ft>lt[0]-8){Q=7;break t}Q[0]=ft,X[0]+=12,lt[0]-=12}Q=0}if(Q!=0)return Q;for(ft=0<Z.gb[0],u=u[0];;){t:{var pt=i;lt=s,Q=u;var _t=I,bt=W,Bt=X=[0];if((Ft=et=[et])[0]=0,8>Q[0])Q=7;else{if(!e(pt,lt[0],"VP8X")){if(jt(pt,lt[0]+4)!=10){Q=3;break t}if(18>Q[0]){Q=7;break t}var Pt=jt(pt,lt[0]+8),re=1+St(pt,lt[0]+12);if(2147483648<=re*(pt=1+St(pt,lt[0]+15))){Q=3;break t}Bt!=null&&(Bt[0]=Pt),_t!=null&&(_t[0]=re),bt!=null&&(bt[0]=pt),lt[0]+=18,Q[0]-=18,Ft[0]=1}Q=0}}if(et=et[0],X=X[0],Q!=0)return Q;if(lt=!!(2&X),!ft&&et)return 3;if(w!=null&&(w[0]=!!(16&X)),y!=null&&(y[0]=lt),A!=null&&(A[0]=0),y=I[0],X=W[0],et&<&&S==null){Q=0;break}if(4>u){Q=7;break}if(ft&&et||!ft&&!et&&!e(i,s[0],"ALPH")){u=[u],Z.na=[Z.na],Z.P=[Z.P],Z.Sa=[Z.Sa];t:{Pt=i,Q=s,ft=u;var Ft=Z.gb;_t=Z.na,bt=Z.P,Bt=Z.Sa,re=22,n(Pt!=null),n(ft!=null),pt=Q[0];var ue=ft[0];for(n(_t!=null),n(Bt!=null),_t[0]=null,bt[0]=null,Bt[0]=0;;){if(Q[0]=pt,ft[0]=ue,8>ue){Q=7;break t}var en=jt(Pt,pt+4);if(4294967286<en){Q=3;break t}var ie=8+en+1&-2;if(re+=ie,0<Ft&&re>Ft){Q=3;break t}if(!e(Pt,pt,"VP8 ")||!e(Pt,pt,"VP8L")){Q=0;break t}if(ue[0]<ie){Q=7;break t}e(Pt,pt,"ALPH")||(_t[0]=Pt,bt[0]=pt+8,Bt[0]=en),pt+=ie,ue-=ie}}if(u=u[0],Z.na=Z.na[0],Z.P=Z.P[0],Z.Sa=Z.Sa[0],Q!=0)break}u=[u],Z.Ja=[Z.Ja],Z.xa=[Z.xa];t:if(Ft=i,Q=s,ft=u,_t=Z.gb[0],bt=Z.Ja,Bt=Z.xa,Pt=Q[0],pt=!e(Ft,Pt,"VP8 "),re=!e(Ft,Pt,"VP8L"),n(Ft!=null),n(ft!=null),n(bt!=null),n(Bt!=null),8>ft[0])Q=7;else{if(pt||re){if(Ft=jt(Ft,Pt+4),12<=_t&&Ft>_t-12){Q=3;break t}if(C&&Ft>ft[0]-8){Q=7;break t}bt[0]=Ft,Q[0]+=8,ft[0]-=8,Bt[0]=re}else Bt[0]=5<=ft[0]&&Ft[Pt+0]==47&&!(Ft[Pt+4]>>5),bt[0]=ft[0];Q=0}if(u=u[0],Z.Ja=Z.Ja[0],Z.xa=Z.xa[0],s=s[0],Q!=0)break;if(4294967286<Z.Ja)return 3;if(A==null||lt||(A[0]=Z.xa?2:1),y=[y],X=[X],Z.xa){if(5>u){Q=7;break}A=y,C=X,lt=w,i==null||5>u?i=0:5<=u&&i[s+0]==47&&!(i[s+4]>>5)?(ft=[0],Ft=[0],_t=[0],ct(bt=new R,i,s,u),Ir(bt,ft,Ft,_t)?(A!=null&&(A[0]=ft[0]),C!=null&&(C[0]=Ft[0]),lt!=null&&(lt[0]=_t[0]),i=1):i=0):i=0}else{if(10>u){Q=7;break}A=X,i==null||10>u||!To(i,s+3,u-3)?i=0:(C=i[s+0]|i[s+1]<<8|i[s+2]<<16,lt=16383&(i[s+7]<<8|i[s+6]),i=16383&(i[s+9]<<8|i[s+8]),1&C||3<(C>>1&7)||!(C>>4&1)||C>>5>=Z.Ja||!lt||!i?i=0:(y&&(y[0]=lt),A&&(A[0]=i),i=1))}if(!i||(y=y[0],X=X[0],et&&(I[0]!=y||W[0]!=X)))return 3;S!=null&&(S[0]=Z,S.offset=s-S.w,n(4294967286>s-S.w),n(S.offset==S.ha-u));break}return Q==0||Q==7&&et&&S==null?(w!=null&&(w[0]|=Z.na!=null&&0<Z.na.length),g!=null&&(g[0]=y),b!=null&&(b[0]=X),0):Q}function qa(i,s,u){var g=s.width,b=s.height,w=0,y=0,A=g,S=b;if(s.Da=i!=null&&0<i.Da,s.Da&&(A=i.cd,S=i.bd,w=i.v,y=i.j,11>u||(w&=-2,y&=-2),0>w||0>y||0>=A||0>=S||w+A>g||y+S>b))return 0;if(s.v=w,s.j=y,s.va=w+A,s.o=y+S,s.U=A,s.T=S,s.da=i!=null&&0<i.da,s.da){if(!Ht(A,S,u=[i.ib],w=[i.hb]))return 0;s.ib=u[0],s.hb=w[0]}return s.ob=i!=null&&i.ob,s.Kb=i==null||!i.Sd,s.da&&(s.ob=s.ib<3*g/4&&s.hb<3*b/4,s.Kb=0),1}function Ha(i){if(i==null)return 2;if(11>i.S){var s=i.f.RGBA;s.fb+=(i.height-1)*s.A,s.A=-s.A}else s=i.f.kb,i=i.height,s.O+=(i-1)*s.fa,s.fa=-s.fa,s.N+=(i-1>>1)*s.Ab,s.Ab=-s.Ab,s.W+=(i-1>>1)*s.Db,s.Db=-s.Db,s.F!=null&&(s.J+=(i-1)*s.lb,s.lb=-s.lb);return 0}function Qr(i,s,u,g){if(g==null||0>=i||0>=s)return 2;if(u!=null){if(u.Da){var b=u.cd,w=u.bd,y=-2&u.v,A=-2&u.j;if(0>y||0>A||0>=b||0>=w||y+b>i||A+w>s)return 2;i=b,s=w}if(u.da){if(!Ht(i,s,b=[u.ib],w=[u.hb]))return 2;i=b[0],s=w[0]}}g.width=i,g.height=s;t:{var S=g.width,I=g.height;if(i=g.S,0>=S||0>=I||!(i>=Yo&&13>i))i=2;else{if(0>=g.Rd&&g.sd==null){y=w=b=s=0;var W=(A=S*tf[i])*I;if(11>i||(w=(I+1)/2*(s=(S+1)/2),i==12&&(y=(b=S)*I)),(I=o(W+2*w+y))==null){i=1;break t}g.sd=I,11>i?((S=g.f.RGBA).eb=I,S.fb=0,S.A=A,S.size=W):((S=g.f.kb).y=I,S.O=0,S.fa=A,S.Fd=W,S.f=I,S.N=0+W,S.Ab=s,S.Cd=w,S.ea=I,S.W=0+W+w,S.Db=s,S.Ed=w,i==12&&(S.F=I,S.J=0+W+2*w),S.Tc=y,S.lb=b)}if(s=1,b=g.S,w=g.width,y=g.height,b>=Yo&&13>b)if(11>b)i=g.f.RGBA,s&=(A=Math.abs(i.A))*(y-1)+w<=i.size,s&=A>=w*tf[b],s&=i.eb!=null;else{i=g.f.kb,A=(w+1)/2,W=(y+1)/2,S=Math.abs(i.fa),I=Math.abs(i.Ab);var et=Math.abs(i.Db),C=Math.abs(i.lb),Z=C*(y-1)+w;s&=S*(y-1)+w<=i.Fd,s&=I*(W-1)+A<=i.Cd,s=(s&=et*(W-1)+A<=i.Ed)&S>=w&I>=A&et>=A,s&=i.y!=null,s&=i.f!=null,s&=i.ea!=null,b==12&&(s&=C>=w,s&=Z<=i.Tc,s&=i.F!=null)}else s=0;i=s?0:2}}return i!=0||u!=null&&u.fd&&(i=Ha(g)),i}var Oi=64,Cn=[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],Fn=24,ti=32,zr=8,ei=[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];Et("Predictor0","PredictorAdd0"),M.Predictor0=function(){return 4278190080},M.Predictor1=function(i){return i},M.Predictor2=function(i,s,u){return s[u+0]},M.Predictor3=function(i,s,u){return s[u+1]},M.Predictor4=function(i,s,u){return s[u-1]},M.Predictor5=function(i,s,u){return Ut(Ut(i,s[u+1]),s[u+0])},M.Predictor6=function(i,s,u){return Ut(i,s[u-1])},M.Predictor7=function(i,s,u){return Ut(i,s[u+0])},M.Predictor8=function(i,s,u){return Ut(s[u-1],s[u+0])},M.Predictor9=function(i,s,u){return Ut(s[u+0],s[u+1])},M.Predictor10=function(i,s,u){return Ut(Ut(i,s[u-1]),Ut(s[u+0],s[u+1]))},M.Predictor11=function(i,s,u){var g=s[u+0];return 0>=Jt(g>>24&255,i>>24&255,(s=s[u-1])>>24&255)+Jt(g>>16&255,i>>16&255,s>>16&255)+Jt(g>>8&255,i>>8&255,s>>8&255)+Jt(255&g,255&i,255&s)?g:i},M.Predictor12=function(i,s,u){var g=s[u+0];return(ye((i>>24&255)+(g>>24&255)-((s=s[u-1])>>24&255))<<24|ye((i>>16&255)+(g>>16&255)-(s>>16&255))<<16|ye((i>>8&255)+(g>>8&255)-(s>>8&255))<<8|ye((255&i)+(255&g)-(255&s)))>>>0},M.Predictor13=function(i,s,u){var g=s[u-1];return(he((i=Ut(i,s[u+0]))>>24&255,g>>24&255)<<24|he(i>>16&255,g>>16&255)<<16|he(i>>8&255,g>>8&255)<<8|he(255&i,255&g))>>>0};var Wa=M.PredictorAdd0;M.PredictorAdd1=ce,Et("Predictor2","PredictorAdd2"),Et("Predictor3","PredictorAdd3"),Et("Predictor4","PredictorAdd4"),Et("Predictor5","PredictorAdd5"),Et("Predictor6","PredictorAdd6"),Et("Predictor7","PredictorAdd7"),Et("Predictor8","PredictorAdd8"),Et("Predictor9","PredictorAdd9"),Et("Predictor10","PredictorAdd10"),Et("Predictor11","PredictorAdd11"),Et("Predictor12","PredictorAdd12"),Et("Predictor13","PredictorAdd13");var oa=M.PredictorAdd2;Mt("ColorIndexInverseTransform","MapARGB","32b",function(i){return i>>8&255},function(i){return i}),Mt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(i){return i},function(i){return i>>8&255});var qe,Vo=M.ColorIndexInverseTransform,mr=M.MapARGB,br=M.VP8LColorIndexInverseTransformAlpha,Ga=M.MapAlpha,Va=M.VP8LPredictorsAdd=[];Va.length=16,(M.VP8LPredictors=[]).length=16,(M.VP8LPredictorsAdd_C=[]).length=16,(M.VP8LPredictors_C=[]).length=16;var Za,$a,ni,ri,ii,Ti,ai,Ri,$n,wr,xe,Se,He,tn,qr,Ya,sa,Zo,Ph,Eh,Ih,Ch,Fh,Oh,Ka,Th,Rh,Bh,Mh=o(511),Dh=o(2041),jh=o(225),Uh=o(767),zh=0,ol=Dh,$o=jh,On=Uh,Yn=Mh,Yo=0,Ko=1,qh=2,Xo=3,Jo=4,sl=5,Hh=6,ll=7,hl=8,Qo=9,fl=10,Gu=[2,3,7],Vu=[3,3,11],Wh=[280,256,256,256,40],Zu=[0,1,1,1,0],$u=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Yu=[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],Ku=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Xu=8,cl=[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],ul=[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],
vendor: 7,061 bytes, line 41
41Xa=null,Ju=[[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]],Qu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Gh=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],t1=[[[[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]]]],e1=[[[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,25
415,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]]],n1=[[[[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,25
vendor: 16,212 bytes, line 41
415,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]]]],r1=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],oi=[],ir=[],Hr=[],i1=1,Vh=2,si=[],Kn=[];jr("UpsampleRgbLinePair",Jr,3),jr("UpsampleBgrLinePair",fn,3),jr("UpsampleRgbaLinePair",_n,4),jr("UpsampleBgraLinePair",za,4),jr("UpsampleArgbLinePair",Ua,4),jr("UpsampleRgba4444LinePair",Ci,2),jr("UpsampleRgb565LinePair",Ii,2);var a1=M.UpsampleRgbLinePair,o1=M.UpsampleBgrLinePair,Zh=M.UpsampleRgbaLinePair,$h=M.UpsampleBgraLinePair,Yh=M.UpsampleArgbLinePair,Kh=M.UpsampleRgba4444LinePair,s1=M.UpsampleRgb565LinePair,ts=16,es=1<<ts-1,Ja=-227,dl=482,Xh=6,l1=(256<<Xh)-1,Jh=0,h1=o(256),f1=o(256),c1=o(256),u1=o(256),d1=o(dl-Ja),p1=o(dl-Ja);Ur("YuvToRgbRow",Jr,3),Ur("YuvToBgrRow",fn,3),Ur("YuvToRgbaRow",_n,4),Ur("YuvToBgraRow",za,4),Ur("YuvToArgbRow",Ua,4),Ur("YuvToRgba4444Row",Ci,2),Ur("YuvToRgb565Row",Ii,2);var Qh=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],ns=[0,2,8],g1=[8,7,6,4,4,2,2,2,1,1,1,1],v1=1;this.WebPDecodeRGBA=function(i,s,u,g,b){var w=Ko,y=new dt,A=new le;y.ba=A,A.S=w,A.width=[A.width],A.height=[A.height];var S=A.width,I=A.height,W=new Gt;if(W==null||i==null)var et=2;else n(W!=null),et=Fi(i,s,u,W.width,W.height,W.Pd,W.Qd,W.format,null);if(et!=0?S=0:(S!=null&&(S[0]=W.width[0]),I!=null&&(I[0]=W.height[0]),S=1),S){A.width=A.width[0],A.height=A.height[0],g!=null&&(g[0]=A.width),b!=null&&(b[0]=A.height);t:{if(g=new Qi,(b=new mt).data=i,b.w=s,b.ha=u,b.kd=1,s=[0],n(b!=null),((i=Fi(b.data,b.w,b.ha,null,null,null,s,null,b))==0||i==7)&&s[0]&&(i=4),(s=i)==0){if(n(y!=null),g.data=b.data,g.w=b.w+b.offset,g.ha=b.ha-b.offset,g.put=Vt,g.ac=cr,g.bc=Er,g.ma=y,b.xa){if((i=_i())==null){y=1;break t}if((function(C,Z){var X=[0],lt=[0],Q=[0];e:for(;;){if(C==null)return 0;if(Z==null)return C.a=2,0;if(C.l=Z,C.a=0,ct(C.m,Z.data,Z.w,Z.ha),!Ir(C.m,X,lt,Q)){C.a=3;break e}if(C.xb=Vh,Z.width=X[0],Z.height=lt[0],!dr(X[0],lt[0],1,C,null))break e;return 1}return n(C.a!=0),0})(i,g)){if(g=(s=Qr(g.width,g.height,y.Oa,y.ba))==0){e:{g=i;n:for(;;){if(g==null){g=0;break e}if(n(g.s.yc!=null),n(g.s.Ya!=null),n(0<g.s.Wb),n((u=g.l)!=null),n((b=u.ma)!=null),g.xb!=0){if(g.ca=b.ba,g.tb=b.tb,n(g.ca!=null),!qa(b.Oa,u,Xo)){g.a=2;break n}if(!xi(g,u.width)||u.da)break n;if((u.da||Zt(g.ca.S))&&rr(),11>g.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),g.ca.f.kb.F!=null&&rr()),g.Pb&&0<g.s.ua&&g.s.vb.X==null&&!P(g.s.vb,g.s.Wa.Xa)){g.a=1;break n}g.xb=0}if(!er(g,g.V,g.Ba,g.c,g.i,u.o,Kr))break n;b.Dc=g.Ma,g=1;break e}n(g.a!=0),g=0}g=!g}g&&(s=i.a)}else s=i.a}else{if((i=new Gs)==null){y=1;break t}if(i.Fa=b.na,i.P=b.P,i.qc=b.Sa,gr(i,g)){if((s=Qr(g.width,g.height,y.Oa,y.ba))==0){if(i.Aa=0,u=y.Oa,n((b=i)!=null),u!=null){if(0<(S=0>(S=u.Md)?0:100<S?255:255*S/100)){for(I=W=0;4>I;++I)12>(et=b.pb[I]).lc&&(et.ia=S*g1[0>et.lc?0:et.lc]>>3),W|=et.ia;W&&(alert("todo:VP8InitRandom"),b.ia=1)}b.Ga=u.Id,100<b.Ga?b.Ga=100:0>b.Ga&&(b.Ga=0)}(function(C,Z){if(C==null)return 0;if(Z==null)return Ye(C,2,"NULL VP8Io parameter in VP8Decode().");if(!C.cb&&!gr(C,Z))return 0;if(n(C.cb),Z.ac==null||Z.ac(Z)){Z.ob&&(C.L=0);var X=ns[C.L];if(C.L==2?(C.yb=0,C.zb=0):(C.yb=Z.v-X>>4,C.zb=Z.j-X>>4,0>C.yb&&(C.yb=0),0>C.zb&&(C.zb=0)),C.Va=Z.o+15+X>>4,C.Hb=Z.va+15+X>>4,C.Hb>C.za&&(C.Hb=C.za),C.Va>C.Ub&&(C.Va=C.Ub),0<C.L){var lt=C.ed;for(X=0;4>X;++X){var Q;if(C.Qa.Cb){var ft=C.Qa.Lb[X];C.Qa.Fb||(ft+=lt.Tb)}else ft=lt.Tb;for(Q=0;1>=Q;++Q){var pt=C.gd[X][Q],_t=ft;if(lt.Pc&&(_t+=lt.vd[0],Q&&(_t+=lt.od[0])),0<(_t=0>_t?0:63<_t?63:_t)){var bt=_t;0<lt.wb&&(bt=4<lt.wb?bt>>2:bt>>1)>9-lt.wb&&(bt=9-lt.wb),1>bt&&(bt=1),pt.dd=bt,pt.tc=2*_t+bt,pt.ld=40<=_t?2:15<=_t?1:0}else pt.tc=0;pt.La=Q}}}X=0}else Ye(C,6,"Frame setup failed"),X=C.a;if(X=X==0){if(X){C.$c=0,0<C.Aa||(C.Ic=v1);e:{X=C.Ic,lt=4*(bt=C.za);var Bt=32*bt,Pt=bt+1,re=0<C.L?bt*(0<C.Aa?2:1):0,Ft=(C.Aa==2?2:1)*bt;if((pt=lt+832+(Q=3*(16*X+ns[C.L])/2*Bt)+(ft=C.Fa!=null&&0<C.Fa.length?C.Kc.c*C.Kc.i:0))!=pt)X=0;else{if(pt>C.Vb){if(C.Vb=0,C.Ec=o(pt),C.Fc=0,C.Ec==null){X=Ye(C,1,"no memory during frame initialization.");break e}C.Vb=pt}pt=C.Ec,_t=C.Fc,C.Ac=pt,C.Bc=_t,_t+=lt,C.Gd=c(Bt,Fo),C.Hd=0,C.rb=c(Pt+1,Ea),C.sb=1,C.wa=re?c(re,Gn):null,C.Y=0,C.D.Nb=0,C.D.wa=C.wa,C.D.Y=C.Y,0<C.Aa&&(C.D.Y+=bt),n(!0),C.oc=pt,C.pc=_t,_t+=832,C.ya=c(Ft,Ia),C.aa=0,C.D.ya=C.ya,C.D.aa=C.aa,C.Aa==2&&(C.D.aa+=bt),C.R=16*bt,C.B=8*bt,bt=(Bt=ns[C.L])*C.R,Bt=Bt/2*C.B,C.sa=pt,C.ta=_t+bt,C.qa=C.sa,C.ra=C.ta+16*X*C.R+Bt,C.Ha=C.qa,C.Ia=C.ra+8*X*C.B+Bt,C.$c=0,_t+=Q,C.mb=ft?pt:null,C.nb=ft?_t:null,n(_t+ft<=C.Fc+C.Vb),Ro(C),a(C.Ac,C.Bc,0,lt),X=1}}if(X){if(Z.ka=0,Z.y=C.sa,Z.O=C.ta,Z.f=C.qa,Z.N=C.ra,Z.ea=C.Ha,Z.Vd=C.Ia,Z.fa=C.R,Z.Rc=C.B,Z.F=null,Z.J=0,!zh){for(X=-255;255>=X;++X)Mh[255+X]=0>X?-X:X;for(X=-1020;1020>=X;++X)Dh[1020+X]=-128>X?-128:127<X?127:X;for(X=-112;112>=X;++X)jh[112+X]=-16>X?-16:15<X?15:X;for(X=-255;510>=X;++X)Uh[255+X]=0>X?0:255<X?255:X;zh=1}ai=ea,Ri=Zs,wr=vr,xe=Mo,Se=Do,$n=Vs,He=Ho,tn=ki,qr=m,Ya=O,sa=Wo,Zo=h,Ph=U,Eh=K,Ih=Si,Ch=Da,Fh=zo,Oh=qo,ir[0]=el,ir[1]=$s,ir[2]=Qs,ir[3]=tl,ir[4]=Fr,ir[5]=nl,ir[6]=Or,ir[7]=rl,ir[8]=Oa,ir[9]=na,oi[0]=Xs,oi[1]=Ks,oi[2]=Ca,oi[3]=jo,oi[4]=Ni,oi[5]=Fa,oi[6]=Js,Hr[0]=al,Hr[1]=Ys,Hr[2]=Li,Hr[3]=il,Hr[4]=Ra,Hr[5]=Ta,Hr[6]=Uo,X=1}else X=0}X&&(X=(function(ue,en){for(ue.M=0;ue.M<ue.Va;++ue.M){var ie,Ot=ue.Jc[ue.M&ue.Xb],Nt=ue.m,We=ue;for(ie=0;ie<We.za;++ie){var te=Nt,de=We,Fe=de.Ac,cn=de.Bc+4*ie,xn=de.zc,De=de.ya[de.aa+ie];if(de.Qa.Bb?De.$b=gt(te,de.Pa.jb[0])?2+gt(te,de.Pa.jb[2]):gt(te,de.Pa.jb[1]):De.$b=0,de.kc&&(De.Ad=gt(te,de.Bd)),De.Za=!gt(te,145)+0,De.Za){var vn=De.Ob,An=0;for(de=0;4>de;++de){var nn,ve=xn[0+de];for(nn=0;4>nn;++nn){ve=e1[Fe[cn+nn]][ve];for(var Ae=Gh[gt(te,ve[0])];0<Ae;)Ae=Gh[2*Ae+gt(te,ve[Ae])];ve=-Ae,Fe[cn+nn]=ve}r(vn,An,Fe,cn,4),An+=4,xn[0+de]=ve}}else ve=gt(te,156)?gt(te,128)?1:3:gt(te,163)?2:0,De.Ob[0]=ve,a(Fe,cn,ve,4),a(xn,0,ve,4);De.Dd=gt(te,142)?gt(te,114)?gt(te,183)?1:3:2:0}if(We.m.Ka)return Ye(ue,7,"Premature end-of-partition0 encountered.");for(;ue.ja<ue.za;++ue.ja){if(We=Ot,te=(Nt=ue).rb[Nt.sb-1],Fe=Nt.rb[Nt.sb+Nt.ja],ie=Nt.ya[Nt.aa+Nt.ja],cn=Nt.kc?ie.Ad:0)te.la=Fe.la=0,ie.Za||(te.Na=Fe.Na=0),ie.Hc=0,ie.Gc=0,ie.ia=0;else{var je,Ne;if(te=Fe,Fe=We,cn=Nt.Pa.Xc,xn=Nt.ya[Nt.aa+Nt.ja],De=Nt.pb[xn.$b],de=xn.ad,vn=0,An=Nt.rb[Nt.sb-1],ve=nn=0,a(de,vn,0,384),xn.Za)var un=0,ar=cn[3];else{Ae=o(16);var Ge=te.Na+An.Na;if(Ge=Xa(Fe,cn[1],Ge,De.Eb,0,Ae,0),te.Na=An.Na=(0<Ge)+0,1<Ge)ai(Ae,0,de,vn);else{var kn=Ae[0]+3>>3;for(Ae=0;256>Ae;Ae+=16)de[vn+Ae]=kn}un=1,ar=cn[0]}var ke=15&te.la,rn=15&An.la;for(Ae=0;4>Ae;++Ae){var Tn=1&rn;for(kn=Ne=0;4>kn;++kn)ke=ke>>1|(Tn=(Ge=Xa(Fe,ar,Ge=Tn+(1&ke),De.Sc,un,de,vn))>un)<<7,Ne=Ne<<2|(3<Ge?3:1<Ge?2:de[vn+0]!=0),vn+=16;ke>>=4,rn=rn>>1|Tn<<7,nn=(nn<<8|Ne)>>>0}for(ar=ke,un=rn>>4,je=0;4>je;je+=2){for(Ne=0,ke=te.la>>4+je,rn=An.la>>4+je,Ae=0;2>Ae;++Ae){for(Tn=1&rn,kn=0;2>kn;++kn)Ge=Tn+(1&ke),ke=ke>>1|(Tn=0<(Ge=Xa(Fe,cn[2],Ge,De.Qc,0,de,vn)))<<3,Ne=Ne<<2|(3<Ge?3:1<Ge?2:de[vn+0]!=0),vn+=16;ke>>=2,rn=rn>>1|Tn<<5}ve|=Ne<<4*je,ar|=ke<<4<<je,un|=(240&rn)<<je}te.la=ar,An.la=un,xn.Hc=nn,xn.Gc=ve,xn.ia=43690&ve?0:De.ia,cn=!(nn|ve)}if(0<Nt.L&&(Nt.wa[Nt.Y+Nt.ja]=Nt.gd[ie.$b][ie.Za],Nt.wa[Nt.Y+Nt.ja].La|=!cn),We.Ka)return Ye(ue,7,"Premature end-of-file encountered.")}if(Ro(ue),Nt=en,We=1,ie=(Ot=ue).D,te=0<Ot.L&&Ot.M>=Ot.zb&&Ot.M<=Ot.Va,Ot.Aa==0)e:{if(ie.M=Ot.M,ie.uc=te,Zn(Ot,ie),We=1,ie=(Ne=Ot.D).Nb,te=(ve=ns[Ot.L])*Ot.R,Fe=ve/2*Ot.B,Ae=16*ie*Ot.R,kn=8*ie*Ot.B,cn=Ot.sa,xn=Ot.ta-te+Ae,De=Ot.qa,de=Ot.ra-Fe+kn,vn=Ot.Ha,An=Ot.Ia-Fe+kn,rn=(ke=Ne.M)==0,nn=ke>=Ot.Va-1,Ot.Aa==2&&Zn(Ot,Ne),Ne.uc)for(Tn=(Ge=Ot).D.M,n(Ge.D.uc),Ne=Ge.yb;Ne<Ge.Hb;++Ne){un=Ne,ar=Tn;var Nn=(Rn=(dn=Ge).D).Nb;je=dn.R;var Rn=Rn.wa[Rn.Y+un],Bn=dn.sa,Pn=dn.ta+16*Nn*je+16*un,Mn=Rn.dd,Ce=Rn.tc;if(Ce!=0)if(n(3<=Ce),dn.L==1)0<un&&Ch(Bn,Pn,je,Ce+4),Rn.La&&Oh(Bn,Pn,je,Ce),0<ar&&Ih(Bn,Pn,je,Ce+4),Rn.La&&Fh(Bn,Pn,je,Ce);else{var Dn=dn.B,or=dn.qa,Bi=dn.ra+8*Nn*Dn+8*un,Wr=dn.Ha,dn=dn.Ia+8*Nn*Dn+8*un;Nn=Rn.ld,0<un&&(tn(Bn,Pn,je,Ce+4,Mn,Nn),Ya(or,Bi,Wr,dn,Dn,Ce+4,Mn,Nn)),Rn.La&&(Zo(Bn,Pn,je,Ce,Mn,Nn),Eh(or,Bi,Wr,dn,Dn,Ce,Mn,Nn)),0<ar&&(He(Bn,Pn,je,Ce+4,Mn,Nn),qr(or,Bi,Wr,dn,Dn,Ce+4,Mn,Nn)),Rn.La&&(sa(Bn,Pn,je,Ce,Mn,Nn),Ph(or,Bi,Wr,dn,Dn,Ce,Mn,Nn))}}if(Ot.ia&&alert("todo:DitherRow"),Nt.put!=null){if(Ne=16*ke,ke=16*(ke+1),rn?(Nt.y=Ot.sa,Nt.O=Ot.ta+Ae,Nt.f=Ot.qa,Nt.N=Ot.ra+kn,Nt.ea=Ot.Ha,Nt.W=Ot.Ia+kn):(Ne-=ve,Nt.y=cn,Nt.O=xn,Nt.f=De,Nt.N=de,Nt.ea=vn,Nt.W=An),nn||(ke-=ve),ke>Nt.o&&(ke=Nt.o),Nt.F=null,Nt.J=null,Ot.Fa!=null&&0<Ot.Fa.length&&Ne<ke&&(Nt.J=Ie(Ot,Nt,Ne,ke-Ne),Nt.F=Ot.mb,Nt.F==null&&Nt.F.length==0)){We=Ye(Ot,3,"Could not decode alpha data.");break e}Ne<Nt.j&&(ve=Nt.j-Ne,Ne=Nt.j,n(!(1&ve)),Nt.O+=Ot.R*ve,Nt.N+=Ot.B*(ve>>1),Nt.W+=Ot.B*(ve>>1),Nt.F!=null&&(Nt.J+=Nt.width*ve)),Ne<ke&&(Nt.O+=Nt.v,Nt.N+=Nt.v>>1,Nt.W+=Nt.v>>1,Nt.F!=null&&(Nt.J+=Nt.v),Nt.ka=Ne-Nt.j,Nt.U=Nt.va-Nt.v,Nt.T=ke-Ne,We=Nt.put(Nt))}ie+1!=Ot.Ic||nn||(r(Ot.sa,Ot.ta-te,cn,xn+16*Ot.R,te),r(Ot.qa,Ot.ra-Fe,De,de+8*Ot.B,Fe),r(Ot.Ha,Ot.Ia-Fe,vn,An+8*Ot.B,Fe))}if(!We)return Ye(ue,6,"Output aborted.")}return 1})(C,Z)),Z.bc!=null&&Z.bc(Z),X&=1}return X?(C.cb=0,X):0})(i,g)||(s=i.a)}}else s=i.a}s==0&&y.Oa!=null&&y.Oa.fd&&(s=Ha(y.ba))}y=s}w=y!=0?null:11>w?A.f.RGBA.eb:A.f.kb.y}else w=null;return w};var tf=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function d(M,tt){for(var L="",F=0;F<4;F++)L+=String.fromCharCode(M[tt++]);return L}function v(M,tt){return M[tt+0]|M[tt+1]<<8}function x(M,tt){return(M[tt+0]|M[tt+1]<<8|M[tt+2]<<16)>>>0}function N(M,tt){return(M[tt+0]|M[tt+1]<<8|M[tt+2]<<16|M[tt+3]<<24)>>>0}new f;var p=[0],T=[0],E=[],B=new f,k=t,G=(function(M,tt){var L={},F=0,q=!1,z=0,rt=0;if(L.frames=[],!(function(_,R){for(var D=0;D<4;D++)if(_[R+D]!="RIFF".charCodeAt(D))return!0;return!1})(M,tt)){for(N(M,tt+=4),tt+=8;tt<M.length;){var st=d(M,tt),ht=N(M,tt+=4);tt+=4;var nt=ht+(1&ht);switch(st){case"VP8 ":case"VP8L":L.frames[F]===void 0&&(L.frames[F]={}),(wt=L.frames[F]).src_off=q?rt:tt-8,wt.src_size=z+ht+8,F++,q&&(q=!1,z=0,rt=0);break;case"VP8X":(wt=L.header={}).feature_flags=M[tt];var ct=tt+4;wt.canvas_width=1+x(M,ct),ct+=3,wt.canvas_height=1+x(M,ct),ct+=3;break;case"ALPH":q=!0,z=nt+8,rt=tt-8;break;case"ANIM":(wt=L.header).bgcolor=N(M,tt),ct=tt+4,wt.loop_count=v(M,ct),ct+=2;break;case"ANMF":var At,wt;(wt=L.frames[F]={}).offset_x=2*x(M,tt),tt+=3,wt.offset_y=2*x(M,tt),tt+=3,wt.width=1+x(M,tt),tt+=3,wt.height=1+x(M,tt),tt+=3,wt.duration=x(M,tt),tt+=3,At=M[tt++],wt.dispose=1&At,wt.blend=At>>1&1}st!="ANMF"&&(tt+=nt)}return L}})(k,0);G.response=k,G.rgbaoutput=!0,G.dataurl=!1;var V=G.header?G.header:null,j=G.frames?G.frames:null;if(V){V.loop_counter=V.loop_count,p=[V.canvas_height],T=[V.canvas_width];for(var it=0;it<j.length&&j[it].blend!=0;it++);}var vt=j[0],ut=B.WebPDecodeRGBA(k,vt.src_off,vt.src_size,T,p);vt.rgba=ut,vt.imgwidth=T[0],vt.imgheight=p[0];for(var Y=0;Y<T[0]*p[0]*4;Y++)E[Y]=ut[Y];return this.width=T,this.height=p,this.data=E,this}(function(t){var n,e,r,a,o,c,l,f,d,v=function(_){return _=_||{},this.isStrokeTransparent=_.isStrokeTransparent||!1,this.strokeOpacity=_.strokeOpacity||1,this.strokeStyle=_.strokeStyle||"#000000",this.fillStyle=_.fillStyle||"#000000",this.isFillTransparent=_.isFillTransparent||!1,this.fillOpacity=_.fillOpacity||1,this.font=_.font||"10px sans-serif",this.textBaseline=_.textBaseline||"alphabetic",this.textAlign=_.textAlign||"left",this.lineWidth=_.lineWidth||1,this.lineJoin=_.lineJoin||"miter",this.lineCap=_.lineCap||"butt",this.path=_.path||[],this.transform=_.transform!==void 0?_.transform.clone():new f,this.globalCompositeOperation=_.globalCompositeOperation||"normal",this.globalAlpha=_.globalAlpha||1,this.clip_path=_.clip_path||[],this.currentPoint=_.currentPoint||new c,this.miterLimit=_.miterLimit||10,this.lastPoint=_.lastPoint||new c,this.lineDashOffset=_.lineDashOffset||0,this.lineDash=_.lineDash||[],this.margin=_.margin||[0,0,0,0],this.prevPageLastElemOffset=_.prevPageLastElemOffset||0,this.ignoreClearRect=typeof _.ignoreClearRect!="boolean"||_.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new x(this),n=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,c=this.internal.Point,l=this.internal.Rectangle,f=this.internal.Matrix,d=new v}]);var x=function(_){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var R=_;Object.defineProperty(this,"pdf",{get:function(){return R}});var D=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return D},set:function(P){D=!!P}});var H=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return H},set:function(P){H=!!P}});var $=0;Object.defineProperty(this,"posX",{get:function(){return $},set:function(P){isNaN(P)||($=P)}});var J=0;Object.defineProperty(this,"posY",{get:function(){return J},set:function(P){isNaN(P)||(J=P)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(P){var Lt;typeof P=="number"?Lt=[P,P,P,P]:((Lt=new Array(4))[0]=P[0],Lt[1]=P.length>=2?P[1]:Lt[0],Lt[2]=P.length>=3?P[2]:Lt[0],Lt[3]=P.length>=4?P[3]:Lt[1]),d.margin=Lt}});var at=!1;Object.defineProperty(this,"autoPaging",{get:function(){return at},set:function(P){at=P}});var ot=0;Object.defineProperty(this,"lastBreak",{get:function(){return ot},set:function(P){ot=P}});var gt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return gt},set:function(P){gt=P}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(P){P instanceof v&&(d=P)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(P){d.path=P}});var xt=[];Object.defineProperty(this,"ctxStack",{get:function(){return xt},set:function(P){xt=P}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(P){var Lt;Lt=N(P),this.ctx.fillStyle=Lt.style,this.ctx.isFillTransparent=Lt.a===0,this.ctx.fillOpacity=Lt.a,this.pdf.setFillColor(Lt.r,Lt.g,Lt.b,{a:Lt.a}),this.pdf.setTextColor(Lt.r,Lt.g,Lt.b,{a:Lt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(P){var Lt=N(P);this.ctx.strokeStyle=Lt.style,this.ctx.isStrokeTransparent=Lt.a===0,this.ctx.strokeOpacity=Lt.a,Lt.a===0?this.pdf.setDrawColor(255,255,255):(Lt.a,this.pdf.setDrawColor(Lt.r,Lt.g,Lt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(P){["butt","round","square"].indexOf(P)!==-1&&(this.ctx.lineCap=P,this.pdf.setLineCap(P))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(P){isNaN(P)||(this.ctx.lineWidth=P,this.pdf.setLineWidth(P))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(P){["bevel","round","miter"].indexOf(P)!==-1&&(this.ctx.lineJoin=P,this.pdf.setLineJoin(P))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(P){isNaN(P)||(this.ctx.miterLimit=P,this.pdf.setMiterLimit(P))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(P){this.ctx.textBaseline=P}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(P){["right","end","center","left","start"].indexOf(P)!==-1&&(this.ctx.textAlign=P)}});var kt=null,St=null,jt=null;Object.defineProperty(this,"fontFaces",{get:function(){return jt},set:function(P){kt=null,St=null,jt=P}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(P){var Lt;
41if(this.ctx.font=P,(Lt=/^\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-z0-9]+?)\s*$/i.exec(P))!==null){var ae=Lt[1];Lt[2];var Ht=Lt[3],yt=Lt[4];Lt[5];var Wt=Lt[6],Et=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(yt)[2];yt=Math.floor(Et==="px"?parseFloat(yt)*this.pdf.internal.scaleFactor:Et==="em"?parseFloat(yt)*this.pdf.getFontSize():parseFloat(yt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(yt);var qt=(function(Mt){var ze,pe,oe=[],se=Mt.trim();if(se==="")return yh;if(se in gu)return[gu[se]];for(;se!=="";){switch(pe=null,ze=(se=mu(se)).charAt(0)){case'"':case"'":pe=ed(se.substring(1),ze);break;default:pe=nd(se)}if(pe===null||(oe.push(pe[0]),(se=mu(pe[1]))!==""&&se.charAt(0)!==","))return yh;se=se.replace(/^,/,"")}return oe})(Wt);if(this.fontFaces){var Ut=(function(Mt,ze){var pe=Mt.getFontList(),oe=JSON.stringify(pe);if(kt===null||St!==oe){var se=(function(Oe){var zt=[];return Object.keys(Oe).forEach(function(Ee){Oe[Ee].forEach(function(Zt){var Qt=null;switch(Zt){case"bold":Qt={family:Ee,weight:"bold"};break;case"italic":Qt={family:Ee,style:"italic"};break;case"bolditalic":Qt={family:Ee,weight:"bold",style:"italic"};break;case"":case"normal":Qt={family:Ee}}Qt!==null&&(Qt.ref={name:Ee,style:Zt},zt.push(Qt))})}),zt})(pe);kt=(function(Oe){for(var zt={},Ee=0;Ee<Oe.length;++Ee){var Zt=wh(Oe[Ee]),Qt=Zt.family,Te=Zt.stretch,le=Zt.style,Gt=Zt.weight;zt[Qt]=zt[Qt]||{},zt[Qt][Te]=zt[Qt][Te]||{},zt[Qt][Te][le]=zt[Qt][Te][le]||{},zt[Qt][Te][le][Gt]=Zt}return zt})(se.concat(ze)),St=oe}return kt})(this.pdf,this.fontFaces),ye=qt.map(function(Mt){return{family:Mt,stretch:"normal",weight:Ht,style:ae}}),he=(function(Mt,ze,pe){for(var oe=(pe=pe||{}).defaultFontFamily||"times",se=Object.assign({},td,pe.genericFontFamilies||{}),Oe=null,zt=null,Ee=0;Ee<ze.length;++Ee)if(se[(Oe=wh(ze[Ee])).family]&&(Oe.family=se[Oe.family]),Mt.hasOwnProperty(Oe.family)){zt=Mt[Oe.family];break}if(!(zt=zt||Mt[oe]))throw new Error("Could not find a font-family for the rule '"+vu(Oe)+"' and default family '"+oe+"'.");if(zt=(function(Zt,Qt){if(Qt[Zt])return Qt[Zt];var Te=Sh[Zt],le=Te<=Sh.normal?-1:1,Gt=pu(Qt,Uu,Te,le);if(!Gt)throw new Error("Could not find a matching font-stretch value for "+Zt);return Gt})(Oe.stretch,zt),zt=(function(Zt,Qt){if(Qt[Zt])return Qt[Zt];for(var Te=ju[Zt],le=0;le<Te.length;++le)if(Qt[Te[le]])return Qt[Te[le]];throw new Error("Could not find a matching font-style for "+Zt)})(Oe.style,zt),!(zt=(function(Zt,Qt){if(Qt[Zt])return Qt[Zt];if(Zt===400&&Qt[500])return Qt[500];if(Zt===500&&Qt[400])return Qt[400];var Te=Q5[Zt],le=pu(Qt,zu,Te,Zt<400?-1:1);if(!le)throw new Error("Could not find a matching font-weight for value "+Zt);return le})(Oe.weight,zt)))throw new Error("Failed to resolve a font for the rule '"+vu(Oe)+"'.");return zt})(Ut,ye);this.pdf.setFont(he.ref.name,he.ref.style)}else{var Jt="";(Ht==="bold"||parseInt(Ht,10)>=700||ae==="bold")&&(Jt="bold"),ae==="italic"&&(Jt+="italic"),Jt.length===0&&(Jt="normal");for(var ce="",fe={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"},Tt=0;Tt<qt.length;Tt++){if(this.pdf.internal.getFont(qt[Tt],Jt,{noFallback:!0,disableWarning:!0})!==void 0){ce=qt[Tt];break}if(Jt==="bolditalic"&&this.pdf.internal.getFont(qt[Tt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ce=qt[Tt],Jt="bold";else if(this.pdf.internal.getFont(qt[Tt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ce=qt[Tt],Jt="normal";break}}if(ce===""){for(var ee=0;ee<qt.length;ee++)if(fe[qt[ee]]){ce=fe[qt[ee]];break}}ce=ce===""?"Times":ce,this.pdf.setFont(ce,Jt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(P){this.ctx.globalCompositeOperation=P}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(P){this.ctx.globalAlpha=P}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(P){this.ctx.lineDashOffset=P,wt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(P){this.ctx.lineDash=P,wt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(P){this.ctx.ignoreClearRect=!!P}}
vendor: 4,103 bytes, line 41
41)};x.prototype.setLineDash=function(_){this.lineDash=_},x.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},x.prototype.fill=function(){j.call(this,"fill",!1)},x.prototype.stroke=function(){j.call(this,"stroke",!1)},x.prototype.beginPath=function(){this.path=[{type:"begin"}]},x.prototype.moveTo=function(_,R){if(isNaN(_)||isNaN(R))throw Pe.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var D=this.ctx.transform.applyToPoint(new c(_,R));this.path.push({type:"mt",x:D.x,y:D.y}),this.ctx.lastPoint=new c(_,R)},x.prototype.closePath=function(){var _=new c(0,0),R=0;for(R=this.path.length-1;R!==-1;R--)if(this.path[R].type==="begin"&&Le(this.path[R+1])==="object"&&typeof this.path[R+1].x=="number"){_=new c(this.path[R+1].x,this.path[R+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new c(_.x,_.y)},x.prototype.lineTo=function(_,R){if(isNaN(_)||isNaN(R))throw Pe.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var D=this.ctx.transform.applyToPoint(new c(_,R));this.path.push({type:"lt",x:D.x,y:D.y}),this.ctx.lastPoint=new c(D.x,D.y)},x.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),j.call(this,null,!0)},x.prototype.quadraticCurveTo=function(_,R,D,H){if(isNaN(D)||isNaN(H)||isNaN(_)||isNaN(R))throw Pe.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var $=this.ctx.transform.applyToPoint(new c(D,H)),J=this.ctx.transform.applyToPoint(new c(_,R));this.path.push({type:"qct",x1:J.x,y1:J.y,x:$.x,y:$.y}),this.ctx.lastPoint=new c($.x,$.y)},x.prototype.bezierCurveTo=function(_,R,D,H,$,J){if(isNaN($)||isNaN(J)||isNaN(_)||isNaN(R)||isNaN(D)||isNaN(H))throw Pe.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var at=this.ctx.transform.applyToPoint(new c($,J)),ot=this.ctx.transform.applyToPoint(new c(_,R)),gt=this.ctx.transform.applyToPoint(new c(D,H));this.path.push({type:"bct",x1:ot.x,y1:ot.y,x2:gt.x,y2:gt.y,x:at.x,y:at.y}),this.ctx.lastPoint=new c(at.x,at.y)},x.prototype.arc=function(_,R,D,H,$,J){if(isNaN(_)||isNaN(R)||isNaN(D)||isNaN(H)||isNaN($))throw Pe.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(J=!!J,!this.ctx.transform.isIdentity){var at=this.ctx.transform.applyToPoint(new c(_,R));_=at.x,R=at.y;var ot=this.ctx.transform.applyToPoint(new c(0,D)),gt=this.ctx.transform.applyToPoint(new c(0,0));D=Math.sqrt(Math.pow(ot.x-gt.x,2)+Math.pow(ot.y-gt.y,2))}Math.abs($-H)>=2*Math.PI&&(H=0,$=2*Math.PI),this.path.push({type:"arc",x:_,y:R,radius:D,startAngle:H,endAngle:$,counterclockwise:J})},x.prototype.arcTo=function(_,R,D,H,$){throw new Error("arcTo not implemented.")},x.prototype.rect=function(_,R,D,H){if(isNaN(_)||isNaN(R)||isNaN(D)||isNaN(H))throw Pe.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(_,R),this.lineTo(_+D,R),this.lineTo(_+D,R+H),this.lineTo(_,R+H),this.lineTo(_,R),this.lineTo(_+D,R),this.lineTo(_,R)},x.prototype.fillRect=function(_,R,D,H){if(isNaN(_)||isNaN(R)||isNaN(D)||isNaN(H))throw Pe.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var $={};this.lineCap!=="butt"&&($.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&($.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(_,R,D,H),this.fill(),$.hasOwnProperty("lineCap")&&(this.lineCap=$.lineCap),$.hasOwnProperty("lineJoin")&&(this.lineJoin=$.lineJoin)}},x.prototype.strokeRect=function(_,R,D,H){if(isNaN(_)||isNaN(R)||isNaN(D)||isNaN(H))throw Pe.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to
41jsPDF.context2d.strokeRect");T.call(this)||(this.beginPath(),this.rect(_,R,D,H),this.stroke())},x.prototype.clearRect=function(_,R,D,H){if(isNaN(_)||isNaN(R)||isNaN(D)||isNaN(H))throw Pe.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(_,R,D,H))},x.prototype.save=function(_){_=typeof _!="boolean"||_;for(var R=this.pdf.internal.getCurrentPageInfo().pageNumber,D=0;D<this.pdf.internal.getNumberOfPages();D++)this.pdf.setPage(D+1),this.pdf.internal.out("q");if(this.pdf.setPage(R),_){this.ctx.fontSize=this.pdf.internal.getFontSize();var H=new v(this.ctx);this.ctxStack.push(this.ctx),this.ctx=H}},x.prototype.restore=function(_){_=typeof _!="boolean"||_;for(var R=this.pdf.internal.getCurrentPageInfo().pageNumber,D=0;D<this.pdf.internal.getNumberOfPages();D++)this.pdf.setPage(D+1),this.pdf.internal.out("Q");this.pdf.setPage(R),_&&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)},x.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var N=function(_){var R,D,H,$;if(_.isCanvasGradient===!0&&(_=_.getColor()),!_)return{r:0,g:0,b:0,a:0,style:_};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(_))R=0,D=0,H=0,$=0;else{var J=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(_);if(J!==null)R=parseInt(J[1]),D=parseInt(J[2]),H=parseInt(J[3]),$=1;else if((J=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(_))!==null)R=parseInt(J[1]),D=parseInt(J[2]),H=parseInt(J[3]),$=parseFloat(J[4]);else{if($=1,typeof _=="string"&&_.charAt(0)!=="#"){var at=new Fu(_);_=at.ok?at.toHex():"#000000"}_.length===4?(R=_.substring(1,2),R+=R,D=_.substring(2,3),D+=D,H=_.substring(3,4),H+=H):(R=_.substring(1,3),D=_.substring(3,5),H=_.substring(5,7)),R=parseInt(R,16),D=parseInt(D,16),H=parseInt(H,16)}}return{r:R,g:D,b:H,a:$,style:_}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},T=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};x.prototype.fillText=function(_,R,D,H){if(isNaN(R)||isNaN(D)||typeof _!="string")throw Pe.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(H=isNaN(H)?void 0:H,!p.call(this)){var $=nt(this.ctx.transform.rotation),J=this.ctx.transform.scaleX;F.call(this,{text:_,x:R,y:D,scale:J,angle:$,align:this.textAlign,maxWidth:H})}},x.prototype.strokeText=function(_,R,D,H){if(isNaN(R)||isNaN(D)||typeof _!="string")throw Pe.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!T.call(this)){H=isNaN(H)?void 0:H;var $=nt(this.ctx.transform.rotation),J=this.ctx.transform.scaleX;F.call(this,{text:_,x:R,y:D,scale:J,renderingMode:"stroke",angle:$,align:this.textAlign,maxWidth:H})}},x.prototype.measureText=function(_){if(typeof _!="string")throw Pe.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var R=this.pdf,D=this.pdf.internal.scaleFactor,H=R.internal.getFontSize(),$=R.getStringUnitWidth(_)*H/R.internal.scaleFactor;return new function(J){var at=(J=J||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return at}}),this}({width:$*=Math.round(96*D/72*1e4)/1e4})},x.prototype.scale=function(_,R){if(isNaN(_)||isNaN(R))throw Pe.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var D=new f(_,0,0,R,0,0);this.ctx.transform=this.ctx.transform.multiply(D)},x.prototype.rotate=function(_){if(isNaN(_))throw Pe.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to
41jsPDF.context2d.rotate");var R=new f(Math.cos(_),Math.sin(_),-Math.sin(_),Math.cos(_),0,0);this.ctx.transform=this.ctx.transform.multiply(R)},x.prototype.translate=function(_,R){if(isNaN(_)||isNaN(R))throw Pe.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var D=new f(1,0,0,1,_,R);this.ctx.transform=this.ctx.transform.multiply(D)},x.prototype.transform=function(_,R,D,H,$,J){if(isNaN(_)||isNaN(R)||isNaN(D)||isNaN(H)||isNaN($)||isNaN(J))throw Pe.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var at=new f(_,R,D,H,$,J);this.ctx.transform=this.ctx.transform.multiply(at)},x.prototype.setTransform=function(_,R,D,H,$,J){_=isNaN(_)?1:_,R=isNaN(R)?0:R,D=isNaN(D)?0:D,H=isNaN(H)?1:H,$=isNaN($)?0:$,J=isNaN(J)?0:J,this.ctx.transform=new f(_,R,D,H,$,J)};var E=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};x.prototype.drawImage=function(_,R,D,H,$,J,at,ot,gt){var xt=this.pdf.getImageProperties(_),kt=1,St=1,jt=1,P=1;H!==void 0&&ot!==void 0&&(jt=ot/H,P=gt/$,kt=xt.width/H*ot/H,St=xt.height/$*gt/$),J===void 0&&(J=R,at=D,R=0,D=0),H!==void 0&&ot===void 0&&(ot=H,gt=$),H===void 0&&ot===void 0&&(ot=xt.width,gt=xt.height);var Lt=this.ctx.transform.decompose(),ae=nt(Lt.rotate.shx),Ht=new f,yt=(Ht=(Ht=(Ht=Ht.multiply(Lt.translate)).multiply(Lt.skew)).multiply(Lt.scale)).applyToRectangle(new l(J-R*jt,at-D*P,H*kt,$*St));if(this.autoPaging){for(var Wt,Et=B.call(this,yt),qt=[],Ut=0;Ut<Et.length;Ut+=1)qt.indexOf(Et[Ut])===-1&&qt.push(Et[Ut]);V(qt);for(var ye=qt[0],he=qt[qt.length-1],Jt=ye;Jt<he+1;Jt++){this.pdf.setPage(Jt);var ce=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],fe=Jt===1?this.posY+this.margin[0]:this.margin[0],Tt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ee=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Mt=Jt===1?0:Tt+(Jt-2)*ee;if(this.ctx.clip_path.length!==0){var ze=this.path;Wt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=G(Wt,this.posX+this.margin[3],-Mt+fe+this.ctx.prevPageLastElemOffset),it.call(this,"fill",!0),this.path=ze}var pe=JSON.parse(JSON.stringify(yt));pe=G([pe],this.posX+this.margin[3],-Mt+fe+this.ctx.prevPageLastElemOffset)[0];var oe=(Jt>ye||Jt<he)&&E.call(this);oe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ce,ee,null).clip().discardPath()),this.pdf.addImage(_,"JPEG",pe.x,pe.y,pe.w,pe.h,null,null,ae),oe&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(_,"JPEG",yt.x,yt.y,yt.w,yt.h,null,null,ae)};var B=function(_,R,D){var H=[];R=R||this.pdf.internal.pageSize.width,D=D||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var $=this.posY+this.ctx.prevPageLastElemOffset;switch(_.type){default:case"mt":case"lt":H.push(Math.floor((_.y+$)/D)+1);break;case"arc":H.push(Math.floor((_.y+$-_.radius)/D)+1),H.push(Math.floor((_.y+$+_.radius)/D)+1);break;case"qct":var J=ct(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_.x1,_.y1,_.x,_.y);H.push(Math.floor((J.y+$)/D)+1),H.push(Math.floor((J.y+J.h+$)/D)+1);break;case"bct":var at=At(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_.x1,_.y1,_.x2,_.y2,_.x,_.y);H.push(Math.floor((at.y+$)/D)+1),H.push(Math.floor((at.y+at.h+$)/D)+1);break;case"rect":H.push(Math.floor((_.y+$)/D)+1),H.push(Math.floor((_.y+_.h+$)/D)+1)}for(var ot=0;ot<H.length;ot+=1)for(;this.pdf.internal.getNumberOfPages()<H[ot];)k.call(this);return H},k=function(){var _=this.fillStyle,R=this.strokeStyle,D=this.font,H=this.lineCap,$=this.lineWidth,J=this.lineJoin;this.pdf.addPage(),this.fillStyle=_,this.strokeStyle=R,this.font=D,this.lineCap=H,this.lineWidth=$,this.lineJoin=J},G=function(_,R,D){for(var H=0;H<_.length;H++)switch(_[H].type){case"bct":_[H].x2+=R,_[H].y2+=D;case"qct":_[H].x1+=R,_[H].y1+=D;default:_[H].x+=R,_[H].y+=D}return _},V=function(_){return _.sort(function(R,D){return R-D})},j=function(_,R){var D=this.fillStyle,H=this.strokeStyle,$=this.lineCap,J=this.lineWidth,at=Math.abs(J*this.ctx.transform.scaleX),ot=this.lineJoin;if(this.autoPaging){for(var gt,xt,kt=JSON.parse(JSON.stringify(this.path)),St=JSON.parse(JSON.stringify(this.path)),jt=[],P=0;P<St.length;P++)if(St[P].x!==void 0)for(var Lt=B.call(this,St[P]),ae=0;ae<Lt.length;ae+=1)jt.indexOf(Lt[ae])===-1&&jt.push(Lt[ae]);for(var Ht=0;Ht<jt.length;Ht++)for(;this.pdf.internal.getNumberOfPages()<jt[Ht];)k.call(this);V(jt);
vendor: 39,063 bytes, lines 41-47
41for(var yt=jt[0],Wt=jt[jt.length-1],Et=yt;Et<Wt+1;Et++){this.pdf.setPage(Et),this.fillStyle=D,this.strokeStyle=H,this.lineCap=$,this.lineWidth=at,this.lineJoin=ot;var qt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ut=Et===1?this.posY+this.margin[0]:this.margin[0],ye=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],he=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Jt=Et===1?0:ye+(Et-2)*he;if(this.ctx.clip_path.length!==0){var ce=this.path;gt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=G(gt,this.posX+this.margin[3],-Jt+Ut+this.ctx.prevPageLastElemOffset),it.call(this,_,!0),this.path=ce}if(xt=JSON.parse(JSON.stringify(kt)),this.path=G(xt,this.posX+this.margin[3],-Jt+Ut+this.ctx.prevPageLastElemOffset),R===!1||Et===0){var fe=(Et>yt||Et<Wt)&&E.call(this);fe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],qt,he,null).clip().discardPath()),it.call(this,_,R),fe&&this.pdf.restoreGraphicsState()}this.lineWidth=J}this.path=kt}else this.lineWidth=at,it.call(this,_,R),this.lineWidth=J},it=function(_,R){if((_!=="stroke"||R||!T.call(this))&&(_==="stroke"||R||!p.call(this))){for(var D,H,$=[],J=this.path,at=0;at<J.length;at++){var ot=J[at];switch(ot.type){case"begin":$.push({begin:!0});break;case"close":$.push({close:!0});break;case"mt":$.push({start:ot,deltas:[],abs:[]});break;case"lt":var gt=$.length;if(J[at-1]&&!isNaN(J[at-1].x)&&(D=[ot.x-J[at-1].x,ot.y-J[at-1].y],gt>0)){for(;gt>=0;gt--)if($[gt-1].close!==!0&&$[gt-1].begin!==!0){$[gt-1].deltas.push(D),$[gt-1].abs.push(ot);break}}break;case"bct":D=[ot.x1-J[at-1].x,ot.y1-J[at-1].y,ot.x2-J[at-1].x,ot.y2-J[at-1].y,ot.x-J[at-1].x,ot.y-J[at-1].y],$[$.length-1].deltas.push(D);break;case"qct":var xt=J[at-1].x+2/3*(ot.x1-J[at-1].x),kt=J[at-1].y+2/3*(ot.y1-J[at-1].y),St=ot.x+2/3*(ot.x1-ot.x),jt=ot.y+2/3*(ot.y1-ot.y),P=ot.x,Lt=ot.y;D=[xt-J[at-1].x,kt-J[at-1].y,St-J[at-1].x,jt-J[at-1].y,P-J[at-1].x,Lt-J[at-1].y],$[$.length-1].deltas.push(D);break;case"arc":$.push({deltas:[],abs:[],arc:!0}),Array.isArray($[$.length-1].abs)&&$[$.length-1].abs.push(ot)}}H=R?null:_==="stroke"?"stroke":"fill";for(var ae=!1,Ht=0;Ht<$.length;Ht++)if($[Ht].arc)for(var yt=$[Ht].abs,Wt=0;Wt<yt.length;Wt++){var Et=yt[Wt];Et.type==="arc"?Y.call(this,Et.x,Et.y,Et.radius,Et.startAngle,Et.endAngle,Et.counterclockwise,void 0,R,!ae):q.call(this,Et.x,Et.y),ae=!0}else if($[Ht].close===!0)this.pdf.internal.out("h"),ae=!1;else if($[Ht].begin!==!0){var qt=$[Ht].start.x,Ut=$[Ht].start.y;z.call(this,$[Ht].deltas,qt,Ut),ae=!0}H&&M.call(this,H),R&&tt.call(this)}},vt=function(_){var R=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,D=R*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return _-D;case"top":return _+R-D;case"hanging":return _+R-2*D;case"middle":return _+R/2-D;default:return _}},ut=function(_){return _+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};x.prototype.createLinearGradient=function(){var _=function(){};return _.colorStops=[],_.addColorStop=function(R,D){this.colorStops.push([R,D])},_.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},_.isCanvasGradient=!0,_},x.prototype.createPattern=function(){return this.createLinearGradient()},x.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Y=function(_,R,D,H,$,J,at,ot,gt){for(var xt=st.call(this,D,H,$,J),kt=0;kt<xt.length;kt++){var St=xt[kt];kt===0&&(gt?L.call(this,St.x1+_,St.y1+R):q.call(this,St.x1+_,St.y1+R)),rt.call(this,_,R,St.x2,St.y2,St.x3,St.y3,St.x4,St.y4)}ot?tt.call(this):M.call(this,at)},M=function(_){switch(_){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},tt=function(){this.pdf.clip(),this.pdf.discardPath()},L=function(_,R){this.pdf.internal.out(e(_)+" "+r(R)+" m")},F=function(_){var R;switch(_.align){case"right":case"end":R="right";break;case"center":R="center";break;default:R="left"}var D,H,$,J=this.pdf.getTextDimensions(_.text),at=vt.call(this,_.y),ot=ut.call(this,at)-J.h,gt=this.ctx.transform.applyToPoint(new c(_.x,at));if(this.autoPaging){var xt=this.ctx.transform.decompose(),kt=new f;kt=(kt=(kt=kt.multiply(xt.translate)).multiply(xt.skew)).multiply(xt.scale);for(var St=this.ctx.transform.applyToRectangle(new l(_.x,at,J.w,J.h)),jt=kt.applyToRectangle(new l(_.x,ot,J.w,J.h)),P=B.call(this,jt),Lt=[],ae=0;ae<P.length;ae+=1)Lt.indexOf(P[ae])===-1&&Lt.push(P[ae]);V(Lt);for(var Ht=Lt[0],yt=Lt[Lt.length-1],Wt=Ht;Wt<yt+1;Wt++){this.pdf.setPage(Wt);var Et=Wt===1?this.posY+this.margin[0]:this.margin[0],qt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ut=this.pdf.internal.pageSize.height-this.margin[2],ye=Ut-this.margin[0],he=this.pdf.internal.pageSize.width-this.margin[1],Jt=he-this.margin[3],ce=Wt===1?0:qt+(Wt-2)*ye;if(this.ctx.clip_path.length!==0){var fe=this.path;D=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=G(D,this.posX+this.margin[3],-1*ce+Et),it.call(this,"fill",!0),this.path=fe}var Tt=G([JSON.parse(JSON.stringify(jt))],this.posX+this.margin[3],-ce+Et+this.ctx.prevPageLastElemOffset)[0];_.scale>=.01&&(H=this.pdf.internal.getFontSize(),this.pdf.setFontSize(H*_.scale),$=this.lineWidth,this.lineWidth=$*_.scale);var ee=this.autoPaging!=="text";if(ee||Tt.y+Tt.h<=Ut){if(ee||Tt.y>=Et&&Tt.x<=he){var Mt=ee?_.text:this.pdf.splitTextToSize(_.text,_.maxWidth||he-Tt.x)[0],ze=G([JSON.parse(JSON.stringify(St))],this.posX+this.margin[3],-ce+Et+this.ctx.prevPageLastElemOffset)[0],pe=ee&&(Wt>Ht||Wt<yt)&&E.call(this);pe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Jt,ye,null).clip().discardPath()),this.pdf.text(Mt,ze.x,ze.y,{angle:_.angle,align:R,renderingMode:_.renderingMode}),pe&&this.pdf.restoreGraphicsState()}}else Tt.y<Ut&&(this.ctx.prevPageLastElemOffset+=Ut-Tt.y);_.scale>=.01&&(this.pdf.setFontSize(H),this.lineWidth=$)}}else _.scale>=.01&&(H=this.pdf.internal.getFontSize(),this.pdf.setFontSize(H*_.scale),$=this.lineWidth,this.lineWidth=$*_.scale),this.pdf.text(_.text,gt.x+this.posX,gt.y+this.posY,{angle:_.angle,align:R,renderingMode:_.renderingMode,maxWidth:_.maxWidth}),_.scale>=.01&&(this.pdf.setFontSize(H),this.lineWidth=$)},q=function(_,R,D,H){D=D||0,H=H||0,this.pdf.internal.out(e(_+D)+" "+r(R+H)+" l")},z=function(_,R,D){return this.pdf.lines(_,R,D,null,null)},rt=function(_,R,D,H,$,J,at,ot){this.pdf.internal.out([n(a(D+_)),n(o(H+R)),n(a($+_)),n(o(J+R)),n(a(at+_)),n(o(ot+R)),"c"].join(" "))},st=function(_,R,D,H){for(var $=2*Math.PI,J=Math.PI/2;R>D;)R-=$;var at=Math.abs(D-R);at<$&&H&&(at=$-at);for(var ot=[],gt=H?-1:1,xt=R;at>1e-5;){var kt=xt+gt*Math.min(at,J);ot.push(ht.call(this,_,xt,kt)),at-=Math.abs(kt-xt),xt=kt}return ot},ht=function(_,R,D){var H=(D-R)/2,$=_*Math.cos(H),J=_*Math.sin(H),at=$,ot=-J,gt=at*at+ot*ot,xt=gt+at*$+ot*J,kt=4/3*(Math.sqrt(2*gt*xt)-xt)/(at*J-ot*$),St=at-kt*ot,jt=ot+kt*at,P=St,Lt=-jt,ae=H+R,Ht=Math.cos(ae),yt=Math.sin(ae);return{x1:_*Math.cos(R),y1:_*Math.sin(R),x2:St*Ht-jt*yt,y2:St*yt+jt*Ht,x3:P*Ht-Lt*yt,y3:P*yt+Lt*Ht,x4:_*Math.cos(D),y4:_*Math.sin(D)}},nt=function(_){return 180*_/Math.PI},ct=function(_,R,D,H,$,J){var at=_+.5*(D-_),ot=R+.5*(H-R),gt=$+.5*(D-$),xt=J+.5*(H-J),kt=Math.min(_,$,at,gt),St=Math.max(_,$,at,gt),jt=Math.min(R,J,ot,xt),P=Math.max(R,J,ot,xt);return new l(kt,jt,St-kt,P-jt)},At=function(_,R,D,H,$,J,at,ot){var gt,xt,kt,St,jt,P,Lt,ae,Ht,yt,Wt,Et,qt,Ut,ye=D-_,he=H-R,Jt=$-D,ce=J-H,fe=at-$,Tt=ot-J;for(xt=0;xt<41;xt++)Ht=(Lt=(kt=_+(gt=xt/40)*ye)+gt*((jt=D+gt*Jt)-kt))+gt*(jt+gt*($+gt*fe-jt)-Lt),yt=(ae=(St=R+gt*he)+gt*((P=H+gt*ce)-St))+gt*(P+gt*(J+gt*Tt-P)-ae),xt==0?(Wt=Ht,Et=yt,qt=Ht,Ut=yt):(Wt=Math.min(Wt,Ht),Et=Math.min(Et,yt),qt=Math.max(qt,Ht),Ut=Math.max(Ut,yt));return new l(Math.round(Wt),Math.round(Et),Math.round(qt-Wt),Math.round(Ut-Et))},wt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var _,R,D=(_=this.ctx.lineDash,R=this.ctx.lineDashOffset,JSON.stringify({lineDash:_,lineDashOffset:R}));this.prevLineDash!==D&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=D)}}})(Dt.API),(function(t){var n=function(c){var l,f,d,v,x,N,p,T,E,B;for(/[^\x00-\xFF]/.test(c),f=[],d=0,v=(c+=l="\0\0\0\0".slice(c.length%4||4)).length;v>d;d+=4)(x=(c.charCodeAt(d)<<24)+(c.charCodeAt(d+1)<<16)+(c.charCodeAt(d+2)<<8)+c.charCodeAt(d+3))!==0?(N=(x=((x=((x=((x=(x-(B=x%85))/85)-(E=x%85))/85)-(T=x%85))/85)-(p=x%85))/85)%85,f.push(N+33,p+33,T+33,E+33,B+33)):f.push(122);return(function(k,G){for(var V=G;V>0;V--)k.pop()})(f,l.length),String.fromCharCode.apply(String,f)+"~>"},e=function(c){var l,f,d,v,x,N=String,p="length",T=255,E="charCodeAt",B="slice",k="replace";for(c[B](-2),c=c[B](0,-2)[k](/\s/g,"")[k]("z","!!!!!"),d=[],v=0,x=(c+=l="uuuuu"[B](c[p]%5||5))[p];x>v;v+=5)f=52200625*(c[E](v)-33)+614125*(c[E](v+1)-33)+7225*(c[E](v+2)-33)+85*(c[E](v+3)-33)+(c[E](v+4)-33),d.push(T&f>>24,T&f>>16,T&f>>8,T&f);return(function(G,V){for(var j=V;j>0;j--)G.pop()})(d,l[p]),N.fromCharCode.apply(N,d)},r=function(c){return c.split("").map(function(l){return("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},a=function(c){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((c=c.replace(/\s/g,"")).indexOf(">")!==-1&&(c=c.substr(0,c.indexOf(">"))),c.length%2&&(c+="0"),l.test(c)===!1)return"";for(var f="",d=0;d<c.length;d+=2)f+=String.fromCharCode("0x"+(c[d]+c[d+1]));return f},o=function(c){for(var l=new Uint8Array(c.length),f=c.length;f--;)l[f]=c.charCodeAt(f);return(l=cs(l)).reduce(function(d,v){return d+String.fromCharCode(v)},"")};t.processDataByFilters=function(c,l){var f=0,d=c||"",v=[];for(typeof(l=l||[])=="string"&&(l=[l]),f=0;f<l.length;f+=1)switch(l[f]){case"ASCII85Decode":case"/ASCII85Decode":d=e(d),v.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":d=n(d),v.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":d=a(d),v.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":d=r(d),v.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":d=o(d),v.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[f]+'" is not implemented')}return{data:d,reverseChain:v.reverse().join(" ")}}})(Dt.API),(function(t){t.loadFile=function(n,e,r){return(function(a,o,c){o=o!==!1,c=typeof c=="function"?c:function(){};var l=void 0;try{l=(function(f,d,v){var x=new XMLHttpRequest,N=0,p=function(T){var E=T.length,B=[],k=String.fromCharCode;for(N=0;N<E;N+=1)B.push(k(255&T.charCodeAt(N)));return B.join("")};if(x.open("GET",f,!d),x.overrideMimeType("text/plain; charset=x-user-defined"),d===!1&&(x.onload=function(){x.status===200?v(p(this.responseText)):v(void 0)}),x.send(null),d&&x.status===200)return p(x.responseText)})(a,o,c)}catch{}return l})(n,e,r)},t.allowFsRead=void 0,t.loadImageFile=t.loadFile})(Dt.API),(function(t){function n(){return($t.html2canvas?Promise.resolve($t.html2canvas):import("/assets/html2canvas-B4JATLZ5.js")).catch(function(l){return Promise.reject(new Error("Could not load html2canvas: "+l))}).then(function(l){return l.default?l.default:l})}function e(){return($t.DOMPurify?Promise.resolve($t.DOMPurify):import("/assets/purify.es-XVJGG5ET.js")).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var r=function(l){var f=Le(l);return f==="undefined"?"undefined":f==="string"||l instanceof String?"string":f==="number"||l instanceof Number?"number":f==="function"||l instanceof Function?"function":l&&l.constructor===Array?"array":l&&l.nodeType===1?"element":f==="object"?"object":"unknown"},a=function(l,f){var d=document.createElement(l);for(var v in f.className&&(d.className=f.className),f.innerHTML&&f.dompurify&&(d.innerHTML=f.dompurify.sanitize(f.innerHTML)),f.style)d.style[v]=f.style[v];return d},o=function l(f,d){for(var v=f.nodeType===3?document.createTextNode(f.nodeValue):f.cloneNode(!1),x=f.firstChild;x;x=x.nextSibling)d!==!0&&x.nodeType===1&&x.nodeName==="SCRIPT"||v.appendChild(l(x,d));return f.nodeType===1&&(f.nodeName==="CANVAS"?(v.width=f.width,v.height=f.height,v.getContext("2d").drawImage(f,0,0)):f.nodeName!=="TEXTAREA"&&f.nodeName!=="SELECT"||(v.value=f.value),v.addEventListener("load",function(){v.scrollTop=f.scrollTop,v.scrollLeft=f.scrollLeft},!0)),v},c=function l(f){var d=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),v=l.convert(Promise.resolve(),d);return(v=v.setProgress(1,l,1,[l])).set(f)};(c.prototype=Object.create(Promise.prototype)).constructor=c,c.convert=function(l,f){return l.__proto__=f||c.prototype,l},c.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"}},c.prototype.from=function(l,f){return this.then(function(){switch(f=f||(function(d){switch(r(d)){case"string":return"string";case"element":return d.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(l),f){case"string":return this.then(e).then(function(d){return this.set({src:a("div",{innerHTML:l,dompurify:d})})});case"element":return this.set({src:l});case"canvas":return this.set({canvas:l});case"img":return this.set({img:l});default:return this.error("Unknown source type.")}})},c.prototype.to=function(l){switch(l){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.")}},c.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 l={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},f=o(this.prop.src,this.opt.html2canvas.javascriptEnabled);f.tagName==="BODY"&&(l.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:l}),this.prop.container.appendChild(f),this.prop.container.firstChild.appendChild(a("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"})},c.prototype.toCanvas=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(n).then(function(f){var d=Object.assign({},this.opt.html2canvas);return delete d.onrendered,f(this.prop.container,d)}).then(function(f){(this.opt.html2canvas.onrendered||function(){})(f),this.prop.canvas=f,document.body.removeChild(this.prop.overlay)})},c.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(n).then(function(f){var d=this.opt.jsPDF,v=this.opt.fontFaces,x=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,N=Object.assign({async:!0,allowTaint:!0,scale:x,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 N.onrendered,d.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,d.context2d.posX=this.opt.x,d.context2d.posY=this.opt.y,d.context2d.margin=this.opt.margin,d.context2d.fontFaces=v,v)for(var p=0;p<v.length;++p){var T=v[p],E=T.src.find(function(B){return B.format==="truetype"});E&&d.addFont(E.url,T.ref.name,T.ref.style)}return N.windowHeight=N.windowHeight||0,N.windowHeight=N.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):N.windowHeight,d.context2d.save(!0),f(this.prop.container,N)}).then(function(f){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(f),this.prop.canvas=f,document.body.removeChild(this.prop.overlay)})},c.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var l=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=l})},c.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},c.prototype.output=function(l,f,d){return(d=d||"pdf").toLowerCase()==="img"||d.toLowerCase()==="image"?this.outputImg(l,f):this.outputPdf(l,f)},c.prototype.outputPdf=function(l,f){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(l,f)})},c.prototype.outputImg=function(l){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(l){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 "'+l+'" is not supported.'}})},c.prototype.save=function(l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(l?{filename:l}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},c.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},c.prototype.set=function(l){if(r(l)!=="object")return this;var f=Object.keys(l||{}).map(function(d){if(d in c.template.prop)return function(){this.prop[d]=l[d]};switch(d){case"margin":return this.setMargin.bind(this,l.margin);case"jsPDF":return function(){return this.opt.jsPDF=l.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,l.pageSize);default:return function(){this.opt[d]=l[d]}}},this);return this.then(function(){return this.thenList(f)})},c.prototype.get=function(l,f){return this.then(function(){var d=l in c.template.prop?this.prop[l]:this.opt[l];return f?f(d):d})},c.prototype.setMargin=function(l){return this.then(function(){switch(r(l)){case"number":l=[l,l,l,l];case"array":if(l.length===2&&(l=[l[0],l[1],l[0],l[1]]),l.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=l}).then(this.setPageSize)},c.prototype.setPageSize=function(l){function f(d,v){return Math.floor(d*v/72*96)}return this.then(function(){(l=l||Dt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(l.inner={width:l.width-this.opt.margin[1]-this.opt.margin[3],height:l.height-this.opt.margin[0]-this.opt.margin[2]},l.inner.px={width:f(l.inner.width,l.k),height:f(l.inner.height,l.k)},l.inner.ratio=l.inner.height/l.inner.width),this.prop.pageSize=l})},c.prototype.setProgress=function(l,f,d,v){return l!=null&&(this.progress.val=l),f!=null&&(this.progress.state=f),d!=null&&(this.progress.n=d),v!=null&&(this.progress.stack=v),this.progress.ratio=this.progress.val/this.progress.state,this},c.prototype.updateProgress=function(l,f,d,v){return this.setProgress(l?this.progress.val+l:null,f||null,d?this.progress.n+d:null,v?this.progress.stack.concat(v):null)},c.prototype.then=function(l,f){var d=this;return this.thenCore(l,f,function(v,x){return d.updateProgress(null,null,1,[v]),Promise.prototype.then.call(this,function(N){return d.updateProgress(null,v),N}).then(v,x).then(function(N){return d.updateProgress(1),N})})},c.prototype.thenCore=function(l,f,d){d=d||Promise.prototype.then;var v=this;l&&(l=l.bind(v)),f&&(f=f.bind(v));var x=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?v:c.convert(Object.assign({},v),Promise.prototype),N=d.call(x,l,f);return c.convert(N,v.__proto__)},c.prototype.thenExternal=function(l,f){return Promise.prototype.then.call(this,l,f)},c.prototype.thenList=function(l){var f=this;return l.forEach(function(d){f=f.thenCore(d)}),f},c.prototype.catch=function(l){l&&(l=l.bind(this));var f=Promise.prototype.catch.call(this,l);return c.convert(f,this)},c.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},c.prototype.error=function(l){return this.then(function(){throw new Error(l)})},c.prototype.using=c.prototype.set,c.prototype.saveAs=c.prototype.save,c.prototype.export=c.prototype.output,c.prototype.run=c.prototype.then,Dt.getPageSize=function(l,f,d){if(Le(l)==="object"){var v=l;l=v.orientation,f=v.unit||f,d=v.format||d}f=f||"mm",d=d||"a4",l=(""+(l||"P")).toLowerCase();var x,N=(""+d).toLowerCase(),p={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(f){case"pt":x=1;break;case"mm":x=72/25.4;break;case"cm":x=72/2.54;break;case"in":x=72;break;case"px":x=.75;break;case"pc":case"em":x=12;break;case"ex":x=6;break;default:throw"Invalid unit: "+f}var T,E=0,B=0;if(p.hasOwnProperty(N))E=p[N][1]/x,B=p[N][0]/x;else try{E=d[1],B=d[0]}catch{throw new Error("Invalid format: "+d)}if(l==="p"||l==="portrait")l="p",B>E&&(T=B,B=E,E=T);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",E>B&&(T=B,B=E,E=T)}return{width:B,height:E,unit:f,k:x,orientation:l}},t.html=function(l,f){(f=f||{}).callback=f.callback||function(){},f.html2canvas=f.html2canvas||{},f.html2canvas.canvas=f.html2canvas.canvas||this.canvas,f.jsPDF=f.jsPDF||this,f.fontFaces=f.fontFaces?f.fontFaces.map(wh):null;var d=new c(f);return f.worker?d:d.from(l).doCallback()}})(Dt.API),Dt.API.addJS=function(t){return wu=t,this.internal.events.subscribe("postPutResources",function(){Ts=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Ts+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),bu=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+wu+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Ts!==void 0&&bu!==void 0&&this.internal.out("/Names <</JavaScript "+Ts+" 0 R>>")}),this},(function(t){var n;t.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var a=e.outline.render().split(/\r\n/),o=0;o<a.length;o++){var c=a[o],l=r.exec(c);if(l!=null){var f=l[1];e.internal.newObjectDeferredBegin(f,!1)}e.internal.write(c)}if(this.outline.createNamedDestinations){var d=this.internal.pages.length,v=[];for(o=0;o<d;o++){var x=e.internal.newObject();v.push(x);var N=e.internal.getPageInfo(o+1);e.internal.write("<< /D["+N.objId+" 0 R /XYZ null null null]>> endobj")}var p=e.internal.newObject();for(e.internal.write("<< /Names [ "),o=0;o<v.length;o++)e.internal.write("(page_"+(o+1)+")"+v[o]+" 0 R");e.internal.write(" ] >>","endobj"),n=e.internal.newObject(),e.internal.write("<< /Dests "+p+" 0 R"),e.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+n+" 0 R"))}]),t.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(r,a,o){var c={title:a,options:o,children:[]};return r==null&&(r=this.root),r.children.push(c),c},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(r){r.id=e.internal.newObjectDeferred();for(var a=0;a<r.children.length;a++)this.genIds_r(r.children[a])},e.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},e.outline.renderItems=function(r){for(var a=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<r.children.length;o++){var c=r.children[o];this.objStart(c),this.line("/Title "+this.makeString(c.title)),this.line("/Parent "+this.makeRef(r)),o>0&&this.line("/Prev "+this.makeRef(r.children[o-1])),o<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[o+1])),c.children.length>0&&(this.line("/First "+this.makeRef(c.children[0])),this.line("/Last "+this.makeRef(c.children[c.children.length-1])));var l=this.count=this.count_r({count:0},c);if(l>0&&this.line("/Count "+l),c.options&&c.options.pageNumber){var f=e.internal.getPageInfo(c.options.pageNumber);this.line("/Dest ["+f.objId+" 0 R /XYZ 0 "+a(0)+" 0]")}this.objEnd()}for(var d=0;d<r.children.length;d++)this.renderItems(r.children[d])},e.outline.line=function(r){this.ctx.val+=r+`\r 42`},e.outline.makeRef=function(r){return r.id+" 0 R"},e.outline.makeString=function(r){return"("+e.internal.pdfEscape(r)+")"},e.outline.objStart=function(r){this.ctx.val+=`\r 43`+r.id+` 0 obj\r 44<<\r 45`},e.outline.objEnd=function(){this.ctx.val+=`>> \r 46endobj\r 47`},e.outline.count_r=function(r,a){for(var o=0;o<a.children.length;o++)r.count++,this.count_r(r,a.children[o]);return r.count}}])})(Dt.API),(function(t){var n=[192,193,194,195,196,197,198,199];t.processJPEG=function(e,r,a,o,c,l){var f,d=this.decode.DCT_DECODE,v=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=c||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,f=(function(x){for(var N,p=256*x.charCodeAt(4)+x.charCodeAt(5),T=x.length,E={width:0,height:0,numcomponents:1},B=4;B<T;B+=2){if(B+=p,n.indexOf(x.charCodeAt(B+1))!==-1){N=256*x.charCodeAt(B+5)+x.charCodeAt(B+6),E={width:256*x.charCodeAt(B+7)+x.charCodeAt(B+8),height:N,numcomponents:x.charCodeAt(B+9)};break}p=256*x.charCodeAt(B+2)+x.charCodeAt(B+3)}return E})(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),f.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}v={data:e,width:f.width,height:f.height,colorSpace:l,bitsPerComponent:8,filter:d,index:r,alias:a}}return v}})(Dt.API),Dt.API.processPNG=function(t,n,e,r){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var a,o=su(t,{checkCrc:!0}),c=o.width,l=o.height,f=o.channels,d=o.palette,v=o.depth;a=d&&f===1?(function(Y){for(var M=Y.width,tt=Y.height,L=Y.data,F=Y.palette,q=Y.depth,z=!1,rt=[],st=[],ht=void 0,nt=!1,ct=0,At=0;At<F.length;At++){var wt=Il(F[At],4),_=wt[0],R=wt[1],D=wt[2],H=wt[3];rt.push(_,R,D),H!=null&&(H===0?(ct++,st.length<1&&st.push(At)):H<255&&(nt=!0))}if(nt||ct>1){z=!0,st=void 0;var $=M*tt;ht=new Uint8Array($);for(var J=new DataView(L.buffer),at=0;at<$;at++){var ot=_h(J,at,q),gt=Il(F[ot],4)[3];ht[at]=gt}}else ct===0&&(st=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:z?8:void 0,colorBytes:L,alphaBytes:ht,needSMask:z,palette:rt,mask:st}})(o):f===2||f===4?(function(Y){for(var M=Y.data,tt=Y.width,L=Y.height,F=Y.channels,q=Y.depth,z=F===2?"DeviceGray":"DeviceRGB",rt=F-1,st=tt*L,ht=rt,nt=st*ht,ct=1*st,At=Math.ceil(nt*q/8),wt=Math.ceil(ct*q/8),_=new Uint8Array(At),R=new Uint8Array(wt),D=new DataView(M.buffer),H=new DataView(_.buffer),$=new DataView(R.buffer),J=!1,at=0;at<st;at++){for(var ot=at*F,gt=0;gt<ht;gt++)Pu(H,_h(D,ot+gt,q),at*ht+gt,q);var xt=_h(D,ot+ht,q);xt<(1<<q)-1&&(J=!0),Pu($,xt,1*at,q)}return{colorSpace:z,colorsPerPixel:rt,sMaskBitsPerComponent:J?q:void 0,colorBytes:_,alphaBytes:R,needSMask:J}})(o):(function(Y){var M=Y.data,tt=Y.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:tt,colorsPerPixel:tt==="DeviceGray"?1:3,colorBytes:M instanceof Uint16Array?(function(L){for(var F=L.length,q=new Uint8Array(2*F),z=new DataView(q.buffer,q.byteOffset,q.byteLength),rt=0;rt<F;rt++)z.setUint16(2*rt,L[rt],!1);return q})(M):M,needSMask:!1}})(o);var x,N,p,T=a,E=T.colorSpace,B=T.colorsPerPixel,k=T.sMaskBitsPerComponent,G=T.colorBytes,V=T.alphaBytes,j=T.needSMask,it=T.palette,vt=T.mask,ut=null;return r!==Dt.API.image_compression.NONE&&typeof cs=="function"?(ut=(function(Y){var M;switch(Y){case Dt.API.image_compression.FAST:M=11;break;case Dt.API.image_compression.MEDIUM:M=13;break;case Dt.API.image_compression.SLOW:M=14;break;default:M=12}return M})(r),x=this.decode.FLATE_DECODE,N="/Predictor ".concat(ut," /Colors ").concat(B," /BitsPerComponent ").concat(v," /Columns ").concat(c),t=Au(G,Math.ceil(c*B*v/8),B,v,r),j&&(p=Au(V,Math.ceil(c*k/8),1,k,r))):(x=void 0,N=void 0,t=G,j&&(p=V)),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(p&&this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),{alias:e,data:t,index:n,filter:x,decodeParameters:N,transparency:vt,palette:it,sMask:p,predictor:ut,width:c,height:l,bitsPerComponent:v,sMaskBitsPerComponent:k,colorSpace:E}}},(function(t){t.processGIF89A=function(n,e,r,a){var o=new od(n),c=o.width,l=o.height,f=[];o.decodeAndBlitFrameRGBA(0,f);var d={data:f,width:c,height:l},v=new xh(100).encode(d,100);return t.processJPEG.call(this,v,e,r,a)},t.processGIF87A=t.processGIF89A})(Dt.API),lr.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 t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var n=0;n<t;n++){var e=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[n]={red:a,green:r,blue:e,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},lr.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,n=this.width*this.height*4;this.data=new Uint8Array(n),this[t]()}catch(e){Pe.log("bit decode error:"+e)}},lr.prototype.bit1=function(){var t,n=Math.ceil(this.width/8),e=n%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,a=0;a<n;a++)for(var o=this.datav.getUint8(this.pos++,!0),c=r*this.width*4+8*a*4,l=0;l<8&&8*a+l<this.width;l++){var f=this.palette[o>>7-l&1];this.data[c+4*l]=f.blue,this.data[c+4*l+1]=f.green,this.data[c+4*l+2]=f.red,this.data[c+4*l+3]=255}e!==0&&(this.pos+=4-e)}},lr.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),n=t%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,a=0;a<t;a++){var o=this.datav.getUint8(this.pos++,!0),c=r*this.width*4+2*a*4,l=o>>4,f=15&o,d=this.palette[l];if(this.data[c]=d.blue,this.data[c+1]=d.green,this.data[c+2]=d.red,this.data[c+3]=255,2*a+1>=this.width)break;d=this.palette[f],this.data[c+4]=d.blue,this.data[c+4+1]=d.green,this.data[c+4+2]=d.red,this.data[c+4+3]=255}n!==0&&(this.pos+=4-n)}},lr.prototype.bit8=function(){for(var t=this.width%4,n=this.height-1;n>=0;n--){for(var e=this.bottom_up?n:this.height-1-n,r=0;r<this.width;r++){var a=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*r;if(a<this.palette.length){var c=this.palette[a];this.data[o]=c.red,this.data[o+1]=c.green,this.data[o+2]=c.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}t!==0&&(this.pos+=4-t)}},lr.prototype.bit15=function(){for(var t=this.width%3,n=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var c=(o&n)/n*255|0,l=(o>>5&n)/n*255|0,f=(o>>10&n)/n*255|0,d=o>>15?255:0,v=r*this.width*4+4*a;this.data[v]=f,this.data[v+1]=l,this.data[v+2]=c,this.data[v+3]=d}this.pos+=t}},lr.prototype.bit16=function(){for(var t=this.width%3,n=parseInt("11111",2),e=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var a=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var c=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(c&n)/n*255|0,f=(c>>5&e)/e*255|0,d=(c>>11)/n*255|0,v=a*this.width*4+4*o;this.data[v]=d,this.data[v+1]=f,this.data[v+2]=l,this.data[v+3]=255}this.pos+=t}},lr.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),c=n*this.width*4+4*e;this.data[c]=o,this.data[c+1]=a,this.data[c+2]=r,this.data[c+3]=255}this.pos+=this.width%4}},lr.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var n=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),c=this.datav.getUint8(this.pos++,!0),l=n*this.width*4+4*e;this.data[l]=o,this.data[l+1]=a,this.data[l+2]=r,this.data[l+3]=c}},lr.prototype.getData=function(){return this.data},(function(t){t.processBMP=function(n,e,r,a){var o=new lr(n,!1),c=o.width,l=o.height,f={data:o.getData(),width:c,height:l},d=new xh(100).encode(f,100);return t.processJPEG.call(this,d,e,r,a)}})(Dt.API),Iu.prototype.getData=function(){return this.data},(function(t){t.processWEBP=function(n,e,r,a){var o=new Iu(n),c=o.width,l=o.height,f={data:o.getData(),width:c,height:l},d=new xh(100).encode(f,100);return t.processJPEG.call(this,d,e,r,a)}})(Dt.API),Dt.API.processRGBA=function(t,n,e){for(var r=t.data,a=r.length,o=new Uint8Array(a/4*3),c=new Uint8Array(a/4),l=0,f=0,d=0;d<a;d+=4){var v=r[d],x=r[d+1],N=r[d+2],p=r[d+3];o[l++]=v,o[l++]=x,o[l++]=N,c[f++]=p}var T=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(c),data:T,index:n,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},Dt.API.setLanguage=function(t){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:"Rh
47aeto-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"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,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},ya=Dt.API,Rs=ya.getCharWidthsArray=function(t,n){var e,r,a=(n=n||{}).font||this.internal.getFont(),o=n.fontSize||this.internal.getFontSize(),c=n.charSpace||this.internal.getCharSpace(),l=n.widths?n.widths:a.metadata.Unicode.widths,f=l.fof?l.fof:1,d=n.kerning?n.kerning:a.metadata.Unicode.kerning,v=d.fof?d.fof:1,x=n.doKerning!==!1,N=0,p=t.length,T=0,E=l[0]||f,B=[];for(e=0;e<p;e++)r=t.charCodeAt(e),typeof a.metadata.widthOfString=="function"?B.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(r))+c*(1e3/o)||0)/1e3):(N=x&&Le(d[r])==="object"&&!isNaN(parseInt(d[r][T],10))?d[r][T]/v:0,B.push((l[r]||E)/f+N)),T=r;return B},yu=ya.getStringUnitWidth=function(t,n){var e=(n=n||{}).fontSize||this.internal.getFontSize(),r=n.font||this.internal.getFont(),a=n.charSpace||this.internal.getCharSpace();return ya.processArabic&&(t=ya.processArabic(t)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(t,e,a)/e:Rs.apply(this,arguments).reduce(function(o,c){return o+c},0)},_u=function(t,n,e,r){for(var a=[],o=0,c=t.length,l=0;o!==c&&l+n[o]<e;)l+=n[o],o++;a.push(t.slice(0,o));var f=o;for(l=0;o!==c;)l+n[o]>r&&(a.push(t.slice(f,o)),l=0,f=o),l+=n[o],o++;return f!==o&&a.push(t.slice(f,o)),a},xu=function(t,n,e){e||(e={});var r,a,o,c,l,f,d,v=[],x=[v],N=e.textIndent||0,p=0,T=0,E=t.split(" "),B=Rs.apply(this,[" ",e])[0];if(f=e.lineIndent===-1?E[0].length+2:e.lineIndent||0){var k=Array(f).join(" "),G=[];E.map(function(j){(j=j.split(/\s*\n/)).length>1?G=G.concat(j.map(function(it,vt){return(vt&&it.length?` 48`:"")+it})):G.push(j[0])}),E=G,f=yu.apply(this,[k,e])}for(o=0,c=E.length;o<c;o++){var V=0;if(r=E[o],f&&r[0]==` 49`&&(r=r.substr(1),V=1),N+p+(T=(a=Rs.apply(this,[r,e])).reduce(function(j,it){return j+it},0))>n||V){if(T>n){for(l=_u.apply(this,[r,a,n-(N+p),n]),v.push(l.shift()),v=[l.pop()];l.length;)x.push([l.shift()]);T=a.slice(r.length-(v[0]?v[0].length:0)).reduce(function(j,it){return j+it},0)}else v=[r];x.push(v),N=T+f,p=B}else v.push(r),N+=p+T,p=B}return d=f?function(j,it){return(it?k:"")+j.join(" ")}:function(j){return j.join(" ")},x.map(d)},ya.splitTextToSize=function(t,n,e){var r,a=(e=e||{}).fontSize||this.internal.getFontSize(),o=function(v){if(v.widths&&v.kerning)return{widths:v.widths,kerning:v.kerning};var x=this.internal.getFont(v.fontName,v.fontStyle),N="Unicode";return x.metadata[N]?{widths:x.metadata[N].widths||{0:1},kerning:x.metadata[N].kerning||{}}:{font:x.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,e);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var c=1*this.internal.scaleFactor*n/a;o.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/a:0,o.lineIndent=e.lineIndent;var l,f,d=[];for(l=0,f=r.length;l<f;l++)d=d.concat(xu.apply(this,[r[l],c,o]));return d},(function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var n="0123456789abcdef",e="klmnopqrstuvwxyz",r={},a={},o=0;o<16;o++)r[e[o]]=n[o],a[n[o]]=e[o];var c=function(N){return"0x"+parseInt(N,10).toString(16)},l=t.__fontmetrics__.compress=function(N){var p,T,E,B,k=["{"];for(var G in N){if(p=N[G],isNaN(parseInt(G,10))?T="'"+G+"'":(G=parseInt(G,10),T=(T=c(G).slice(2)).slice(0,-1)+a[T.slice(-1)]),typeof p=="number")p<0?(E=c(p).slice(3),B="-"):(E=c(p).slice(2),B=""),E=B+E.slice(0,-1)+a[E.slice(-1)];
vendor: 3,672 bytes, line 49
49else{if(Le(p)!=="object")throw new Error("Don't know what to do with value type "+Le(p)+".");E=l(p)}k.push(T+E)}return k.push("}"),k.join("")},f=t.__fontmetrics__.uncompress=function(N){if(typeof N!="string")throw new Error("Invalid argument passed to uncompress.");for(var p,T,E,B,k={},G=1,V=k,j=[],it="",vt="",ut=N.length-1,Y=1;Y<ut;Y+=1)(B=N[Y])=="'"?p?(E=p.join(""),p=void 0):p=[]:p?p.push(B):B=="{"?(j.push([V,E]),V={},E=void 0):B=="}"?((T=j.pop())[0][T[1]]=V,E=void 0,V=T[0]):B=="-"?G=-1:E===void 0?r.hasOwnProperty(B)?(it+=r[B],E=parseInt(it,16)*G,G=1,it=""):it+=B:r.hasOwnProperty(B)?(vt+=r[B],V[E]=parseInt(vt,16)*G,G=1,E=void 0,vt=""):vt+=B;return k},d={codePages:["WinAnsiEncoding"],WinAnsiEncoding:f("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},v={Unicode:{Courier:d,"Courier-Bold":d,"Courier-BoldOblique":d,"Courier-Oblique":d,Helvetica:d,"Helvetica-Bold":d,"Helvetica-BoldOblique":d,"Helvetica-Oblique":d,"Times-Roman":d,"Times-Bold":d,"Times-BoldItalic":d,"Times-Italic":d}},x={Unicode:{"Courier-Oblique":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":f("{'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":f("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
49dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'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:f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":f("{'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:f("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:f("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
49dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'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":f("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
49dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'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:f("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":f("{'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}
49fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":f("{'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":f("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
49dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'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}}}")}};t.events.push(["addFont",function(N){var p=N.font,T=x.Unicode[p.postScriptName];T&&(p.metadata.Unicode={},p.metadata.Unicode.widths=T.widths,p.metadata.Unicode.kerning=T.kerning);var E=v.Unicode[p.postScriptName];E&&(p.metadata.Unicode.encoding=E,p.encoding=E.codePages[0])}])})(Dt.API),(function(t){var n=function(e){for(var r=e.length,a=new Uint8Array(r),o=0;o<r;o++)a[o]=e.charCodeAt(o);return a};t.API.events.push(["addFont",function(e){var r=void 0,a=e.font,o=e.instance;if(!a.isStandardFont){if(o===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");if(typeof(r=o.existsFileInVFS(a.postScriptName)===!1?o.loadFile(a.postScriptName):o.getFileFromVFS(a.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");(function(c,l){l=/^\x00\x01\x00\x00/.test(l)?n(l):n(Bs(l)),c.metadata=t.API.TTFFont.open(l),c.metadata.Unicode=c.metadata.Unicode||{encoding:{},kerning:{},widths:[]},c.metadata.glyIdsUsed=[0]})(a,r)}}])})(Dt),Dt.API.addSvgAsImage=function(t,n,e,r,a,o,c,l){if(isNaN(n)||isNaN(e))throw Pe.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(a))throw Pe.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var f=document.createElement("canvas");f.width=r,f.height=a;var d=f.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,f.width,f.height);var v={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},x=this;return($t.canvg?Promise.resolve($t.canvg):import("/assets/index.es-6MUL3WMI.js")).catch(function(N){return Promise.reject(new Error("Could not load canvg: "+N))}).then(function(N){return N.default?N.default:N}).then(function(N){return N.fromString(d,t,v)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(N){return N.render(v)}).then(function(){x.addImage(f.toDataURL("image/jpeg",1),n,e,r,a,c,l)})},Dt.API.putTotalPages=function(t){var n,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(n=new RegExp(t,"g"),e=this.internal.getNumberOfPages()):(n=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var a=0;a<this.internal.pages[r].length;a++)this.internal.pages[r][a]=this.internal.pages[r][a].replace(n,e);return this},Dt.API.viewerPreferences=function(t,n){var e;t=t||{},n=n||!1;var r,a,o,c={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(c),f=[],d=0,v=0,x=0;function N(T,E){var B,k=!1;for(B=0;B<T.length;B+=1)T[B]===E&&(k=!0);return k}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(c)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,t==="reset"||n===!0){var p=l.length;for(x=0;x<p;x+=1)e[l[x]].value=e[l[x]].defaultValue,e[l[x]].explicitSet=!1}if(Le(t)==="object"){for(a in t)if(o=t[a],N(l,a)&&o!==void 0){if(e[a].type==="boolean"&&typeof o=="boolean")e[a].value=o;else if(e[a].type==="name"&&N(e[a].valueSet,o))e[a].value=o;else if(e[a].type==="integer"&&Number.isInteger(o))e[a].value=o;else if(e[a].type==="array"){for(d=0;d<o.length;d+=1)if(r=!0,o[d].length===1&&typeof o[d][0]=="number")f.push(String(o[d]-1));else if(o[d].length>1){for(v=0;v<o[d].length;v+=1)typeof o[d][v]!="number"&&(r=!1);r===!0&&f.push([o[d][0]-1,o[d][1]-1].join(" "))}e[a].value="["+f.join(" ")+"]"}else e[a].value=e[a].defaultValue;e[a].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var T,E=[];for(T in e)e[T].explicitSet===!0&&(e[T].type==="name"?E.push("/"+T+" /"+e[T].value):E.push("/"+T+" "+e[T].value));E.length!==0&&this.internal.write(`/ViewerPreferences 50<< 51`+E.join(` 52`)+` 53>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},(function(t){var n=function(){var r='<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>',a=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),o=unescape(encodeURIComponent(r)),c=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),l=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),f=unescape(encodeURIComponent("</x:xmpmeta>")),d=o.length+c.length+l.length+a.length+f.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+d+" >>"),this.internal.write("stream"),this.internal.write(a+o+c+l+f),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")};t.addMetadata=function(r,a){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:a||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",e),this.internal.events.subscribe("postPutResources",n)),this}})(Dt.API),(function(t){var n=t.API,e=n.pdfEscape16=function(o,c){for(var l,f=c.metadata.Unicode.widths,d=["","0","00","000","0000"],v=[""],x=0,N=o.length;x<N;
vendor: 38,549 bytes, lines 53-77
53++x){if(l=c.metadata.characterToGlyph(o.charCodeAt(x)),c.metadata.glyIdsUsed.push(l),c.metadata.toUnicode[l]=o.charCodeAt(x),f.indexOf(l)==-1&&(f.push(l),f.push([parseInt(c.metadata.widthOfGlyph(l),10)])),l=="0")return v.join("");l=l.toString(16),v.push(d[4-l.length],l)}return v.join("")},r=function(o){var c,l,f,d,v,x,N;for(v=`/CIDInit /ProcSet findresource begin 5412 dict begin 55begincmap 56/CIDSystemInfo << 57 /Registry (Adobe) 58 /Ordering (UCS) 59 /Supplement 0 60>> def 61/CMapName /Adobe-Identity-UCS def 62/CMapType 2 def 631 begincodespacerange 64<0000><ffff> 65endcodespacerange`,f=[],x=0,N=(l=Object.keys(o).sort(function(p,T){return p-T})).length;x<N;x++)c=l[x],f.length>=100&&(v+=` 66`+f.length+` beginbfchar 67`+f.join(` 68`)+` 69endbfchar`,f=[]),o[c]!==void 0&&o[c]!==null&&typeof o[c].toString=="function"&&(d=("0000"+o[c].toString(16)).slice(-4),c=("0000"+(+c).toString(16)).slice(-4),f.push("<"+c+"><"+d+">"));return f.length&&(v+=` 70`+f.length+` beginbfchar 71`+f.join(` 72`)+` 73endbfchar 74`),v+`endcmap 75CMapName currentdict /CMap defineresource pop 76end 77end`};n.events.push(["putFont",function(o){(function(c){var l=c.font,f=c.out,d=c.newObject,v=c.putStream;if(l.metadata instanceof t.API.TTFFont&&l.encoding==="Identity-H"){for(var x=l.metadata.Unicode.widths,N=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),p="",T=0;T<N.length;T++)p+=String.fromCharCode(N[T]);var E=d();v({data:p,addLength1:!0,objectId:E}),f("endobj");var B=d();v({data:r(l.metadata.toUnicode),addLength1:!0,objectId:B}),f("endobj");var k=d();f("<<"),f("/Type /FontDescriptor"),f("/FontName /"+xa(l.fontName)),f("/FontFile2 "+E+" 0 R"),f("/FontBBox "+t.API.PDFObject.convert(l.metadata.bbox)),f("/Flags "+l.metadata.flags),f("/StemV "+l.metadata.stemV),f("/ItalicAngle "+l.metadata.italicAngle),f("/Ascent "+l.metadata.ascender),f("/Descent "+l.metadata.decender),f("/CapHeight "+l.metadata.capHeight),f(">>"),f("endobj");var G=d();f("<<"),f("/Type /Font"),f("/BaseFont /"+xa(l.fontName)),f("/FontDescriptor "+k+" 0 R"),f("/W "+t.API.PDFObject.convert(x)),f("/CIDToGIDMap /Identity"),f("/DW 1000"),f("/Subtype /CIDFontType2"),f("/CIDSystemInfo"),f("<<"),f("/Supplement 0"),f("/Registry (Adobe)"),f("/Ordering ("+l.encoding+")"),f(">>"),f(">>"),f("endobj"),l.objectNumber=d(),f("<<"),f("/Type /Font"),f("/Subtype /Type0"),f("/ToUnicode "+B+" 0 R"),f("/BaseFont /"+xa(l.fontName)),f("/Encoding /"+l.encoding),f("/DescendantFonts ["+G+" 0 R]"),f(">>"),f("endobj"),l.isAlreadyPutted=!0}})(o)}]),n.events.push(["putFont",function(o){(function(c){var l=c.font,f=c.out,d=c.newObject,v=c.putStream;if(l.metadata instanceof t.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var x=l.metadata.rawData,N="",p=0;p<x.length;p++)N+=String.fromCharCode(x[p]);var T=d();v({data:N,addLength1:!0,objectId:T}),f("endobj");var E=d();v({data:r(l.metadata.toUnicode),addLength1:!0,objectId:E}),f("endobj");var B=d();f("<<"),f("/Descent "+l.metadata.decender),f("/CapHeight "+l.metadata.capHeight),f("/StemV "+l.metadata.stemV),f("/Type /FontDescriptor"),f("/FontFile2 "+T+" 0 R"),f("/Flags 96"),f("/FontBBox "+t.API.PDFObject.convert(l.metadata.bbox)),f("/FontName /"+xa(l.fontName)),f("/ItalicAngle "+l.metadata.italicAngle),f("/Ascent "+l.metadata.ascender),f(">>"),f("endobj"),l.objectNumber=d();for(var k=0;k<l.metadata.hmtx.widths.length;k++)l.metadata.hmtx.widths[k]=parseInt(l.metadata.hmtx.widths[k]*(1e3/l.metadata.head.unitsPerEm));f("<</Subtype/TrueType/Type/Font/ToUnicode "+E+" 0 R/BaseFont/"+xa(l.fontName)+"/FontDescriptor "+B+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),f("endobj"),l.isAlreadyPutted=!0}})(o)}]);var a=function(o){var c,l=o.text||"",f=o.x,d=o.y,v=o.options||{},x=o.mutex||{},N=x.pdfEscape,p=x.activeFontKey,T=x.fonts,E=p,B="",k=0,G="",V=T[E].encoding;if(T[E].encoding!=="Identity-H")return{text:l,x:f,y:d,options:v,mutex:x};for(G=l,E=p,Array.isArray(l)&&(G=l[0]),k=0;k<G.length;k+=1)T[E].metadata.hasOwnProperty("cmap")&&(c=T[E].metadata.cmap.unicode.codeMap[G[k].charCodeAt(0)]),c||G[k].charCodeAt(0)<256&&T[E].metadata.hasOwnProperty("Unicode")?B+=G[k]:B+="";var j="";return parseInt(E.slice(1))<14||V==="WinAnsiEncoding"?j=N(B,E).split("").map(function(it){return it.charCodeAt(0).toString(16)}).join(""):V==="Identity-H"&&(j=e(B,T[E])),x.isHex=!0,{text:j,x:f,y:d,options:v,mutex:x}};n.events.push(["postProcessText",function(o){var c=o.text||"",l=[],f={text:c,x:o.x,y:o.y,options:o.options,mutex:o.mutex};if(Array.isArray(c)){var d=0;for(d=0;d<c.length;d+=1)Array.isArray(c[d])&&c[d].length===3?l.push([a(Object.assign({},f,{text:c[d][0]})).text,c[d][1],c[d][2]]):l.push(a(Object.assign({},f,{text:c[d]})).text);o.text=l}else o.text=a(Object.assign({},f,{text:c})).text}])})(Dt),(function(t){var n=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(e){return n.call(this),this.internal.vFS[e]!==void 0},t.addFileToVFS=function(e,r){return n.call(this),this.internal.vFS[e]=r,this},t.getFileFromVFS=function(e){return n.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}})(Dt.API),(function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(r){var a,o,c,l,f,d,v,x=n,N=[[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]],p=[[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]],T={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},E={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},B=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],k=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)$/),G=!1,V=0;this.__bidiEngine__={};var j=function(L){var F=L.charCodeAt(),q=F>>8,z=E[q];return z!==void 0?x[256*z+(255&F)]:q===252||q===253?"AL":k.test(q)?"L":q===8?"R":"N"},it=function(L){for(var F,q=0;q<L.length;q++){if((F=j(L.charAt(q)))==="L")return!1;if(F==="R")return!0}return!1},vt=function(L,F,q,z){var rt,st,ht,nt,ct=F[z];switch(ct){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":G=!1;break;case"N":case"AN":break;case"EN":G&&(ct="AN");break;case"AL":G=!0,ct="R";break;case"WS":case"BN":ct="N";break;case"CS":z<1||z+1>=F.length||(rt=q[z-1])!=="EN"&&rt!=="AN"||(st=F[z+1])!=="EN"&&st!=="AN"?ct="N":G&&(st="AN"),ct=st===rt?st:"N";break;case"ES":ct=(rt=z>0?q[z-1]:"B")==="EN"&&z+1<F.length&&F[z+1]==="EN"?"EN":"N";break;case"ET":if(z>0&&q[z-1]==="EN"){ct="EN";break}if(G){ct="N";break}for(ht=z+1,nt=F.length;ht<nt&&F[ht]==="ET";)ht++;ct=ht<nt&&F[ht]==="EN"?"EN":"N";break;case"NSM":if(c&&!l){for(nt=F.length,ht=z+1;ht<nt&&F[ht]==="NSM";)ht++;if(ht<nt){var At=L[z],wt=At>=1425&&At<=2303||At===64286;if(rt=F[ht],wt&&(rt==="R"||rt==="AL")){ct="R";break}}}ct=z<1||(rt=F[z-1])==="B"?"N":q[z-1];break;case"B":G=!1,a=!0,ct=V;break;case"S":o=!0,ct="N"}return ct},ut=function(L,F,q){var z=L.split("");return q&&Y(z,q,{hiLevel:V}),z.reverse(),F&&F.reverse(),z.join("")},Y=function(L,F,q){var z,rt,st,ht,nt,ct=-1,At=L.length,wt=0,_=[],R=V?p:N,D=[];for(G=!1,a=!1,o=!1,rt=0;rt<At;rt++)D[rt]=j(L[rt]);for(st=0;st<At;st++){if(nt=wt,_[st]=vt(L,D,_,st),z=240&(wt=R[nt][T[_[st]]]),wt&=15,F[st]=ht=R[wt][5],z>0)if(z===16){for(rt=ct;rt<st;rt++)F[rt]=1;ct=-1}else ct=-1;if(R[wt][6])ct===-1&&(ct=st);else if(ct>-1){for(rt=ct;rt<st;rt++)F[rt]=ht;ct=-1}D[st]==="B"&&(F[st]=0),q.hiLevel|=ht}o&&(function(H,$,J){for(var at=0;at<J;at++)if(H[at]==="S"){$[at]=V;for(var ot=at-1;ot>=0&&H[ot]==="WS";ot--)$[ot]=V}})(D,F,At)},M=function(L,F,q,z,rt){if(!(rt.hiLevel<L)){if(L===1&&V===1&&!a)return F.reverse(),void(q&&q.reverse());for(var st,ht,nt,ct,At=F.length,wt=0;wt<At;){if(z[wt]>=L){for(nt=wt+1;nt<At&&z[nt]>=L;)nt++;for(ct=wt,ht=nt-1;ct<ht;ct++,ht--)st=F[ct],F[ct]=F[ht],F[ht]=st,q&&(st=q[ct],q[ct]=q[ht],q[ht]=st);wt=nt}wt++}}},tt=function(L,F,q){var z=L.split(""),rt={hiLevel:V};return q||(q=[]),Y(z,q,rt),(function(st,ht,nt){if(nt.hiLevel!==0&&v)for(var ct,At=0;At<st.length;At++)ht[At]===1&&(ct=B.indexOf(st[At]))>=0&&(st[At]=B[ct+1])})(z,q,rt),M(2,z,F,q,rt),M(1,z,F,q,rt),z.join("")};return this.__bidiEngine__.doBidiReorder=function(L,F,q){if((function(rt,st){if(st)for(var ht=0;ht<rt.length;ht++)st[ht]=ht;l===void 0&&(l=it(rt)),d===void 0&&(d=it(rt))})(L,F),c||!f||d)if(c&&f&&l^d)V=l?1:0,L=ut(L,F,q);else if(!c&&f&&d)V=l?1:0,L=tt(L,F,q),L=ut(L,F);else if(!c||l||f||d){if(c&&!f&&l^d)L=ut(L,F),l?(V=0,L=tt(L,F,q)):(V=1,L=tt(L,F,q),L=ut(L,F));else if(c&&l&&!f&&d)V=1,L=tt(L,F,q),L=ut(L,F);else if(!c&&!f&&l^d){var z=v;l?(V=1,L=tt(L,F,q),V=0,v=!1,L=tt(L,F,q),v=z):(V=0,L=tt(L,F,q),L=ut(L,F),V=1,v=!1,L=tt(L,F,q),v=z,L=ut(L,F))}}else V=0,L=tt(L,F,q);else V=l?1:0,L=tt(L,F,q);return L},this.__bidiEngine__.setOptions=function(L){L&&(c=L.isInputVisual,f=L.isOutputVisual,l=L.isInputRtl,d=L.isOutputRtl,v=L.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var n=["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 t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(r){var a=r.text;r.x,r.y;var o=r.options||{};r.mutex,o.lang;var c=[];if(o.isInputVisual=typeof o.isInputVisual!="boolean"||o.isInputVisual,e.setOptions(o),Object.prototype.toString.call(a)==="[object Array]"){var l=0;for(c=[],l=0;l<a.length;l+=1)Object.prototype.toString.call(a[l])==="[object Array]"?c.push([e.doBidiReorder(a[l][0]),a[l][1],a[l][2]]):c.push([e.doBidiReorder(a[l])]);r.text=c}else r.text=e.doBidiReorder(a);e.setOptions({isInputVisual:!0})}])})(Dt),Dt.API.TTFFont=(function(){function t(n){var e;if(this.rawData=n,e=this.contents=new bi(n),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new _d(this),this.registerTTF()}return t.open=function(n){return new t(n)},t.prototype.parse=function(){return this.directory=new sd(this.contents),this.head=new hd(this),this.name=new pd(this),this.cmap=new Hu(this),this.toUnicode={},this.hhea=new fd(this),this.maxp=new gd(this),this.hmtx=new vd(this),this.post=new ud(this),this.os2=new cd(this),this.loca=new yd(this),this.glyf=new md(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]},t.prototype.registerTTF=function(){var n,e,r,a,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var c,l,f,d;for(d=[],c=0,l=(f=this.bbox).length;c<l;c++)n=f[c],d.push(Math.round(n*this.scaleFactor));return d}.call(this),this.stemV=0,this.post.exists?(r=255&(a=this.post.italic_angle),32768&(e=a>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+r)):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=(o=this.familyClass)===1||o===2||o===3||o===4||o===5||o===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")},t.prototype.characterToGlyph=function(n){var e;return((e=this.cmap.unicode)!=null?e.codeMap[n]:void 0)||0},t.prototype.widthOfGlyph=function(n){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(n).advance*e},t.prototype.widthOfString=function(n,e,r){var a,o,c,l;for(c=0,o=0,l=(n=""+n).length;0<=l?o<l:o>l;o=0<=l?++o:--o)a=n.charCodeAt(o),c+=this.widthOfGlyph(this.characterToGlyph(a))+r*(1e3/e)||0;return c*(e/1e3)},t.prototype.lineHeight=function(n,e){var r;return e==null&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*n},t})();var fr,bi=(function(){function t(n){this.data=n??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(n){return this.data[this.pos++]=n},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(n){return this.writeByte(n>>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt32=function(){var n;return(n=this.readUInt32())>=2147483648?n-4294967296:n},t.prototype.writeInt32=function(n){return n<0&&(n+=4294967296),this.writeUInt32(n)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(n){return this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt16=function(){var n;return(n=this.readUInt16())>=32768?n-65536:n},t.prototype.writeInt16=function(n){return n<0&&(n+=65536),this.writeUInt16(n)},t.prototype.readString=function(n){var e,r;for(r=[],e=0;0<=n?e<n:e>n;e=0<=n?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(n){var e,r,a;for(a=[],e=0,r=n.length;0<=r?e<r:e>r;e=0<=r?++e:--e)a.push(this.writeByte(n.charCodeAt(e)));return a},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(n){return this.writeInt16(n)},t.prototype.readLongLong=function(){var n,e,r,a,o,c,l,f;return n=this.readByte(),e=this.readByte(),r=this.readByte(),a=this.readByte(),o=this.readByte(),c=this.readByte(),l=this.readByte(),f=this.readByte(),128&n?-1*(72057594037927940*(255^n)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^a)+16777216*(255^o)+65536*(255^c)+256*(255^l)+(255^f)+1):72057594037927940*n+281474976710656*e+1099511627776*r+4294967296*a+16777216*o+65536*c+256*l+f},t.prototype.writeLongLong=function(n){var e,r;return e=Math.floor(n/4294967296),r=4294967295&n,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(n){return this.writeInt32(n)},t.prototype.read=function(n){var e,r;for(e=[],r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)e.push(this.readByte());return e},t.prototype.write=function(n){var e,r,a,o;for(o=[],r=0,a=n.length;r<a;r++)e=n[r],o.push(this.writeByte(e));return o},t})(),sd=(function(){var t;function n(e){var r,a,o;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},a=0,o=this.tableCount;0<=o?a<o:a>o;a=0<=o?++a:--a)r={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[r.tag]=r}return n.prototype.encode=function(e){var r,a,o,c,l,f,d,v,x,N,p,T,E;for(E in p=Object.keys(e).length,f=Math.log(2),x=16*Math.floor(Math.log(p)/f),c=Math.floor(x/f),v=16*p-x,(a=new bi).writeInt(this.scalarType),a.writeShort(p),a.writeShort(x),a.writeShort(c),a.writeShort(v),o=16*p,d=a.pos+o,l=null,T=[],e)for(N=e[E],a.writeString(E),a.writeInt(t(N)),a.writeInt(d),a.writeInt(N.length),T=T.concat(N),E==="head"&&(l=d),d+=N.length;d%4;)T.push(0),d++;return a.write(T),r=2981146554-t(a.data),a.pos=l+8,a.writeUInt32(r),a.data},t=function(e){var r,a,o,c;for(e=Wu.call(e);e.length%4;)e.push(0);for(o=new bi(e),a=0,r=0,c=e.length;r<c;r=r+=4)a+=o.readUInt32();return 4294967295&a},n})(),ld={}.hasOwnProperty,kr=function(t,n){for(var e in n)ld.call(n,e)&&(t[e]=n[e]);function r(){this.constructor=t}return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};fr=(function(){function t(n){var e;this.file=n,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 t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t})();var hd=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return kr(t,fr),t.prototype.tag="head",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.revision=n.readInt(),this.checkSumAdjustment=n.readInt(),this.magicNumber=n.readInt(),this.flags=n.readShort(),this.unitsPerEm=n.readShort(),this.created=n.readLongLong(),this.modified=n.readLongLong(),this.xMin=n.readShort(),this.yMin=n.readShort(),this.xMax=n.readShort(),this.yMax=n.readShort(),this.macStyle=n.readShort(),this.lowestRecPPEM=n.readShort(),this.fontDirectionHint=n.readShort(),this.indexToLocFormat=n.readShort(),this.glyphDataFormat=n.readShort()},t.prototype.encode=function(n){var e;return(e=new bi).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(n),e.writeShort(this.glyphDataFormat),e.data},t})(),Cu=(function(){function t(n,e){var r,a,o,c,l,f,d,v,x,N,p,T,E,B,k,G,V;switch(this.platformID=n.readUInt16(),this.encodingID=n.readShort(),this.offset=e+n.readInt(),x=n.pos,n.pos=this.offset,this.format=n.readUInt16(),this.length=n.readUInt16(),this.language=n.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(f=0;f<256;++f)this.codeMap[f]=n.readByte();break;case 4:for(p=n.readUInt16(),N=p/2,n.pos+=6,o=(function(){var j,it;for(it=[],f=j=0;0<=N?j<N:j>N;f=0<=N?++j:--j)it.push(n.readUInt16());return it})(),n.pos+=2,E=(function(){var j,it;for(it=[],f=j=0;0<=N?j<N:j>N;f=0<=N?++j:--j)it.push(n.readUInt16());return it})(),d=(function(){var j,it;for(it=[],f=j=0;0<=N?j<N:j>N;f=0<=N?++j:--j)it.push(n.readUInt16());return it})(),v=(function(){var j,it;for(it=[],f=j=0;0<=N?j<N:j>N;f=0<=N?++j:--j)it.push(n.readUInt16());return it})(),a=(this.length-n.pos+this.offset)/2,l=(function(){var j,it;for(it=[],f=j=0;0<=a?j<a:j>a;f=0<=a?++j:--j)it.push(n.readUInt16());return it})(),f=k=0,V=o.length;k<V;f=++k)for(B=o[f],r=G=T=E[f];T<=B?G<=B:G>=B;r=T<=B?++G:--G)v[f]===0?c=r+d[f]:(c=l[v[f]/2+(r-T)-(N-f)]||0)!==0&&(c+=d[f]),this.codeMap[r]=65535&c}n.pos=x}return t.encode=function(n,e){var r,a,o,c,l,f,d,v,x,N,p,T,E,B,k,G,V,j,it,vt,ut,Y,M,tt,L,F,q,z,rt,st,ht,nt,ct,At,wt,_,R,D,H,$,J,at,ot,gt,xt,kt;switch(z=new bi,c=Object.keys(n).sort(function(St,jt){return St-jt}),e){case"macroman":for(E=0,B=(function(){var St=[];for(T=0;T<256;++T)St.push(0);return St})(),G={0:0},o={},rt=0,ct=c.length;rt<ct;rt++)G[ot=n[a=c[rt]]]==null&&(G[ot]=++E),o[a]={old:n[a],new:G[n[a]]},B[a]=G[n[a]];return z.writeUInt16(1),z.writeUInt16(0),z.writeUInt32(12),z.writeUInt16(0),z.writeUInt16(262),z.writeUInt16(0),z.write(B),{charMap:o,subtable:z.data,maxGlyphID:E+1};case"unicode":for(F=[],x=[],V=0,G={},r={},k=d=null,st=0,At=c.length;st<At;st++)G[it=n[a=c[st]]]==null&&(G[it]=++V),r[a]={old:it,new:G[it]},l=G[it]-a,k!=null&&l===d||(k&&x.push(k),F.push(a),d=l),k=a;for(k&&x.push(k),x.push(65535),F.push(65535),tt=2*(M=F.length),Y=2*Math.pow(Math.log(M)/Math.LN2,2),N=Math.log(Y/2)/Math.LN2,ut=2*M-Y,f=[],vt=[],p=[],T=ht=0,wt=F.length;ht<wt;T=++ht){if(L=F[T],v=x[T],L===65535){f.push(0),vt.push(0);break}if(L-(q=r[L].new)>=32768)for(f.push(0),vt.push(2*(p.length+M-T)),a=nt=L;L<=v?nt<=v:nt>=v;a=L<=v?++nt:--nt)p.push(r[a].new);else f.push(q-L),vt.push(0)}for(z.writeUInt16(3),z.writeUInt16(1),z.writeUInt32(12),z.writeUInt16(4),z.writeUInt16(16+8*M+2*p.length),z.writeUInt16(0),z.writeUInt16(tt),z.writeUInt16(Y),z.writeUInt16(N),z.writeUInt16(ut),J=0,_=x.length;J<_;J++)a=x[J],z.writeUInt16(a);for(z.writeUInt16(0),at=0,R=F.length;at<R;at++)a=F[at],z.writeUInt16(a);for(gt=0,D=f.length;gt<D;gt++)l=f[gt],z.writeUInt16(l);for(xt=0,H=vt.length;xt<H;xt++)j=vt[xt],z.writeUInt16(j);for(kt=0,$=p.length;kt<$;kt++)E=p[kt],z.writeUInt16(E);return{charMap:r,subtable:z.data,maxGlyphID:V+1}}},t})(),Hu=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return kr(t,fr),t.prototype.tag="cmap",t.prototype.parse=function(n){var e,r,a;for(n.pos=this.offset,this.version=n.readUInt16(),a=n.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=a?r<a:r>a;r=0<=a?++r:--r)e=new Cu(n,this.offset),this.tables.push(e),e.isUnicode&&this.unicode==null&&(this.unicode=e);return!0},t.encode=function(n,e){var r,a;return e==null&&(e="macroman"),r=Cu.encode(n,e),(a=new bi).writeUInt16(0),a.writeUInt16(1),r.table=a.data.concat(r.subtable),r},t})(),fd=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return kr(t,fr),t.prototype.tag="hhea",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.ascender=n.readShort(),this.decender=n.readShort(),this.lineGap=n.readShort(),this.advanceWidthMax=n.readShort(),this.minLeftSideBearing=n.readShort(),this.minRightSideBearing=n.readShort(),this.xMaxExtent=n.readShort(),this.caretSlopeRise=n.readShort(),this.caretSlopeRun=n.readShort(),this.caretOffset=n.readShort(),n.pos+=8,this.metricDataFormat=n.readShort(),this.numberOfMetrics=n.readUInt16()},t})(),cd=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return kr(t,fr),t.prototype.tag="OS/2",t.prototype.parse=function(n){if(n.pos=this.offset,this.version=n.readUInt16(),this.averageCharWidth=n.readShort(),this.weightClass=n.readUInt16(),this.widthClass=n.readUInt16(),this.type=n.readShort(),this.ySubscriptXSize=n.readShort(),this.ySubscriptYSize=n.readShort(),this.ySubscriptXOffset=n.readShort(),this.ySubscriptYOffset=n.readShort(),this.ySuperscriptXSize=n.readShort(),this.ySuperscriptYSize=n.readShort(),this.ySuperscriptXOffset=n.readShort(),this.ySuperscriptYOffset=n.readShort(),this.yStrikeoutSize=n.readShort(),this.yStrikeoutPosition=n.readShort(),this.familyClass=n.readShort(),this.panose=(function(){var e,r;for(r=[],e=0;e<10;++e)r.push(n.readByte());return r})(),this.charRange=(function(){var e,r;for(r=[],e=0;e<4;++e)r.push(n.readInt());return r})(),this.vendorID=n.readString(4),this.selection=n.readShort(),this.firstCharIndex=n.readShort(),this.lastCharIndex=n.readShort(),this.version>0&&(this.ascent=n.readShort(),this.descent=n.readShort(),this.lineGap=n.readShort(),this.winAscent=n.readShort(),this.winDescent=n.readShort(),this.codePageRange=(function(){var e,r;for(r=[],e=0;e<2;e=++e)r.push(n.readInt());return r})(),this.version>1))return this.xHeight=n.readShort(),this.capHeight=n.readShort(),this.defaultChar=n.readShort(),this.breakChar=n.readShort(),this.maxContext=n.readShort()},t})(),ud=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return kr(t,fr),t.prototype.tag="post",t.prototype.parse=function(n){var e,r,a;switch(n.pos=this.offset,this.format=n.readInt(),this.italicAngle=n.readInt(),this.underlinePosition=n.readShort(),this.underlineThickness=n.readShort(),this.isFixedPitch=n.readInt(),this.minMemType42=n.readInt(),this.maxMemType42=n.readInt(),this.minMemType1=n.readInt(),this.maxMemType1=n.readInt(),this.format){case 65536:case 196608:break;case 131072:var o;for(r=n.readUInt16(),this.glyphNameIndex=[],o=0;0<=r?o<r:o>r;o=0<=r?++o:--o)this.glyphNameIndex.push(n.readUInt16());for(this.names=[],a=[];n.pos<this.offset+this.length;)e=n.readByte(),a.push(this.names.push(n.readString(e)));return a;case 151552:return r=n.readUInt16(),this.offsets=n.read(r);case 262144:return this.map=function(){var c,l,f;for(f=[],o=c=0,l=this.file.maxp.numGlyphs;0<=l?c<l:c>l;o=0<=l?++c:--c)f.push(n.readUInt32());return f}.call(this)}},t})(),dd=function(t,n){this.raw=t,this.length=t.length,this.platformID=n.platformID,this.encodingID=n.encodingID,this.languageID=n.languageID},pd=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return kr(t,fr),t.prototype.tag="name",t.prototype.parse=function(n){var e,r,a,o,c,l,f,d,v,x,N;for(n.pos=this.offset,n.readShort(),e=n.readShort(),l=n.readShort(),r=[],o=0;0<=e?o<e:o>e;o=0<=e?++o:--o)r.push({platformID:n.readShort(),encodingID:n.readShort(),languageID:n.readShort(),nameID:n.readShort(),length:n.readShort(),offset:this.offset+l+n.readShort()});for(f={},o=v=0,x=r.length;v<x;o=++v)a=r[o],n.pos=a.offset,d=n.readString(a.length),c=new dd(d,a),f[N=a.nameID]==null&&(f[N]=[]),f[a.nameID].push(c);this.strings=f,this.copyright=f[0],this.fontFamily=f[1],this.fontSubfamily=f[2],this.uniqueSubfamily=f[3],this.fontName=f[4],this.version=f[5];try{this.postscriptName=f[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=f[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=f[7],this.manufacturer=f[8],this.designer=f[9],this.description=f[10],this.vendorUrl=f[11],this.designerUrl=f[12],this.license=f[13],this.licenseUrl=f[14],this.preferredFamily=f[15],this.preferredSubfamily=f[17],this.compatibleFull=f[18],this.sampleText=f[19]},t})(),gd=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return kr(t,fr),t.prototype.tag="maxp",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.numGlyphs=n.readUInt16(),this.maxPoints=n.readUInt16(),this.maxContours=n.readUInt16(),this.maxCompositePoints=n.readUInt16(),this.maxComponentContours=n.readUInt16(),this.maxZones=n.readUInt16(),this.maxTwilightPoints=n.readUInt16(),this.maxStorage=n.readUInt16(),this.maxFunctionDefs=n.readUInt16(),this.maxInstructionDefs=n.readUInt16(),this.maxStackElements=n.readUInt16(),this.maxSizeOfInstructions=n.readUInt16(),this.maxComponentElements=n.readUInt16(),this.maxComponentDepth=n.readUInt16()},t})(),vd=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return kr(t,fr),t.prototype.tag="hmtx",t.prototype.parse=function(n){var e,r,a,o,c,l,f;for(n.pos=this.offset,this.metrics=[],e=0,l=this.file.hhea.numberOfMetrics;0<=l?e<l:e>l;e=0<=l?++e:--e)this.metrics.push({advance:n.readUInt16(),lsb:n.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var d,v;for(v=[],e=d=0;0<=a?d<a:d>a;e=0<=a?++d:--d)v.push(n.readInt16());return v})(),this.widths=function(){var d,v,x,N;for(N=[],d=0,v=(x=this.metrics).length;d<v;d++)o=x[d],N.push(o.advance);return N}.call(this),r=this.widths[this.widths.length-1],f=[],e=c=0;0<=a?c<a:c>a;e=0<=a?++c:--c)f.push(this.widths.push(r));return f},t.prototype.forGlyph=function(n){return n in this.metrics?this.metrics[n]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[n-this.metrics.length]}},t})(),Wu=[].slice,md=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return kr(t,fr),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(n){var e,r,a,o,c,l,f,d,v,x;return n in this.cache?this.cache[n]:(o=this.file.loca,e=this.file.contents,r=o.indexOf(n),(a=o.lengthOf(n))===0?this.cache[n]=null:(e.pos=this.offset+r,c=(l=new bi(e.read(a))).readShort(),d=l.readShort(),x=l.readShort(),f=l.readShort(),v=l.readShort(),this.cache[n]=c===-1?new wd(l,d,x,f,v):new bd(l,c,d,x,f,v),this.cache[n]))},t.prototype.encode=function(n,e,r){var a,o,c,l,f;for(c=[],o=[],l=0,f=e.length;l<f;l++)a=n[e[l]],o.push(c.length),a&&(c=c.concat(a.encode(r)));return o.push(c.length),{table:c,offsets:o}},t})(),bd=(function(){function t(n,e,r,a,o,c){this.raw=n,this.numberOfContours=e,this.xMin=r,this.yMin=a,this.xMax=o,this.yMax=c,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t})(),wd=(function(){function t(n,e,r,a,o){var c,l;for(this.raw=n,this.xMin=e,this.yMin=r,this.xMax=a,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],c=this.raw;l=c.readShort(),this.glyphOffsets.push(c.pos),this.glyphIDs.push(c.readUInt16()),32&l;)c.pos+=1&l?4:2,128&l?c.pos+=8:64&l?c.pos+=4:8&l&&(c.pos+=2)}return t.prototype.encode=function(){var n,e,r;for(e=new bi(Wu.call(this.raw.data)),n=0,r=this.glyphIDs.length;n<r;++n)e.pos=this.glyphOffsets[n];return e.data},t})(),yd=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return kr(t,fr),t.prototype.tag="loca",t.prototype.parse=function(n){var e,r;return n.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=e===0?function(){var a,o;for(o=[],r=0,a=this.length;r<a;r+=2)o.push(2*n.readUInt16());return o}.call(this):function(){var a,o;for(o=[],r=0,a=this.length;r<a;r+=4)o.push(n.readUInt32());return o}.call(this)},t.prototype.indexOf=function(n){return this.offsets[n]},t.prototype.lengthOf=function(n){return this.offsets[n+1]-this.offsets[n]}
77,t.prototype.encode=function(n,e){for(var r=new Uint32Array(this.offsets.length),a=0,o=0,c=0;c<r.length;++c)if(r[c]=a,o<e.length&&e[o]==c){++o,r[c]=a;var l=this.offsets[c],f=this.offsets[c+1]-l;f>0&&(a+=f)}for(var d=new Array(4*r.length),v=0;v<r.length;++v)d[4*v+3]=255&r[v],d[4*v+2]=(65280&r[v])>>8,d[4*v+1]=(16711680&r[v])>>16,d[4*v]=(4278190080&r[v])>>24;return d},t})(),_d=(function(){function t(n){this.font=n,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var n,e,r,a,o;for(e in a=this.font.cmap.tables[0].codeMap,n={},o=this.subset)r=o[e],n[e]=a[r];return n},t.prototype.glyphsFor=function(n){var e,r,a,o,c,l,f;for(a={},c=0,l=n.length;c<l;c++)a[o=n[c]]=this.font.glyf.glyphFor(o);for(o in e=[],a)(r=a[o])!=null&&r.compound&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(o in f=this.glyphsFor(e))r=f[o],a[o]=r;return a},t.prototype.encode=function(n,e){var r,a,o,c,l,f,d,v,x,N,p,T,E,B,k;for(a in r=Hu.encode(this.generateCmap(),"unicode"),c=this.glyphsFor(n),p={0:0},k=r.charMap)p[(f=k[a]).old]=f.new;for(T in N=r.maxGlyphID,c)T in p||(p[T]=N++);return v=(function(G){var V,j;for(V in j={},G)j[G[V]]=V;return j})(p),x=Object.keys(v).sort(function(G,V){return G-V}),E=(function(){var G,V,j;for(j=[],G=0,V=x.length;G<V;G++)l=x[G],j.push(v[l]);return j})(),o=this.font.glyf.encode(c,E,p),d=this.font.loca.encode(o.offsets,E),B={cmap:this.font.cmap.raw(),glyf:o.table,loca:d,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&&(B["OS/2"]=this.font.os2.raw()),this.font.directory.encode(B)},t})();Dt.API.PDFObject=(function(){var t;function n(){}return t=function(e,r){return(Array(r+1).join("0")+e).slice(-r)},n.convert=function(e){var r,a,o,c;if(Array.isArray(e))return"["+(function(){var l,f,d;for(d=[],l=0,f=e.length;l<f;l++)r=e[l],d.push(n.convert(r));return d})().join(" ")+"]";if(typeof e=="string")return"/"+e;if(e?.isString)return"("+e+")";if(e instanceof Date)return"(D:"+t(e.getUTCFullYear(),4)+t(e.getUTCMonth(),2)+t(e.getUTCDate(),2)+t(e.getUTCHours(),2)+t(e.getUTCMinutes(),2)+t(e.getUTCSeconds(),2)+"Z)";if({}.toString.call(e)==="[object Object]"){for(a in o=["<<"],e)c=e[a],o.push("/"+a+" "+n.convert(c));return o.push(">>"),o.join(` 78`)}return""+e},n})();export{Bp as AcroForm,It as AcroFormAppearance,sn as AcroFormButton,js as AcroFormCheckBox,Na as AcroFormChoiceField,Sa as AcroFormComboBox,Ms as AcroFormEditBox,La as AcroFormListBox,Us as AcroFormPasswordField,Ds as AcroFormPushButton,ka as AcroFormRadioButton,$i as AcroFormTextField,zs as GState,Zi as ShadingPattern,Aa as TilingPattern,Dt as default,Dt as jsPDF}; 79/*! Bundled license information: 80 81pako/dist/pako.esm.mjs: 82 (*! pako 2.2.0 https://github.com/nodeca/pako @license (MIT AND Zlib) *) 83 84jspdf/dist/jspdf.es.min.js: 85 (** @license 86 * 87 * jsPDF - PDF Document creation from JavaScript 88 * Version 4.0.0 Built on 2025-12-18T10:27:09.425Z 89 * CommitID 00000000 90 * 91 * Copyright (c) 2010-2025 James Hall <[email protected]>, https://github.com/MrRio/jsPDF 92 * 2015-2025 yWorks GmbH, http://www.yworks.com 93 * 2015-2025 Lukas Holländer <[email protected]>, https://github.com/HackbrettXXX 94 * 2016-2018 Aras Abbasi <[email protected]> 95 * 2010 Aaron Spike, https://github.com/acspike 96 * 2012 Willow Systems Corporation, https://github.com/willowsystems 97 * 2012 Pablo Hess, https://github.com/pablohess 98 * 2012 Florian Jenett, https://github.com/fjenett 99 * 2013 Warren Weckesser, https://github.com/warrenweckesser 100 * 2013 Youssef Beddad, https://github.com/lifof 101 * 2013 Lee Driscoll, https://github.com/lsdriscoll 102 * 2013 Stefan Slonevskiy, https://github.com/stefslon 103 * 2013 Jeremy Morel, https://github.com/jmorel 104 * 2013 Christoph Hartmann, https://github.com/chris-rock 105 * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria 106 * 2014 James Makes, https://github.com/dollaruw 107 * 2014 Diego Casorran, https://github.com/diegocr 108 * 2014 Steven Spungin, https://github.com/Flamenco 109 * 2014 Kenneth Glassey, https://github.com/Gavver
109s 110 * 111 * Permission is hereby granted, free of charge, to any person obtaining 112 * a copy of this software and associated documentation files (the 113 * "Software"), to deal in the Software without restriction, including 114 * without limitation the rights to use, copy, modify, merge, publish, 115 * distribute, sublicense, and/or sell copies of the Software, and to 116 * permit persons to whom the Software is furnished to do so, subject to 117 * the following conditions: 118 * 119 * The above copyright notice and this permission notice shall be 120 * included in all copies or substantial portions of the Software. 121 * 122 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 123 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 124 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 125 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 126 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 127 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 128 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 129 * 130 * Contributor(s): 131 * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango, 132 * kim3er, mfo, alnorth, Flamenco 133 *) 134 (** 135 * A class to parse color values 136 * @author Stoyan Stefanov <[email protected]> 137 * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} 138 * @license Use it if you like it 139 *) 140 (** 141 * @license 142 * Joseph Myers does not specify a particular license for his work. 143 * 144 * Author: Joseph Myers 145 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js 146 * 147 * Modified by: Owen Leong 148 *) 149 (** 150 * @license 151 * FPDF is released under a permissive license: there is no usage restriction. 152 * You may embed it freely in your application (commercial or not), with or 153 * without modifications. 154 * 155 * Reference: http://www.fpdf.org/en/script/script37.php 156 *) 157 (** 158 * @license 159 * Licensed under the MIT License. 160 * http://opensource.org/licenses/mit-license 161 * Author: Owen Leong (@owenl131) 162 * Date: 15 Oct 2020 163 * References: 164 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt 165 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js 166 * http://www.fpdf.org/en/script/script37.php 167 *) 168 (** 169 * @license 170 Copyright (c) 2008, Adobe Systems Incorporated 171 All rights reserved. 172 173 Redistribution and use in source and binary forms, with or without 174 modification, are permitted provided that the following conditions are 175 met: 176 177 * Redistributions of source code must retain the above copyright notice, 178 this list of conditions and the following disclaimer. 179 180 * Redistributions in binary form must reproduce the above copyright 181 notice, this list of conditions and the following disclaimer in the 182 documentation and/or other materials provided with the distribution. 183 184 * Neither the name of Adobe Systems Incorporated nor the names of its 185 contributors may be used to endorse or promote products derived from 186 this software without specific prior written permission. 187
188 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 189 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 190 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 191 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 192 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 193 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 194 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 195 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 196 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 197 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 198 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 199 *) 200 (** 201 * @license 202 * Copyright (c) 2017 Aras Abbasi 203 * 204 * Licensed under the MIT License. 205 * http://opensource.org/licenses/mit-license 206 *) 207*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.