PageSourceSearch

https://conversiontab.com/build/assets/invoice-generator-page-D3wTnNf9.js

js conversiontab.com collected 2026-10-01 12:32:46 UTC 387,744 bytes, 377 lines download raw bytes

vendor: 1,994 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es-C6b2nYs_.js","assets/_commonjsHelpers-BosuxZz1.js","assets/defineProperty-DbXIQDXj.js","assets/typeof-QjJsDpFa.js"])))=>i.map(i=>d[i]);
2import{_ as No}from"./app-Dsk0FNLH.js";import $l from"./html2canvas.esm-CBrSDip1.js";import{_ as ve}from"./typeof-QjJsDpFa.js";var rn=Uint8Array,wn=Uint16Array,zs=Int32Array,Po=new rn([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]),ko=new rn([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]),Ps=new rn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),zc=function(r,e){for(var n=new wn(31),a=0;a<31;++a)n[a]=e+=1<<r[a-1];for(var s=new zs(n[30]),a=1;a<30;++a)for(var o=n[a];o<n[a+1];++o)s[o]=o-n[a]<<5|a;return{b:n,r:s}},Uc=zc(Po,2),Hc=Uc.b,ks=Uc.r;Hc[28]=258,ks[258]=28;var Wc=zc(ko,0),Xl=Wc.b,bc=Wc.r,Is=new wn(32768);for(var we=0;we<32768;++we){var jr=(we&43690)>>1|(we&21845)<<1;jr=(jr&52428)>>2|(jr&13107)<<2,jr=(jr&61680)>>4|(jr&3855)<<4,Is[we]=((jr&65280)>>8|(jr&255)<<8)>>1}var rr=function(r,e,n){for(var a=r.length,s=0,o=new wn(e);s<a;++s)r[s]&&++o[r[s]-1];var l=new wn(e);for(s=1;s<e;++s)l[s]=l[s-1]+o[s-1]<<1;var h;if(n){h=new wn(1<<e);var f=15-e;for(s=0;s<a;++s)if(r[s])for(var g=s<<4|r[s],v=e-r[s],b=l[r[s]-1]++<<v,A=b|(1<<v)-1;b<=A;++b)h[Is[b]>>f]=g}else for(h=new wn(a),s=0;s<a;++s)r[s]&&(h[s]=Is[l[r[s]-1]++]>>15-r[s]);return h},Or=new rn(288);for(var we=0;we<144;++we)Or[we]=8;for(var we=144;we<256;++we)Or[we]=9;for(var we=256;we<280;++we)Or[we]=7;for(var we=280;we<288;++we)Or[we]=8;var ya=new rn(32);for(var we=0;we<32;++we)ya[we]=5;var Kl=rr(Or,9,0),Zl=rr(Or,9,1),Ql=rr(ya,5,0),tu=rr(ya,5,1),bs=function(r){for(var e=r[0],n=1;n<r.length;++n)r[n]>e&&(e=r[n]);return e},Rn=function(r,e,n){var a=e/8|0;return(r[a]|r[a+1]<<8)>>(e&7)&n},ys=function(r,e){var n=e/8|0;return(r[n]|r[n+1]<<8|r[n+2]<<16)>>(e&7)},Us=function(r){return(r+7)/8|0},Vc=function(r,e,n){return(n==null||n>r.length)&&(n=r.length),new rn(r.subarray(e,n))}
vendor: 2,925 bytes, line 2
2,eu=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Un=function(r,e,n){var a=new Error(e||eu[r]);if(a.code=r,Error.captureStackTrace&&Error.captureStackTrace(a,Un),!n)throw a;return a},nu=function(r,e,n,a){var s=r.length,o=0;if(!s||e.f&&!e.l)return n||new rn(0);var l=!n,h=l||e.i!=2,f=e.i;l&&(n=new rn(s*3));var g=function(Nt){var _t=n.length;if(Nt>_t){var kt=new rn(Math.max(_t*2,Nt));kt.set(n),n=kt}},v=e.f||0,b=e.p||0,A=e.b||0,p=e.l,j=e.d,k=e.m,D=e.n,_=s*8;do{if(!p){v=Rn(r,b,1);var B=Rn(r,b+1,3);if(b+=3,B)if(B==1)p=Zl,j=tu,k=9,D=5;else if(B==2){var xt=Rn(r,b,31)+257,K=Rn(r,b+10,15)+4,U=xt+Rn(r,b+5,31)+1;b+=14;for(var et=new rn(U),pt=new rn(19),P=0;P<K;++P)pt[Ps[P]]=Rn(r,b+P*3,7);b+=K*3;for(var I=bs(pt),H=(1<<I)-1,T=rr(pt,I,1),P=0;P<U;){var st=T[Rn(r,b,H)];b+=st&15;var Y=st>>4;if(Y<16)et[P++]=Y;else{var it=0,ut=0;for(Y==16?(ut=3+Rn(r,b,3),b+=2,it=et[P-1]):Y==17?(ut=3+Rn(r,b,7),b+=3):Y==18&&(ut=11+Rn(r,b,127),b+=7);ut--;)et[P++]=it}}var tt=et.subarray(0,xt),ht=et.subarray(xt);k=bs(tt),D=bs(ht),p=rr(tt,k,1),j=rr(ht,D,1)}else Un(1);else{var Y=Us(b)+4,ot=r[Y-4]|r[Y-3]<<8,lt=Y+ot;if(lt>s){f&&Un(0);break}h&&g(A+ot),n.set(r.subarray(Y,lt),A),e.b=A+=ot,e.p=b=lt*8,e.f=v;continue}if(b>_){f&&Un(0);break}}h&&g(A+131072);for(var gt=(1<<k)-1,Ct=(1<<D)-1,x=b;;x=b){var it=p[ys(r,b)&gt],F=it>>4;if(b+=it&15,b>_){f&&Un(0);break}if(it||Un(2),F<256)n[A++]=F;else if(F==256){x=b,p=null;break}else{var O=F-254;if(F>264){var P=F-257,R=Po[P];O=Rn(r,b,(1<<R)-1)+Hc[P],b+=R}var J=j[ys(r,b)&Ct],M=J>>4;J||Un(3),b+=J&15;var ht=Xl[M];if(M>3){var R=ko[M];ht+=ys(r,b)&(1<<R)-1,b+=R}if(b>_){f&&Un(0);break}h&&g(A+131072);var rt=A+O;if(A<ht){var nt=o-ht,St=Math.min(ht,rt);for(nt+A<0&&Un(3);A<St;++A)n[A]=a[nt+A]}for(;A<rt;++A)n[A]=n[A-ht]}}e.l=p,e.p=x,e.b=A,e.f=v,p&&(v=1,e.m=k,e.d=j,e.n=D)}while(!v);return A!=n.length&&l?Vc(n,0,A):n.subarray(0,A)},mr=function(r,e,n){n<<=e&7;var a=e/8|0;r[a]|=n,r[a+1]|=n>>8},ma=function(r,e,n){n<<=e&7;var a=e/8|0;r[a]|=n,r[a+1]|=n>>8,r[a+2]|=n>>16},ws=function(r,e){for(var n=[],a=0;a<r.length;++a)r[a]&&n.push({s:a,f:r[a]});var s=n.length,o=n.slice();if(!s)return{t:Yc,l:0};if(s==1){var l=new rn(n[0].s+1);return l[n[0].s]=1,{t:l,l:1}}n.sort(function(lt,xt){return lt.f-xt.f}),n.push({s:-1,f:25001});var h=n[0],f=n[1],g=0,v=1,b=2;for(n[0]={s:-1,f:h.f+f.f,l:h,r:f};v!=s-1;)h=n[n[g].f<n[b].f?g++:b++],f=n[g!=v&&n[g].f<n[b].f?g++:b++],n[v++]={s:-1,f:h.f+f.f,l:h,r:f};for(var A=o[0].s,a=1;a<s;++a)o[a].s>A&&(A=o[a].s);var p=new wn(A+1),j=Cs(n[v-1],p,0);if(j>e){var a=0,k=0,D=j-e,_=1<<D;for(o.sort(function(xt,K){return p[K.s]-p[xt.s]||xt.f-K.f});a<s;++a){var B=o[a].s;if(p[B]>e)k+=_-(1<<j-p[B]),p[B]=e;else break}for(k>>=D;k>0;){var Y=o[a].s;p[Y]<e?k-=1<<e-p[Y]++-1:++a}for(;a>=0&&k;
vendor: 8,937 bytes, lines 2-7
2--a){var ot=o[a].s;p[ot]==e&&(--p[ot],++k)}j=e}return{t:new rn(p),l:j}},Cs=function(r,e,n){return r.s==-1?Math.max(Cs(r.l,e,n+1),Cs(r.r,e,n+1)):e[r.s]=n},yc=function(r){for(var e=r.length;e&&!r[--e];);for(var n=new wn(++e),a=0,s=r[0],o=1,l=function(f){n[a++]=f},h=1;h<=e;++h)if(r[h]==s&&h!=e)++o;else{if(!s&&o>2){for(;o>138;o-=138)l(32754);o>2&&(l(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(l(s),--o;o>6;o-=6)l(8304);o>2&&(l(o-3<<5|8208),o=0)}for(;o--;)l(s);o=1,s=r[h]}return{c:n.subarray(0,a),n:e}},va=function(r,e){for(var n=0,a=0;a<e.length;++a)n+=r[a]*e[a];return n},Gc=function(r,e,n){var a=n.length,s=Us(e+2);r[s]=a&255,r[s+1]=a>>8,r[s+2]=r[s]^255,r[s+3]=r[s+1]^255;for(var o=0;o<a;++o)r[s+o+4]=n[o];return(s+4+a)*8},wc=function(r,e,n,a,s,o,l,h,f,g,v){mr(e,v++,n),++s[256];for(var b=ws(s,15),A=b.t,p=b.l,j=ws(o,15),k=j.t,D=j.l,_=yc(A),B=_.c,Y=_.n,ot=yc(k),lt=ot.c,xt=ot.n,K=new wn(19),U=0;U<B.length;++U)++K[B[U]&31];for(var U=0;U<lt.length;++U)++K[lt[U]&31];for(var et=ws(K,7),pt=et.t,P=et.l,I=19;I>4&&!pt[Ps[I-1]];--I);var H=g+5<<3,T=va(s,Or)+va(o,ya)+l,st=va(s,A)+va(o,k)+l+14+3*I+va(K,pt)+2*K[16]+3*K[17]+7*K[18];if(f>=0&&H<=T&&H<=st)return Gc(e,v,r.subarray(f,f+g));var it,ut,tt,ht;if(mr(e,v,1+(st<T)),v+=2,st<T){it=rr(A,p,0),ut=A,tt=rr(k,D,0),ht=k;var gt=rr(pt,P,0);mr(e,v,Y-257),mr(e,v+5,xt-1),mr(e,v+10,I-4),v+=14;for(var U=0;U<I;++U)mr(e,v+3*U,pt[Ps[U]]);v+=3*I;for(var Ct=[B,lt],x=0;x<2;++x)for(var F=Ct[x],U=0;U<F.length;++U){var O=F[U]&31;mr(e,v,gt[O]),v+=pt[O],O>15&&(mr(e,v,F[U]>>5&127),v+=F[U]>>12)}}else it=Kl,ut=Or,tt=Ql,ht=ya;for(var U=0;U<h;++U){var R=a[U];if(R>255){var O=R>>18&31;ma(e,v,it[O+257]),v+=ut[O+257],O>7&&(mr(e,v,R>>23&31),v+=Po[O]);var J=R&31;ma(e,v,tt[J]),v+=ht[J],J>3&&(ma(e,v,R>>5&8191),v+=ko[J])}else ma(e,v,it[R]),v+=ut[R]}return ma(e,v,it[256]),v+ut[256]},ru=new zs([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Yc=new rn(0),iu=function(r,e,n,a,s,o){var l=o.z||r.length,h=new rn(a+l+5*(1+Math.ceil(l/7e3))+s),f=h.subarray(a,h.length-s),g=o.l,v=(o.r||0)&7;if(e){v&&(f[0]=o.r>>3);for(var b=ru[e-1],A=b>>13,p=b&8191,j=(1<<n)-1,k=o.p||new wn(32768),D=o.h||new wn(j+1),_=Math.ceil(n/3),B=2*_,Y=function(zt){return(r[zt]^r[zt+1]<<_^r[zt+2]<<B)&j},ot=new zs(25e3),lt=new wn(288),xt=new wn(32),K=0,U=0,et=o.i||0,pt=0,P=o.w||0,I=0;et+2<l;++et){var H=Y(et),T=et&32767,st=D[H];if(k[T]=st,D[H]=T,P<=et){var it=l-et;if((K>7e3||pt>24576)&&(it>423||!g)){v=wc(r,f,0,ot,lt,xt,U,pt,I,et-I,v),pt=K=U=0,I=et;for(var ut=0;ut<286;++ut)lt[ut]=0;for(var ut=0;ut<30;++ut)xt[ut]=0}var tt=2,ht=0,gt=p,Ct=T-st&32767;if(it>2&&H==Y(et-Ct))for(var x=Math.min(A,it)-1,F=Math.min(32767,et),O=Math.min(258,it);Ct<=F&&--gt&&T!=st;){if(r[et+tt]==r[et+tt-Ct]){for(var R=0;R<O&&r[et+R]==r[et+R-Ct];++R);if(R>tt){if(tt=R,ht=Ct,R>x)break;for(var J=Math.min(Ct,R-2),M=0,ut=0;ut<J;++ut){var rt=et-Ct+ut&32767,nt=k[rt],St=rt-nt&32767;St>M&&(M=St,st=rt)}}}T=st,st=k[T],Ct+=T-st&32767}if(ht){ot[pt++]=268435456|ks[tt]<<18|bc[ht];var Nt=ks[tt]&31,_t=bc[ht]&31;U+=Po[Nt]+ko[_t],++lt[257+Nt],++xt[_t],P=et+tt,++K}else ot[pt++]=r[et],++lt[r[et]]}}for(et=Math.max(et,P);et<l;++et)ot[pt++]=r[et],++lt[r[et]];v=wc(r,f,g,ot,lt,xt,U,pt,I,et-I,v),g||(o.r=v&7|f[v/8|0]<<3,v-=7,o.h=D,o.p=k,o.i=et,o.w=P)}else{for(var et=o.w||0;et<l+g;et+=65535){var kt=et+65535;kt>=l&&(f[v/8|0]=g,kt=l),v=Gc(f,v+1,r.subarray(et,kt))}o.i=l}return Vc(h,0,a+Us(v)+s)},Jc=function(){var r=1,e=0;return{p:function(n){for(var a=r,s=e,o=n.length|0,l=0;l!=o;){for(var h=Math.min(l+2655,o);l<h;++l)s+=a+=n[l];a=(a&65535)+15*(a>>16),s=(s&65535)+15*(s>>16)}r=a,e=s},d:function(){return r%=65521,e%=65521,(r&255)<<24|(r&65280)<<8|(e&255)<<8|e>>8}}},au=function(r,e,n,a,s){if(!s&&(s={l:1},e.dictionary)){var o=e.dictionary.subarray(-32768),l=new rn(o.length+r.length);l.set(o),l.set(r,o.length),r=l,s.w=o.length}return iu(r,e.level==null?6:e.level,e.mem==null?s.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+e.mem,n,a,s)},$c=function(r,e,n){for(;n;++e)r[e]=n,n>>>=8},ou=function(r,e){var n=e.level,a=n==0?0:n<6?1:n==9?3:2;if(r[0]=120,r[1]=a<<6|(e.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,e.dictionary){var s=Jc();s.p(e.dictionary),$c(r,2,s.d())}},su=function(r,e){return((r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31)&&Un(6,"invalid zlib data"),(r[1]>>5&1)==1&&Un(6,"invalid zlib data: "+(r[1]&32?"need":"unexpected")+" dictionary"),(r[1]>>3&4)+2};function Fs(r,e){e||(e={});var n=Jc();n.p(r);var a=au(r,e,e.dictionary?6:2,4);return ou(a,e),$c(a,a.length-4,n.d()),a}function cu(r,e){return nu(r.subarray(su(r),-4),{i:2},e,e)}var lu=typeof TextDecoder<"u"&&new TextDecoder,uu=0;try{lu.decode(Yc,{stream:!0}),uu=1}catch{}var Vt=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function xs(){Vt.console&&typeof Vt.console.log=="function"&&Vt.console.log.apply(Vt.console,arguments)}var me={log:xs,warn:function(r){Vt.console&&(typeof Vt.console.warn=="function"?Vt.console.warn.apply(Vt.console,arguments):xs.call(null,arguments))},error:function(r){Vt.console&&(typeof Vt.console.error=="function"?Vt.console.error.apply(Vt.console,arguments):xs(r))}};function Ls(r,e,n){var a=new XMLHttpRequest;a.open("GET",r),a.responseType="blob",a.onload=function(){Xr(a.response,e,n)},a.onerror=function(){me.error("could not download file")},a.send()}function xc(r){var e=new XMLHttpRequest;e.open("HEAD",r,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function ho(r){try{r.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(e)}}var ba,js,Xr=Vt.saveAs||((typeof window>"u"?"undefined":ve(window))!=="object"||window!==Vt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(r,e,n){var a=Vt.URL||Vt.webkitURL,s=document.createElement("a");e=e||r.name||"download",s.download=e,s.rel="noopener",typeof r=="string"?(s.href=r,s.origin!==location.origin?xc(s.href)?Ls(r,e,n):ho(s,s.target="_blank"):ho(s)):(s.href=a.createObjectURL(r),setTimeout(function(){a.revokeObjectURL(s.href)},4e4),setTimeout(function(){ho(s)},0))}:"msSaveOrOpenBlob"in navigator?function(r,e,n){if(e=e||r.name||"download",typeof r=="string")if(xc(r))Ls(r,e,n);else{var a=document.createElement("a");a.href=r,a.target="_blank",setTimeout(function(){ho(a)})}else navigator.msSaveOrOpenBlob(function(s,o){return o===void 0?o={autoBom:!1}:ve(o)!=="object"&&(me.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(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s}(r,n),e)}:function(r,e,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),typeof r=="string")return Ls(r,e,n);var s=r.type==="application/octet-stream",o=/constructor/i.test(Vt.HTMLElement)||Vt.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||s&&o)&&(typeof FileReader>"u"?"undefined":ve(FileReader))==="object"){var h=new FileReader;h.onloadend=function(){var v=h.result;v=l?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=v:location=v,a=null},h.readAsDataURL(r)}else{var f=Vt.URL||Vt.webkitURL,g=f.createObjectURL(r);a?a.location=g:location.href=g,a=null,setTimeout(function(){f.revokeObjectURL(g)},4e4)}});/**
3 * A class to parse color values
4 * @author Stoyan Stefanov <[email protected]>
5 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
6 * @license Use it if you like it
7 */function Xc(r){var e;r=r||"",this.ok=!1,r.charAt(0)=="#"&&(r=r.substr(1,6)),r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
70",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[r=(r=r.replace(/ /g,"")).toLowerCase()]||r;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(h){return[parseInt(h[1]),parseInt(h[2]),parseInt(h[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(h){return[parseInt(h[1],16),parseInt(h[2],16),parseInt(h[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(h){return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)]}}],a=0;a<n.length;a++){var s=n[a].re,o=n[a].process,l=s.exec(r);l&&(e=o(l),this.r=e[0],this.g=e[1],this.b=e[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 h=this.r.toString(16),f=this.g.toString(16),g=this.b.toString(16);return h.length==1&&(h="0"+h),f.length==1&&(f="0"+f),g.length==1&&(g="0"+g),"#"+h+f+g}}/**
8 * @license
9 * Joseph Myers does not specify a particular license for his work.
10 *
11 * Author: Joseph Myers
12 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
13 *
14 * Modified by: Owen Leong
15 */function Ns(r,e){var n=r[0],a=r[1],s=r[2],o=r[3];n=Qe(n,a,s,o,e[0],7,-680876936),o=Qe(o,n,a,s,e[1],12,-389564586),s=Qe(s,o,n,a,e[2],17,606105819),a=Qe(a,s,o,n,e[3],22,-1044525330),n=Qe(n,a,s,o,e[4],7,-176418897),o=Qe(o,n,a,s,e[5],12,1200080426),s=Qe(s,o,n,a,e[6],17,-1473231341),a=Qe(a,s,o,n,e[7],22,-45705983),n=Qe(n,a,s,o,e[8],7,1770035416),o=Qe(o,n,a,s,e[9],12,-1958414417),s=Qe(s,o,n,a,e[10],17,-42063),a=Qe(a,s,o,n,e[11],22,-1990404162),n=Qe(n,a,s,o,e[12],7,1804603682),o=Qe(o,n,a,s,e[13],12,-40341101),s=Qe(s,o,n,a,e[14],17,-1502002290),n=tn(n,a=Qe(a,s,o,n,e[15],22,1236535329),s,o,e[1],5,-165796510),o=tn(o,n,a,s,e[6],9,-1069501632),s=tn(s,o,n,a,e[11],14,643717713),a=tn(a,s,o,n,e[0],20,-373897302),n=tn(n,a,s,o,e[5],5,-701558691),o=tn(o,n,a,s,e[10],9,38016083),s=tn(s,o,n,a,e[15],14,-660478335),a=tn(a,s,o,n,e[4],20,-405537848),n=tn(n,a,s,o,e[9],5,568446438),o=tn(o,n,a,s,e[14],9,-1019803690),s=tn(s,o,n,a,e[3],14,-187363961),a=tn(a,s,o,n,e[8],20,1163531501),n=tn(n,a,s,o,e[13],5,-1444681467),o=tn(o,n,a,s,e[2],9,-51403784),s=tn(s,o,n,a,e[7],14,1735328473),n=en(n,a=tn(a,s,o,n,e[12],20,-1926607734),s,o,e[5],4,-378558),o=en(o,n,a,s,e[8],11,-2022574463),s=en(s,o,n,a,e[11],16,1839030562),a=en(a,s,o,n,e[14],23,-35309556),n=en(n,a,s,o,e[1],4,-1530992060),o=en(o,n,a,s,e[4],11,1272893353),s=en(s,o,n,a,e[7],16,-155497632),a=en(a,s,o,n,e[10],23,-1094730640),n=en(n,a,s,o,e[13],4,681279174),o=en(o,n,a,s,e[0],11,-358537222),s=en(s,o,n,a,e[3],16,-722521979),a=en(a,s,o,n,e[6],23,76029189),n=en(n,a,s,o,e[9],4,
vendor: 8,699 bytes, lines 15-32
15-640364487),o=en(o,n,a,s,e[12],11,-421815835),s=en(s,o,n,a,e[15],16,530742520),n=nn(n,a=en(a,s,o,n,e[2],23,-995338651),s,o,e[0],6,-198630844),o=nn(o,n,a,s,e[7],10,1126891415),s=nn(s,o,n,a,e[14],15,-1416354905),a=nn(a,s,o,n,e[5],21,-57434055),n=nn(n,a,s,o,e[12],6,1700485571),o=nn(o,n,a,s,e[3],10,-1894986606),s=nn(s,o,n,a,e[10],15,-1051523),a=nn(a,s,o,n,e[1],21,-2054922799),n=nn(n,a,s,o,e[8],6,1873313359),o=nn(o,n,a,s,e[15],10,-30611744),s=nn(s,o,n,a,e[6],15,-1560198380),a=nn(a,s,o,n,e[13],21,1309151649),n=nn(n,a,s,o,e[4],6,-145523070),o=nn(o,n,a,s,e[11],10,-1120210379),s=nn(s,o,n,a,e[2],15,718787259),a=nn(a,s,o,n,e[9],21,-343485551),r[0]=Br(n,r[0]),r[1]=Br(a,r[1]),r[2]=Br(s,r[2]),r[3]=Br(o,r[3])}function Io(r,e,n,a,s,o){return e=Br(Br(e,r),Br(a,o)),Br(e<<s|e>>>32-s,n)}function Qe(r,e,n,a,s,o,l){return Io(e&n|~e&a,r,e,s,o,l)}function tn(r,e,n,a,s,o,l){return Io(e&a|n&~a,r,e,s,o,l)}function en(r,e,n,a,s,o,l){return Io(e^n^a,r,e,s,o,l)}function nn(r,e,n,a,s,o,l){return Io(n^(e|~a),r,e,s,o,l)}function Kc(r){var e,n=r.length,a=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=r.length;e+=64)Ns(a,hu(r.substring(e-64,e)));r=r.substring(e-64);var s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<r.length;e++)s[e>>2]|=r.charCodeAt(e)<<(e%4<<3);if(s[e>>2]|=128<<(e%4<<3),e>55)for(Ns(a,s),e=0;e<16;e++)s[e]=0;return s[14]=8*n,Ns(a,s),a}function hu(r){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=r.charCodeAt(e)+(r.charCodeAt(e+1)<<8)+(r.charCodeAt(e+2)<<16)+(r.charCodeAt(e+3)<<24);return n}ba=Vt.atob.bind(Vt),js=Vt.btoa.bind(Vt);var Lc="0123456789abcdef".split("");function fu(r){for(var e="",n=0;n<4;n++)e+=Lc[r>>8*n+4&15]+Lc[r>>8*n&15];return e}function du(r){return String.fromCharCode((255&r)>>0,(65280&r)>>8,(16711680&r)>>16,(4278190080&r)>>24)}function Es(r){return Kc(r).map(du).join("")}var pu=function(r){for(var e=0;e<r.length;e++)r[e]=fu(r[e]);return r.join("")}(Kc("hello"))!="5d41402abc4b2a76b9719d911017c592";function Br(r,e){if(pu){var n=(65535&r)+(65535&e);return(r>>16)+(e>>16)+(n>>16)<<16|65535&n}return r+e&4294967295}/**
16 * @license
17 * FPDF is released under a permissive license: there is no usage restriction.
18 * You may embed it freely in your application (commercial or not), with or
19 * without modifications.
20 *
21 * Reference: http://www.fpdf.org/en/script/script37.php
22 */function Bs(r,e){var n,a,s,o;if(r!==n){for(var l=(s=r,o=1+(256/r.length>>0),new Array(o+1).join(s)),h=[],f=0;f<256;f++)h[f]=f;var g=0;for(f=0;f<256;f++){var v=h[f];g=(g+v+l.charCodeAt(f))%256,h[f]=h[g],h[g]=v}n=r,a=h}else h=a;var b=e.length,A=0,p=0,j="";for(f=0;f<b;f++)p=(p+(v=h[A=(A+1)%256]))%256,h[A]=h[p],h[p]=v,l=h[(h[A]+h[p])%256],j+=String.fromCharCode(e.charCodeAt(f)^l);return j}/**
23 * @license
24 * Licensed under the MIT License.
25 * http://opensource.org/licenses/mit-license
26 * Author: Owen Leong (@owenl131)
27 * Date: 15 Oct 2020
28 * References:
29 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
30 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
31 * http://www.fpdf.org/en/script/script37.php
32 */var Nc={print:4,modify:8,copy:16,"annot-forms":32};function Fi(r,e,n,a){this.v=1,this.r=2;var s=192;r.forEach(function(h){if(Nc.perm!==void 0)throw new Error("Invalid permission: "+h);s+=Nc[h]}),this.padding="(¿N^NuŠAd\0NVÿú�\b..\0¶Ðh>€/\f©þdSiz";var o=(e+this.padding).substr(0,32),l=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,l),this.P=-(1+(255^s)),this.encryptionKey=Es(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=Bs(this.encryptionKey,this.padding)}function ji(r){if(/[^\u0000-\u00ff]/.test(r))throw new Error("Invalid PDF Name Object: "+r+", Only accept ASCII characters.");for(var e="",n=r.length,a=0;a<n;a++){var s=r.charCodeAt(a);s<33||s===35||s===37||s===40||s===41||s===47||s===60||s===62||s===91||s===93||s===123||s===125||s>126?e+="#"+("0"+s.toString(16)).slice(-2):e+=r[a]}return e}function Ac(r){if(ve(r)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(n,a,s){if(s=s||!1,typeof n!="string"||typeof a!="function"||typeof s!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(n)||(e[n]={});var o=Math.random().toString(35);return e[n][o]=[a,!!s],o},this.unsubscribe=function(n){for(var a in e)if(e[a][n])return delete e[a][n],Object.keys(e[a]).length===0&&delete e[a],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var a=Array.prototype.slice.call(arguments,1),s=[];for(var o in e[n]){var l=e[n][o];try{l[0].apply(r,a)}catch(h){Vt.console&&me.error("jsPDF PubSub Error",h.message,h)}l[1]&&s.push(o)}s.length&&s.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Ao(r){if(!(this instanceof Ao))return new Ao(r);var e="opacity,stroke-opacity".split(",");for(var n in r)r.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=r[n]);this.id="",this.objectNumber=-1}function Zc(r,e){this.gState=r,this.matrix=e,this.id="",this.objectNumber=-1}function Kr(r,e,n,a,s){if(!(this instanceof Kr))return new Kr(r,e,n,a,s);this.type=r==="axial"?2:3,this.coords=e,this.colors=n,Zc.call(this,a,s)}function Bi(r,e,n,a,s){if(!(this instanceof Bi))return new Bi(r,e,n,a,s);this.boundingBox=r,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,Zc.call(this,a,s)}function Wt(r){var e,n=typeof arguments[0]=="string"?arguments[0]:"p",a=arguments[1],s=arguments[2],o=arguments[3],l=[],h=1,f=16,g="S",v=null;ve(r=r||{})==="object"&&(n=r.orientation,a=r.unit||a,s=r.format||s,o=r.compress||r.compressPdf||o,(v=r.encryption||null)!==null&&(v.userPassword=v.userPassword||"",v.ownerPassword=v.ownerPassword||"",v.userPermissions=v.userPermissions||[]),h=typeof r.userUnit=="number"?Math.abs(r.userUnit):1,r.precision!==void 0&&(e=r.precision),r.floatPrecision!==void 0&&(f=r.floatPrecision),g=r.defaultPathOperation||"S"),l=r.filters||(o===!0?["FlateEncode"]:l),a=a||"mm",n=(""+(n||"P")).toLowerCase();var b=r.putOnlyUsedFonts||!1,A={},p={internal:{},__private__:{}};p.__private__.PubSub=Ac;var j="1.3",k=p.__private__.getPdfVersion=function(){return j};p.__private__.setPdfVersion=function(c){j=c};var D={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 D};var _=p.__private__.getPageFormat=function(c){return D[c]};s=s||"a4";var B={COMPAT:"compat",ADVANCED:"advanced"},Y=B.COMPAT;function ot(){this.saveGraphicsState(),q(new Ht(jt,0,0,-jt,0,wr()*jt).toString()+" cm"),this.setFontSize(this.getFontSize()/jt),g="n",Y=B.ADVANCED}function lt(){this.restoreGraphicsState(),g="S",Y=B.COMPAT}var xt=p.__private__.combineFontStyleAndFontWeight=function(c,y){if(c=="bold"&&y=="normal"||c=="bold"&&y==400||c=="normal"&&y=="italic"||c=="bold"&&y=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return y&&(c=y==400||y==="normal"?c==="italic"?"italic":"normal":y!=700&&y!=="bold"||c!=="normal"?(y==700?"bold":y)+""+c:"bold"),c};p.advancedAPI=function(c){var y=Y===B.COMPAT;return y&&ot.call(this),typeof c!="function"||(c(this),y&&lt.call(this)),this},p.compatAPI=function(c){var y=Y===B.ADVANCED;return y&&lt.call(this),typeof c!="function"||(c(this),y&&ot.call(this)),this},p.isAdvancedAPI=function(){return Y===B.ADVANCED};var K,U=function(c){if(Y!==B.ADVANCED)throw new Error(c+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},et=p.roundToPrecision=p.__private__.roundToPrecision=function(c,y){var E=e||y;if(isNaN(c)||isNaN(E))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return c.toFixed(E).replace(/0+$/,"")};K=p.hpf=p.__private__.hpf=typeof f=="number"?function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return et(c,f)}:f==="smart"?function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return et(c,c>-1&&c<1?16:5)}:function(c){if(isNaN(c))throw new Error("Invalid argument passed to 
32jsPDF.hpf");return et(c,16)};var pt=p.f2=p.__private__.f2=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.f2");return et(c,2)},P=p.__private__.f3=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.f3");return et(c,3)},I=p.scale=p.__private__.scale=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.scale");return Y===B.COMPAT?c*jt:Y===B.ADVANCED?c:void 0},H=function(c){return Y===B.COMPAT?wr()-c:Y===B.ADVANCED?c:void 0},T=function(c){return I(H(c))};p.__private__.setPrecision=p.setPrecision=function(c){typeof parseInt(c,10)=="number"&&(e=parseInt(c,10))};var st,it="00000000000000000000000000000000",ut=p.__private__.getFileId=function(){return it},tt=p.__private__.setFileId=function(c){return it=c!==void 0&&/^[a-fA-F0-9]{32}$/.test(c)?c.toUpperCase():it.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),v!==null&&(Ke=new Fi(v.userPermissions,v.userPassword,v.ownerPassword,it)),it};p.setFileId=function(c){return tt(c),this},p.getFileId=function(){return ut()};var ht=p.__private__.convertDateToPDFDate=function(c){var y=c.getTimezoneOffset(),E=y<0?"+":"-",z=Math.floor(Math.abs(y/60)),X=Math.abs(y%60),ft=[E,O(z),"'",O(X),"'"].join("");return["D:",c.getFullYear(),O(c.getMonth()+1),O(c.getDate()),O(c.getHours()),O(c.getMinutes()),O(c.getSeconds()),ft].join("")},gt=p.__private__.convertPDFDateToDate=function(c){var y=parseInt(c.substr(2,4),10),E=parseInt(c.substr(6,2),10)-1,z=parseInt(c.substr(8,2),10),X=parseInt(c.substr(10,2),10),ft=parseInt(c.substr(12,2),10),Lt=parseInt(c.substr(14,2),10);return new Date(y,E,z,X,ft,Lt,0)},Ct=p.__private__.setCreationDate=function(c){var y;if(c===void 0&&(c=new Date),c instanceof Date)y=ht(c);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(c))throw new Error("Invalid argument passed to jsPDF.setCreationDate");y=c}return st=y},x=p.__private__.getCreationDate=function(c){var y=st;return c==="jsDate"&&(y=gt(st)),y};p.setCreationDate=function(c){return Ct(c),this},p.getCreationDate=function(c){return x(c)};var F,O=p.__private__.padd2=function(c){return("0"+parseInt(c)).slice(-2)},R=p.__private__.padd2Hex=function(c){return("00"+(c=c.toString())).substr(c.length)},J=0,M=[],rt=[],nt=0,St=[],Nt=[],_t=!1,kt=rt,zt=function(){J=0,nt=0,rt=[],M=[],St=[],or=Me(),jn=Me()};p.__private__.setCustomOutputDestination=function(c){_t=!0,kt=c};var at=function(c){_t||(kt=c)};p.__private__.resetCustomOutputDestination=function(){_t=!1,kt=rt};var q=p.__private__.out=function(c){return c=c.toString(),nt+=c.length+1,kt.push(c),kt},Yt=p.__private__.write=function(c){return q(arguments.length===1?c.toString():Array.prototype.join.call(arguments," "))},qt=p.__private__.getArrayBuffer=function(c){for(var y=c.length,E=new ArrayBuffer(y),z=new Uint8Array(E);y--;)z[y]=c.charCodeAt(y);return E},At=[["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 At};var Pt=r.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(c){return Pt=Y===B.ADVANCED?c/jt:c,this};var dt,bt=p.__private__.getFontSize=p.getFontSize=function(){return Y===B.COMPAT?Pt:Pt*jt},Et=r.R2L||!1;p.__private__.setR2L=p.setR2L=function(c){return Et=c,this},p.__private__.getR2L=p.getR2L=function(){return Et};var Dt,Ut=p.__private__.setZoomMode=function(c){var y=[void 0,null,"fullwidth","fullheight","fullpage","original"];
vendor: 4,278 bytes, line 32
32if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(c))dt=c;else if(isNaN(c)){if(y.indexOf(c)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+c+'" is not recognized.');dt=c}else dt=parseInt(c,10)};p.__private__.getZoomMode=function(){return dt};var Jt,te=p.__private__.setPageMode=function(c){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(c)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+c+'" is not recognized.');Dt=c};p.__private__.getPageMode=function(){return Dt};var ie=p.__private__.setLayoutMode=function(c){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(c)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+c+'" is not recognized.');Jt=c};p.__private__.getLayoutMode=function(){return Jt},p.__private__.setDisplayMode=p.setDisplayMode=function(c,y,E){return Ut(c),ie(y),te(E),this};var Gt={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(c){if(Object.keys(Gt).indexOf(c)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Gt[c]},p.__private__.getDocumentProperties=function(){return Gt},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(c){for(var y in Gt)Gt.hasOwnProperty(y)&&c[y]&&(Gt[y]=c[y]);return this},p.__private__.setDocumentProperty=function(c,y){if(Object.keys(Gt).indexOf(c)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Gt[c]=y};var ne,jt,Xe,se,In,pe={},xe={},Vn=[],le={},qr={},Ae={},Cn={},ar=null,Se=0,Xt=[],ue=new Ac(p),Dr=r.hotfixes||[],Ge={},Gn={},Yn=[],Ht=function c(y,E,z,X,ft,Lt){if(!(this instanceof c))return new c(y,E,z,X,ft,Lt);isNaN(y)&&(y=1),isNaN(E)&&(E=0),isNaN(z)&&(z=0),isNaN(X)&&(X=1),isNaN(ft)&&(ft=0),isNaN(Lt)&&(Lt=0),this._matrix=[y,E,z,X,ft,Lt]};Object.defineProperty(Ht.prototype,"sx",{get:function(){return this._matrix[0]},set:function(c){this._matrix[0]=c}}),Object.defineProperty(Ht.prototype,"shy",{get:function(){return this._matrix[1]},set:function(c){this._matrix[1]=c}}),Object.defineProperty(Ht.prototype,"shx",{get:function(){return this._matrix[2]},set:function(c){this._matrix[2]=c}}),Object.defineProperty(Ht.prototype,"sy",{get:function(){return this._matrix[3]},set:function(c){this._matrix[3]=c}}),Object.defineProperty(Ht.prototype,"tx",{get:function(){return this._matrix[4]},set:function(c){this._matrix[4]=c}}),Object.defineProperty(Ht.prototype,"ty",{get:function(){return this._matrix[5]},set:function(c){this._matrix[5]=c}}),Object.defineProperty(Ht.prototype,"a",{get:function(){return this._matrix[0]},set:function(c){this._matrix[0]=c}}),Object.defineProperty(Ht.prototype,"b",{get:function(){return this._matrix[1]},set:function(c){this._matrix[1]=c}}),Object.defineProperty(Ht.prototype,"c",{get:function(){return this._matrix[2]},set:function(c){this._matrix[2]=c}}),Object.defineProperty(Ht.prototype,"d",{get:function(){return this._matrix[3]},set:function(c){this._matrix[3]=c}}),Object.defineProperty(Ht.prototype,"e",{get:function(){return this._matrix[4]},set:function(c){this._matrix[4]=c}}),Object.defineProperty(Ht.prototype,"f",{get:function(){return this._matrix[5]},set:function(c){this._matrix[5]=c}}),Object.defineProperty(Ht.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ht.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ht.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ht.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Ht.prototype.join=function(c){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(K).join(c)},Ht.prototype.multiply=function(c){var y=c.sx*this.sx+c.shy*this.shx,E=c.sx*this.shy+c.shy*this.sy,z=c.shx*this.sx+c.sy*this.shx,X=c.shx*this.shy+c.sy*this.sy,ft=c.tx*this.sx+c.ty*this.shx+this.tx,Lt=c.tx*this.shy+c.ty*this.sy+this.ty;return new Ht(y,E,z,X,ft,Lt)},Ht.prototype.decompose=function(){var c=this.sx,y=this.shy,E=this.shx,z=this.sy,X=this.tx,ft=this.t
32y,Lt=Math.sqrt(c*c+y*y),Bt=(c/=Lt)*E+(y/=Lt)*z;E-=c*Bt,z-=y*Bt;var Tt=Math.sqrt(E*E+z*z);return Bt/=Tt,c*(z/=Tt)<y*(E/=Tt)&&(c=-c,y=-y,Bt=-Bt,Lt=-Lt),{scale:new Ht(Lt,0,0,Tt,0,0),translate:new Ht(1,0,0,1,X,ft),rotate:new Ht(c,y,-y,c,0,0),skew:new Ht(1,0,Bt,1,0,0)}},Ht.prototype.toString=function(c){return this.join(" ")},Ht.prototype.inversed=function(){var c=this.sx,y=this.shy,E=this.shx,z=this.sy,X=this.tx,ft=this.ty,Lt=1/(c*z-y*E),Bt=z*Lt,Tt=-y*Lt,Qt=-E*Lt,Kt=c*Lt;return new Ht(Bt,Tt,Qt,Kt,-Bt*X-Qt*ft,-Tt*X-Kt*ft)},Ht.prototype.applyToPoint=function(c){var y=c.x*this.sx+c.y*this.shx+this.tx,E=c.x*this.shy+c.y*this.sy+this.ty;return new di(y,E)},Ht.prototype.applyToRectangle=function(c){var y=this.applyToPoint(c),E=this.applyToPoint(new di(c.x+c.w,c.y+c.h));return new Xi(y.x,y.y,E.x-y.x,E.y-y.y)},Ht.prototype.clone=function(){var c=this.sx,y=this.shy,E=this.shx,z=this.sy,X=this.tx,ft=this.ty;return new Ht(c,y,E,z,X,ft)},p.Matrix=Ht;var Fn=p.matrixMult=function(c,y){return y.multiply(c)},Jn=new Ht(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Jn;var cn=function(c,y){if(!qr[c]){var E=(y instanceof Kr?"Sh":"P")+(Object.keys(le).length+1).toString(10);y.id=E,qr[c]=E,le[E]=y,ue.publish("addPattern",y)}};p.ShadingPattern=Kr,p.TilingPattern=Bi,p.addShadingPattern=function(c,y){return U("addShadingPattern()"),cn(c,y),this},p.beginTilingPattern=function(c){U("beginTilingPattern()"),Ta(c.boundingBox[0],c.boundingBox[1],c.boundingBox[2]-c.boundingBox[0],c.boundingBox[3]-c.boundingBox[1],c.matrix)},p.endTilingPattern=function(c,y){U("endTilingPattern()"),y.stream=Nt[F].join(`
33`),cn(c,y),ue.publish("endTilingPattern",y),Yn.pop().restore()};var Re=p.__private__.newObject=function(){var c=Me();return gn(c,!0),c},Me=p.__private__.newObjectDeferred=function(){return J++,M[J]=function(){return nt},J},gn=function(c,y){return y=typeof y=="boolean"&&y,M[c]=nt,y&&q(c+" 0 obj"),c},ti=p.__private__.newAdditionalObject=function(){var c={objId:Me(),content:""};return St.push(c),c},or=Me(),jn=Me(),En=p.__private__.decodeColorString=function(c){var y=c.split(" ");if(y.length!==2||y[1]!=="g"&&y[1]!=="G")y.length===5&&(y[4]==="k"||y[4]==="K")&&(y=[(1-y[0])*(1-y[3]),(1-y[1])*(1-y[3]),(1-y[2])*(1-y[3]),"r"]);else{var E=parseFloat(y[0]);y=[E,E,E,"r"]}for(var z="#",X=0;X<3;X++)z+=("0"+Math.floor(255*parseFloat(y[X])).toString(16)).slice(-2);return z},Bn=p.__private__.encodeColorString=function(c){var y;typeof c=="string"&&(c={ch1:c});var E=c.ch1,z=c.ch2,X=c.ch3,ft=c.ch4,Lt=c.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof E=="string"&&E.charAt(0)!=="#"){var Bt=new Xc(E);if(Bt.ok)E=Bt.toHex();else if(!/^\d*\.?\d*$/.test(E))throw new Error('Invalid color "'+E+'" passed to jsPDF.encodeColorString.')}if(typeof E=="string"&&/^#[0-9A-Fa-f]{3}$/.test(E)&&(E="#"+E[1]+E[1]+E[2]+E[2]+E[3]+E[3]),typeof E=="string"&&/^#[0-9A-Fa-f]{6}$/.test(E)){var Tt=parseInt(E.substr(1),16);E=Tt>>16&255,z=Tt>>8&255,X=255&Tt}if(z===void 0||ft===void 0&&E===z&&z===X)if(typeof E=="string")y=E+" "+Lt[0];else switch(c.precision){case 2:y=pt(E/255)+" "+Lt[0];break;case 3:default:y=P(E/255)+" "+Lt[0]}else if(ft===void 0||ve(ft)==="object"){if(ft&&!isNaN(ft.a)&&ft.a===0)return y=["1.","1.","1.",Lt[1]].join(" ");if(typeof E=="string")y=[E,z,X,Lt[1]].join(" ");else switch(c.precision){case 2:y=[pt(E/255),pt(z/255),pt(X/255),Lt[1]].join(" ");break;default:case 3:y=[P(E/255),P(z/255),P(X/255),Lt[1]].join(" ")}}else if(typeof E=="string")y=[E,z,X,ft,Lt[2]].join(" ");else switch(c.precision){case 2:y=[pt(E),pt(z),pt(X),pt(ft),Lt[2]].join(" ");break;case 3:default:y=[P(E),P(z),P(X),P(ft),Lt[2]].join(" ")}return y},$n=p.__private__.getFilters=function(){return l},xn=p.__private__.putStream=function(c){var y=(c=c||{}).data||"",E=c.filters||$n(),z=c.alreadyAppliedFilters||[],X=c.addLength1||!1,ft=y.length,Lt=c.objectId,Bt=function(Ze){return Ze};if(v!==null&&Lt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");v!==null&&(Bt=Ke.encryptor(Lt,0));var Tt={};E===!0&&(E=["FlateEncode"]);var Qt=c.additionalKeyValues||[],Kt=(Tt=Wt.API.processDataByFilters!==void 0?Wt.API.processDataByFilters(y,E):{data:y,reverseChain:[]}).reverseChain+(Array.isArray(z)?z.join(" "):z.toString());if(Tt.data.length!==0&&(Qt.push({key:"Length",value:Tt.data.length}),X===!0&&Qt.push({key:"Length1",value:ft})),Kt.length!=0)if(Kt.split("/").length-1==1)Qt.push({key:"Filter",value:Kt});else{Qt.push({key:"Filter",value:"["+Kt+"]"});for(var ae=0;ae<Qt.length;ae+=1)if(Qt[ae].key==="DecodeParms"){for(var Le=[],_e=0;_e<Tt.reverseChain.split("/").length-1;_e+=1)Le.push("null");Le.push(Qt[ae].value),Qt[ae].value="["+Le.join(" ")+"]"}}q("<<");for(var qe=0;qe<Qt.length;qe++)q("/"+Qt[qe].key+" "+Qt[qe].value);q(">>"),Tt.data.length!==0&&(q("stream"),q(Bt(Tt.data)),q("endstream"))},Xn=p.__private__.putPage=function(c){var y=c.number,E=c.data,z=c.objId,X=c.contentsObjId;gn(z,!0),q("<</Type /Page"),q("/Parent "+c.rootDictionaryObjId+" 0 R"),q("/Resources "+c.resourceDictionaryObjId+" 0 R"),q("/MediaBox ["+parseFloat(K(c.mediaBox.bottomLeftX))+" "+parseFloat(K(c.mediaBox.bottomLeftY))+" "+K(c.mediaBox.topRightX)+" "+K(c.mediaBox.topRightY)+"]"),c.cropBox!==null&&q("/CropBox ["+K(c.cropBox.bottomLeftX)+" "+K(c.cropBox.bottomLeftY)+" "+K(c.cropBox.topRightX)+" "+K(c.cropBox.topRightY)+"]"),c.bleedBox!==null&&q("/BleedBox ["+K(c.bleedBox.bottomLeftX)+" "+K(c.bleedBox.bottomLeftY)+" "+K(c.bleedBox.topRightX)+" "+K(c.bleedBox.topRightY)+"]"),c.trimBox!==null&&q("/TrimBox ["+K(c.trimBox.bottomLeftX)+" "+K(c.trimBox.bottomLeftY)+" "+K(c.trimBox.topRightX)+" "+K(c.trimBox.topRightY)+"]"),c.artBox!==null&&q("/ArtBox ["+K(c.artBox.bottomLeftX)+" "+K(c.artBox.bottomLeftY)+" "+K(c.artBox.topRightX)+" "+K(c.artBox.topRightY)+"]"),typeof c.userUnit=="number"&&c.userUnit!==1&&q("/UserUnit "+c.userUnit),ue.publish("putPage",{objId:z,pageContext:Xt[y],pageNumber:y,page:E}),q("/Contents "+X+" 0 R"),q(">>"),q("endobj");var ft=E.join(`
34`);return Y===B.ADVANCED&&(ft+=`
35Q`),gn(X,!0),xn({data:ft,filters:$n(),objectId:X}
vendor: 14,171 bytes, lines 35-38
35),q("endobj"),z},Tr=p.__private__.putPages=function(){var c,y,E=[];for(c=1;c<=Se;c++)Xt[c].objId=Me(),Xt[c].contentsObjId=Me();for(c=1;c<=Se;c++)E.push(Xn({number:c,data:Nt[c],objId:Xt[c].objId,contentsObjId:Xt[c].contentsObjId,mediaBox:Xt[c].mediaBox,cropBox:Xt[c].cropBox,bleedBox:Xt[c].bleedBox,trimBox:Xt[c].trimBox,artBox:Xt[c].artBox,userUnit:Xt[c].userUnit,rootDictionaryObjId:or,resourceDictionaryObjId:jn}));gn(or,!0),q("<</Type /Pages");var z="/Kids [";for(y=0;y<Se;y++)z+=E[y]+" 0 R ";q(z+"]"),q("/Count "+Se),q(">>"),q("endobj"),ue.publish("postPutPages")},ei=function(c){ue.publish("putFont",{font:c,out:q,newObject:Re,putStream:xn}),c.isAlreadyPutted!==!0&&(c.objectNumber=Re(),q("<<"),q("/Type /Font"),q("/BaseFont /"+ji(c.postScriptName)),q("/Subtype /Type1"),typeof c.encoding=="string"&&q("/Encoding /"+c.encoding),q("/FirstChar 32"),q("/LastChar 255"),q(">>"),q("endobj"))},ni=function(){for(var c in pe)pe.hasOwnProperty(c)&&(b===!1||b===!0&&A.hasOwnProperty(c))&&ei(pe[c])},ri=function(c){c.objectNumber=Re();var y=[];y.push({key:"Type",value:"/XObject"}),y.push({key:"Subtype",value:"/Form"}),y.push({key:"BBox",value:"["+[K(c.x),K(c.y),K(c.x+c.width),K(c.y+c.height)].join(" ")+"]"}),y.push({key:"Matrix",value:"["+c.matrix.toString()+"]"});var E=c.pages[1].join(`
36`);xn({data:E,additionalKeyValues:y,objectId:c.objectNumber}),q("endobj")},ii=function(){for(var c in Ge)Ge.hasOwnProperty(c)&&ri(Ge[c])},xa=function(c,y){var E,z=[],X=1/(y-1);for(E=0;E<1;E+=X)z.push(E);if(z.push(1),c[0].offset!=0){var ft={offset:0,color:c[0].color};c.unshift(ft)}if(c[c.length-1].offset!=1){var Lt={offset:1,color:c[c.length-1].color};c.push(Lt)}for(var Bt="",Tt=0,Qt=0;Qt<z.length;Qt++){for(E=z[Qt];E>c[Tt+1].offset;)Tt++;var Kt=c[Tt].offset,ae=(E-Kt)/(c[Tt+1].offset-Kt),Le=c[Tt].color,_e=c[Tt+1].color;Bt+=R(Math.round((1-ae)*Le[0]+ae*_e[0]).toString(16))+R(Math.round((1-ae)*Le[1]+ae*_e[1]).toString(16))+R(Math.round((1-ae)*Le[2]+ae*_e[2]).toString(16))}return Bt.trim()},Co=function(c,y){y||(y=21);var E=Re(),z=xa(c.colors,y),X=[];X.push({key:"FunctionType",value:"0"}),X.push({key:"Domain",value:"[0.0 1.0]"}),X.push({key:"Size",value:"["+y+"]"}),X.push({key:"BitsPerSample",value:"8"}),X.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),X.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),xn({data:z,additionalKeyValues:X,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:E}),q("endobj"),c.objectNumber=Re(),q("<< /ShadingType "+c.type),q("/ColorSpace /DeviceRGB");var ft="/Coords ["+K(parseFloat(c.coords[0]))+" "+K(parseFloat(c.coords[1]))+" ";c.type===2?ft+=K(parseFloat(c.coords[2]))+" "+K(parseFloat(c.coords[3])):ft+=K(parseFloat(c.coords[2]))+" "+K(parseFloat(c.coords[3]))+" "+K(parseFloat(c.coords[4]))+" "+K(parseFloat(c.coords[5])),q(ft+="]"),c.matrix&&q("/Matrix ["+c.matrix.toString()+"]"),q("/Function "+E+" 0 R"),q("/Extend [true true]"),q(">>"),q("endobj")},Fo=function(c,y){var E=Me(),z=Re();y.push({resourcesOid:E,objectOid:z}),c.objectNumber=z;var X=[];X.push({key:"Type",value:"/Pattern"}),X.push({key:"PatternType",value:"1"}),X.push({key:"PaintType",value:"1"}),X.push({key:"TilingType",value:"1"}),X.push({key:"BBox",value:"["+c.boundingBox.map(K).join(" ")+"]"}),X.push({key:"XStep",value:K(c.xStep)}),X.push({key:"YStep",value:K(c.yStep)}),X.push({key:"Resources",value:E+" 0 R"}),c.matrix&&X.push({key:"Matrix",value:"["+c.matrix.toString()+"]"}),xn({data:c.stream,additionalKeyValues:X,objectId:c.objectNumber}),q("endobj")},ai=function(c){var y;for(y in le)le.hasOwnProperty(y)&&(le[y]instanceof Kr?Co(le[y]):le[y]instanceof Bi&&Fo(le[y],c))},La=function(c){for(var y in c.objectNumber=Re(),q("<<"),c)switch(y){case"opacity":q("/ca "+pt(c[y]));break;case"stroke-opacity":q("/CA "+pt(c[y]))}q(">>"),q("endobj")},jo=function(){var c;for(c in Ae)Ae.hasOwnProperty(c)&&La(Ae[c])},Ri=function(){for(var c in q("/XObject <<"),Ge)Ge.hasOwnProperty(c)&&Ge[c].objectNumber>=0&&q("/"+c+" "+Ge[c].objectNumber+" 0 R");ue.publish("putXobjectDict"),q(">>")},Eo=function(){Ke.oid=Re(),q("<<"),q("/Filter /Standard"),q("/V "+Ke.v),q("/R "+Ke.r),q("/U <"+Ke.toHexString(Ke.U)+">"),q("/O <"+Ke.toHexString(Ke.O)+">"),q("/P "+Ke.P),q(">>"),q("endobj")},Na=function(){for(var c in q("/Font <<"),pe)pe.hasOwnProperty(c)&&(b===!1||b===!0&&A.hasOwnProperty(c))&&q("/"+c+" "+pe[c].objectNumber+" 0 R");q(">>")},Bo=function(){if(Object.keys(le).length>0){for(var c in q("/Shading <<"),le)le.hasOwnProperty(c)&&le[c]instanceof Kr&&le[c].objectNumber>=0&&q("/"+c+" "+le[c].objectNumber+" 0 R");ue.publish("putShadingPatternDict"),q(">>")}},oi=function(c){if(Object.keys(le).length>0){for(var y in q("/Pattern <<"),le)le.hasOwnProperty(y)&&le[y]instanceof p.TilingPattern&&le[y].objectNumber>=0&&le[y].objectNumber<c&&q("/"+y+" "+le[y].objectNumber+" 0 R");ue.publish("putTilingPatternDict"),q(">>")}},Oo=function(){if(Object.keys(Ae).length>0){var c;for(c in q("/ExtGState <<"),Ae)Ae.hasOwnProperty(c)&&Ae[c].objectNumber>=0&&q("/"+c+" "+Ae[c].objectNumber+" 0 R");ue.publish("putGStateDict"),q(">>")}},Ce=function(c){gn(c.resourcesOid,!0),q("<<"),q("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Na(),Bo(),oi(c.objectOid),Oo(),Ri(),q(">>"),q("endobj")},Aa=function(){var c=[];ni(),jo(),ii(),ai(c),ue.publish("putResources"),c.forEach(Ce),Ce({resourcesOid:jn,objectOid:Number.MAX_SAFE_INTEGER}),ue.publish("postPutResources")},Sa=function(){ue.publish("putAdditionalObjects");for(var c=0;c<St.length;c++){var y=St[c];gn(y.objId,!0),q(y.content),q("endobj")}ue.publish("postPutAdditionalObjects")},_a=function(c){xe[c.fontName]=xe[c.fontName]||{},xe[c.fontName][c.fontStyle]=c.id},zi=function(c,y,E,z,X){var ft={id:"F"+(Object.keys(pe).length+1).toString(10),postScriptName:c,fontName:y,fontStyle:E,encoding:z,isStandardFont:X||!1,metadata:{}};return ue.publish("addFont",{font:ft,instance:this}),pe[ft.id]=ft,_a(ft),ft.id},Mo=function(c){for(var y=0,E=At.length;y<E;y++){var z=zi.call(this,c[y][0],c[y][1],c[y][2],At[y][3],!0);b===!1&&(A[z]=!0);var X=c[y][0].split("-");_a({id:z,fontName:X[0],fontStyle:X[1]||""})}ue.publish("addFonts",{fonts:pe,dictionary:xe})},On=function(c){return c.foo=function(){try{return c.apply(this,arguments)}catch(z){var y=z.stack||"";~y.indexOf(" at ")&&(y=y.split(" at ")[1]);var E="Error in function "+y.split(`
37`)[0].split("<")[0]+": "+z.message;if(!Vt.console)throw new Error(E);Vt.console.error(E,z),Vt.alert&&alert(E)}},c.foo.bar=c,c.foo},si=function(c,y){var E,z,X,ft,Lt,Bt,Tt,Qt,Kt;if(X=(y=y||{}).sourceEncoding||"Unicode",Lt=y.outputEncoding,(y.autoencode||Lt)&&pe[ne].metadata&&pe[ne].metadata[X]&&pe[ne].metadata[X].encoding&&(ft=pe[ne].metadata[X].encoding,!Lt&&pe[ne].encoding&&(Lt=pe[ne].encoding),!Lt&&ft.codePages&&(Lt=ft.codePages[0]),typeof Lt=="string"&&(Lt=ft[Lt]),Lt)){for(Tt=!1,Bt=[],E=0,z=c.length;E<z;E++)(Qt=Lt[c.charCodeAt(E)])?Bt.push(String.fromCharCode(Qt)):Bt.push(c[E]),Bt[E].charCodeAt(0)>>8&&(Tt=!0);c=Bt.join("")}for(E=c.length;Tt===void 0&&E!==0;)c.charCodeAt(E-1)>>8&&(Tt=!0),E--;if(!Tt)return c;for(Bt=y.noBOM?[]:[254,255],E=0,z=c.length;E<z;E++){if((Kt=(Qt=c.charCodeAt(E))>>8)>>8)throw new Error("Character at position "+E+" of string '"+c+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Bt.push(Kt),Bt.push(Qt-(Kt<<8))}return String.fromCharCode.apply(void 0,Bt)},ln=p.__private__.pdfEscape=p.pdfEscape=function(c,y){return si(c,y).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ui=p.__private__.beginPage=function(c){Nt[++Se]=[],Xt[Se]={objId:0,contentsObjId:0,userUnit:Number(h),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(c[0]),topRightY:Number(c[1])}},ka(Se),at(Nt[F])},Pa=function(c,y){var E,z,X;switch(n=y||n,typeof c=="string"&&(E=_(c.toLowerCase()),Array.isArray(E)&&(z=E[0],X=E[1])),Array.isArray(c)&&(z=c[0]*jt,X=c[1]*jt),isNaN(z)&&(z=s[0],X=s[1]),(z>14400||X>14400)&&(me.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),z=Math.min(14400,z),X=Math.min(14400,X)),s=[z,X],n.substr(0,1)){case"l":X>z&&(s=[X,z]);break;case"p":z>X&&(s=[X,z])}Ui(s),Ba(Gi),q(Mn),Ji!==0&&q(Ji+" J"),$i!==0&&q($i+" j"),ue.publish("addPage",{pageNumber:Se})},qo=function(c){c>0&&c<=Se&&(Nt.splice(c,1),Xt.splice(c,1),Se--,F>Se&&(F=Se),this.setPage(F))},ka=function(c){c>0&&c<=Se&&(F=c)},Do=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return Nt.length-1},Ia=function(c,y,E){var z,X=void 0;return E=E||{},c=c!==void 0?c:pe[ne].fontName,y=y!==void 0?y:pe[ne].fontStyle,z=c.toLowerCase(),xe[z]!==void 0&&xe[z][y]!==void 0?X=xe[z][y]:xe[c]!==void 0&&xe[c][y]!==void 0?X=xe[c][y]:E.disableWarning===!1&&me.warn("Unable to look up font label for font '"+c+"', '"+y+"'. Refer to getFontList() for available fonts."),X||E.noFallback||(X=xe.times[y])==null&&(X=xe.times.normal),X},To=p.__private__.putInfo=function(){var c=Re(),y=function(z){return z};for(var E in v!==null&&(y=Ke.encryptor(c,0)),q("<<"),q("/Producer ("+ln(y("jsPDF "+Wt.version))+")"),Gt)Gt.hasOwnProperty(E)&&Gt[E]&&q("/"+E.substr(0,1).toUpperCase()+E.substr(1)+" ("+ln(y(Gt[E]))+")");q("/CreationDate ("+ln(y(st))+")"),q(">>"),q("endobj")},Hi=p.__private__.putCatalog=function(c){var y=(c=c||{}).rootDictionaryObjId||or;switch(Re(),q("<<"),q("/Type /Catalog"),q("/Pages "+y+" 0 R"),dt||(dt="fullwidth"),dt){case"fullwidth":q("/OpenAction [3 0 R /FitH null]");break;case"fullheight":q("/OpenAction [3 0 R /FitV null]");break;case"fullpage":q("/OpenAction [3 0 R /Fit]");break;case"original":q("/OpenAction [3 0 R /XYZ null null 1]");break;default:var E=""+dt;E.substr(E.length-1)==="%"&&(dt=parseInt(dt)/100),typeof dt=="number"&&q("/OpenAction [3 0 R /XYZ null null "+pt(dt)+"]")}switch(Jt||(Jt="continuous"),Jt){case"continuous":q("/PageLayout /OneColumn");break;case"single":q("/PageLayout /SinglePage");break;case"two":case"twoleft":q("/PageLayout /TwoColumnLeft");break;case"tworight":q("/PageLayout /TwoColumnRight")}Dt&&q("/PageMode /"+Dt),ue.publish("putCatalog"),q(">>"),q("endobj")},Ro=p.__private__.putTrailer=function(){q("trailer"),q("<<"),q("/Size "+(J+1)),q("/Root "+J+" 0 R"),q("/Info "+(J-1)+" 0 R"),v!==null&&q("/Encrypt "+Ke.oid+" 0 R"),q("/ID [ <"+it+"> <"+it+"> ]"),q(">>")},zo=p.__private__.putHeader=function(){q("%PDF-"+j),q("%ºß¬à")},Uo=p.__private__.putXRef=function(){var c="0000000000";q("xref"),q("0 "+(J+1)),q("0000000000 65535 f ");for(var y=1;y<=J;y++)typeof M[y]=="function"?q((c+M[y]()).slice(-10)+" 00000 n "):M[y]!==void 0?q((c+M[y]).slice(-10)+" 00000 n "):q("0000000000 00000 n ")},sr=p.__private__.buildDocument=function(){zt(),at(rt),ue.publish("buildDocument"),zo(),Tr(),Sa(),Aa(),v!==null&&Eo(),To(),Hi();var c=nt;return Uo(),Ro(),q("startxref"),q(""+c),q("%%EOF"),at(Nt[F]),rt.join(`
38`)},ci=p.__private__.getBlob=function(c){return new Blob([qt(c)],{type:"application/pdf"})},li=p.output=p.__private__.output=On(function(c,y){switch(typeof(y=y||{})=="string"?y={filename:y}:y.filename=y.filename||"generated.pdf",c){case void 0:return sr();case"save":p.save(y.filename);break;case"arraybuffer":return qt(sr());case"blob":return ci(sr());case"bloburi":case"bloburl":if(Vt.URL!==void 0&&typeof Vt.URL.createObjectURL=="function")return Vt.URL&&Vt.URL.createObjectURL(ci(sr()))||void 0;me.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var E="",z=sr();try{E=js(z)}catch{E=js(unescape(encodeURIComponent(z)))}return"data:application/pdf;filename="+y.filename+";base64,"+E;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Vt)==="[object Window]"){var X="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ft=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';y.pdfObjectUrl&&(X=y.pdfObjectUrl,ft="");var Lt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+X+'"'+ft+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(y)+");<\/script></body></html>",Bt=Vt.open();return Bt!==null&&Bt.document.write(Lt),Bt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Vt)==="[object Window]"){var Tt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(y.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+y.filename+'" width="500px" height="400px" /></body></html>',Qt=Vt.open();if(Qt!==null){Qt.document.write(Tt);var Kt=this;Qt.document.documentElement.querySelector("#pdfViewer").onload=function(){Qt.document.title=y.filename,Qt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Kt.output("bloburl"))}}return Qt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Vt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ae='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",y)+'"></iframe></body></html>',Le=Vt.open();if(Le!==null&&(Le.document.write(ae),Le.document.title=y.filename),Le||typeof safari>"u")return Le;break;case"datauri":case"dataurl":return Vt.document.location.href=this.output("datauristring",y);default:return null}}),Ca=function(c){return Array.isArray(Dr)===!0&&Dr.indexOf(c)>-1};switch(a){case"pt":jt=1;break;case"mm":jt=72/25.4;break;case"cm":jt=72/2.54;break;case"in":jt=72;break;case"px":jt=Ca("px_scaling")==1?.75:96/72;break;case"pc":case"em":jt=12;break;case"ex":jt=6;break;default:if(typeof a!="number")throw new Error("Invalid unit: "+a);jt=a}var Ke=null;Ct(),tt();var Ho=function(c){return v!==null?Ke.encryptor(c,0):function(y){return y}},Fa=p.__private__.getPageInfo=p.getPageInfo=function(c){if(isNaN(c)||c%1!=0)throw new Error("Invalid argument passed to 
38jsPDF.getPageInfo");return{objId:Xt[c].objId,pageNumber:c,pageContext:Xt[c]}},$t=p.__private__.getPageInfoByObjId=function(c){if(isNaN(c)||c%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var y in Xt)if(Xt[y].objId===c)break;return Fa(y)},Wo=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Xt[F].objId,pageNumber:F,pageContext:Xt[F]}};p.addPage=function(){return Pa.apply(this,arguments),this},p.setPage=function(){return ka.apply(this,arguments),at.call(this,Nt[F]),this},p.insertPage=function(c){return this.addPage(),this.movePage(F,c),this},p.movePage=function(c,y){var E,z;if(c>y){E=Nt[c],z=Xt[c];for(var X=c;X>y;X--)Nt[X]=Nt[X-1],Xt[X]=Xt[X-1];Nt[y]=E,Xt[y]=z,this.setPage(y)}else if(c<y){E=Nt[c],z=Xt[c];for(var ft=c;ft<y;ft++)Nt[ft]=Nt[ft+1],Xt[ft]=Xt[ft+1];Nt[y]=E,Xt[y]=z,this.setPage(y)}return this},p.deletePage=function(){return qo.apply(this,arguments),this},p.__private__.text=p.text=function(c,y,E,z,X){var ft,Lt,Bt,Tt,Qt,Kt,ae,Le,_e,qe=(z=z||{}).scope||this;if(typeof c=="number"&&typeof y=="number"&&(typeof E=="string"||Array.isArray(E))){var Ze=E;E=y,y=c,c=Ze}if(arguments[3]instanceof Ht?(U("The transform parameter of text() with a Matrix value"),_e=X):(Bt=arguments[4],Tt=arguments[5],ve(ae=arguments[3])==="object"&&ae!==null||(typeof Bt=="string"&&(Tt=Bt,Bt=null),typeof ae=="string"&&(Tt=ae,ae=null),typeof ae=="number"&&(Bt=ae,ae=null),z={flags:ae,angle:Bt,align:Tt})),isNaN(y)||isNaN(E)||c==null)throw new Error("Invalid arguments passed to jsPDF.text");if(c.length===0)return qe;var Ue="",qn=!1,mn=typeof z.lineHeightFactor=="number"?z.lineHeightFactor:zr,Qn=qe.internal.scaleFactor;function Ra(be){return be=be.split("	").join(Array(z.TabLen||9).join(" ")),ln(be,ae)}function ta(be){for(var ye,je=be.concat(),ze=[],fr=je.length;fr--;)typeof(ye=je.shift())=="string"?ze.push(ye):Array.isArray(be)&&(ye.length===1||ye[1]===void 0&&ye[2]===void 0)?ze.push(ye[0]):ze.push([ye[0],ye[1],ye[2]]);return ze}function ea(be,ye){var je;if(typeof be=="string")je=ye(be)[0];else if(Array.isArray(be)){for(var ze,fr,la=be.concat(),Ai=[],Va=la.length;Va--;)typeof(ze=la.shift())=="string"?Ai.push(ye(ze)[0]):Array.isArray(ze)&&typeof ze[0]=="string"&&(fr=ye(ze[0],ze[1],ze[2]),Ai.push([fr[0],fr[1],fr[2]]));je=Ai}return je}var gi=!1,na=!0;if(typeof c=="string")gi=!0;else if(Array.isArray(c)){var ra=c.concat();Lt=[];for(var mi,Ye=ra.length;Ye--;)(typeof(mi=ra.shift())!="string"||Array.isArray(mi)&&typeof mi[0]!="string")&&(na=!1);gi=na}if(gi===!1)throw new Error('Type of text must be string or Array. "'+c+'" is not recognized.');typeof c=="string"&&(c=c.match(/[\r?\n]/)?c.split(/\r\n|\r|\n/g):[c]);var vi=Pt/qe.internal.scaleFactor,bi=vi*(mn-1);switch(z.baseline){case"bottom":E-=bi;break;case"top":E+=vi-bi;break;case"hanging":E+=vi-2*bi;break;case"middle":E+=vi/2-bi}if((Kt=z.maxWidth||0)>0&&(typeof c=="string"?c=qe.splitTextToSize(c,Kt):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(be,ye){return be.concat(qe.splitTextToSize(ye,Kt))},[]))),ft={text:c,x:y,y:E,options:z,mutex:{pdfEscape:ln,activeFontKey:ne,fonts:pe,activeFontSize:Pt}},ue.publish("preProcessText",ft),c=ft.text,Bt=(z=ft.options).angle,!(_e instanceof Ht)&&Bt&&typeof Bt=="number"){Bt*=Math.PI/180,z.rotationDirection===0&&(Bt=-Bt),Y===B.ADVANCED&&(Bt=-Bt);var yi=Math.cos(Bt),ia=Math.sin(Bt);_e=new Ht(yi,ia,-ia,yi,0,0)}else Bt&&Bt instanceof Ht&&(_e=Bt);Y!==B.ADVANCED||_e||(_e=Jn),(Qt=z.charSpace||fi)!==void 0&&(Ue+=K(I(Qt))+` Tc
39`,this.setCharSpace(this.getCharSpace()||0)),(Le=z.horizontalScale)!==void 0&&(Ue+=K(100*Le)+` Tz
40`),z.lang;var un=-1,ts=z.renderingMode!==void 0?z.renderingMode:z.stroke,aa=qe.internal.getCurrentPageInfo().pageContext;switch(ts){case 0:case!1:case"fill":un=0;break;case 1:case!0:case"stroke":un=1;break;case 2:case"fillThenStroke":un=2;break;case 3:case"invisible":un=3;break;case 4:case"fillAndAddForClipping":un=4;break;case 5:case"strokeAndAddPathForClipping":un=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":un=6;break;case 7:case"addToPathForClipping":un=7}var za=aa.usedRenderingMode!==void 0?aa.usedRenderingMode:-1;un!==-1?Ue+=un+` Tr
41`:za!==-1&&(Ue+=`0 Tr
42`),un!==-1&&(aa.usedRenderingMode=un),Tt=z.align||"left";var Ln,wi=Pt*mn,Ua=qe.internal.pageSize.getWidth(),Ha=pe[ne];Qt=z.charSpace||fi,Kt=z.maxWidth||0,ae=Object.assign({autoencode:!0,noBOM:!0},z.flags);var xr=[],Wr=function(be){return qe.getStringUnitWidth(be,{font:Ha,charSpace:Qt,fontSize:Pt,doKerning:!1})*Pt/Qn};if(Object.prototype.toString.call(c)==="[object Array]"){var hn;Lt=ta(c),Tt!=="left"&&(Ln=Lt.map(Wr));var an,Lr=0;if(Tt==="right"){y-=Ln[0],c=[],Ye=Lt.length;for(var lr=0;lr<Ye;lr++)lr===0?(an=Zn(y),hn=cr(E)):(an=I(Lr-Ln[lr]),hn=-wi),c.push([Lt[lr],an,hn]),Lr=Ln[lr]}else if(Tt==="center"){y-=Ln[0]/2,c=[],Ye=Lt.length;for(var ur=0;ur<Ye;ur++)ur===0?(an=Zn(y),hn=cr(E)):(an=I((Lr-Ln[ur])/2),hn=-wi),c.push([Lt[ur],an,hn]),Lr=Ln[ur]}else if(Tt==="left"){c=[],Ye=Lt.length;for(var xi=0;xi<Ye;xi++)c.push(Lt[xi])}else if(Tt==="justify"&&Ha.encoding==="Identity-H"){c=[],Ye=Lt.length,Kt=Kt!==0?Kt:Ua;for(var hr=0,Fe=0;Fe<Ye;Fe++)if(hn=Fe===0?cr(E):-wi,an=Fe===0?Zn(y):hr,Fe<Ye-1){var oa=I((Kt-Ln[Fe])/(Lt[Fe].split(" ").length-1)),on=Lt[Fe].split(" ");c.push([on[0]+" ",an,hn]),hr=0;for(var Nn=1;Nn<on.length;Nn++){var Li=(Wr(on[Nn-1]+" "+on[Nn])-Wr(on[Nn]))*Qn+oa;Nn==on.length-1?c.push([on[Nn],Li,0]):c.push([on[Nn]+" ",Li,0]),hr-=Li}}else c.push([Lt[Fe],an,hn]);c.push(["",hr,0])}else{if(Tt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(c=[],Ye=Lt.length,Kt=Kt!==0?Kt:Ua,Fe=0;Fe<Ye;Fe++)hn=Fe===0?cr(E):-wi,an=Fe===0?Zn(y):0,Fe<Ye-1?xr.push(K(I((Kt-Ln[Fe])/(Lt[Fe].split(" ").length-1)))):xr.push(0),c.push([Lt[Fe],an,hn])}}var Wa=typeof z.R2L=="boolean"?z.R2L:Et;Wa===!0&&(c=ea(c,function(be,ye,je){return[be.split("").reverse().join(""),ye,je]})),ft={text:c,x:y,y:E,options:z,mutex:{pdfEscape:ln,activeFontKey:ne,fonts:pe,activeFontSize:Pt}},ue.publish("postProcessText",ft),c=ft.text,qn=ft.mutex.isHex||!1;var sa=pe[ne].encoding;sa!=="WinAnsiEncoding"&&sa!=="StandardEncoding"||(c=ea(c,function(be,ye,je){return[Ra(be),ye,je]})),Lt=ta(c),c=[];for(var Vr,Gr,Nr,Yr=0,Ni=1,Jr=Array.isArray(Lt[0])?Ni:Yr,Ar="",ca=function(be,ye,je){var ze="";return je instanceof Ht?(je=typeof z.angle=="number"?Fn(je,new Ht(1,0,0,1,be,ye)):Fn(new Ht(1,0,0,1,be,ye),je),Y===B.ADVANCED&&(je=Fn(new Ht(1,0,0,-1,0,0),je)),ze=je.join(" ")+` Tm
43`):ze=K(be)+" "+K(ye)+` Td
44`,ze},An=0;An<Lt.length;An++){switch(Ar="",Jr){case Ni:Nr=(qn?"<":"(")+Lt[An][0]+(qn?">":")"),Vr=parseFloat(Lt[An][1]),Gr=parseFloat(Lt[An][2]);break;case Yr:Nr=(qn?"<":"(")+Lt[An]+(qn?">":")"),Vr=Zn(y),Gr=cr(E)}xr!==void 0&&xr[An]!==void 0&&(Ar=xr[An]+` Tw
45`),An===0?c.push(Ar+ca(Vr,Gr,_e)+Nr):Jr===Yr?c.push(Ar+Nr):Jr===Ni&&c.push(Ar+ca(Vr,Gr,_e)+Nr)}c=Jr===Yr?c.join(` Tj
46T* `):c.join(` Tj
47`),c+=` Tj
48`;var Sn=`BT
49/`;return Sn+=ne+" "+Pt+` Tf
50`,Sn+=K(Pt*mn)+` TL
51`,Sn+=Ur+`
52`,Sn+=Ue,Sn+=c,q(Sn+="ET"),A[ne]=!0,qe};var Vo=p.__private__.clip=p.clip=function(c){return q(c==="evenodd"?"W*":"W"),this};p.clipEvenOdd=function(){return Vo("evenodd")},p.__private__.discardPath=p.discardPath=function(){return q("n"),this};var Kn=p.__private__.isValidStyle=function(c){var y=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(c)!==-1&&(y=!0),y};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(c){return Kn(c)&&(g=c),this};var ja=p.__private__.getStyle=p.getStyle=function(c){var y=g;switch(c){case"D":case"S":y="S";break;case"F":y="f";break;case"FD":case"DF":y="B";break;case"f":case"f*":case"B":case"B*":y=c}return y},Ea=p.close=function(){return q("h"),this};p.stroke=function(){return q("S"),this},p.fill=function(c){return ui("f",c),this},p.fillEvenOdd=function(c){return ui("f*",c),this},p.fillStroke=function(c){return ui("B",c),this},p.fillStrokeEvenOdd=function(c){return ui("B*",c),this};var ui=function(c,y){ve(y)==="object"?Yo(y,c):q(c)},Wi=function(c){c===null||Y===B.ADVANCED&&c===void 0||(c=ja(c),q(c))};function Go(c,y,E,z,X){var ft=new Bi(y||this.boundingBox,E||this.xStep,z||this.yStep,this.gState,X||this.matrix
vendor: 9,083 bytes, line 52
52);ft.stream=this.stream;var Lt=c+"$$"+this.cloneIndex+++"$$";return cn(Lt,ft),ft}var Yo=function(c,y){var E=qr[c.key],z=le[E];if(z instanceof Kr)q("q"),q(Jo(y)),z.gState&&p.setGState(z.gState),q(c.matrix.toString()+" cm"),q("/"+E+" sh"),q("Q");else if(z instanceof Bi){var X=new Ht(1,0,0,-1,0,wr());c.matrix&&(X=X.multiply(c.matrix||Jn),E=Go.call(z,c.key,c.boundingBox,c.xStep,c.yStep,X).id),q("q"),q("/Pattern cs"),q("/"+E+" scn"),z.gState&&p.setGState(z.gState),q(y),q("Q")}},Jo=function(c){switch(c){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Vi=p.moveTo=function(c,y){return q(K(I(c))+" "+K(T(y))+" m"),this},Rr=p.lineTo=function(c,y){return q(K(I(c))+" "+K(T(y))+" l"),this},br=p.curveTo=function(c,y,E,z,X,ft){return q([K(I(c)),K(T(y)),K(I(E)),K(T(z)),K(I(X)),K(T(ft)),"c"].join(" ")),this};p.__private__.line=p.line=function(c,y,E,z,X){if(isNaN(c)||isNaN(y)||isNaN(E)||isNaN(z)||!Kn(X))throw new Error("Invalid arguments passed to jsPDF.line");return Y===B.COMPAT?this.lines([[E-c,z-y]],c,y,[1,1],X||"S"):this.lines([[E-c,z-y]],c,y,[1,1]).stroke()},p.__private__.lines=p.lines=function(c,y,E,z,X,ft){var Lt,Bt,Tt,Qt,Kt,ae,Le,_e,qe,Ze,Ue,qn;if(typeof c=="number"&&(qn=E,E=y,y=c,c=qn),z=z||[1,1],ft=ft||!1,isNaN(y)||isNaN(E)||!Array.isArray(c)||!Array.isArray(z)||!Kn(X)||typeof ft!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Vi(y,E),Lt=z[0],Bt=z[1],Qt=c.length,Ze=y,Ue=E,Tt=0;Tt<Qt;Tt++)(Kt=c[Tt]).length===2?(Ze=Kt[0]*Lt+Ze,Ue=Kt[1]*Bt+Ue,Rr(Ze,Ue)):(ae=Kt[0]*Lt+Ze,Le=Kt[1]*Bt+Ue,_e=Kt[2]*Lt+Ze,qe=Kt[3]*Bt+Ue,Ze=Kt[4]*Lt+Ze,Ue=Kt[5]*Bt+Ue,br(ae,Le,_e,qe,Ze,Ue));return ft&&Ea(),Wi(X),this},p.path=function(c){for(var y=0;y<c.length;y++){var E=c[y],z=E.c;switch(E.op){case"m":Vi(z[0],z[1]);break;case"l":Rr(z[0],z[1]);break;case"c":br.apply(this,z);break;case"h":Ea()}}return this},p.__private__.rect=p.rect=function(c,y,E,z,X){if(isNaN(c)||isNaN(y)||isNaN(E)||isNaN(z)||!Kn(X))throw new Error("Invalid arguments passed to jsPDF.rect");return Y===B.COMPAT&&(z=-z),q([K(I(c)),K(T(y)),K(I(E)),K(I(z)),"re"].join(" ")),Wi(X),this},p.__private__.triangle=p.triangle=function(c,y,E,z,X,ft,Lt){if(isNaN(c)||isNaN(y)||isNaN(E)||isNaN(z)||isNaN(X)||isNaN(ft)||!Kn(Lt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[E-c,z-y],[X-E,ft-z],[c-X,y-ft]],c,y,[1,1],Lt,!0),this},p.__private__.roundedRect=p.roundedRect=function(c,y,E,z,X,ft,Lt){if(isNaN(c)||isNaN(y)||isNaN(E)||isNaN(z)||isNaN(X)||isNaN(ft)||!Kn(Lt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Bt=4/3*(Math.SQRT2-1);return X=Math.min(X,.5*E),ft=Math.min(ft,.5*z),this.lines([[E-2*X,0],[X*Bt,0,X,ft-ft*Bt,X,ft],[0,z-2*ft],[0,ft*Bt,-X*Bt,ft,-X,ft],[2*X-E,0],[-X*Bt,0,-X,-ft*Bt,-X,-ft],[0,2*ft-z],[0,-ft*Bt,X*Bt,-ft,X,-ft]],c+X,y,[1,1],Lt,!0),this},p.__private__.ellipse=p.ellipse=function(c,y,E,z,X){if(isNaN(c)||isNaN(y)||isNaN(E)||isNaN(z)||!Kn(X))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ft=4/3*(Math.SQRT2-1)*E,Lt=4/3*(Math.SQRT2-1)*z;return Vi(c+E,y),br(c+E,y-Lt,c+ft,y-z,c,y-z),br(c-ft,y-z,c-E,y-Lt,c-E,y),br(c-E,y+Lt,c-ft,y+z,c,y+z),br(c+ft,y+z,c+E,y+Lt,c+E,y),Wi(X),this},p.__private__.circle=p.circle=function(c,y,E,z){if(isNaN(c)||isNaN(y)||isNaN(E)||!Kn(z))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(c,y,E,E,z)},p.setFont=function(c,y,E){return E&&(y=xt(y,E)),ne=Ia(c,y,{disableWarning:!1}),this};var $o=p.__private__.getFont=p.getFont=function(){return pe[Ia.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var c,y,E={};for(c in xe)if(xe.hasOwnProperty(c))for(y in E[c]=[],xe[c])xe[c].hasOwnProperty(y)&&E[c].push(y);return E},p.addFont=function(c,y,E,z,X){var ft=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ft.indexOf(arguments[3])!==-1?X=arguments[3]:arguments[3]&&ft.indexOf(arguments[3])==-1&&(E=xt(E,z)),X=X||"Identity-H",zi.call(this,c,y,E,X)};var zr,Gi=r.lineWidth||.200025,hi=p.__private__.getLineWidth=p.getLineWidth=function(){return Gi},Ba=p.__private__.setLineWidth=p.setLineWidth=function(c){return Gi=c,q(K(I(c))+" w"),this};p.__private__.setLineDash=Wt.API.setLineDash=Wt.API.setLineDashPattern=function(c,y){if(c=c||[],y=y||0,isNaN(y)||!Array.isArray(c))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return c=c.map(function(E){return K(I(E))}).join(" "),y=K(I(y)),q("["+c+"] "+y+" d"),this};var Oa=p.__private__.getLineHeight=p.getLineHeight=function(){return Pt*zr};p.__private__.getLineHeight=p.getLineHeight=function(){return Pt*zr};var Ma=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(c){return typeof(c=c||1.15)=="number"&&(zr=c),this},qa=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return zr};Ma(r.lineHeight);var Zn=p.__private__.getHorizontalCoordinate=function(c){return I(c)},cr=p.__private__.getVerticalCoordinate=function(c){return Y===B.ADVANCED?c:Xt[F].mediaBox.topRightY-Xt[F].mediaBox.bottomLeftY-I(c)},Xo=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(c){return K(Zn(c))},yr=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(c){return K(cr(c))},Mn=r.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return En(Mn)},p.__private__.setStrokeColor=p.setDrawColor=function(c,y,E,z){return Mn=Bn({ch1:c,ch2:y,ch3:E,ch4:z,pdfColorType:"draw",precision:2}),q(Mn),this};var Yi=r.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return En(Yi)},p.__private__.setFillColor=p.setFillColor=function(c,y,E,z){return Yi=Bn({ch1:c,ch2:y,ch3:E,ch4:z,pdfColorType:"fill",precision:2}),q(Yi),this};var Ur=r.textColor||"0 g",Ko=p.__private__.getTextColor=p.getTextColor=function(){return En(Ur)};p.__private__.setTextColor=p.setTextColor=function(c,y,E,z){return Ur=Bn({ch1:c,ch2:y,ch3:E,ch4:z,pdfColorType:"text",precision:3}),this};var fi=r.charSpace,Zo=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(fi||0)};p.__private__.setCharSpace=p.setCharSpace=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return fi=c,this};var Ji=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(c){var y=p.CapJoinStyles[c];if(y===void 0)throw new Error("Line cap style of '"+c+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ji=y,q(y+" J"),this};var $i=0;p.__private__.setLineJoin=p.setLineJoin=function(c){var y=p.CapJoinStyles[c];if(y===void 0)throw new Error("Line join style of '"+c+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return $i=y,q(y+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(c){if(c=c||0,isNaN(c))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return q(K(I(c))+" M"),this},p.GState=Ao,p.setGState=function(c){(c=typeof c=="string"?Ae[Cn[c]]:Da(null,c)).equals(ar)||(q("/"+c.id+" gs"),ar=c)};var Da=function(c,y){if(!c||!Cn[c]){var E=!1;for(var z in Ae)if(Ae.hasOwnProperty(z)&&Ae[z].equals(y)){E=!0;break}if(E)y=Ae[z];else{var X="GS"+(Object.keys(Ae).length+1).toString(10);Ae[X]=y,y.id=X}return c&&(Cn[c]=y.id),ue.publish("addGState",y),y}};p.addGState=function(c,y){return Da(c,y),this},p.saveGraphicsState=function(){return q("q"),Vn.push({key:ne,size:Pt,color:Ur}),this},p.restoreGraphicsState=function(){q("Q");var c=Vn.pop();return ne=c.key,Pt=c.size,Ur=c.color,ar=null,this},p.setCurrentTransformationMatrix=function(c){return q(c.toString()+" cm"),this},p.comment=function(c){return q("#"+c),this};var di=function(c,y){var E=c||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return E},set:function(ft){isNaN(ft)||(E=parseFloat(ft))}});var z=y||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return z},set:function(ft){isNaN(ft)||(z=parseFloat(ft))}});var X="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return X},set:function(ft){X=ft.toString()}}),this},Xi=function(c,y,E,z){di.call(this,c,y),this.type="rect";var X=E||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return X},set:function(Lt){isNaN(Lt)||(X=parseFloat(Lt))}});var ft=z||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ft},set:function(Lt){isNaN(Lt)||(ft=parseFloat(Lt))}}),this},Ki=function(){this.page=Se,this.currentPage=F,this.pages=Nt.slice(0),this.pagesContext=Xt.slice(0),this.x=Xe,this.y=se,this.matrix=In,this.width=Hr(F),this.height=wr(F),this.outputDestination=kt,this.id="",this.objectNumber=-1};Ki.prototype.restore=function(){Se=this.page,F=this.currentPage,Xt=this.pagesContext,Nt=this.pages,Xe=this.x,se=this.y,In=this.matrix,Zi(F,this.width),Qi(F,this.height),kt=this.outputDestination};var Ta=function(c,y,E,z,X){Yn.push(new Ki),Se=F=0,Nt=[],Xe=c,se=y,In=X,Ui([E,z])}
52,Qo=function(c){if(Gn[c])Yn.pop().restore();else{var y=new Ki,E="Xo"+(Object.keys(Ge).length+1).toString(10);y.id=E,Gn[c]=E,Ge[E]=y,ue.publish("addFormObject",y),Yn.pop().restore()}};for(var pi in p.beginFormObject=function(c,y,E,z,X){return Ta(c,y,E,z,X),this},p.endFormObject=function(c){return Qo(c),this},p.doFormObject=function(c,y){var E=Ge[Gn[c]];return q("q"),q(y.toString()+" cm"),q("/"+E.id+" Do"),q("Q"),this},p.getFormObject=function(c){var y=Ge[Gn[c]];return{x:y.x,y:y.y,width:y.width,height:y.height,matrix:y.matrix}},p.save=function(c,y){return c=c||"generated.pdf",(y=y||{}).returnPromise=y.returnPromise||!1,y.returnPromise===!1?(Xr(ci(sr()),c),typeof Xr.unload=="function"&&Vt.setTimeout&&setTimeout(Xr.unload,911),this):new Promise(function(E,z){try{var X=Xr(ci(sr()),c);typeof Xr.unload=="function"&&Vt.setTimeout&&setTimeout(Xr.unload,911),E(X)}catch(ft){z(ft.message)}})},Wt.API)Wt.API.hasOwnProperty(pi)&&(pi==="events"&&Wt.API.events.length?function(c,y){var E,z,X;for(X=y.length-1;X!==-1;X--)E=y[X][0],z=y[X][1],c.subscribe.apply(c,[E].concat(typeof z=="function"?[z]:z))}(ue,Wt.API.events):p[pi]=Wt.API[pi]);var Hr=p.getPageWidth=function(c){return(Xt[c=c||F].mediaBox.topRightX-Xt[c].mediaBox.bottomLeftX)/jt},Zi=p.setPageWidth=function(c,y){Xt[c].mediaBox.topRightX=y*jt+Xt[c].mediaBox.bottomLeftX},wr=p.getPageHeight=function(c){return(Xt[c=c||F].mediaBox.topRightY-Xt[c].mediaBox.bottomLeftY)/jt},Qi=p.setPageHeight=function(c,y){Xt[c].mediaBox.topRightY=y*jt+Xt[c].mediaBox.bottomLeftY};return p.internal={pdfEscape:ln,getStyle:ja,getFont:$o,getFontSize:bt,getCharSpace:Zo,getTextColor:Ko,getLineHeight:Oa,getLineHeightFactor:qa,getLineWidth:hi,write:Yt,getHorizontalCoordinate:Zn,getVerticalCoordinate:cr,getCoordinateString:Xo,getVerticalCoordinateString:yr,collections:{},newObject:Re,newAdditionalObject:ti,newObjectDeferred:Me,newObjectDeferredBegin:gn,getFilters:$n,putStream:xn,events:ue,scaleFactor:jt,pageSize:{getWidth:function(){return Hr(F)},setWidth:function(c){Zi(F,c)},getHeight:function(){return wr(F)},setHeight:function(c){Qi(F,c)}},encryptionOptions:v,encryption:Ke,getEncryptor:Ho,output:li,getNumberOfPages:Do,pages:Nt,out:q,f2:pt,f3:P,getPageInfo:Fa,getPageInfoByObjId:$t,getCurrentPageInfo:Wo,getPDFVersion:k,Point:di,Rectangle:Xi,Matrix:Ht,hasHotfix:Ca},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return Hr(F)},set:function(c){Zi(F,c)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return wr(F)},set:function(c){Qi(F,c)},enumerable:!0,configurable:!0}),Mo.call(p,At),ne="F1",Pa(s,n),ue.publish("initialized"),p}Fi.prototype.lsbFirstWord=function(r){return String.fromCharCode(r>>0&255,r>>8&255,r>>16&255,r>>24&255)},Fi.prototype.toHexString=function(r){return r.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Fi.prototype.hexToBytes=function(r){for(var e=[],n=0;n<r.length;n+=2)e.push(String.fromCharCode(parseInt(r.substr(n,2),16)));return e.join("")},Fi.prototype.processOwnerPassword=function(r,e){return Bs(Es(e).substr(0,5),r)},Fi.prototype.encryptor=function(r,e){var n=Es(this.encryptionKey+String.fromCharCode(255&r,r>>8&255,r>>16&255,255&e,e>>8&255)).substr(0,10);return function(a){return Bs(n,a)}},Ao.prototype.equals=function(r){var e,n="id,objectNumber,equals";if(!r||ve(r)!==ve(this))return!1;var a=0;for(e in this)if(!(n.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!r.hasOwnProperty(e)||this[e]!==r[e])return!1;a++}for(e in r)r.hasOwnProperty(e)&&n.indexOf(e)<0&&a--;return a===0},Wt.API={events:[]},Wt.version="2.5.2";var Ie=Wt.API,Hs=1,Qr=function(r){return r.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ii=function(r){return r.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Zt=function(r){return r.toFixed(2)},Er=function(r){return r.toFixed(5)};Ie.__acroform__={};var pn=function(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r},Sc=function(r){return r*Hs},er=function(r){var e=new tl,n=Mt.internal.getHeight(r)||0,a=Mt.internal.getWidth(r)||0;return e.BBox=[0,0,Number(Zt(a)),Number(Zt(n))],e},gu=Ie.__acroform__.setBit=function(r,e){if(r=r||0,e=e||0,isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to 
52jsPDF.API.__acroform__.setBit");return r|=1<<e},mu=Ie.__acroform__.clearBit=function(r,e){if(r=r||0,e=e||0,isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return r&=~(1<<e)},vu=Ie.__acroform__.getBit=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return r&1<<e?1:0},Ee=Ie.__acroform__.getBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return vu(r,e-1)},Be=Ie.__acroform__.setBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return gu(r,e-1)},Oe=Ie.__acroform__.clearBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return mu(r,e-1)},bu=Ie.__acroform__.calculateCoordinates=function(r,e){var n=e.internal.getHorizontalCoordinate,a=e.internal.getVerticalCoordinate,s=r[0],o=r[1],l=r[2],h=r[3],f={};return f.lowerLeft_X=n(s)||0,f.lowerLeft_Y=a(o+h)||0,f.upperRight_X=n(s+l)||0,f.upperRight_Y=a(o)||0,[Number(Zt(f.lowerLeft_X)),Number(Zt(f.lowerLeft_Y)),Number(Zt(f.upperRight_X)),Number(Zt(f.upperRight_Y))]},yu=function(r){if(r.appearanceStreamContent)return r.appearanceStreamContent;if(r.V||r.DV){var e=[],n=r._V||r.DV,a=Os(r,n),s=r.scope.internal.getFont(r.fontName,r.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(r.scope.__private__.encodeColorString(r.color)),e.push("/"+s+" "+Zt(a.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(a.text),e.push("ET"),e.push("Q"),e.push("EMC");var o=er(r);return o.scope=r.scope,o.stream=e.join(`
53`),o}},Os=function(r,e){var n=r.fontSize===0?r.maxFontSize:r.fontSize,a={text:"",fontSize:""},s=(e=(e=e.substr(0,1)=="("?e.substr(1):e).substr(e.length-1)==")"?e.substr(0,e.length-1):e).split(" ");s=r.multiline?s.map(function(P){return P.split(`
54`)}):s.map(function(P){return[P]});var o=n,l=Mt.internal.getHeight(r)||0;l=l<0?-l:l;var h=Mt.internal.getWidth(r)||0;h=h<0?-h:h;var f=function(P,I,H){if(P+1<s.length){var T=I+" "+s[P+1][0];return fo(T,r,H).width<=h-4}return!1};o++;t:for(;o>0;){e="",o--;var g,v,b=fo("3",r,o).height,A=r.multiline?l-o:(l-b)/2,p=A+=2,j=0,k=0,D=0;if(o<=0){e=`(...) Tj
55`,e+="% Width of Text: "+fo(e,r,o=12).width+", FieldWidth:"+h+`
56`;break}for(var _="",B=0,Y=0;Y<s.length;Y++)if(s.hasOwnProperty(Y)){var ot=!1;if(s[Y].length!==1&&D!==s[Y].length-1){if((b+2)*(B+2)+2>l)continue t;_+=s[Y][D],ot=!0,k=Y,Y--}else{_=(_+=s[Y][D]+" ").substr(_.length-1)==" "?_.substr(0,_.length-1):_;var lt=parseInt(Y),xt=f(lt,_,o),K=Y>=s.length-1;if(xt&&!K){_+=" ",D=0;continue}if(xt||K){if(K)k=lt;else if(r.multiline&&(b+2)*(B+2)+2>l)continue t}else{if(!r.multiline||(b+2)*(B+2)+2>l)continue t;k=lt}}for(var U="",et=j;et<=k;et++){var pt=s[et];if(r.multiline){if(et===k){U+=pt[D]+" ",D=(D+1)%pt.length;continue}if(et===j){U+=pt[pt.length-1]+" ";continue}}U+=pt[0]+" "}switch(U=U.substr(U.length-1)==" "?U.substr(0,U.length-1):U,v=fo(U,r,o).width,r.textAlign){case"right":g=h-v-2;break;case"center":g=(h-v)/2;break;case"left":default:g=2}e+=Zt(g)+" "+Zt(p)+` Td
57`,e+="("+Qr(U)+`) Tj
58`,e+=-Zt(g)+` 0 Td
59`,p=-(o+2),v=0,j=ot?k:k+1,B++,_=""}break}return a.text=e,a.fontSize=o,a},fo=function(r,e,n){var a=e.scope.internal.getFont(e.fontName,e.fontStyle),s=e.scope.getStringUnitWidth(r,{font:a,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:e.scope.getStringUnitWidth("3",{font:a,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:s}},wu={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},xu=function(r,e){var n={type:"reference",object:r};e.internal.getPageInfo(r.page).pageContext.annotations.find(function(a){return a.type===n.type&&a.object===n.object})===void 0&&e.internal.getPageInfo(r.page).pageContext.annotations.push(n)},Lu=function(r,e){for(var n in r)if(r.hasOwnProperty(n)){var a=n,s=r[n];e.internal.newObjectDeferredBegin(s.objId,!0),ve(s)==="object"&&typeof s.putStream=="function"&&s.putStream(),delete r[a]}},Nu=function(r,e){if(e.scope=r,r.internal!==void 0&&(r.internal.acroformPlugin===void 0||r.internal.acroformPlugin.isInitialized===!1)){if
vendor: 24,771 bytes, lines 59-71
59(Hn.FieldNum=0,r.internal.acroformPlugin=JSON.parse(JSON.stringify(wu)),r.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Hs=r.internal.scaleFactor,r.internal.acroformPlugin.acroFormDictionaryRoot=new el,r.internal.acroformPlugin.acroFormDictionaryRoot.scope=r,r.internal.acroformPlugin.acroFormDictionaryRoot._eventID=r.internal.events.subscribe("postPutResources",function(){(function(n){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0})(r)}),r.internal.events.subscribe("buildDocument",function(){(function(n){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var a=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var s in a)if(a.hasOwnProperty(s)){var o=a[s];o.objId=void 0,o.hasAnnotation&&xu(o,n)}})(r)}),r.internal.events.subscribe("putCatalog",function(){(function(n){if(n.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(r)}),r.internal.events.subscribe("postPutPages",function(n){(function(a,s){var o=!a;for(var l in a||(s.internal.newObjectDeferredBegin(s.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),s.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),a=a||s.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(a.hasOwnProperty(l)){var h=a[l],f=[],g=h.Rect;if(h.Rect&&(h.Rect=bu(h.Rect,s)),s.internal.newObjectDeferredBegin(h.objId,!0),h.DA=Mt.createDefaultAppearanceStream(h),ve(h)==="object"&&typeof h.getKeyValueListForStream=="function"&&(f=h.getKeyValueListForStream()),h.Rect=g,h.hasAppearanceStream&&!h.appearanceStreamContent){var v=yu(h);f.push({key:"AP",value:"<</N "+v+">>"}),s.internal.acroformPlugin.xForms.push(v)}if(h.appearanceStreamContent){var b="";for(var A in h.appearanceStreamContent)if(h.appearanceStreamContent.hasOwnProperty(A)){var p=h.appearanceStreamContent[A];if(b+="/"+A+" ",b+="<<",Object.keys(p).length>=1||Array.isArray(p)){for(var l in p)if(p.hasOwnProperty(l)){var j=p[l];typeof j=="function"&&(j=j.call(s,h)),b+="/"+l+" "+j+" ",s.internal.acroformPlugin.xForms.indexOf(j)>=0||s.internal.acroformPlugin.xForms.push(j)}}else typeof(j=p)=="function"&&(j=j.call(s,h)),b+="/"+l+" "+j,s.internal.acroformPlugin.xForms.indexOf(j)>=0||s.internal.acroformPlugin.xForms.push(j);b+=">>"}f.push({key:"AP",value:`<<
60`+b+">>"})}s.internal.putStream({additionalKeyValues:f,objectId:h.objId}),s.internal.out("endobj")}o&&Lu(s.internal.acroformPlugin.xForms,s)})(n,r)}),r.internal.acroformPlugin.isInitialized=!0}},Qc=Ie.__acroform__.arrayToPdfArray=function(r,e,n){var a=function(l){return l};if(Array.isArray(r)){for(var s="[",o=0;o<r.length;o++)switch(o!==0&&(s+=" "),ve(r[o])){case"boolean":case"number":case"object":s+=r[o].toString();break;case"string":r[o].substr(0,1)!=="/"?(e!==void 0&&n&&(a=n.internal.getEncryptor(e)),s+="("+Qr(a(r[o].toString()))+")"):s+=r[o].toString()}return s+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},As=function(r,e,n){var a=function(s){return s};return e!==void 0&&n&&(a=n.internal.getEncryptor(e)),(r=r||"").toString(),r="("+Qr(a(r))+")"},nr=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(r){this._objId=r}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};nr.prototype.toString=function(){return this.objId+" 0 R"},nr.prototype.putStream=function(){var r=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:r,objectId:this.objId}),this.scope.internal.out("endobj")},nr.prototype.getKeyValueListForStream=function(){var r=[],e=Object.getOwnPropertyNames(this).filter(function(o){return o!="content"&&o!="appearanceStreamContent"&&o!="scope"&&o!="objId"&&o.substring(0,1)!="_"});for(var n in e)if(Object.getOwnPropertyDescriptor(this,e[n]).configurable===!1){var a=e[n],s=this[a];s&&(Array.isArray(s)?r.push({key:a,value:Qc(s,this.objId,this.scope)}):s instanceof nr?(s.scope=this.scope,r.push({key:a,value:s.objId+" 0 R"})):typeof s!="function"&&r.push({key:a,value:s}))}return r};var tl=function(){nr.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var r,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(n){r=n.trim()},get:function(){return r||null}})};pn(tl,nr);var el=function(){nr.call(this);var r,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(r){var n=function(a){return a};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+Qr(n(r))+")"}},set:function(n){r=n}})};pn(el,nr);var Hn=function r(){nr.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(_){if(isNaN(_))throw new Error('Invalid value "'+_+'" for attribute F supplied.');e=_}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Ee(e,3)},set:function(_){_?this.F=Be(e,3):this.F=Oe(e,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(_){if(isNaN(_))throw new Error('Invalid value "'+_+'" for attribute Ff supplied.');n=_}});var a=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(a.length!==0)return a},set:function(_){a=_!==void 0?_:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[0])?0:a[0]},set:function(_){a[0]=_}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[1])?0:a[1]},set:function(_){a[1]=_}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[2])?0:a[2]},set:function(_){a[2]=_}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[3])?0:a[3]},set:function(_){a[3]=_}});var s="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return s},set:function(_){switch(_){case"/Btn":case"/Tx":case"/Ch":case"/Sig":s=_;break;default:throw new Error('Invalid value "'+_+'" 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 So)return;o="FieldObject"+r.FieldNum++}var _=function(B){return B};return this.scope&&(_=this.scope.internal.getEncryptor(this.objId)),"("+Qr(_(o))+")"},set:function(_){o=_.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(_){o=_}});var l="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return l},set:function(_){l=_}});var h="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return h},set:function(_){h=_}});var f=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return f},set:function(_){f=_}});var g=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return g===void 0?50/Hs:g},set:function(_){g=_}});var v="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return v},set:function(_){v=_}});var b="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!b||this instanceof So||this instanceof Zr))return As(b,this.objId,this.scope)},set:function(_){_=_.toString(),b=_}});var A=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(A)return this instanceof Ve?A:As(A,this.objId,this.scope)},set:function(_){_=_.toString(),A=this instanceof Ve?_:_.substr(0,1)==="("?Ii(_.substr(1,_.length-2)):Ii(_)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ve?Ii(A.substr(1,A.length-1)):A},set:function(_){_=_.toString(),A=this instanceof Ve?"/"+_:_}});var p=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(_){this.V=_}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof Ve?p:As(p,this.objId,this.scope)},set:function(_){_=_.toString(),p=this instanceof Ve?_:_.substr(0,1)==="("?Ii(_.substr(1,_.length-2)):Ii(_)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ve?Ii(p.substr(1,p.length-1)):p},set:function(_){_=_.toString(),p=this instanceof Ve?"/"+_:_}}),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 j,k=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return k},set:function(_){_=!!_,k=_}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(j)return j},set:function(_){j=_}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ee(this.Ff,1)},set:function(_){_?this.Ff=Be(this.Ff,1):this.Ff=Oe(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ee(this.Ff,2)},set:function(_){_?this.Ff=Be(this.Ff,2):this.Ff=Oe(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ee(this.Ff,3)},set:function(_){_?this.Ff=Be(this.Ff,3):this.Ff=Oe(this.Ff,3)}});var D=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(D!==null)return D},set:function(_){if([0,1,2].indexOf(_)===-1)throw new Error('Invalid value "'+_+'" for attribute Q supplied.');D=_}}),Object.defineProperty(this,"textAlign",{get:function(){var _;switch(D){case 0:default:_="left";break;case 1:_="center";break;case 2:_="right"}return _},configurable:!0,enumerable:!0,set:function(_){switch(_){case"right":case 2:D=2;break;case"center":case 1:D=1;break;case"left":case 0:default:D=0}}})};pn(Hn,nr);var Mi=function(){Hn.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var r=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return r},set:function(n){r=n}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return r},set:function(n){r=n}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Qc(e,this.objId,this.scope)},set:function(n){var a,s;s=[],typeof(a=n)=="string"&&(s=function(o,l,h){h||(h=1);for(var f,g=[];f=l.exec(o);)g.push(f[h]);return g}(a,/\((.*?)\)/g)),e=s}}),this.getOptions=function(){return e},this.setOptions=function(n){e=n,this.sort&&e.sort()},this.addOption=function(n){n=(n=n||"").toString(),e.push(n),this.sort&&e.sort()},this.removeOption=function(n,a){for(a=a||!1,n=(n=n||"").toString();e.indexOf(n)!==-1&&(e.splice(e.indexOf(n),1),a!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Ee(this.Ff,18)},set:function(n){n?this.Ff=Be(this.Ff,18):this.Ff=Oe(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ee(this.Ff,19)},set:function(n){this.combo===!0&&(n?this.Ff=Be(this.Ff,19):this.Ff=Oe(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ee(this.Ff,20)},set:function(n){n?(this.Ff=Be(this.Ff,20),e.sort()):this.Ff=Oe(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ee(this.Ff,22)},set:function(n){n?this.Ff=Be(this.Ff,22):this.Ff=Oe(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ee(this.Ff,23)},set:function(n){n?this.Ff=Be(this.Ff,23):this.Ff=Oe(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ee(this.Ff,27)},set:function(n){n?this.Ff=Be(this.Ff,27):this.Ff=Oe(this.Ff,27)}}),this.hasAppearanceStream=!1};pn(Mi,Hn);var qi=function(){Mi.call(this),this.fontName="helvetica",this.combo=!1};pn(qi,Mi);var Di=function(){qi.call(this),this.combo=!0};pn(Di,qi);var bo=function(){Di.call(this),this.edit=!0};pn(bo,Di);var Ve=function(){Hn.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ee(this.Ff,15)},set:function(n){n?this.Ff=Be(this.Ff,15):this.Ff=Oe(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ee(this.Ff,16)},set:function(n){n?this.Ff=Be(this.Ff,16):this.Ff=Oe(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ee(this.Ff,17)},set:function(n){n?this.Ff=Be(this.Ff,17):this.Ff=Oe(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ee(this.Ff,26)},set:function(n){n?this.Ff=Be(this.Ff,26):this.Ff=Oe(this.Ff,26)}});var r,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(o){return o};if(this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var a,s=[];for(a in s.push("<<"),e)s.push("/"+a+" ("+Qr(n(e[a]))+")");return s.push(">>"),s.join(`
61`)}},set:function(n){ve(n)==="object"&&(e=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(n){typeof n=="string"&&(e.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(n){r=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(n){r="/"+n}})};pn(Ve,Hn);var yo=function(){Ve.call(this),this.pushButton=!0};pn(yo,Ve);var Ti=function(){Ve.call(this),this.radio=!0,this.pushButton=!1;var r=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return r},set:function(e){r=e!==void 0?e:[]}})};pn(Ti,Ve);var So=function(){var r,e;Hn.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return r},set:function(s){r=s}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(s){e=s}});var n,a={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var s=function(h){return h};this.scope&&(s=this.scope.internal.getEncryptor(this.objId));var o,l=[];for(o in l.push("<<"),a)l.push("/"+o+" ("+Qr(s(a[o]))+")");return l.push(">>"),l.join(`
62`)},set:function(s){ve(s)==="object"&&(a=s)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return a.CA||""},set:function(s){typeof s=="string"&&(a.CA=s)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(s){n=s}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(s){n="/"+s}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Mt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};pn(So,Hn),Ti.prototype.setAppearance=function(r){if(!("createAppearanceStream"in r)||!("getCA"in r))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=r.createAppearanceStream(n.optionName),n.caption=r.getCA()}},Ti.prototype.createOption=function(r){var e=new So;return e.Parent=this,e.optionName=r,this.Kids.push(e),Au.call(this.scope,e),e};var wo=function(){Ve.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Mt.CheckBox.createAppearanceStream()};pn(wo,Ve);var Zr=function(){Hn.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Ee(this.Ff,13)},set:function(e){e?this.Ff=Be(this.Ff,13):this.Ff=Oe(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ee(this.Ff,21)},set:function(e){e?this.Ff=Be(this.Ff,21):this.Ff=Oe(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ee(this.Ff,23)},set:function(e){e?this.Ff=Be(this.Ff,23):this.Ff=Oe(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Ee(this.Ff,24)},set:function(e){e?this.Ff=Be(this.Ff,24):this.Ff=Oe(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Ee(this.Ff,25)},set:function(e){e?this.Ff=Be(this.Ff,25):this.Ff=Oe(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Ee(this.Ff,26)},set:function(e){e?this.Ff=Be(this.Ff,26):this.Ff=Oe(this.Ff,26)}});var r=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return r},set:function(e){r=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return r},set:function(e){Number.isInteger(e)&&(r=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};pn(Zr,Hn);var xo=function(){Zr.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Ee(this.Ff,14)},set:function(r){r?this.Ff=Be(this.Ff,14):this.Ff=Oe(this.Ff,14)}}),this.password=!0};pn(xo,Zr);var Mt={CheckBox:{createAppearanceStream:function(){return{N:{On:Mt.CheckBox.YesNormal},D:{On:Mt.CheckBox.YesPushDown,Off:Mt.CheckBox.OffPushDown}}},YesPushDown:function(r){var e=er(r);e.scope=r.scope;var n=[],a=r.scope.internal.getFont(r.fontName,r.fontStyle).id,s=r.scope.__private__.encodeColorString(r.color),o=Os(r,r.caption);return n.push("0.749023 g"),n.push("0 0 "+Zt(Mt.internal.getWidth(r))+" "+Zt(Mt.internal.getHeight(r))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+a+" "+Zt(o.fontSize)+" Tf "+s),n.push("BT"),n.push(o.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join(`
63`),e},YesNormal:function(r){var e=er(r);e.scope=r.scope;var n=r.scope.internal.getFont(r.fontName,r.fontStyle).id,a=r.scope.__private__.encodeColorString(r.color),s=[],o=Mt.internal.getHeight(r),l=Mt.internal.getWidth(r),h=Os(r,r.caption);return s.push("1 g"),s.push("0 0 "+Zt(l)+" "+Zt(o)+" re"),s.push("f"),s.push("q"),s.push("0 0 1 rg"),s.push("0 0 "+Zt(l-1)+" "+Zt(o-1)+" re"),s.push("W"),s.push("n"),s.push("0 g"),s.push("BT"),s.push("/"+n+" "+Zt(h.fontSize)+" Tf "+a),s.push(h.text),s.push("ET"),s.push("Q"),e.stream=s.join(`
64`),e},OffPushDown:function(r){var e=er(r);e.scope=r.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Zt(Mt.internal.getWidth(r))+" "+Zt(Mt.internal.getHeight(r))+" re"),n.push("f"),e.stream=n.join(`
65`),e}},RadioButton:{Circle:{createAppearanceStream:function(r){var e={D:{Off:Mt.RadioButton.Circle.OffPushDown},N:{}};return e.N[r]=Mt.RadioButton.Circle.YesNormal,e.D[r]=Mt.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(r){var e=er(r);e.scope=r.scope;var n=[],a=Mt.internal.getWidth(r)<=Mt.internal.getHeight(r)?Mt.internal.getWidth(r)/4:Mt.internal.getHeight(r)/4;a=Number((.9*a).toFixed(5));var s=Mt.internal.Bezier_C,o=Number((a*s).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Er(Mt.internal.getWidth(r)/2)+" "+Er(Mt.internal.getHeight(r)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),n.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),n.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),n.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join(`
66`),e},YesPushDown:function(r){var e=er(r);e.scope=r.scope;var n=[],a=Mt.internal.getWidth(r)<=Mt.internal.getHeight(r)?Mt.internal.getWidth(r)/4:Mt.internal.getHeight(r)/4;a=Number((.9*a).toFixed(5));var s=Number((2*a).toFixed(5)),o=Number((s*Mt.internal.Bezier_C).toFixed(5)),l=Number((a*Mt.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Er(Mt.internal.getWidth(r)/2)+" "+Er(Mt.internal.getHeight(r)/2)+" cm"),n.push(s+" 0 m"),n.push(s+" "+o+" "+o+" "+s+" 0 "+s+" c"),n.push("-"+o+" "+s+" -"+s+" "+o+" -"+s+" 0 c"),n.push("-"+s+" -"+o+" -"+o+" -"+s+" 0 -"+s+" c"),n.push(o+" -"+s+" "+s+" -"+o+" "+s+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+Er(Mt.internal.getWidth(r)/2)+" "+Er(Mt.internal.getHeight(r)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+l+" "+l+" "+a+" 0 "+a+" c"),n.push("-"+l+" "+a+" -"+a+" "+l+" -"+a+" 0 c"),n.push("-"+a+" -"+l+" -"+l+" -"+a+" 0 -"+a+" c"),n.push(l+" -"+a+" "+a+" -"+l+" "+a+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join(`
67`),e},OffPushDown:function(r){var e=er(r);e.scope=r.scope;var n=[],a=Mt.internal.getWidth(r)<=Mt.internal.getHeight(r)?Mt.internal.getWidth(r)/4:Mt.internal.getHeight(r)/4;a=Number((.9*a).toFixed(5));var s=Number((2*a).toFixed(5)),o=Number((s*Mt.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Er(Mt.internal.getWidth(r)/2)+" "+Er(Mt.internal.getHeight(r)/2)+" cm"),n.push(s+" 0 m"),n.push(s+" "+o+" "+o+" "+s+" 0 "+s+" c"),n.push("-"+o+" "+s+" -"+s+" "+o+" -"+s+" 0 c"),n.push("-"+s+" -"+o+" -"+o+" -"+s+" 0 -"+s+" c"),n.push(o+" -"+s+" "+s+" -"+o+" "+s+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join(`
68`),e}},Cross:{createAppearanceStream:function(r){var e={D:{Off:Mt.RadioButton.Cross.OffPushDown},N:{}};return e.N[r]=Mt.RadioButton.Cross.YesNormal,e.D[r]=Mt.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(r){var e=er(r);e.scope=r.scope;var n=[],a=Mt.internal.calculateCross(r);return n.push("q"),n.push("1 1 "+Zt(Mt.internal.getWidth(r)-2)+" "+Zt(Mt.internal.getHeight(r)-2)+" re"),n.push("W"),n.push("n"),n.push(Zt(a.x1.x)+" "+Zt(a.x1.y)+" m"),n.push(Zt(a.x2.x)+" "+Zt(a.x2.y)+" l"),n.push(Zt(a.x4.x)+" "+Zt(a.x4.y)+" m"),n.push(Zt(a.x3.x)+" "+Zt(a.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join(`
69`),e},YesPushDown:function(r){var e=er(r);e.scope=r.scope;var n=Mt.internal.calculateCross(r),a=[];return a.push("0.749023 g"),a.push("0 0 "+Zt(Mt.internal.getWidth(r))+" "+Zt(Mt.internal.getHeight(r))+" re"),a.push("f"),a.push("q"),a.push("1 1 "+Zt(Mt.internal.getWidth(r)-2)+" "+Zt(Mt.internal.getHeight(r)-2)+" re"),a.push("W"),a.push("n"),a.push(Zt(n.x1.x)+" "+Zt(n.x1.y)+" m"),a.push(Zt(n.x2.x)+" "+Zt(n.x2.y)+" l"),a.push(Zt(n.x4.x)+" "+Zt(n.x4.y)+" m"),a.push(Zt(n.x3.x)+" "+Zt(n.x3.y)+" l"),a.push("s"),a.push("Q"),e.stream=a.join(`
70`),e},OffPushDown:function(r){var e=er(r);e.scope=r.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Zt(Mt.internal.getWidth(r))+" "+Zt(Mt.internal.getHeight(r))+" re"),n.push("f"),e.stream=n.join(`
71`),e}}},createDefaultAppearanceStream:function(r){var e=r.scope.internal.getFont(r.fontName,r.fontStyle).id,n=r.scope.__private__.encodeColorString(r.color);return"/"+e+" "+r.fontSize+" Tf "+n}};Mt.internal={Bezier_C:.551915024494,calculateCross:function(r){var e=Mt.internal.getWidth(r),n=Mt.internal.getHeight(r),a=Math.min(e,n);return{x1:{x:(e-a)/2,y:(n-a)/2+a},x2:{x:(e-a)/2+a,y:(n-a)/2},x3:{x:(e-a)/2,y:(n-a)/2},x4:{x:(e-a)/2+a,y:(n-a)/2+a}}}},Mt.internal.getWidth=function(r){var e=0;return ve(r)==="object"&&(e=Sc(r.Rect[2])),e},Mt.internal.getHeight=function(r){var e=0;return ve(r)==="object"&&(e=Sc(r.Rect[3])),e};var Au=Ie.addField=function(r){if(Nu(this,r),!(r instanceof Hn))throw new Error("Invalid argument passed to 
71jsPDF.addField.");var e;return(e=r).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),r.page=r.scope.internal.getCurrentPageInfo().pageNumber,this};Ie.AcroFormChoiceField=Mi,Ie.AcroFormListBox=qi,Ie.AcroFormComboBox=Di,Ie.AcroFormEditBox=bo,Ie.AcroFormButton=Ve,Ie.AcroFormPushButton=yo,Ie.AcroFormRadioButton=Ti,Ie.AcroFormCheckBox=wo,Ie.AcroFormTextField=Zr,Ie.AcroFormPasswordField=xo,Ie.AcroFormAppearance=Mt,Ie.AcroForm={ChoiceField:Mi,ListBox:qi,ComboBox:Di,EditBox:bo,Button:Ve,PushButton:yo,RadioButton:Ti,CheckBox:wo,TextField:Zr,PasswordField:xo,Appearance:Mt},Wt.AcroForm={ChoiceField:Mi,ListBox:qi,ComboBox:Di,EditBox:bo,Button:Ve,PushButton:yo,RadioButton:Ti,CheckBox:wo,TextField:Zr,PasswordField:xo,Appearance:Mt};Wt.AcroForm;function nl(r){return r.reduce(function(e,n,a){return e[n]=a,e},{})}(function(r){r.__addimage__={};var e="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},a=r.__addimage__.getImageFileTypeByImageData=function(P,I){var H,T,st,it,ut,tt=e;if((I=I||e)==="RGBA"||P.data!==void 0&&P.data instanceof Uint8ClampedArray&&"height"in P&&"width"in P)return"RGBA";if(xt(P))for(ut in n)for(st=n[ut],H=0;H<st.length;H+=1){for(it=!0,T=0;T<st[H].length;T+=1)if(st[H][T]!==void 0&&st[H][T]!==P[T]){it=!1;break}if(it===!0){tt=ut;break}}else for(ut in n)for(st=n[ut],H=0;H<st.length;H+=1){for(it=!0,T=0;T<st[H].length;T+=1)if(st[H][T]!==void 0&&st[H][T]!==P.charCodeAt(T)){it=!1;break}if(it===!0){tt=ut;break}}return tt===e&&I!==e&&(tt=I),tt},s=function P(I){for(var H=this.internal.write,T=this.internal.putStream,st=(0,this.internal.getFilters)();st.indexOf("FlateEncode")!==-1;)st.splice(st.indexOf("FlateEncode"),1);I.objectId=this.internal.newObject();var it=[];if(it.push({key:"Type",value:"/XObject"}),it.push({key:"Subtype",value:"/Image"}),it.push({key:"Width",value:I.width}),it.push({key:"Height",value:I.height}),I.colorSpace===D.INDEXED?it.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(I.palette.length/3-1)+" "+("sMask"in I&&I.sMask!==void 0?I.objectId+2:I.objectId+1)+" 0 R]"}):(it.push({key:"ColorSpace",value:"/"+I.colorSpace}),I.colorSpace===D.DEVICE_CMYK&&it.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),it.push({key:"BitsPerComponent",value:I.bitsPerComponent}),"decodeParameters"in I&&I.decodeParameters!==void 0&&it.push({key:"DecodeParms",value:"<<"+I.decodeParameters+">>"}),"transparency"in I&&Array.isArray(I.transparency)){for(var ut="",tt=0,ht=I.transparency.length;tt<ht;tt++)ut+=I.transparency[tt]+" "+I.transparency[tt]+" ";it.push({key:"Mask",value:"["+ut+"]"})}I.sMask!==void 0&&it.push({key:"SMask",value:I.objectId+1+" 0 R"});var gt=I.filter!==void 0?["/"+I.filter]:void 0;if(T({data:I.data,additionalKeyValues:it,alreadyAppliedFilters:gt,objectId:I.objectId}),H("endobj"),"sMask"in I&&I.sMask!==void 0){var Ct="/Predictor "+I.predictor+" /Colors 1 /BitsPerComponent "+I.bitsPerComponent+" /Columns "+I.width,x={width:I.width,height:I.height,colorSpace:"DeviceGray",bitsPerComponent:I.bitsPerComponent,decodeParameters:Ct,data:I.sMask};"filter"in I&&(x.filter=I.filter),P.call(this,x)}
71if(I.colorSpace===D.INDEXED){var F=this.internal.newObject();T({data:U(new Uint8Array(I.palette)),objectId:F}),H("endobj")}},o=function(){var P=this.internal.collections.addImage_images;for(var I in P)s.call(this,P[I])},l=function(){var P,I=this.internal.collections.addImage_images,H=this.internal.write;for(var T in I)H("/I"+(P=I[T]).index,P.objectId,"0","R")},h=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",l))},f=function(){var P=this.internal.collections.addImage_images;return h.call(this),P},g=function(){return Object.keys(this.internal.collections.addImage_images).length},v=function(P){return typeof r["process"+P.toUpperCase()]=="function"},b=function(P){return ve(P)==="object"&&P.nodeType===1},A=function(P,I){if(P.nodeName==="IMG"&&P.hasAttribute("src")){var H=""+P.getAttribute("src");if(H.indexOf("data:image/")===0)return ba(unescape(H).split("base64,").pop());var T=r.loadFile(H,!0);if(T!==void 0)return T}if(P.nodeName==="CANVAS"){if(P.width===0||P.height===0)throw new Error("Given canvas must have data. Canvas width: "+P.width+", height: "+P.height);var st;switch(I){case"PNG":st="image/png";break;case"WEBP":st="image/webp";break;case"JPEG":case"JPG":default:st="image/jpeg"}return ba(P.toDataURL(st,1).split("base64,").pop())}},p=function(P){var I=this.internal.collections.addImage_images;if(I){for(var H in I)if(P===I[H].alias)return I[H]}},j=function(P,I,H){return P||I||(P=-96,I=-96),P<0&&(P=-1*H.width*72/P/this.internal.scaleFactor),I<0&&(I=-1*H.height*72/I/this.internal.scaleFactor),P===0&&(P=I*H.width/H.height),I===0&&(I=P*H.height/H.width),[P,I]},k=function(P,I,H,T,st,it){var ut=j.call(this,H,T,st),tt=this.internal.getCoordinateString,ht=this.internal.getVerticalCoordinateString,gt=f.call(this);if(H=ut[0],T=ut[1],gt[st.index]=st,it){it*=Math.PI/180;var Ct=Math.cos(it),x=Math.sin(it),F=function(R){return R.toFixed(4)},O=[F(Ct),F(x),F(-1*x),F(Ct),0,0,"cm"]}this.internal.write("q"),it?(this.internal.write([1,"0","0",1,tt(P),ht(I+T),"cm"].join(" ")),this.internal.write(O.join(" ")),this.internal.write([tt(H),"0","0",tt(T),"0","0","cm"].join(" "))):this.internal.write([tt(H),"0","0",tt(T),tt(P),ht(I+T),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+st.index+" Do"),this.internal.write("Q")},D=r.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};r.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var _=r.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},B=r.__addimage__.sHashCode=function(P){var I,H,T=0;if(typeof P=="string")for(H=P.length,I=0;I<H;I++)T=(T<<5)-T+P.charCodeAt(I),T|=0;else if(xt(P))for(H=P.byteLength/2,I=0;I<H;I++)T=(T<<5)-T+P[I],T|=0;return T},Y=r.__addimage__.validateStringAsBase64=function(P){(P=P||"").toString().trim();var I=!0;return P.length===0&&(I=!1),P.length%4!=0&&(I=!1),/^[A-Za-z0-9+/]+$/.test(P.substr(0,P.length-2))===!1&&(I=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(P.substr(-2))===!1&&(I=!1),I},ot=r.__addimage__.extractImageFromDataUrl=function(P){var I=(P=P||"").split("base64,"),H=null;if(I.length===2){var T=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(I[0]);Array.isArray(T)&&(H={mimeType:T[1],charset:T[2],data:I[1]})}return H},lt=r.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};r.__addimage__.isArrayBuffer=function(P){return lt()&&P instanceof ArrayBuffer};var xt=r.__addimage__.isArrayBufferView=function(P){return lt()&&typeof Uint32Array<"u"&&(P instanceof Int8Array||P instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&P instanceof Uint8ClampedArray||P instanceof Int16Array||P instanceof Uint16Array||P instanceof Int32Array||P instanceof Uint32Array||P instanceof Float32Array||P instanceof Float64Array)},K=r.__addimage__.binaryStringToUint8Array=function(P){for(var I=P.length,H=new Uint8Array(I),T=0;T<I;T++)H[T]=P.charCodeAt(T);return H},U=r.__addimage__.arrayBufferToBinaryString=function(P){for(var I="",H=xt(P)?P:new Uint8Array(P),T=0;T<H.length;T+=8192)I+=String.fromCharCode.apply(null,H.subarray(T,T+8192));return I};r.addImage=function(){var P,I,H,T,st,it,ut,tt,ht;if(typeof arguments[1]=="number"?(I=e,H=arguments[1],T=arguments[2],st=arguments[3],it=arguments[4],ut=arguments[5],tt=arguments[6],ht=arguments[7]):(I=arguments[1],H=arguments[2],T=arguments[3],st=arguments[4],it=arguments[5],ut=arguments[6],tt=arguments[7],ht=arguments[8]),ve(P=arguments[0])==="object"&&!b(P)&&"imageData"in P){var gt=P;P=gt.imageData,I=gt.format||I||e,H=gt.x||H||0,T=gt.y||T||0,st=gt.w||gt.width||st,it=gt.h||gt.height||it,ut=gt.alias||ut,tt=gt.compression||tt,ht=gt.rotation||gt.angle||ht}var Ct=this.internal.getFilters();if(tt===void 0&&Ct.indexOf("FlateEncode")!==-1&&(tt="SLOW"),isNaN(H)||isNaN(T))throw new Error("Invalid coordinates passed to 
71jsPDF.addImage");h.call(this);var x=et.call(this,P,I,ut,tt);return k.call(this,H,T,st,it,x,ht),this};var et=function(P,I,H,T){var st,it,ut;if(typeof P=="string"&&a(P)===e){P=unescape(P);var tt=pt(P,!1);(tt!==""||(tt=r.loadFile(P,!0))!==void 0)&&(P=tt)}if(b(P)&&(P=A(P,I)),I=a(P,I),!v(I))throw new Error("addImage does not support files of type '"+I+"', please ensure that a plugin for '"+I+"' support is added.");if(((ut=H)==null||ut.length===0)&&(H=function(ht){return typeof ht=="string"||xt(ht)?B(ht):xt(ht.data)?B(ht.data):null}(P)),(st=p.call(this,H))||(lt()&&(P instanceof Uint8Array||I==="RGBA"||(it=P,P=K(P))),st=this["process"+I.toUpperCase()](P,g.call(this),H,function(ht){return ht&&typeof ht=="string"&&(ht=ht.toUpperCase()),ht in r.image_compression?ht:_.NONE}(T),it)),!st)throw new Error("An unknown error occurred whilst processing the image.");return st},pt=r.__addimage__.convertBase64ToBinaryString=function(P,I){var H;I=typeof I!="boolean"||I;var T,st="";if(typeof P=="string"){T=(H=ot(P))!==null?H.data:P;try{st=ba(T)}catch(it){if(I)throw Y(T)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+it.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return st};r.getImageProperties=function(P){var I,H,T="";if(b(P)&&(P=A(P)),typeof P=="string"&&a(P)===e&&((T=pt(P,!1))===""&&(T=r.loadFile(P)||""),P=T),H=a(P),!v(H))throw new Error("addImage does not support files of type '"+H+"', please ensure that a plugin for '"+H+"' support is added.");if(!lt()||P instanceof Uint8Array||(P=K(P)),!(I=this["process"+H.toUpperCase()](P)))throw new Error("An unknown error occurred whilst processing the image");return I.fileType=H,I}})(Wt.API),function(r){var e=function(n){if(n!==void 0&&n!="")return!0};Wt.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),r.events.push(["putPage",function(n){for(var a,s,o,l=this.internal.getCoordinateString,h=this.internal.getVerticalCoordinateString,f=this.internal.getPageInfoByObjId(n.objId),g=n.pageContext.annotations,v=!1,b=0;b<g.length&&!v;b++)switch((a=g[b]).type){case"link":(e(a.options.url)||e(a.options.pageNumber))&&(v=!0);break;case"reference":case"text":case"freetext":v=!0}if(v!=0){this.internal.write("/Annots [");for(var A=0;A<g.length;A++){a=g[A];var p=this.internal.pdfEscape,j=this.internal.getEncryptor(n.objId);switch(a.type){case"reference":this.internal.write(" "+a.object.objId+" 0 R ");break;case"text":var k=this.internal.newAdditionalObject(),D=this.internal.newAdditionalObject(),_=this.internal.getEncryptor(k.objId),B=a.title||"Note";o="<</Type /Annot /Subtype /Text "+(s="/Rect ["+l(a.bounds.x)+" "+h(a.bounds.y+a.bounds.h)+" "+l(a.bounds.x+a.bounds.w)+" "+h(a.bounds.y)+"] ")+"/Contents ("+p(_(a.contents))+")",o+=" /Popup "+D.objId+" 0 R",o+=" /P "+f.objId+" 0 R",o+=" /T ("+p(_(B))+") >>",k.content=o;var Y=k.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(s="/Rect ["+l(a.bounds.x+30)+" "+h(a.bounds.y+a.bounds.h)+" "+l(a.bounds.x+a.bounds.w+30)+" "+h(a.bounds.y)+"] ")+" /Parent "+Y,a.open&&(o+=" /Open true"),o+=" >>",D.content=o,this.internal.write(k.objId,"0 R",D.objId,"0 R");break;case"freetext":s="/Rect ["+l(a.bounds.x)+" "+h(a.bounds.y)+" "+l(a.bounds.x+a.bounds.w)+" "+h(a.bounds.y+a.bounds.h)+"] ";var ot=a.color||"#000000";o="<</Type /Annot /Subtype /FreeText "+s+"/Contents ("+p(j(a.contents))+")",o+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+ot+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(a.options.name){var lt=this.annotations._nameMap[a.options.name];a.options.pageNumber=lt.page,a.options.top=lt.y}else a.options.top||(a.options.top=0);if(s="/Rect ["+a.finalBounds.x+" "+a.finalBounds.y+" "+a.finalBounds.w+" "+a.finalBounds.h+"] ",o="",a.options.url)o="<</Type /Annot /Subtype /Link "+s+"/Border [0 0 0] /A <</S /URI /URI ("+p(j(a.options.url))+") >>";else if(a.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+s+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(a.options.pageNumber).objId+" 0 R",a.options.magFactor=a.options.magFactor||"XYZ",a.options.magFactor){case"Fit":o+=" /Fit]";break;case"FitH":o+=" /FitH "+a.options.top+"]";break;case"FitV":a.options.left=a.options.left||0,o+=" /FitV "+a.options.left+"]";break;case"XYZ":default:var xt=h(a.options.top);a.options.left=a.options.left||0,a.options.zoom===void 0&&(a.options.zoom=0),o+=" /XYZ "+a.options.left+" "+xt+" "+a.options.zoom+"]"}o!=""&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),r.createAnnotation=function(n){var a=this.internal.getCurrentPageInfo();switch(n.type){case"link":this.link(n.bounds.x,n.bounds.y,n.bounds.w,n.bounds.h,n);break;case"text":case"freetext":a.pageContext.annotations.push(n)}},r.link=function(n,a,s,o,l){var h=this.internal.getCurrentPageInfo(),f=this.internal.getCoordinateString,g=this.internal.getVerticalCoordinateString;
vendor: 26,531 bytes, line 71
71h.pageContext.annotations.push({finalBounds:{x:f(n),y:g(a),w:f(n+s),h:g(a+o)},options:l,type:"link"})},r.textWithLink=function(n,a,s,o){var l,h,f=this.getTextWidth(n),g=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){h=o.maxWidth;var v=this.splitTextToSize(n,h).length;l=Math.ceil(g*v)}else h=f,l=g;return this.text(n,a,s,o),s+=.2*g,o.align==="center"&&(a-=f/2),o.align==="right"&&(a-=f),this.link(a,s-g,h,l,o),f},r.getTextWidth=function(n){var a=this.internal.getFontSize();return this.getStringUnitWidth(n)*a/this.internal.scaleFactor}}(Wt.API),function(r){var e={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]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},a={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},s=[1570,1571,1573,1575];r.__arabicParser__={};var o=r.__arabicParser__.isInArabicSubstitutionA=function(k){return e[k.charCodeAt(0)]!==void 0},l=r.__arabicParser__.isArabicLetter=function(k){return typeof k=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(k)},h=r.__arabicParser__.isArabicEndLetter=function(k){return l(k)&&o(k)&&e[k.charCodeAt(0)].length<=2},f=r.__arabicParser__.isArabicAlfLetter=function(k){return l(k)&&s.indexOf(k.charCodeAt(0))>=0};r.__arabicParser__.arabicLetterHasIsolatedForm=function(k){return l(k)&&o(k)&&e[k.charCodeAt(0)].length>=1};var g=r.__arabicParser__.arabicLetterHasFinalForm=function(k){return l(k)&&o(k)&&e[k.charCodeAt(0)].length>=2};r.__arabicParser__.arabicLetterHasInitialForm=function(k){return l(k)&&o(k)&&e[k.charCodeAt(0)].length>=3};var v=r.__arabicParser__.arabicLetterHasMedialForm=function(k){return l(k)&&o(k)&&e[k.charCodeAt(0)].length==4},b=r.__arabicParser__.resolveLigatures=function(k){var D=0,_=n,B="",Y=0;for(D=0;D<k.length;D+=1)_[k.charCodeAt(D)]!==void 0?(Y++,typeof(_=_[k.charCodeAt(D)])=="number"&&(B+=String.fromCharCode(_),_=n,Y=0),D===k.length-1&&(_=n,B+=k.charAt(D-(Y-1)),D-=Y-1,Y=0)):(_=n,B+=k.charAt(D-Y),D-=Y,Y=0);return B};r.__arabicParser__.isArabicDiacritic=function(k){return k!==void 0&&a[k.charCodeAt(0)]!==void 0};var A=r.__arabicParser__.getCorrectForm=function(k,D,_){return l(k)?o(k)===!1?-1:!g(k)||!l(D)&&!l(_)||!l(_)&&h(D)||h(k)&&!l(D)||h(k)&&f(D)||h(k)&&h(D)?0:v(k)&&l(D)&&!h(D)&&l(_)&&g(_)?3:h(k)||!l(_)?1:2:-1},p=function(k){var D=0,_=0,B=0,Y="",ot="",lt="",xt=(k=k||"").split("\\s+"),K=[];for(D=0;D<xt.length;D+=1){for(K.push(""),_=0;_<xt[D].length;_+=1)Y=xt[D][_],ot=xt[D][_-1],lt=xt[D][_+1],l(Y)?(B=A(Y,ot,lt),K[D]+=B!==-1?String.fromCharCode(e[Y.charCodeAt(0)][B]):Y):K[D]+=Y;K[D]=b(K[D])}return K.join(" ")},j=r.__arabicParser__.processArabic=r.processArabic=function(){var k,D=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,_=[];if(Array.isArray(D)){var B=0;for(_=[],B=0;B<D.length;B+=1)Array.isArray(D[B])?_.push([p(D[B][0]),D[B][1],D[B][2]]):_.push([p(D[B])]);k=_}else k=p(D);return typeof arguments[0]=="string"?k:(arguments[0].text=k,arguments[0])};r.events.push(["preProcessText",j])}(Wt.API),Wt.API.autoPrint=function(r){var e;switch((r=r||{}).variant=r.variant||"non-conform",r.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){e=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 "+e+" 0 R")})}return this},function(r){var e=function(){var n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(h){n=h}});var a=150;Object.defineProperty(this,"width",{get:function(){return a},set:function(h){a=isNaN(h)||Number.isInteger(h)===!1||h<0?150:h,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=a+1)}});var s=300;Object.defineProperty(this,"height",{get:function(){return s},set:function(h){s=isNaN(h)||Number.isInteger(h)===!1||h<0?300:h,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=s+1)}});var o=[];Object.defineProperty(this,"childNodes",{get:function(){return o},set:function(h){o=h}});var l={};Object.defineProperty(this,"style",{get:function(){return l},set:function(h){l=h}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(n,a){var s;if((n=n||"2d")!=="2d")return null;for(s in a)this.pdf.context2d.hasOwnProperty(s)&&(this.pdf.context2d[s]=a[s]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},r.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(Wt.API),function(r){var e={left:0,top:0,bottom:0,right:0},n=!1,a=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),s.call(this))},s=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(k){f=k}});var g=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return g},set:function(k){g=k}});var v=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return v},set:function(k){v=k}});var b=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return b},set:function(k){b=k}});var A=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return A},set:function(k){A=k}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return p},set:function(k){p=k}});var j=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return j},set:function(k){j=k}}),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]},r.setHeaderFunction=function(f){return a.call(this),this.internal.__cell__.headerFunction=typeof f=="function"?f:void 0,this},r.getTextDimensions=function(f,g){a.call(this);var v=(g=g||{}).fontSize||this.getFontSize(),b=g.font||this.getFont(),A=g.scaleFactor||this.internal.scaleFactor,p=0,j=0,k=0,D=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 _=g.maxWidth;_>0?typeof f=="string"?f=this.splitTextToSize(f,_):Object.prototype.toString.call(f)==="[object Array]"&&(f=f.reduce(function(Y,ot){return Y.concat(D.splitTextToSize(ot,_))},[])):f=Array.isArray(f)?f:[f];for(var B=0;B<f.length;B++)p<(k=this.getStringUnitWidth(f[B],{font:b})*v)&&(p=k);return p!==0&&(j=f.length),{w:p/=A,h:Math.max((j*v*this.getLineHeightFactor()-v*(this.getLineHeightFactor()-1))/A,0)}},r.cellAddPage=function(){a.call(this),this.addPage();var f=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new o(f.left,f.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var l=r.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]),a.call(this);var g=this.internal.__cell__.lastCell,v=this.internal.__cell__.padding,b=this.internal.__cell__.margins||e,A=this.internal.__cell__.tableHeaderRow,p=this.internal.__cell__.printHeaders;return g.lineNumber!==void 0&&(g.lineNumber===f.lineNumber?(f.x=(g.x||0)+(g.width||0),f.y=g.y||0):g.y+g.height+f.height+b.bottom>this.getPageHeight()?(this.cellAddPage(),f.y=b.top,p&&A&&(this.printHeaderRow(f.lineNumber,!0),f.y+=A[0].height)):f.y=g.y+g.height||f.y),f.text[0]!==void 0&&(this.rect(f.x,f.y,f.width,f.height,n===!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};r.table=function(f,g,v,b,A){if(a.call(this),!v)throw new Error("No data for PDF table.");var p,j,k,D,_=[],B=[],Y=[],ot={},lt={},xt=[],K=[],U=(A=A||{}).autoSize||!1,et=A.printHeaders!==!1,pt=A.css&&A.css["font-size"]!==void 0?16*A.css["font-size"]:A.fontSize||12,P=A.margins||Object.assign({width:this.getPageWidth()},e),I=typeof A.padding=="number"?A.padding:3,H=A.headerBackgroundColor||"#c8c8c8",T=A.headerTextColor||"#000";if(s.call(this),this.internal.__cell__.printHeaders=et,this.internal.__cell__.margins=P,this.internal.__cell__.table_font_size=pt,this.internal.__cell__.padding=I,this.internal.__cell__.headerBackgroundColor=H,this.internal.__cell__.headerTextColor=T,this.setFontSize(pt),b==null)B=_=Object.keys(v[0]),Y=_.map(function(){return"left"});else if(Array.isArray(b)&&ve(b[0])==="object")for(_=b.map(function(gt){return gt.name}),B=b.map(function(gt){return gt.prompt||gt.name||""}),Y=b.map(function(gt){return gt.align||"left"}),p=0;p<b.length;p+=1)lt[b[p].name]=b[p].width*(19.049976/25.4);else Array.isArray(b)&&typeof b[0]=="string"&&(B=_=b,Y=_.map(function(){return"left"}));if(U||Array.isArray(b)&&typeof b[0]=="string")for(p=0;p<_.length;p+=1){for(ot[D=_[p]]=v.map(function(gt){return gt[D]}),this.setFont(void 0,"bold"),xt.push(this.getTextDimensions(B[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),j=ot[D],this.setFont(void 0,"normal"),k=0;k<j.length;k+=1)xt.push(this.getTextDimensions(j[k],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);lt[D]=Math.max.apply(null,xt)+I+I,xt=[]}if(et){var st={};for(p=0;p<_.length;p+=1)st[_[p]]={},st[_[p]].text=B[p],st[_[p]].align=Y[p];var it=h.call(this,st,lt);K=_.map(function(gt){return new o(f,g,lt[gt],it,st[gt].text,void 0,st[gt].align)}),this.setTableHeaderRow(K),this.printHeaderRow(1,!1)}var ut=b.reduce(function(gt,Ct){return gt[Ct.name]=Ct.align,gt},{});for(p=0;p<v.length;p+=1){"rowStart"in A&&A.rowStart instanceof Function&&A.rowStart({row:p,data:v[p]},this);var tt=h.call(this,v[p],lt);for(k=0;k<_.length;k+=1){var ht=v[p][_[k]];"cellStart"in A&&A.cellStart instanceof Function&&A.cellStart({row:p,col:k,data:ht},this),l.call(this,new o(f,g,lt[_[k]],tt,ht,p+2,ut[_[k]]))}}return this.internal.__cell__.table_x=f,this.internal.__cell__.table_y=g,this};var h=function(f,g){var v=this.internal.__cell__.padding,b=this.internal.__cell__.table_font_size,A=this.internal.scaleFactor;return Object.keys(f).map(function(p){var j=f[p];return this.splitTextToSize(j.hasOwnProperty("text")?j.text:j,g[p]-v-v)},this).map(function(p){return this.getLineHeightFactor()*p.length*b/A+v+v},this).reduce(function(p,j){return Math.max(p,j)},0)};r.setTableHeaderRow=function(f){a.call(this),this.internal.__cell__.tableHeaderRow=f},r.printHeaderRow=function(f,g){if(a.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var v;if(n=!0,typeof this.internal.__cell__.headerFunction=="function"){var b=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(b[0],b[1],b[2],b[3],void 0,-1)}this.setFont(void 0,"bold");for(var A=[],p=0;p<this.internal.__cell__.tableHeaderRow.length;p+=1){v=this.internal.__cell__.tableHeaderRow[p].clone(),g&&(v.y=this.internal.__cell__.margins.top||0,A.push(v)),v.lineNumber=f;var j=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),l.call(this,v),this.setTextColor(j)}A.length>0&&this.setTableHeaderRow(A),this.setFont(void 0,"normal"),n=!1}}(Wt.API);var rl={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},il=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ms=nl(il),al=[100,200,300,400,500,600,700,800,900],Su=nl(al);function qs(r){var e=r.family.replace(/"|'/g,"").toLowerCase(),n=function(o){return rl[o=o||"normal"]?o:"normal"}(r.style),a=function(o){if(!o)return 400;if(typeof o=="number")return o>=100&&o<=900&&o%100==0?o:400;if(/^\d00$/.test(o))return parseInt(o);switch(o){case"bold":return 700;case"normal":default:return 400}}(r.weight),s=function(o){return typeof Ms[o=o||"normal"]=="number"?o:"normal"}(r.stretch);return{family:e,style:n,weight:a,stretch:s,src:r.src||[],ref:r.ref||{name:e,style:[s,n,a].join(" ")}}}function _c(r,e,n,a){var s;for(s=n;s>=0&&s<e.length;s+=a)if(r[e[s]])return r[e[s]];for(s=n;s>=0&&s<e.length;s-=a)if(r[e[s]])return r[e[s]]}var _u={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Pc={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function kc(r){return[r.stretch,r.style,r.weight,r.family].join(" ")}function Pu(r,e,n){for(var a=(n=n||{}).defaultFontFamily||"times",s=Object.assign({},_u,n.genericFontFamilies||{}),o=null,l=null,h=0;h<e.length;++h)if(s[(o=qs(e[h])).family]&&(o.family=s[o.family]),r.hasOwnProperty(o.family)){l=r[o.family];break}if(!(l=l||r[a]))throw new Error("Could not find a font-family for the rule '"+kc(o)+"' and default family '"+a+"'.");if(l=function(f,g){if(g[f])return g[f];var v=Ms[f],b=v<=Ms.normal?-1:1,A=_c(g,il,v,b);if(!A)throw new Error("Could not find a matching font-stretch value for "+f);return A}(o.stretch,l),l=function(f,g){if(g[f])return g[f];for(var v=rl[f],b=0;b<v.length;++b)if(g[v[b]])return g[v[b]];throw new Error("Could not find a matching font-style for "+f)}(o.style,l),!(l=function(f,g){if(g[f])return g[f];if(f===400&&g[500])return g[500];if(f===500&&g[400])return g[400];var v=Su[f],b=_c(g,al,v,f<400?-1:1);if(!b)throw new Error("Could not find a matching font-weight for value "+f);return b}(o.weight,l)))throw new Error("Failed to resolve a font for the rule '"+kc(o)+"'.");return l}function Ic(r){return r.trimLeft()}function ku(r,e){for(var n=0;n<r.length;){if(r.charAt(n)===e)return[r.substring(0,n),r.substring(n+1)];n+=1}return null}function Iu(r){var e=r.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],r.substring(e[0].length)]}var po,Cc,Fc,Ss=["times"];(function(r){var e,n,a,s,o,l,h,f,g,v=function(x){return x=x||{},this.isStrokeTransparent=x.isStrokeTransparent||!1,this.strokeOpacity=x.strokeOpacity||1,this.strokeStyle=x.strokeStyle||"#000000",this.fillStyle=x.fillStyle||"#000000",this.isFillTransparent=x.isFillTransparent||!1,this.fillOpacity=x.fillOpacity||1,this.font=x.font||"10px sans-serif",this.textBaseline=x.textBaseline||"alphabetic",this.textAlign=x.textAlign||"left",this.lineWidth=x.lineWidth||1,this.lineJoin=x.lineJoin||"miter",this.lineCap=x.lineCap||"butt",this.path=x.path||[],this.transform=x.transform!==void 0?x.transform.clone():new f,this.globalCompositeOperation=x.globalCompositeOperation||"normal",this.globalAlpha=x.globalAlpha||1,this.clip_path=x.clip_path||[],this.currentPoint=x.currentPoint||new l,this.miterLimit=x.miterLimit||10,this.lastPoint=x.lastPoint||new l,this.lineDashOffset=x.lineDashOffset||0,this.lineDash=x.lineDash||[],this.margin=x.margin||[0,0,0,0],this.prevPageLastElemOffset=x.prevPageLastElemOffset||0,this.ignoreClearRect=typeof x.ignoreClearRect!="boolean"||x.ignoreClearRect,this};r.events.push(["initialized",function(){this.context2d=new b(this),e=this.internal.f2,n=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,s=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,l=this.internal.Point,h=this.internal.Rectangle,f=this.internal.Matrix,g=new v}]);var b=function(x){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var F=x;Object.defineProperty(this,"pdf",{get:function(){return F}});var O=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return O},set:function(at){O=!!at}});var R=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return R},set:function(at){R=!!at}});var J=0;Object.defineProperty(this,"posX",{get:function(){return J},set:function(at){isNaN(at)||(J=at)}});var M=0;Object.defineProperty(this,"posY",{get:function(){return M},set:function(at){isNaN(at)||(M=at)}}),Object.defineProperty(this,"margin",{get:function(){return g.margin},set:function(at){var q;typeof at=="number"?q=[at,at,at,at]:((q=new Array(4))[0]=at[0],q[1]=at.length>=2?at[1]:q[0],q[2]=at.length>=3?at[2]:q[0],q[3]=at.length>=4?at[3]:q[1]),g.margin=q}});var rt=!1;Object.defineProperty(this,"autoPaging",{get:function(){return rt},set:function(at){rt=at}});var nt=0;Object.defineProperty(this,"lastBreak",{get:function(){return nt},set:function(at){nt=at}});var St=[];Object.defineProperty(this,"pageBreaks",{get:function(){return St},set:function(at){St=at}}),Object.defineProperty(this,"ctx",{get:function(){return g},set:function(at){at instanceof v&&(g=at)}}),Object.defineProperty(this,"path",{get:function(){return g.path},set:function(at){g.path=at}});var Nt=[];Object.defineProperty(this,"ctxStack",{get:function(){return Nt},set:function(at){Nt=at}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(at){var q;q=A(at),this.ctx.fillStyle=q.style,this.ctx.isFillTransparent=q.a===0,this.ctx.fillOpacity=q.a,this.pdf.setFillColor(q.r,q.g,q.b,{a:q.a}),this.pdf.setTextColor(q.r,q.g,q.b,{a:q.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(at){var q=A(at);this.ctx.strokeStyle=q.style,this.ctx.isStrokeTransparent=q.a===0,this.ctx.strokeOpacity=q.a,q.a===0?this.pdf.setDrawColor(255,255,255):(q.a,this.pdf.setDrawColor(q.r,q.g,q.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(at){["butt","round","square"].indexOf(at)!==-1&&(this.ctx.lineCap=at,this.pdf.setLineCap(at))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(at){isNaN(at)||(this.ctx.lineWidth=at,this.pdf.setLineWidth(at))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(at){["bevel","round","miter"].indexOf(at)!==-1&&(this.ctx.lineJoin=at,this.pdf.setLineJoin(at))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(at){isNaN(at)||(this.ctx.miterLimit=at,this.pdf.setMiterLimit(at))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(at){this.ctx.textBaseline=at}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(at){["right","end","center","left","start"].indexOf(at)!==-1&&(this.ctx.textAlign=at)}});var _t=null;function kt(at,q){if(_t===null){var Yt=function(qt){var At=[];return Object.keys(qt).forEach(function(Pt){qt[Pt].forEach(function(dt){var bt=null;switch(dt){case"bold":bt={family:Pt,weight:"bold"};break;case"italic":bt={family:Pt,style:"italic"};break;case"bolditalic":bt={family:Pt,weight:"bold",style:"italic"};break;case"":case"normal":bt={family:Pt}}bt!==null&&(bt.ref={name:Pt,style:dt},At.push(bt))})}),At}(at.getFontList());_t=function(qt){for(var At={},Pt=0;Pt<qt.length;++Pt){var dt=qs(qt[Pt]),bt=dt.family,Et=dt.stretch,Dt=dt.style,Ut=dt.weight;At[bt]=At[bt]||{},At[bt][Et]=At[bt][Et]||{},At[bt][Et][Dt]=At[bt][Et][Dt]||{},At[bt][Et][Dt][Ut]=dt}return At}(Yt.concat(q))}return _t}var zt=null;Object.defineProperty(this,"fontFaces",{get:function(){return zt},set:function(at){_t=null,zt=at}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(at){var q;if(this.ctx.font=at,(q=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(at))!==null){var Yt=q[1],qt=(q[2],q[3]),At=q[4],Pt=(q[5],q[6]),dt=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(At)[2];At=Math.floor(dt==="px"?parseFloat(At)*this.pdf.internal.scaleFactor:dt==="em"?parseFloat(At)*this.pdf.getFontSize():parseFloat(At)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(At);var bt=function(Gt){var ne,jt,Xe=[],se=Gt.trim();if(se==="")return Ss;if(se in Pc)return[Pc[se]];for(;se!=="";){switch(jt=null,ne=(se=Ic(se)).charAt(0)){case'"':case"'":jt=ku(se.substring(1),ne);break;default:jt=Iu(se)}if(jt===null||(Xe.push(jt[0]),(se=Ic(jt[1]))!==""&&se.charAt(0)!==","))return Ss;se=se.replace(/^,/,"")}return Xe}(Pt);if(this.fontFaces){var Et=Pu(kt(this.pdf,this.fontFaces),bt.map(function(Gt){return{family:Gt,stretch:"normal",weight:qt,style:Yt}}));this.pdf.setFont(Et.ref.name,Et.ref.style)}else{var Dt="";(qt==="bold"||parseInt(qt,10)>=700||Yt==="bold")&&(Dt="bold"),Yt==="italic"&&(Dt+="italic"),Dt.length===0&&(Dt="normal");for(var Ut="",Jt={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"},te=0;te<bt.length;te++){if(this.pdf.internal.getFont(bt[te],Dt,{noFallback:!0,disableWarning:!0})!==void 0){Ut=bt[te];break}if(Dt==="bolditalic"&&this.pdf.internal.getFont(bt[te],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Ut=bt[te],Dt="bold";else if(this.pdf.internal.getFont(bt[te],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Ut=bt[te],Dt="normal";break}}if(Ut===""){for(var ie=0;ie<bt.length;ie++)if(Jt[bt[ie]]){Ut=Jt[bt[ie]];break}}Ut=Ut===""?"Times":Ut,this.pdf.setFont(Ut,Dt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(at){this.ctx.globalCompositeOperation=at}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(at){this.ctx.globalAlpha=at}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(at){this.ctx.lineDashOffset=at,Ct.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(at){this.ctx.lineDash=at,Ct.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(at){this.ctx.ignoreClearRect=!!at}})};b.prototype.setLineDash=function(x){this.lineDash=x},b.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},b.prototype.fill=function(){ot.call(this,"fill",!1)},b.prototype.stroke=function(){ot.call(this,"stroke",!1)},b.prototype.beginPath=function(){this.path=[{type:"begin"}]},b.prototype.moveTo=function(x,F){if(isNaN(x)||isNaN(F))throw me.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var O=this.ctx.transform.applyToPoint(new l(x,F));this.path.push({type:"mt",x:O.x,y:O.y}),this.ctx.lastPoint=new l(x,F)},b.prototype.closePath=function(){var x=new l(0,0),F=0;for(F=this.path.length-1;F!==-1;F--)if(this.path[F].type==="begin"&&ve(this.path[F+1])==="object"&&typeof this.path[F+1].x=="number"){x=new l(this.path[F+1].x,this.path[F+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new l(x.x,x.y)},b.prototype.lineTo=function(x,F){if(isNaN(x)||isNaN(F))throw me.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var O=this.ctx.transform.applyToPoint(new l(x,F));this.path.push({type:"lt",x:O.x,y:O.y}),this.ctx.lastPoint=new l(O.x,O.y)},b.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),ot.call(this,null,!0)},b.prototype.quadraticCurveTo=function(x,F,O,R){if(isNaN(O)||isNaN(R)||isNaN(x)||isNaN(F))throw me.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to 
71jsPDF.context2d.quadraticCurveTo");var J=this.ctx.transform.applyToPoint(new l(O,R)),M=this.ctx.transform.applyToPoint(new l(x,F));this.path.push({type:"qct",x1:M.x,y1:M.y,x:J.x,y:J.y}),this.ctx.lastPoint=new l(J.x,J.y)},b.prototype.bezierCurveTo=function(x,F,O,R,J,M){if(isNaN(J)||isNaN(M)||isNaN(x)||isNaN(F)||isNaN(O)||isNaN(R))throw me.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var rt=this.ctx.transform.applyToPoint(new l(J,M)),nt=this.ctx.transform.applyToPoint(new l(x,F)),St=this.ctx.transform.applyToPoint(new l(O,R));this.path.push({type:"bct",x1:nt.x,y1:nt.y,x2:St.x,y2:St.y,x:rt.x,y:rt.y}),this.ctx.lastPoint=new l(rt.x,rt.y)},b.prototype.arc=function(x,F,O,R,J,M){if(isNaN(x)||isNaN(F)||isNaN(O)||isNaN(R)||isNaN(J))throw me.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(M=!!M,!this.ctx.transform.isIdentity){var rt=this.ctx.transform.applyToPoint(new l(x,F));x=rt.x,F=rt.y;var nt=this.ctx.transform.applyToPoint(new l(0,O)),St=this.ctx.transform.applyToPoint(new l(0,0));O=Math.sqrt(Math.pow(nt.x-St.x,2)+Math.pow(nt.y-St.y,2))}Math.abs(J-R)>=2*Math.PI&&(R=0,J=2*Math.PI),this.path.push({type:"arc",x,y:F,radius:O,startAngle:R,endAngle:J,counterclockwise:M})},b.prototype.arcTo=function(x,F,O,R,J){throw new Error("arcTo not implemented.")},b.prototype.rect=function(x,F,O,R){if(isNaN(x)||isNaN(F)||isNaN(O)||isNaN(R))throw me.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(x,F),this.lineTo(x+O,F),this.lineTo(x+O,F+R),this.lineTo(x,F+R),this.lineTo(x,F),this.lineTo(x+O,F),this.lineTo(x,F)},b.prototype.fillRect=function(x,F,O,R){if(isNaN(x)||isNaN(F)||isNaN(O)||isNaN(R))throw me.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var J={};this.lineCap!=="butt"&&(J.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(J.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(x,F,O,R),this.fill(),J.hasOwnProperty("lineCap")&&(this.lineCap=J.lineCap),J.hasOwnProperty("lineJoin")&&(this.lineJoin=J.lineJoin)}},b.prototype.strokeRect=function(x,F,O,R){if(isNaN(x)||isNaN(F)||isNaN(O)||isNaN(R))throw me.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");j.call(this)||(this.beginPath(),this.rect(x,F,O,R),this.stroke())},b.prototype.clearRect=function(x,F,O,R){if(isNaN(x)||isNaN(F)||isNaN(O)||isNaN(R))throw me.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(x,F,O,R))},b.prototype.save=function(x){x=typeof x!="boolean"||x;for(var F=this.pdf.internal.getCurrentPageInfo().pageNumber,O=0;O<this.pdf.internal.getNumberOfPages();O++)this.pdf.setPage(O+1),this.pdf.internal.out("q");if(this.pdf.setPage(F),x){this.ctx.fontSize=this.pdf.internal.getFontSize();var R=new v(this.ctx);this.ctxStack.push(this.ctx),this.ctx=R}},b.prototype.restore=function(x){x=typeof x!="boolean"||x;for(var F=this.pdf.internal.getCurrentPageInfo().pageNumber,O=0;O<this.pdf.internal.getNumberOfPages();O++)this.pdf.setPage(O+1),this.pdf.internal.out("Q");this.pdf.setPage(F),x&&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)},b.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var A=function(x){var F,O,R,J;if(x.isCanvasGradient===!0&&(x=x.getColor()),!x)return{r:0,g:0,b:0,a:0,style:x};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(x))F=0,O=0,R=0,J=0;else{var M=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(x);if(M!==null)F=parseInt(M[1]),O=parseInt(M[2]),R=parseInt(M[3]),J=1;else if((M=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(x))!==null)F=parseInt(M[1]),O=parseInt(M[2]),R=parseInt(M[3]),J=parseFloat(M[4]);
vendor: 34,632 bytes, lines 71-77
71else{if(J=1,typeof x=="string"&&x.charAt(0)!=="#"){var rt=new Xc(x);x=rt.ok?rt.toHex():"#000000"}x.length===4?(F=x.substring(1,2),F+=F,O=x.substring(2,3),O+=O,R=x.substring(3,4),R+=R):(F=x.substring(1,3),O=x.substring(3,5),R=x.substring(5,7)),F=parseInt(F,16),O=parseInt(O,16),R=parseInt(R,16)}}return{r:F,g:O,b:R,a:J,style:x}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},j=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};b.prototype.fillText=function(x,F,O,R){if(isNaN(F)||isNaN(O)||typeof x!="string")throw me.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(R=isNaN(R)?void 0:R,!p.call(this)){var J=tt(this.ctx.transform.rotation),M=this.ctx.transform.scaleX;I.call(this,{text:x,x:F,y:O,scale:M,angle:J,align:this.textAlign,maxWidth:R})}},b.prototype.strokeText=function(x,F,O,R){if(isNaN(F)||isNaN(O)||typeof x!="string")throw me.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!j.call(this)){R=isNaN(R)?void 0:R;var J=tt(this.ctx.transform.rotation),M=this.ctx.transform.scaleX;I.call(this,{text:x,x:F,y:O,scale:M,renderingMode:"stroke",angle:J,align:this.textAlign,maxWidth:R})}},b.prototype.measureText=function(x){if(typeof x!="string")throw me.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var F=this.pdf,O=this.pdf.internal.scaleFactor,R=F.internal.getFontSize(),J=F.getStringUnitWidth(x)*R/F.internal.scaleFactor,M=function(rt){var nt=(rt=rt||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return nt}}),this};return new M({width:J*=Math.round(96*O/72*1e4)/1e4})},b.prototype.scale=function(x,F){if(isNaN(x)||isNaN(F))throw me.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var O=new f(x,0,0,F,0,0);this.ctx.transform=this.ctx.transform.multiply(O)},b.prototype.rotate=function(x){if(isNaN(x))throw me.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var F=new f(Math.cos(x),Math.sin(x),-Math.sin(x),Math.cos(x),0,0);this.ctx.transform=this.ctx.transform.multiply(F)},b.prototype.translate=function(x,F){if(isNaN(x)||isNaN(F))throw me.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var O=new f(1,0,0,1,x,F);this.ctx.transform=this.ctx.transform.multiply(O)},b.prototype.transform=function(x,F,O,R,J,M){if(isNaN(x)||isNaN(F)||isNaN(O)||isNaN(R)||isNaN(J)||isNaN(M))throw me.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var rt=new f(x,F,O,R,J,M);this.ctx.transform=this.ctx.transform.multiply(rt)},b.prototype.setTransform=function(x,F,O,R,J,M){x=isNaN(x)?1:x,F=isNaN(F)?0:F,O=isNaN(O)?0:O,R=isNaN(R)?1:R,J=isNaN(J)?0:J,M=isNaN(M)?0:M,this.ctx.transform=new f(x,F,O,R,J,M)};var k=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};b.prototype.drawImage=function(x,F,O,R,J,M,rt,nt,St){var Nt=this.pdf.getImageProperties(x),_t=1,kt=1,zt=1,at=1;R!==void 0&&nt!==void 0&&(zt=nt/R,at=St/J,_t=Nt.width/R*nt/R,kt=Nt.height/J*St/J),M===void 0&&(M=F,rt=O,F=0,O=0),R!==void 0&&nt===void 0&&(nt=R,St=J),R===void 0&&nt===void 0&&(nt=Nt.width,St=Nt.height);for(var q,Yt=this.ctx.transform.decompose(),qt=tt(Yt.rotate.shx),At=new f,Pt=(At=(At=(At=At.multiply(Yt.translate)).multiply(Yt.skew)).multiply(Yt.scale)).applyToRectangle(new h(M-F*zt,rt-O*at,R*_t,J*kt)),dt=D.call(this,Pt),bt=[],Et=0;Et<dt.length;Et+=1)bt.indexOf(dt[Et])===-1&&bt.push(dt[Et]);if(Y(bt),this.autoPaging)for(var Dt=bt[0],Ut=bt[bt.length-1],Jt=Dt;Jt<Ut+1;Jt++){this.pdf.setPage(Jt);var te=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ie=Jt===1?this.posY+this.margin[0]:this.margin[0],Gt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ne=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],jt=Jt===1?0:Gt+(Jt-2)*ne;if(this.ctx.clip_path.length!==0){var Xe=this.path;q=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=B(q,this.posX+this.margin[3],-jt+ie+this.ctx.prevPageLastElemOffset),lt.call(this,"fill",!0),this.path=Xe}var se=JSON.parse(JSON.stringify(Pt));se=B([se],this.posX+this.margin[3],-jt+ie+this.ctx.prevPageLastElemOffset)[0];var In=(Jt>Dt||Jt<Ut)&&k.call(this);In&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],te,ne,null).clip().discardPath()),this.pdf.addImage(x,"JPEG",se.x,se.y,se.w,se.h,null,null,qt),In&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(x,"JPEG",Pt.x,Pt.y,Pt.w,Pt.h,null,null,qt)};var D=function(x,F,O){var R=[];F=F||this.pdf.internal.pageSize.width,O=O||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var J=this.posY+this.ctx.prevPageLastElemOffset;switch(x.type){default:case"mt":case"lt":R.push(Math.floor((x.y+J)/O)+1);break;case"arc":R.push(Math.floor((x.y+J-x.radius)/O)+1),R.push(Math.floor((x.y+J+x.radius)/O)+1);break;case"qct":var M=ht(this.ctx.lastPoint.x,this.ctx.lastPoint.y,x.x1,x.y1,x.x,x.y);R.push(Math.floor((M.y+J)/O)+1),R.push(Math.floor((M.y+M.h+J)/O)+1);break;case"bct":var rt=gt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,x.x1,x.y1,x.x2,x.y2,x.x,x.y);R.push(Math.floor((rt.y+J)/O)+1),R.push(Math.floor((rt.y+rt.h+J)/O)+1);break;case"rect":R.push(Math.floor((x.y+J)/O)+1),R.push(Math.floor((x.y+x.h+J)/O)+1)}for(var nt=0;nt<R.length;nt+=1)for(;this.pdf.internal.getNumberOfPages()<R[nt];)_.call(this);return R},_=function(){var x=this.fillStyle,F=this.strokeStyle,O=this.font,R=this.lineCap,J=this.lineWidth,M=this.lineJoin;this.pdf.addPage(),this.fillStyle=x,this.strokeStyle=F,this.font=O,this.lineCap=R,this.lineWidth=J,this.lineJoin=M},B=function(x,F,O){for(var R=0;R<x.length;R++)switch(x[R].type){case"bct":x[R].x2+=F,x[R].y2+=O;case"qct":x[R].x1+=F,x[R].y1+=O;case"mt":case"lt":case"arc":default:x[R].x+=F,x[R].y+=O}return x},Y=function(x){return x.sort(function(F,O){return F-O})},ot=function(x,F){for(var O,R,J=this.fillStyle,M=this.strokeStyle,rt=this.lineCap,nt=this.lineWidth,St=Math.abs(nt*this.ctx.transform.scaleX),Nt=this.lineJoin,_t=JSON.parse(JSON.stringify(this.path)),kt=JSON.parse(JSON.stringify(this.path)),zt=[],at=0;at<kt.length;at++)if(kt[at].x!==void 0)for(var q=D.call(this,kt[at]),Yt=0;Yt<q.length;Yt+=1)zt.indexOf(q[Yt])===-1&&zt.push(q[Yt]);for(var qt=0;qt<zt.length;qt++)for(;this.pdf.internal.getNumberOfPages()<zt[qt];)_.call(this);if(Y(zt),this.autoPaging)for(var At=zt[0],Pt=zt[zt.length-1],dt=At;dt<Pt+1;dt++){this.pdf.setPage(dt),this.fillStyle=J,this.strokeStyle=M,this.lineCap=rt,this.lineWidth=St,this.lineJoin=Nt;var bt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Et=dt===1?this.posY+this.margin[0]:this.margin[0],Dt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ut=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Jt=dt===1?0:Dt+(dt-2)*Ut;if(this.ctx.clip_path.length!==0){var te=this.path;O=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=B(O,this.posX+this.margin[3],-Jt+Et+this.ctx.prevPageLastElemOffset),lt.call(this,x,!0),this.path=te}if(R=JSON.parse(JSON.stringify(_t)),this.path=B(R,this.posX+this.margin[3],-Jt+Et+this.ctx.prevPageLastElemOffset),F===!1||dt===0){var ie=(dt>At||dt<Pt)&&k.call(this);ie&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],bt,Ut,null).clip().discardPath()),lt.call(this,x,F),ie&&this.pdf.restoreGraphicsState()}this.lineWidth=nt}else this.lineWidth=St,lt.call(this,x,F),this.lineWidth=nt;this.path=_t},lt=function(x,F){if((x!=="stroke"||F||!j.call(this))&&(x==="stroke"||F||!p.call(this))){for(var O,R,J=[],M=this.path,rt=0;rt<M.length;rt++){var nt=M[rt];switch(nt.type){case"begin":J.push({begin:!0});break;case"close":J.push({close:!0});break;case"mt":J.push({start:nt,deltas:[],abs:[]});break;case"lt":var St=J.length;if(M[rt-1]&&!isNaN(M[rt-1].x)&&(O=[nt.x-M[rt-1].x,nt.y-M[rt-1].y],St>0)){for(;St>=0;St--)if(J[St-1].close!==!0&&J[St-1].begin!==!0){J[St-1].deltas.push(O),J[St-1].abs.push(nt);break}}break;case"bct":O=[nt.x1-M[rt-1].x,nt.y1-M[rt-1].y,nt.x2-M[rt-1].x,nt.y2-M[rt-1].y,nt.x-M[rt-1].x,nt.y-M[rt-1].y],J[J.length-1].deltas.push(O);break;case"qct":var Nt=M[rt-1].x+2/3*(nt.x1-M[rt-1].x),_t=M[rt-1].y+2/3*(nt.y1-M[rt-1].y),kt=nt.x+2/3*(nt.x1-nt.x),zt=nt.y+2/3*(nt.y1-nt.y),at=nt.x,q=nt.y;O=[Nt-M[rt-1].x,_t-M[rt-1].y,kt-M[rt-1].x,zt-M[rt-1].y,at-M[rt-1].x,q-M[rt-1].y],J[J.length-1].deltas.push(O);break;case"arc":J.push({deltas:[],abs:[],arc:!0}),Array.isArray(J[J.length-1].abs)&&J[J.length-1].abs.push(nt)}}R=F?null:x==="stroke"?"stroke":"fill";for(var Yt=!1,qt=0;qt<J.length;qt++)if(J[qt].arc)for(var At=J[qt].abs,Pt=0;Pt<At.length;Pt++){var dt=At[Pt];dt.type==="arc"?U.call(this,dt.x,dt.y,dt.radius,dt.startAngle,dt.endAngle,dt.counterclockwise,void 0,F,!Yt):H.call(this,dt.x,dt.y),Yt=!0}else if(J[qt].close===!0)this.pdf.internal.out("h"),Yt=!1;else if(J[qt].begin!==!0){var bt=J[qt].start.x,Et=J[qt].start.y;T.call(this,J[qt].deltas,bt,Et),Yt=!0}R&&et.call(this,R),F&&pt.call(this)}},xt=function(x){var F=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,O=F*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return x-O;case"top":return x+F-O;case"hanging":return x+F-2*O;case"middle":return x+F/2-O;case"ideographic":return x;case"alphabetic":default:return x}},K=function(x){return x+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};b.prototype.createLinearGradient=function(){var x=function(){};return x.colorStops=[],x.addColorStop=function(F,O){this.colorStops.push([F,O])},x.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},x.isCanvasGradient=!0,x},b.prototype.createPattern=function(){return this.createLinearGradient()},b.prototype.createRadialGradient=function(){return this.createLinearGradient()};var U=function(x,F,O,R,J,M,rt,nt,St){for(var Nt=it.call(this,O,R,J,M),_t=0;_t<Nt.length;_t++){var kt=Nt[_t];_t===0&&(St?P.call(this,kt.x1+x,kt.y1+F):H.call(this,kt.x1+x,kt.y1+F)),st.call(this,x,F,kt.x2,kt.y2,kt.x3,kt.y3,kt.x4,kt.y4)}nt?pt.call(this):et.call(this,rt)},et=function(x){switch(x){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},pt=function(){this.pdf.clip(),this.pdf.discardPath()},P=function(x,F){this.pdf.internal.out(n(x)+" "+a(F)+" m")},I=function(x){var F;switch(x.align){case"right":case"end":F="right";break;case"center":F="center";break;case"left":case"start":default:F="left"}var O=this.pdf.getTextDimensions(x.text),R=xt.call(this,x.y),J=K.call(this,R)-O.h,M=this.ctx.transform.applyToPoint(new l(x.x,R)),rt=this.ctx.transform.decompose(),nt=new f;nt=(nt=(nt=nt.multiply(rt.translate)).multiply(rt.skew)).multiply(rt.scale);for(var St,Nt,_t,kt=this.ctx.transform.applyToRectangle(new h(x.x,R,O.w,O.h)),zt=nt.applyToRectangle(new h(x.x,J,O.w,O.h)),at=D.call(this,zt),q=[],Yt=0;Yt<at.length;Yt+=1)q.indexOf(at[Yt])===-1&&q.push(at[Yt]);if(Y(q),this.autoPaging)for(var qt=q[0],At=q[q.length-1],Pt=qt;Pt<At+1;Pt++){this.pdf.setPage(Pt);var dt=Pt===1?this.posY+this.margin[0]:this.margin[0],bt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Et=this.pdf.internal.pageSize.height-this.margin[2],Dt=Et-this.margin[0],Ut=this.pdf.internal.pageSize.width-this.margin[1],Jt=Ut-this.margin[3],te=Pt===1?0:bt+(Pt-2)*Dt;if(this.ctx.clip_path.length!==0){var ie=this.path;St=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=B(St,this.posX+this.margin[3],-1*te+dt),lt.call(this,"fill",!0),this.path=ie}var Gt=B([JSON.parse(JSON.stringify(zt))],this.posX+this.margin[3],-te+dt+this.ctx.prevPageLastElemOffset)[0];x.scale>=.01&&(Nt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Nt*x.scale),_t=this.lineWidth,this.lineWidth=_t*x.scale);var ne=this.autoPaging!=="text";if(ne||Gt.y+Gt.h<=Et){if(ne||Gt.y>=dt&&Gt.x<=Ut){var jt=ne?x.text:this.pdf.splitTextToSize(x.text,x.maxWidth||Ut-Gt.x)[0],Xe=B([JSON.parse(JSON.stringify(kt))],this.posX+this.margin[3],-te+dt+this.ctx.prevPageLastElemOffset)[0],se=ne&&(Pt>qt||Pt<At)&&k.call(this);se&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Jt,Dt,null).clip().discardPath()),this.pdf.text(jt,Xe.x,Xe.y,{angle:x.angle,align:F,renderingMode:x.renderingMode}),se&&this.pdf.restoreGraphicsState()}}else Gt.y<Et&&(this.ctx.prevPageLastElemOffset+=Et-Gt.y);x.scale>=.01&&(this.pdf.setFontSize(Nt),this.lineWidth=_t)}else x.scale>=.01&&(Nt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Nt*x.scale),_t=this.lineWidth,this.lineWidth=_t*x.scale),this.pdf.text(x.text,M.x+this.posX,M.y+this.posY,{angle:x.angle,align:F,renderingMode:x.renderingMode,maxWidth:x.maxWidth}),x.scale>=.01&&(this.pdf.setFontSize(Nt),this.lineWidth=_t)},H=function(x,F,O,R){O=O||0,R=R||0,this.pdf.internal.out(n(x+O)+" "+a(F+R)+" l")},T=function(x,F,O){return this.pdf.lines(x,F,O,null,null)},st=function(x,F,O,R,J,M,rt,nt){this.pdf.internal.out([e(s(O+x)),e(o(R+F)),e(s(J+x)),e(o(M+F)),e(s(rt+x)),e(o(nt+F)),"c"].join(" "))},it=function(x,F,O,R){for(var J=2*Math.PI,M=Math.PI/2;F>O;)F-=J;var rt=Math.abs(O-F);rt<J&&R&&(rt=J-rt);for(var nt=[],St=R?-1:1,Nt=F;rt>1e-5;){var _t=Nt+St*Math.min(rt,M);nt.push(ut.call(this,x,Nt,_t)),rt-=Math.abs(_t-Nt),Nt=_t}return nt},ut=function(x,F,O){var R=(O-F)/2,J=x*Math.cos(R),M=x*Math.sin(R),rt=J,nt=-M,St=rt*rt+nt*nt,Nt=St+rt*J+nt*M,_t=4/3*(Math.sqrt(2*St*Nt)-Nt)/(rt*M-nt*J),kt=rt-_t*nt,zt=nt+_t*rt,at=kt,q=-zt,Yt=R+F,qt=Math.cos(Yt),At=Math.sin(Yt);return{x1:x*Math.cos(F),y1:x*Math.sin(F),x2:kt*qt-zt*At,y2:kt*At+zt*qt,x3:at*qt-q*At,y3:at*At+q*qt,x4:x*Math.cos(O),y4:x*Math.sin(O)}},tt=function(x){return 180*x/Math.PI},ht=function(x,F,O,R,J,M){var rt=x+.5*(O-x),nt=F+.5*(R-F),St=J+.5*(O-J),Nt=M+.5*(R-M),_t=Math.min(x,J,rt,St),kt=Math.max(x,J,rt,St),zt=Math.min(F,M,nt,Nt),at=Math.max(F,M,nt,Nt);return new h(_t,zt,kt-_t,at-zt)},gt=function(x,F,O,R,J,M,rt,nt){var St,Nt,_t,kt,zt,at,q,Yt,qt,At,Pt,dt,bt,Et,Dt=O-x,Ut=R-F,Jt=J-O,te=M-R,ie=rt-J,Gt=nt-M;for(Nt=0;Nt<41;Nt++)qt=(q=(_t=x+(St=Nt/40)*Dt)+St*((zt=O+St*Jt)-_t))+St*(zt+St*(J+St*ie-zt)-q),At=(Yt=(kt=F+St*Ut)+St*((at=R+St*te)-kt))+St*(at+St*(M+St*Gt-at)-Yt),Nt==0?(Pt=qt,dt=At,bt=qt,Et=At):(Pt=Math.min(Pt,qt),dt=Math.min(dt,At),bt=Math.max(bt,qt),Et=Math.max(Et,At));return new h(Math.round(Pt),Math.round(dt),Math.round(bt-Pt),Math.round(Et-dt))},Ct=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var x,F,O=(x=this.ctx.lineDash,F=this.ctx.lineDashOffset,JSON.stringify({lineDash:x,lineDashOffset:F}));this.prevLineDash!==O&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=O)}}})(Wt.API),function(r){var e=function(o){var l,h,f,g,v,b,A,p,j,k;for(h=[],f=0,g=(o+=l="\0\0\0\0".slice(o.length%4||4)).length;g>f;f+=4)(v=(o.charCodeAt(f)<<24)+(o.charCodeAt(f+1)<<16)+(o.charCodeAt(f+2)<<8)+o.charCodeAt(f+3))!==0?(b=(v=((v=((v=((v=(v-(k=v%85))/85)-(j=v%85))/85)-(p=v%85))/85)-(A=v%85))/85)%85,h.push(b+33,A+33,p+33,j+33,k+33)):h.push(122);return function(D,_){for(var B=_;B>0;B--)D.pop()}(h,l.length),String.fromCharCode.apply(String,h)+"~>"},n=function(o){var l,h,f,g,v,b=String,A="length",p=255,j="charCodeAt",k="slice",D="replace";for(o[k](-2),o=o[k](0,-2)[D](/\s/g,"")[D]("z","!!!!!"),f=[],g=0,v=(o+=l="uuuuu"[k](o[A]%5||5))[A];v>g;g+=5)h=52200625*(o[j](g)-33)+614125*(o[j](g+1)-33)+7225*(o[j](g+2)-33)+85*(o[j](g+3)-33)+(o[j](g+4)-33),f.push(p&h>>24,p&h>>16,p&h>>8,p&h);return function(_,B){for(var Y=B;Y>0;Y--)_.pop()}(f,l[A]),b.fromCharCode.apply(b,f)},a=function(o){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((o=o.replace(/\s/g,"")).indexOf(">")!==-1&&(o=o.substr(0,o.indexOf(">"))),o.length%2&&(o+="0"),l.test(o)===!1)return"";for(var h="",f=0;f<o.length;f+=2)h+=String.fromCharCode("0x"+(o[f]+o[f+1]));return h},s=function(o){for(var l=new Uint8Array(o.length),h=o.length;h--;)l[h]=o.charCodeAt(h);return o=(l=Fs(l)).reduce(function(f,g){return f+String.fromCharCode(g)},"")};r.processDataByFilters=function(o,l){var h=0,f=o||"",g=[];for(typeof(l=l||[])=="string"&&(l=[l]),h=0;h<l.length;h+=1)switch(l[h]){case"ASCII85Decode":case"/ASCII85Decode":f=n(f),g.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":f=e(f),g.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":f=a(f),g.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":f=f.split("").map(function(v){return("0"+v.charCodeAt().toString(16)).slice(-2)}).join("")+">",g.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":f=s(f),g.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[h]+'" is not implemented')}return{data:f,reverseChain:g.reverse().join(" ")}}}(Wt.API),function(r){r.loadFile=function(e,n,a){return function(s,o,l){o=o!==!1,l=typeof l=="function"?l:function(){};var h=void 0;try{h=function(f,g,v){var b=new XMLHttpRequest,A=0,p=function(j){var k=j.length,D=[],_=String.fromCharCode;for(A=0;A<k;A+=1)D.push(_(255&j.charCodeAt(A)));return D.join("")};if(b.open("GET",f,!g),b.overrideMimeType("text/plain; charset=x-user-defined"),g===!1&&(b.onload=function(){b.status===200?v(p(this.responseText)):v(void 0)}),b.send(null),g&&b.status===200)return p(b.responseText)}(s,o,l)}catch{}return h}(e,n,a)},r.loadImageFile=r.loadFile}(Wt.API),function(r){function e(){return(Vt.html2canvas?Promise.resolve(Vt.html2canvas):No(()=>import("./html2canvas.esm-CBrSDip1.js"),[])).catch(function(l){return Promise.reject(new Error("Could not load html2canvas: "+l))}).then(function(l){return l.default?l.default:l})}function n(){return(Vt.DOMPurify?Promise.resolve(Vt.DOMPurify):No(()=>import("./purify.es-BwoZCkIS.js"),[])).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var a=function(l){var h=ve(l);return h==="undefined"?"undefined":h==="string"||l instanceof String?"string":h==="number"||l instanceof Number?"number":h==="function"||l instanceof Function?"function":l&&l.constructor===Array?"array":l&&l.nodeType===1?"element":h==="object"?"object":"unknown"},s=function(l,h){var f=document.createElement(l);for(var g in h.className&&(f.className=h.className),h.innerHTML&&h.dompurify&&(f.innerHTML=h.dompurify.sanitize(h.innerHTML)),h.style)f.style[g]=h.style[g];return f},o=function l(h){var f=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),g=l.convert(Promise.resolve(),f);return g=(g=g.setProgress(1,l,1,[l])).set(h)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(l,h){return l.__proto__=h||o.prototype,l},o.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"}},o.prototype.from=function(l,h){return this.then(function(){switch(h=h||function(f){switch(a(f)){case"string":return"string";case"element":return f.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(l)){case"string":return this.then(n).then(function(f){return this.set({src:s("div",{innerHTML:l,dompurify:f})})});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.")}})},o.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.")}},o.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},h=function f(g,v){for(var b=g.nodeType===3?document.createTextNode(g.nodeValue):g.cloneNode(!1),A=g.firstChild;A;A=A.nextSibling)v!==!0&&A.nodeType===1&&A.nodeName==="SCRIPT"||b.appendChild(f(A,v));return g.nodeType===1&&(g.nodeName==="CANVAS"?(b.width=g.width,b.height=g.height,b.getContext("2d").drawImage(g,0,0)):g.nodeName!=="TEXTAREA"&&g.nodeName!=="SELECT"||(b.value=g.value),b.addEventListener("load",function(){b.scrollTop=g.scrollTop,b.scrollLeft=g.scrollLeft},!0)),b}(this.prop.src,this.opt.html2canvas.javascriptEnabled);h.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=s("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=s("div",{className:"html2pdf__container",style:l}),this.prop.container.appendChild(h),this.prop.container.firstChild.appendChild(s("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},o.prototype.toCanvas=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(e).then(function(h){var f=Object.assign({},this.opt.html2canvas);return delete f.onrendered,h(this.prop.container,f)}).then(function(h){(this.opt.html2canvas.onrendered||function(){})(h),this.prop.canvas=h,document.body.removeChild(this.prop.overlay)})},o.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(e).then(function(h){var f=this.opt.jsPDF,g=this.opt.fontFaces,v=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,b=Object.assign({async:!0,allowTaint:!0,scale:v,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 b.onrendered,f.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,f.context2d.posX=this.opt.x,f.context2d.posY=this.opt.y,f.context2d.margin=this.opt.margin,f.context2d.fontFaces=g,g)for(var A=0;A<g.length;++A){var p=g[A],j=p.src.find(function(k){return k.format==="truetype"});j&&f.addFont(j.url,p.ref.name,p.ref.style)}return b.windowHeight=b.windowHeight||0,b.windowHeight=b.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):b.windowHeight,f.context2d.save(!0),h(this.prop.container,b)}).then(function(h){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(h),this.prop.canvas=h,document.body.removeChild(this.prop.overlay)})},o.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})},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},o.prototype.output=function(l,h,f){return(f=f||"pdf").toLowerCase()==="img"||f.toLowerCase()==="image"?this.outputImg(l,h):this.outputPdf(l,h)},o.prototype.outputPdf=function(l,h){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(l,h)})},o.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.'}})},o.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)})},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},o.prototype.set=function(l){if(a(l)!=="object")return this;var h=Object.keys(l||{}).map(function(f){if(f in o.template.prop)return function(){this.prop[f]=l[f]};switch(f){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[f]=l[f]}}},this);return this.then(function(){return this.thenList(h)})},o.prototype.get=function(l,h){return this.then(function(){var f=l in o.template.prop?this.prop[l]:this.opt[l];return h?h(f):f})},o.prototype.setMargin=function(l){return this.then(function(){switch(a(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)},o.prototype.setPageSize=function(l){function h(f,g){return Math.floor(f*g/72*96)}return this.then(function(){(l=l||Wt.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:h(l.inner.width,l.k),height:h(l.inner.height,l.k)},l.inner.ratio=l.inner.height/l.inner.width),this.prop.pageSize=l})},o.prototype.setProgress=function(l,h,f,g){return l!=null&&(this.progress.val=l),h!=null&&(this.progress.state=h),f!=null&&(this.progress.n=f),g!=null&&(this.progress.stack=g),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(l,h,f,g){return this.setProgress(l?this.progress.val+l:null,h||null,f?this.progress.n+f:null,g?this.progress.stack.concat(g):null)},o.prototype.then=function(l,h){var f=this;return this.thenCore(l,h,function(g,v){return f.updateProgress(null,null,1,[g]),Promise.prototype.then.call(this,function(b){return f.updateProgress(null,g),b}).then(g,v).then(function(b){return f.updateProgress(1),b})})},o.prototype.thenCore=function(l,h,f){f=f||Promise.prototype.then,l&&(l=l.bind(this)),h&&(h=h.bind(this));var g=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:o.convert(Object.assign({},this),Promise.prototype),v=f.call(g,l,h);return o.convert(v,this.__proto__)},o.prototype.thenExternal=function(l,h){return Promise.prototype.then.call(this,l,h)},o.prototype.thenList=function(l){var h=this;return l.forEach(function(f){h=h.thenCore(f)}),h},o.prototype.catch=function(l){l&&(l=l.bind(this));var h=Promise.prototype.catch.call(this,l);return o.convert(h,this)},o.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},o.prototype.error=function(l){return this.then(function(){throw new Error(l)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,Wt.getPageSize=function(l,h,f){if(ve(l)==="object"){var g=l;l=g.orientation,h=g.unit||h,f=g.format||f}h=h||"mm",f=f||"a4",l=(""+(l||"P")).toLowerCase();var v,b=(""+f).toLowerCase(),A={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(h){case"pt":v=1;break;case"mm":v=72/25.4;break;case"cm":v=72/2.54;break;case"in":v=72;break;case"px":v=.75;break;case"pc":case"em":v=12;break;case"ex":v=6;break;default:throw"Invalid unit: "+h}var p,j=0,k=0;if(A.hasOwnProperty(b))j=A[b][1]/v,k=A[b][0]/v;else try{j=f[1],k=f[0]}catch{throw new Error("Invalid format: "+f)}if(l==="p"||l==="portrait")l="p",k>j&&(p=k,k=j,j=p);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",j>k&&(p=k,k=j,j=p)}return{width:k,height:j,unit:h,k:v,orientation:l}},r.html=function(l,h){(h=h||{}).callback=h.callback||function(){},h.html2canvas=h.html2canvas||{},h.html2canvas.canvas=h.html2canvas.canvas||this.canvas,h.jsPDF=h.jsPDF||this,h.fontFaces=h.fontFaces?h.fontFaces.map(qs):null;var f=new o(h);return h.worker?f:f.from(l).doCallback()}}(Wt.API),Wt.API.addJS=function(r){return Fc=r,this.internal.events.subscribe("postPutResources",function(){po=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(po+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Cc=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Fc+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){po!==void 0&&Cc!==void 0&&this.internal.out("/Names <</JavaScript "+po+" 0 R>>")}),this},function(r){var e;r.events.push(["postPutResources",function(){var n=this,a=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var s=n.outline.render().split(/\r\n/),o=0;o<s.length;o++){var l=s[o],h=a.exec(l);if(h!=null){var f=h[1];n.internal.newObjectDeferredBegin(f,!1)}n.internal.write(l)}if(this.outline.createNamedDestinations){var g=this.internal.pages.length,v=[];for(o=0;o<g;o++){var b=n.internal.newObject();v.push(b);var A=n.internal.getPageInfo(o+1);n.internal.write("<< /D["+A.objId+" 0 R /XYZ null null null]>> endobj")}var p=n.internal.newObject();for(n.internal.write("<< /Names [ "),o=0;o<v.length;o++)n.internal.write("(page_"+(o+1)+")"+v[o]+" 0 R");n.internal.write(" ] >>","endobj"),e=n.internal.newObject(),n.internal.write("<< /Dests "+p+" 0 R"),n.internal.write(">>","endobj")}}]),r.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),r.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(a,s,o){var l={title:s,options:o,children:[]};return a==null&&(a=this.root),a.children.push(l),l},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(a){a.id=n.internal.newObjectDeferred();for(var s=0;s<a.children.length;s++)this.genIds_r(a.children[s])},n.outline.renderRoot=function(a){this.objStart(a),this.line("/Type /Outlines"),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1]))),this.line("/Count "+this.count_r({count:0},a)),this.objEnd()},n.outline.renderItems=function(a){for(var s=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<a.children.length;o++){var l=a.children[o];this.objStart(l),this.line("/Title "+this.makeString(l.title)),this.line("/Parent "+this.makeRef(a)),o>0&&this.line("/Prev "+this.makeRef(a.children[o-1])),o<a.children.length-1&&this.line("/Next "+this.makeRef(a.children[o+1])),l.children.length>0&&(this.line("/First "+this.makeRef(l.children[0])),this.line("/Last "+this.makeRef(l.children[l.children.length-1])));var h=this.count=this.count_r({count:0},l);if(h>0&&this.line("/Count "+h),l.options&&l.options.pageNumber){var f=n.internal.getPageInfo(l.options.pageNumber);this.line("/Dest ["+f.objId+" 0 R /XYZ 0 "+s(0)+" 0]")}this.objEnd()}for(var g=0;g<a.children.length;g++)this.renderItems(a.children[g])},n.outline.line=function(a){this.ctx.val+=a+`\r
72`},n.outline.makeRef=function(a){return a.id+" 0 R"},n.outline.makeString=function(a){return"("+n.internal.pdfEscape(a)+")"},n.outline.objStart=function(a){this.ctx.val+=`\r
73`+a.id+` 0 obj\r
74<<\r
75`},n.outline.objEnd=function(){this.ctx.val+=`>> \r
76endobj\r
77`},n.outline.count_r=function(a,s){for(var o=0;o<s.children.length;o++)a.count++,this.count_r(a,s.children[o]);return a.count}}])}(Wt.API),function(r){var e=[192,193,194,195,196,197,198,199];r.processJPEG=function(n,a,s,o,l,h){var f,g=this.decode.DCT_DECODE,v=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=l||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,(f=function(b){for(var A,p=256*b.charCodeAt(4)+b.charCodeAt(5),j=b.length,k={width:0,height:0,numcomponents:1},D=4;D<j;D+=2){if(D+=p,e.indexOf(b.charCodeAt(D+1))!==-1){A=256*b.charCodeAt(D+5)+b.charCodeAt(D+6),k={width:256*b.charCodeAt(D+7)+b.charCodeAt(D+8),height:A,numcomponents:b.charCodeAt(D+9)};break}p=256*b.charCodeAt(D+2)+b.charCodeAt(D+3)}return k}(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n)).numcomponents){case 1:h=this.color_spaces.DEVICE_GRAY;break;case 4:h=this.color_spaces.DEVICE_CMYK;break;case 3:h=this.color_spaces.DEVICE_RGB}v={data:n,width:f.width,height:f.height,colorSpace:h,bitsPerComponent:8,filter:g,index:a,alias:s}}return v}}(Wt.API);
vendor: 9,571 bytes, lines 77-128
77var Ci,go,jc,Ec,Bc,Cu=function(){var r,e,n;function a(o){var l,h,f,g,v,b,A,p,j,k,D,_,B,Y;for(this.data=o,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},b=null;;){switch(l=this.readUInt32(),j=(function(){var ot,lt;for(lt=[],ot=0;ot<4;++ot)lt.push(String.fromCharCode(this.data[this.pos++]));return lt}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(l);break;case"fcTL":b&&this.animation.frames.push(b),this.pos+=4,b={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},v=this.readUInt16(),g=this.readUInt16()||100,b.delay=1e3*v/g,b.disposeOp=this.data[this.pos++],b.blendOp=this.data[this.pos++],b.data=[];break;case"IDAT":case"fdAT":for(j==="fdAT"&&(this.pos+=4,l-=4),o=(b!=null?b.data:void 0)||this.imgData,_=0;0<=l?_<l:_>l;0<=l?++_:--_)o.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(f=this.palette.length/3,this.transparency.indexed=this.read(l),this.transparency.indexed.length>f)throw new Error("More transparent colors than palette size");if((k=f-this.transparency.indexed.length)>0)for(B=0;0<=k?B<k:B>k;0<=k?++B:--B)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(l)[0];break;case 2:this.transparency.rgb=this.read(l)}break;case"tEXt":A=(D=this.read(l)).indexOf(0),p=String.fromCharCode.apply(String,D.slice(0,A)),this.text[p]=String.fromCharCode.apply(String,D.slice(A+1));break;case"IEND":return b&&this.animation.frames.push(b),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(Y=this.colorType)===4||Y===6,h=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*h,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=l}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}a.prototype.read=function(o){var l,h;for(h=[],l=0;0<=o?l<o:l>o;0<=o?++l:--l)h.push(this.data[this.pos++]);return h},a.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},a.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},a.prototype.decodePixels=function(o){var l=this.pixelBitlength/8,h=new Uint8Array(this.width*this.height*l),f=0,g=this;if(o==null&&(o=this.imgData),o.length===0)return new Uint8Array(0);function v(b,A,p,j){var k,D,_,B,Y,ot,lt,xt,K,U,et,pt,P,I,H,T,st,it,ut,tt,ht,gt=Math.ceil((g.width-b)/p),Ct=Math.ceil((g.height-A)/j),x=g.width==gt&&g.height==Ct;for(I=l*gt,pt=x?h:new Uint8Array(I*Ct),ot=o.length,P=0,D=0;P<Ct&&f<ot;){switch(o[f++]){case 0:for(B=st=0;st<I;B=st+=1)pt[D++]=o[f++];break;case 1:for(B=it=0;it<I;B=it+=1)k=o[f++],Y=B<l?0:pt[D-l],pt[D++]=(k+Y)%256;break;case 2:for(B=ut=0;ut<I;B=ut+=1)k=o[f++],_=(B-B%l)/l,H=P&&pt[(P-1)*I+_*l+B%l],pt[D++]=(H+k)%256;break;case 3:for(B=tt=0;tt<I;B=tt+=1)k=o[f++],_=(B-B%l)/l,Y=B<l?0:pt[D-l],H=P&&pt[(P-1)*I+_*l+B%l],pt[D++]=(k+Math.floor((Y+H)/2))%256;break;case 4:for(B=ht=0;ht<I;B=ht+=1)k=o[f++],_=(B-B%l)/l,Y=B<l?0:pt[D-l],P===0?H=T=0:(H=pt[(P-1)*I+_*l+B%l],T=_&&pt[(P-1)*I+(_-1)*l+B%l]),lt=Y+H-T,xt=Math.abs(lt-Y),U=Math.abs(lt-H),et=Math.abs(lt-T),K=xt<=U&&xt<=et?Y:U<=et?H:T,pt[D++]=(k+K)%256;break;default:throw new Error("Invalid filter algorithm: "+o[f-1])}if(!x){var F=((A+P*j)*g.width+b)*l,O=P*I;for(B=0;B<gt;B+=1){for(var R=0;R<l;R+=1)h[F++]=pt[O++];F+=(p-1)*l}}P++}}return o=cu(o),g.interlaceMethod==1?(v(0,0,8,8),v(4,0,8,8),v(0,4,4,8),v(2,0,4,4),v(0,2,2,4),v(1,0,2,2),v(0,1,1,2)):v(0,0,1,1),h},a.prototype.decodePalette=function(){var o,l,h,f,g,v,b,A,p;for(h=this.palette,v=this.transparency.indexed||[],g=new Uint8Array((v.length||0)+h.length),f=0,o=0,l=b=0,A=h.length;b<A;l=b+=3)g[f++]=h[l],g[f++]=h[l+1],g[f++]=h[l+2],g[f++]=(p=v[o++])!=null?p:255;return g},a.prototype.copyToImageData=function(o,l){var h,f,g,v,b,A,p,j,k,D,_;if(f=this.colors,k=null,h=this.hasAlphaChannel,this.palette.length&&(k=(_=this._decodedPalette)!=null?_:this._decodedPalette=this.decodePalette(),f=4,h=!0),j=(g=o.data||o).length,b=k||l,v=A=0,f===1)for(;v<j;)p=k?4*l[v/4]:A,D=b[p++],g[v++]=D,g[v++]=D,g[v++]=D,g[v++]=h?b[p++]:255,A=p;else for(;v<j;)p=k?4*l[v/4]:A,g[v++]=b[p++],g[v++]=b[p++],g[v++]=b[p++],g[v++]=h?b[p++]:255,A=p},a.prototype.decode=function(){var o;return o=new Uint8Array(this.width*this.height*4),this.copyToImageData(o,this.decodePixels()),o};var s=function(){if(Object.prototype.toString.call(Vt)==="[object Window]"){try{e=Vt.document.createElement("canvas"),n=e.getContext("2d")}catch{return!1}return!0}return!1};return s(),r=function(o){var l;if(s()===!0)return n.width=o.width,n.height=o.height,n.clearRect(0,0,o.width,o.height),n.putImageData(o,0,0),(l=new Image).src=e.toDataURL(),l;throw new Error("This method requires a Browser with Canvas-capability.")},a.prototype.decodeFrames=function(o){var l,h,f,g,v,b,A,p;if(this.animation){for(p=[],h=v=0,b=(A=this.animation.frames).length;v<b;h=++v)l=A[h],f=o.createImageData(l.width,l.height),g=this.decodePixels(new Uint8Array(l.data)),this.copyToImageData(f,g),l.imageData=f,p.push(l.image=r(f));return p}},a.prototype.renderFrame=function(o,l){var h,f,g;return h=(f=this.animation.frames)[l],g=f[l-1],l===0&&o.clearRect(0,0,this.width,this.height),(g!=null?g.disposeOp:void 0)===1?o.clearRect(g.xOffset,g.yOffset,g.width,g.height):(g!=null?g.disposeOp:void 0)===2&&o.putImageData(g.imageData,g.xOffset,g.yOffset),h.blendOp===0&&o.clearRect(h.xOffset,h.yOffset,h.width,h.height),o.drawImage(h.image,h.xOffset,h.yOffset)},a.prototype.animate=function(o){var l,h,f,g,v,b,A=this;return h=0,b=this.animation,g=b.numFrames,f=b.frames,v=b.numPlays,(l=function(){var p,j;if(p=h++%g,j=f[p],A.renderFrame(o,p),g>1&&h/g<v)return A.animation._timeout=setTimeout(l,j.delay)})()},a.prototype.stopAnimation=function(){var o;return clearTimeout((o=this.animation)!=null?o._timeout:void 0)},a.prototype.render=function(o){var l,h;return o._png&&o._png.stopAnimation(),o._png=this,o.width=this.width,o.height=this.height,l=o.getContext("2d"),this.animation?(this.decodeFrames(l),this.animate(l)):(h=l.createImageData(this.width,this.height),this.copyToImageData(h,this.decodePixels()),l.putImageData(h,0,0))},a}();/**
78 * @license
79 *
80 * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
81 *
82 * Permission is hereby granted, free of charge, to any person obtaining
83 * a copy of this software and associated documentation files (the
84 * "Software"), to deal in the Software without restriction, including
85 * without limitation the rights to use, copy, modify, merge, publish,
86 * distribute, sublicense, and/or sell copies of the Software, and to
87 * permit persons to whom the Software is furnished to do so, subject to
88 * the following conditions:
89 *
90 * The above copyright notice and this permission notice shall be
91 * included in all copies or substantial portions of the Software.
92 *
93 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
94 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
95 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
96 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
97 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
98 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
99 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
100 * ====================================================================
101 *//**
102 * @license
103 * (c) Dean McNamee <[email protected]>, 2013.
104 *
105 * https://github.com/deanm/omggif
106 *
107 * Permission is hereby granted, free of charge, to any person obtaining a copy
108 * of this software and associated documentation files (the "Software"), to
109 * deal in the Software without restriction, including without limitation the
110 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
111 * sell copies of the Software, and to permit persons to whom the Software is
112 * furnished to do so, subject to the following conditions:
113 *
114 * The above copyright notice and this permission notice shall be included in
115 * all copies or substantial portions of the Software.
116 *
117 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
118 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
119 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
120 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
121 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
122 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
123 * IN THE SOFTWARE.
124 *
125 * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
126 * including animation and compression.  It does not rely on any specific
127 * underlying system, so should run in the browser, Node, or Plask.
128 */function Fu(r){var e=0;if(r[e++]!==71||r[e++]!==73||r[e++]!==70||r[e++]!==56||(r[e++]+1&253)!=56||r[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");
vendor: 4,548 bytes, lines 128-152
128var n=r[e++]|r[e++]<<8,a=r[e++]|r[e++]<<8,s=r[e++],o=s>>7,l=1<<(7&s)+1;r[e++],r[e++];var h=null,f=null;o&&(h=e,f=l,e+=3*l);var g=!0,v=[],b=0,A=null,p=0,j=null;for(this.width=n,this.height=a;g&&e<r.length;)switch(r[e++]){case 33:switch(r[e++]){case 255:if(r[e]!==11||r[e+1]==78&&r[e+2]==69&&r[e+3]==84&&r[e+4]==83&&r[e+5]==67&&r[e+6]==65&&r[e+7]==80&&r[e+8]==69&&r[e+9]==50&&r[e+10]==46&&r[e+11]==48&&r[e+12]==3&&r[e+13]==1&&r[e+16]==0)e+=14,j=r[e++]|r[e++]<<8,e++;else for(e+=12;;){if(!((P=r[e++])>=0))throw Error("Invalid block size");if(P===0)break;e+=P}break;case 249:if(r[e++]!==4||r[e+4]!==0)throw new Error("Invalid graphics extension block.");var k=r[e++];b=r[e++]|r[e++]<<8,A=r[e++],!(1&k)&&(A=null),p=k>>2&7,e++;break;case 254:for(;;){if(!((P=r[e++])>=0))throw Error("Invalid block size");if(P===0)break;e+=P}break;default:throw new Error("Unknown graphic control label: 0x"+r[e-1].toString(16))}break;case 44:var D=r[e++]|r[e++]<<8,_=r[e++]|r[e++]<<8,B=r[e++]|r[e++]<<8,Y=r[e++]|r[e++]<<8,ot=r[e++],lt=ot>>6&1,xt=1<<(7&ot)+1,K=h,U=f,et=!1;ot>>7&&(et=!0,K=e,U=xt,e+=3*xt);var pt=e;for(e++;;){var P;if(!((P=r[e++])>=0))throw Error("Invalid block size");if(P===0)break;e+=P}v.push({x:D,y:_,width:B,height:Y,has_local_palette:et,palette_offset:K,palette_size:U,data_offset:pt,data_length:e-pt,transparent_index:A,interlaced:!!lt,delay:b,disposal:p});break;case 59:g=!1;break;default:throw new Error("Unknown gif block: 0x"+r[e-1].toString(16))}this.numFrames=function(){return v.length},this.loopCount=function(){return j},this.frameInfo=function(I){if(I<0||I>=v.length)throw new Error("Frame index out of range.");return v[I]},this.decodeAndBlitFrameBGRA=function(I,H){var T=this.frameInfo(I),st=T.width*T.height,it=new Uint8Array(st);Oc(r,T.data_offset,it,st);var ut=T.palette_offset,tt=T.transparent_index;tt===null&&(tt=256);var ht=T.width,gt=n-ht,Ct=ht,x=4*(T.y*n+T.x),F=4*((T.y+T.height)*n+T.x),O=x,R=4*gt;T.interlaced===!0&&(R+=4*n*7);for(var J=8,M=0,rt=it.length;M<rt;++M){var nt=it[M];if(Ct===0&&(Ct=ht,(O+=R)>=F&&(R=4*gt+4*n*(J-1),O=x+(ht+gt)*(J<<1),J>>=1)),nt===tt)O+=4;else{var St=r[ut+3*nt],Nt=r[ut+3*nt+1],_t=r[ut+3*nt+2];H[O++]=_t,H[O++]=Nt,H[O++]=St,H[O++]=255}--Ct}},this.decodeAndBlitFrameRGBA=function(I,H){var T=this.frameInfo(I),st=T.width*T.height,it=new Uint8Array(st);Oc(r,T.data_offset,it,st);var ut=T.palette_offset,tt=T.transparent_index;tt===null&&(tt=256);var ht=T.width,gt=n-ht,Ct=ht,x=4*(T.y*n+T.x),F=4*((T.y+T.height)*n+T.x),O=x,R=4*gt;T.interlaced===!0&&(R+=4*n*7);for(var J=8,M=0,rt=it.length;M<rt;++M){var nt=it[M];if(Ct===0&&(Ct=ht,(O+=R)>=F&&(R=4*gt+4*n*(J-1),O=x+(ht+gt)*(J<<1),J>>=1)),nt===tt)O+=4;else{var St=r[ut+3*nt],Nt=r[ut+3*nt+1],_t=r[ut+3*nt+2];H[O++]=St,H[O++]=Nt,H[O++]=_t,H[O++]=255}--Ct}}}function Oc(r,e,n,a){for(var s=r[e++],o=1<<s,l=o+1,h=l+1,f=s+1,g=(1<<f)-1,v=0,b=0,A=0,p=r[e++],j=new Int32Array(4096),k=null;;){for(;v<16&&p!==0;)b|=r[e++]<<v,v+=8,p===1?p=r[e++]:--p;if(v<f)break;var D=b&g;if(b>>=f,v-=f,D!==o){if(D===l)break;for(var _=D<h?D:k,B=0,Y=_;Y>o;)Y=j[Y]>>8,++B;var ot=Y;if(A+B+(_!==D?1:0)>a)return void me.log("Warning, gif stream longer than expected.");n[A++]=ot;var lt=A+=B;for(_!==D&&(n[A++]=ot),Y=_;B--;)Y=j[Y],n[--lt]=255&Y,Y>>=8;k!==null&&h<4096&&(j[h++]=k<<8|ot,h>=g+1&&f<12&&(++f,g=g<<1|1)),k=D}else h=l+1,g=(1<<(f=s+1))-1,k=null}return A!==a&&me.log("Warning, gif stream shorter than expected."),n}/**
129 * @license
130  Copyright (c) 2008, Adobe Systems Incorporated
131  All rights reserved.
132
133  Redistribution and use in source and binary forms, with or without 
134  modification, are permitted provided that the following conditions are
135  met:
136
137  * Redistributions of source code must retain the above copyright notice, 
138    this list of conditions and the following disclaimer.
139  
140  * Redistributions in binary form must reproduce the above copyright
141    notice, this list of conditions and the following disclaimer in the 
142    documentation and/or other materials provided with the distribution.
143  
144  * Neither the name of Adobe Systems Incorporated nor the names of its 
145    contributors may be used to endorse or promote products derived from 
146    this software without specific prior written permission.
147
148  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
149  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
150  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
151  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
152  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
153  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
154  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
155  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
156  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
157  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
158  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
159*/function _s(r){var e,n,a,s,o,l=Math.floor,h=new Array(64),f=new Array(64),g=new Array(64),v=new Array(64),b=new Array(65535),A=new Array(65535),p=new Array(64),j=new Array(64),k=[],D=0,_=7,B=new Array(64),Y=new Array(64),ot=new Array(64),lt=new Array(256),xt=new Array(2048),K=[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],U=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],et=[0,1,2,3,4,5,6,7,8,9,10,11],pt=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],P=[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],I=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],H=[0,1,2,3,4,5,6,7,8,9,10,11],T=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],st=[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 it(x,F){for(var O=0,R=0,J=new Array,M=1;M<=16;M++){for(var rt=1;rt<=x[M];rt++)J[F[R]]=[],J[F[R]][0]=O,J[F[R]][1]=M,R++,O++;O*=2}return J}function ut(x){for(var F=x[0],O=x[1]-1;O>=0;)F&1<<O&&(D|=1<<_),O--,--_<0&&(D==255?(tt(255),tt(0)):tt(D),_=7,D=0)}function tt(x){k.push(x)}function ht(x){tt(x>>8&255),tt(255&x)}function gt(x,F,O,R,J){for(var M,rt=J[0],nt=J[240],St=function(At,Pt){var dt,bt,Et,Dt,Ut,Jt,te,ie,Gt,ne,jt=0;for(Gt=0;Gt<8;++Gt){dt=At[jt],bt=At[jt+1],Et=At[jt+2],Dt=At[jt+3],Ut=At[jt+4],Jt=At[jt+5],te=At[jt+6];var Xe=dt+(ie=At[jt+7]),se=dt-ie,In=bt+te,pe=bt-te,xe=Et+Jt,Vn=Et-Jt,le=Dt+Ut,qr=Dt-Ut,Ae=Xe+le,Cn=Xe-le,ar=In+xe,Se=In-xe;At[jt]=Ae+ar,At[jt+4]=Ae-ar;var Xt=.707106781*(Se+Cn);At[jt+2]=Cn+Xt,At[jt+6]=Cn-Xt;var ue=.382683433*((Ae=qr+Vn)-(Se=pe+se)),Dr=.5411961*Ae+ue,Ge=1.306562965*Se+ue,Gn=.707106781*(ar=Vn+pe),Yn=se+Gn,Ht=se-Gn;At[jt+5]=Ht+Dr,At[jt+3]=Ht-Dr,At[jt+1]=Yn+Ge,At[jt+7]=Yn-Ge,jt+=8}for(jt=0,Gt=0;Gt<8;++Gt){dt=At[jt],bt=At[jt+8],Et=At[jt+16],Dt=At[jt+24],Ut=At[jt+32],Jt=At[jt+40],te=At[jt+48];var Fn=dt+(ie=At[jt+56]),Jn=dt-ie,cn=bt+te,Re=bt-te,Me=Et+Jt,gn=Et-Jt,ti=Dt+Ut,or=Dt-Ut,jn=Fn+ti,En=Fn-ti,Bn=cn+Me,$n=cn-Me;At[jt]=jn+Bn,At[jt+32]=jn-Bn;var xn=.707106781*($n+En);At[jt+16]=En+xn,At[jt+48]=En-xn;var Xn=.382683433*((jn=or+gn)-($n=Re+Jn)),Tr=.5411961*jn+Xn,ei=1.306562965*$n+Xn,ni=.707106781*(Bn=gn+Re),ri=Jn+ni,ii=Jn-ni;At[jt+40]=ii+Tr,At[jt+24]=ii-Tr,At[jt+8]=ri+ei,At[jt+56]=ri-ei,jt++}for(Gt=0;Gt<64;++Gt)ne=At[Gt]*Pt[Gt],p[Gt]=ne>0?ne+.5|0:ne-.5|0;return p}(x,F),Nt=0;Nt<64;++Nt)j[K[Nt]]=St[Nt];var _t=j[0]-O;O=j[0],_t==0?ut(R[0]):(ut(R[A[M=32767+_t]]),ut(b[M]));for(var kt=63;kt>0&&j[kt]==0;)kt--;if(kt==0)return ut(rt),O;for(var zt,at=1;at<=kt;){for(var q=at;j[at]==0&&at<=kt;)++at;var Yt=at-q;if(Yt>=16){zt=Yt>>4;for(var qt=1;qt<=zt;++qt)ut(nt);Yt&=15}M=32767+j[at],ut(J[(Yt<<4)+A[M]]),ut(b[M]),at++}return kt!=63&&ut(rt),O}function Ct(x){x=Math.min(Math.max(x,1),100),o!=x&&(function(F){for(var O=[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],R=0;R<64;R++){var J=l((O[R]*F+50)/100);J=Math.min(Math.max(J,1),255),h[K[R]]=J}for(var M=[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],rt=0;rt<64;rt++){var nt=l((M[rt]*F+50)/100);nt=Math.min(Math.max(nt,1),255),f[K[rt]]=nt}for(var St=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Nt=0,_t=0;_t<8;_t++)for(var kt=0;kt<8;kt++)g[Nt]=1/(h[K[Nt]]*St[_t]*St[kt]*8),v[Nt]=1/(f[K[Nt]]*St[_t]*St[kt]*8),Nt++}(x<50?Math.floor(5e3/x):Math.floor(200-2*x)),o=x)}this.encode=function(x,F){F&&Ct(F),k=new Array,D=0,_=7,ht(65496),ht(65504),ht(16),tt(74),tt(70),tt(73),tt(70),tt(0),tt(1),tt(1),tt(0),ht(1),ht(1),tt(0),tt(0),function(){ht(65499),ht(132),tt(0);for(var bt=0;bt<64;bt++)tt(h[bt]);tt(1);for(var Et=0;Et<64;Et++)tt(f[Et])}(),function(bt,Et){ht(65472),ht(17),tt(8),ht(Et),ht(bt),tt(3),tt(1),tt(17),tt(0),tt(2),tt(17),tt(1),tt(3),tt(17),tt(1)}(x.width,x.height),function(){ht(65476),ht(418),tt(0);for(var bt=0;bt<16;bt++)tt(U[bt+1]);for(var Et=0;Et<=11;Et++)tt(et[Et]);tt(16);for(var Dt=0;Dt<16;Dt++)tt(pt[Dt+1]);for(var Ut=0;Ut<=161;Ut++)tt(P[Ut]);tt(1);for(var Jt=0;Jt<16;Jt++)tt(I[Jt+1]);for(var te=0;te<=11;te++)tt(H[te]);tt(17);for(var ie=0;ie<16;ie++)tt(T[ie+1]);for(var Gt=0;Gt<=161;Gt++)tt(st[Gt])}(),ht(65498),ht(12),tt(3),tt(1),tt(0),tt(2),tt(17),tt(3),tt(17),tt(0),tt(63),tt(0);var O=0,R=0,J=0;
vendor: 2,125 bytes, lines 159-165
159D=0,_=7,this.encode.displayName="_encode_";for(var M,rt,nt,St,Nt,_t,kt,zt,at,q=x.data,Yt=x.width,qt=x.height,At=4*Yt,Pt=0;Pt<qt;){for(M=0;M<At;){for(Nt=At*Pt+M,kt=-1,zt=0,at=0;at<64;at++)_t=Nt+(zt=at>>3)*At+(kt=4*(7&at)),Pt+zt>=qt&&(_t-=At*(Pt+1+zt-qt)),M+kt>=At&&(_t-=M+kt-At+4),rt=q[_t++],nt=q[_t++],St=q[_t++],B[at]=(xt[rt]+xt[nt+256>>0]+xt[St+512>>0]>>16)-128,Y[at]=(xt[rt+768>>0]+xt[nt+1024>>0]+xt[St+1280>>0]>>16)-128,ot[at]=(xt[rt+1280>>0]+xt[nt+1536>>0]+xt[St+1792>>0]>>16)-128;O=gt(B,g,O,e,a),R=gt(Y,v,R,n,s),J=gt(ot,v,J,n,s),M+=32}Pt+=8}if(_>=0){var dt=[];dt[1]=_+1,dt[0]=(1<<_+1)-1,ut(dt)}return ht(65497),new Uint8Array(k)},r=r||50,function(){for(var x=String.fromCharCode,F=0;F<256;F++)lt[F]=x(F)}(),e=it(U,et),n=it(I,H),a=it(pt,P),s=it(T,st),function(){for(var x=1,F=2,O=1;O<=15;O++){for(var R=x;R<F;R++)A[32767+R]=O,b[32767+R]=[],b[32767+R][1]=O,b[32767+R][0]=R;for(var J=-(F-1);J<=-x;J++)A[32767+J]=O,b[32767+J]=[],b[32767+J][1]=O,b[32767+J][0]=F-1+J;x<<=1,F<<=1}}(),function(){for(var x=0;x<256;x++)xt[x]=19595*x,xt[x+256>>0]=38470*x,xt[x+512>>0]=7471*x+32768,xt[x+768>>0]=-11059*x,xt[x+1024>>0]=-21709*x,xt[x+1280>>0]=32768*x+8421375,xt[x+1536>>0]=-27439*x,xt[x+1792>>0]=-5329*x}(),Ct(r)}/**
160 * @license
161 * Copyright (c) 2017 Aras Abbasi
162 *
163 * Licensed under the MIT License.
164 * http://opensource.org/licenses/mit-license
165 */function zn(r,e){if(this.pos=0,this.buffer=r,this.datav=new DataView(r.buffer),this.is_with_alpha=!!e,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 Mc(r){function e(U){if(!U)throw Error("assert :P")}function n(U,et,pt){for(var P=0;4>P;P++)if(U[et+P]!=pt.charCodeAt(P))return!0;return!1}function a(U,et,pt,P,I){for(var H=0;H<I;H++)U[et+H]=pt[P+H]}function s(U,et,pt,P){for(var I=0;I<P;I++)U[et+I]=pt}function o(U){return new Int32Array(U)}function l(U,et){for(var pt=[],P=0;P<U;P++)pt.push(new et);return pt}function h(U,et){var pt=[];return function P(I,H,T){for(var st=T[H],it=0;
vendor: 47,540 bytes, line 165
165it<st&&(I.push(T.length>H+1?[]:new et),!(T.length<H+1));it++)P(I[it],H+1,T)}(pt,0,U),pt}var f=function(){var U=this;function et(t,i){for(var u=1<<i-1>>>0;t&u;)u>>>=1;return u?(t&u-1)+u:t}function pt(t,i,u,d,m){e(!(d%u));do t[i+(d-=u)]=m;while(0<d)}function P(t,i,u,d,m){if(e(2328>=m),512>=m)var w=o(512);else if((w=o(m))==null)return 0;return function(L,N,S,C,W,Z){var Q,$,yt=N,ct=1<<S,V=o(16),G=o(16);for(e(W!=0),e(C!=null),e(L!=null),e(0<S),$=0;$<W;++$){if(15<C[$])return 0;++V[C[$]]}if(V[0]==W)return 0;for(G[1]=0,Q=1;15>Q;++Q){if(V[Q]>1<<Q)return 0;G[Q+1]=G[Q]+V[Q]}for($=0;$<W;++$)Q=C[$],0<C[$]&&(Z[G[Q]++]=$);if(G[15]==1)return(C=new I).g=0,C.value=Z[0],pt(L,yt,1,ct,C),ct;var mt,wt=-1,vt=ct-1,Ot=0,It=1,Rt=1,Ft=1<<S;for($=0,Q=1,W=2;Q<=S;++Q,W<<=1){if(It+=Rt<<=1,0>(Rt-=V[Q]))return 0;for(;0<V[Q];--V[Q])(C=new I).g=Q,C.value=Z[$++],pt(L,yt+Ot,W,Ft,C),Ot=et(Ot,Q)}for(Q=S+1,W=2;15>=Q;++Q,W<<=1){if(It+=Rt<<=1,0>(Rt-=V[Q]))return 0;for(;0<V[Q];--V[Q]){if(C=new I,(Ot&vt)!=wt){for(yt+=Ft,mt=1<<(wt=Q)-S;15>wt&&!(0>=(mt-=V[wt]));)++wt,mt<<=1;ct+=Ft=1<<(mt=wt-S),L[N+(wt=Ot&vt)].g=mt+S,L[N+wt].value=yt-N-wt}C.g=Q-S,C.value=Z[$++],pt(L,yt+(Ot>>S),W,Ft,C),Ot=et(Ot,Q)}}return It!=2*G[15]-1?0:ct}(t,i,u,d,m,w)}function I(){this.value=this.g=0}function H(){this.value=this.g=0}function T(){this.G=l(5,I),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=l(Ye,H)}function st(t,i,u,d){e(t!=null),e(i!=null),e(2147483648>d),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=i,t.pa=u,t.Jd=i,t.Yc=u+d,t.Zc=4<=d?u+d-4+1:u,M(t)}function it(t,i){for(var u=0;0<i--;)u|=nt(t,128)<<i;return u}function ut(t,i){var u=it(t,i);return rt(t)?-u:u}function tt(t,i,u,d){var m,w=0;for(e(t!=null),e(i!=null),e(4294967288>d),t.Sb=d,t.Ra=0,t.u=0,t.h=0,4<d&&(d=4),m=0;m<d;++m)w+=i[u+m]<<8*m;t.Ra=w,t.bb=d,t.oa=i,t.pa=u}function ht(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<yi-8>>>0,++t.bb,t.u-=8;O(t)&&(t.h=1,t.u=0)}function gt(t,i){if(e(0<=i),!t.h&&i<=bi){var u=F(t)&vi[i];return t.u+=i,ht(t),u}return t.h=1,t.u=0}function Ct(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function x(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function F(t){return t.Ra>>>(t.u&yi-1)>>>0}function O(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>yi}function R(t,i){t.u=i,t.h=O(t)}function J(t){t.u>=ia&&(e(t.u>=ia),ht(t))}function M(t){e(t!=null&&t.oa!=null),t.pa<t.Zc?(t.I=(t.oa[t.pa++]|t.I<<8)>>>0,t.b+=8):(e(t!=null&&t.oa!=null),t.pa<t.Yc?(t.b+=8,t.I=t.oa[t.pa++]|t.I<<8):t.Ka?t.b=0:(t.I<<=8,t.b+=8,t.Ka=1))}function rt(t){return it(t,1)}function nt(t,i){var u=t.Ca;0>t.b&&M(t);var d=t.b,m=u*i>>>8,w=(t.I>>>d>m)+0;for(w?(u-=m,t.I-=m+1<<d>>>0):u=m+1,d=u,m=0;256<=d;)m+=8,d>>=8;return d=7^m+un[d],t.b-=d,t.Ca=(u<<d)-1,w}function St(t,i,u){t[i+0]=u>>24&255,t[i+1]=u>>16&255,t[i+2]=u>>8&255,t[i+3]=u>>0&255}function Nt(t,i){return t[i+0]<<0|t[i+1]<<8}function _t(t,i){return Nt(t,i)|t[i+2]<<16}function kt(t,i){return Nt(t,i)|Nt(t,i+2)<<16}function zt(t,i){var u=1<<i;return e(t!=null),e(0<i),t.X=o(u),t.X==null?0:(t.Mb=32-i,t.Xa=i,1)}function at(t,i){e(t!=null),e(i!=null),e(t.Xa==i.Xa),a(i.X,0,t.X,0,1<<i.Xa)}function q(){this.X=[],this.Xa=this.Mb=0}function Yt(t,i,u,d){e(u!=null),e(d!=null);var m=u[0],w=d[0];return m==0&&(m=(t*w+i/2)/i),w==0&&(w=(i*m+t/2)/t),0>=m||0>=w?0:(u[0]=m,d[0]=w,1)}function qt(t,i){return t+(1<<i)-1>>>i}function At(t,i){return((4278255360&t)+(4278255360&i)>>>0&4278255360)+((16711935&t)+(16711935&i)>>>0&16711935)>>>0}function Pt(t,i){U[i]=function(u,d,m,w,L,N,S){var C;for(C=0;C<L;++C){var W=U[t](N[S+C-1],m,w+C);N[S+C]=At(u[d+C],W)}}}function dt(){this.ud=this.hd=this.jd=0}function bt(t,i){return((4278124286&(t^i))>>>1)+(t&i)>>>0}function Et(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function Dt(t,i){return Et(t+(t-i+.5>>1))}function Ut(t,i,u){return Math.abs(i-u)-Math.abs(t-u)}function Jt(t,i,u,d,m,w,L){for(d=w[L-1],u=0;u<m;++u)w[L+u]=d=At(t[i+u],d)}function te(t,i,u,d,m){var w;for(w=0;w<u;++w){var L=t[i+w],N=L>>8&255,S=16711935&(S=(S=16711935&L)+((N<<16)+N));d[m+w]=(4278255360&L)+S>>>0}}function ie(t,i){i.jd=t>>0&255,i.hd=t>>8&255,i.ud=t>>16&255}function Gt(t,i,u,d,m,w){var L;for(L=0;L<d;++L){var N=i[u+L],S=N>>>8,C=N,W=255&(W=(W=N>>>16)+((t.jd<<24>>24)*(S<<24>>24)>>>5));C=255&(C=(C=C+((t.hd<<24>>24)*(S<<24>>24)>>>5))+((t.ud<<24>>24)*(W<<24>>24)>>>5)),m[w+L]=(4278255360&N)+(W<<16)+C}}function ne(t,i,u,d,m){U[i]=function(w,L,N,S,C,W,Z,Q,$){for(S=Z;S<Q;++S)for(Z=0;Z<$;++Z)C[W++]=m(N[d(w[L++])])},U[t]=function(w,L,N,S,C,W,Z){var Q=8>>w.b,$=w.Ea,yt=w.K[0],ct=w.w;if(8>Q)for(w=(1<<w.b)-1,ct=(1<<Q)-1;L<N;++L){var V,G=0;for(V=0;V<$;++V)V&w||(G=d(S[C++])),W[Z++]=m(yt[G&ct]),G>>=Q}else U["VP8LMapColor"+u](S,C,yt,ct,W,Z,L,N,$)}}function jt(t,i,u,d,m){for(u=i+u;i<u;){var w=t[i++];d[m++]=w>>16&255,d[m++]=w>>8&255,d[m++]=w>>0&255}}function Xe(t,i,u,d,m){for(u=i+u;i<u;){var w=t[i++];d[m++]=w>>16&255,d[m++]=w>>8&255,d[m++]=w>>0&255,d[m++]=w>>24&255}}function se(t,i,u,d,m){for(u=i+u;i<u;){var w=(L=t[i++])>>16&240|L>>12&15,L=L>>0&240|L>>28&15;d[m++]=w,d[m++]=L}}function In(t,i,u,d,m){for(u=i+u;i<u;){var w=(L=t[i++])>>16&248|L>>13&7,L=L>>5&224|L>>3&31;d[m++]=w,d[m++]=L}}function pe(t,i,u,d,m){for(u=i+u;i<u;){var w=t[i++];d[m++]=w>>0&255,d[m++]=w>>8&255,d[m++]=w>>16&255}}function xe(t,i,u,d,m,w){if(w==0)for(u=i+u;i<u;)St(d,((w=t[i++])[0]>>24|w[1]>>8&65280|w[2]<<8&16711680|w[3]<<24)>>>0),m+=32;else a(d,m,t,i,u)}function Vn(t,i){U[i][0]=U[t+"0"],U[i][1]=U[t+"1"],U[i][2]=U[t+"2"],U[i][3]=U[t+"3"],U[i][4]=U[t+"4"],U[i][5]=U[t+"5"],U[i][6]=U[t+"6"],U[i][7]=U[t+"7"],U[i][8]=U[t+"8"],U[i][9]=U[t+"9"],U[i][10]=U[t+"10"],U[i][11]=U[t+"11"],U[i][12]=U[t+"12"],U[i][13]=U[t+"13"],U[i][14]=U[t+"0"],U[i][15]=U[t+"0"]}function le(t){return t==rs||t==is||t==Ka||t==as}function qr(){this.eb=[],this.size=this.A=this.fb=0}function Ae(){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 Cn(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new qr,this.f.kb=new Ae,this.sd=null}function ar(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Se(){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 Xt(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function ue(t,i){var u=t.T,d=i.ba.f.RGBA,m=d.eb,w=d.fb+t.ka*d.A,L=Pn[i.ba.S],N=t.y,S=t.O,C=t.f,W=t.N,Z=t.ea,Q=t.W,$=i.cc,yt=i.dc,ct=i.Mc,V=i.Nc,G=t.ka,mt=t.ka+t.T,wt=t.U,vt=wt+1>>1;for(G==0?L(N,S,null,null,C,W,Z,Q,C,W,Z,Q,m,w,null,null,wt):(L(i.ec,i.fc,N,S,$,yt,ct,V,C,W,Z,Q,m,w-d.A,m,w,wt),++u);G+2<mt;G+=2)$=C,yt=W,ct=Z,V=Q,W+=t.Rc,Q+=t.Rc,w+=2*d.A,L(N,(S+=2*t.fa)-t.fa,N,S,$,yt,ct,V,C,W,Z,Q,m,w-d.A,m,w,wt);return S+=t.fa,t.j+mt<t.o?(a(i.ec,i.fc,N,S,wt),a(i.cc,i.dc,C,W,vt),a(i.Mc,i.Nc,Z,Q,vt),u--):1&mt||L(N,S,null,null,C,W,Z,Q,C,W,Z,Q,m,w+d.A,null,null,wt),u}function Dr(t,i,u){var d=t.F,m=[t.J];if(d!=null){var w=t.U,L=i.ba.S,N=L==Xa||L==Ka;i=i.ba.f.RGBA;var S=[0],C=t.ka;S[0]=t.T,t.Kb&&(C==0?--S[0]:(--C,m[0]-=t.width),t.j+t.ka+t.T==t.o&&(S[0]=t.o-t.j-C));var W=i.eb;C=i.fb+C*i.A,t=ye(d,m[0],t.width,w,S,W,C+(N?0:3),i.A),e(u==S),t&&le(L)&&Sn(W,C,N,w,S,i.A)}return 0}function Ge(t){var i=t.ma,u=i.ba.S,d=11>u,m=u==Ja||u==$a||u==Xa||u==ns||u==12||le(u);if(i.memory=null,i.Ib=null,i.Jb=null,i.Nd=null,!na(i.Oa,t,m?11:12))return 0;if(m&&le(u)&&Lt(),t.da)alert("todo:use_scaling");else{if(d){if(i.Ib=Xt,t.Kb){if(u=t.U+1>>1,i.memory=o(t.U+2*u),i.memory==null)return 0;i.ec=i.memory,i.fc=0,i.cc=i.ec,i.dc=i.fc+t.U,i.Mc=i.cc,i.Nc=i.dc+u,i.Ib=ue,Lt()}}else alert("todo:EmitYUV");m&&(i.Jb=Dr,d&&X())}if(d&&!tc){for(t=0;256>t;++t)Cl[t]=89858*(t-128)+Qa>>Za,El[t]=-22014*(t-128)+Qa,jl[t]=-45773*(t-128),Fl[t]=113618*(t-128)+Qa>>Za;for(t=ha;t<cs;++t)i=76283*(t-16)+Qa>>Za,Bl[t-ha]=mn(i,255),Ol[t-ha]=mn(i+8>>4,15);tc=1}return 1}function Gn(t){var i=t.ma,u=t.U,d=t.T;return e(!(1&t.ka)),0>=u||0>=d?0:(u=i.Ib(t,i),i.Jb!=null&&i.Jb(t,i,u),i.Dc+=u,1)}function Yn(t){t.ma.memory=null}function Ht(t,i,u,d){return gt(t,8)!=47?0:(i[0]=gt(t,14)+1,u[0]=gt(t,14)+1,d[0]=gt(t,1),gt(t,3)!=0?0:!t.h)}function Fn(t,i){if(4>t)return t+1;var u=t-2>>1;return(2+(1&t)<<u)+gt(i,u)+1}function Jn(t,i){return 120<i?i-120:1<=(u=((u=ml[i-1])>>4)*t+(8-(15&u)))?u:1;var u}function cn(t,i,u){var d=F(u),m=t[i+=255&d].g-8;return 0<m&&(R(u,u.u+8),d=F(u),i+=t[i].value,i+=d&(1<<m)-1),R(u,u.u+t[i].g),t[i].value}function Re(t,i,u){return u.g+=t.g,u.value+=t.value<<i>>>0,e(8>=u.g),t.g}function Me(t,i,u){var d=t.xc;return e((i=d==0?0:t.vc[t.md*(u>>d)+(i>>d)])<t.Wb),t.Ya[i]}function gn(t,i,u,d){var m=t.ab,w=t.c*i,L=t.C;i=L+i;var N=u,S=d;for(d=t.Ta,u=t.Ua;0<m--;){var C=t.gc[m],W=L,Z=i,Q=N,$=S,yt=(S=d,N=u,C.Ea);switch(e(W<Z),e(Z<=C.nc),C.hc){case 2:za(Q,$,(Z-W)*yt,S,N);break;case 0:var ct=W,V=Z,G=S,mt=N,wt=(Ft=C).Ea;ct==0&&(ts(Q,$,null,null,1,G,mt),Jt(Q,$+1,0,0,wt-1,G,mt+1),$+=wt,mt+=wt,++ct);for(var vt=1<<Ft.b,Ot=vt-1,It=qt(wt,Ft.b),Rt=Ft.K,Ft=Ft.w+(ct>>Ft.b)*It;ct<V;){var ce=Rt,he=Ft,oe=1;for(aa(Q,$,G,mt-wt,1,G,mt);oe<wt;){var re=(oe&~Ot)+vt;re>wt&&(re=wt),(0,xr[ce[he++]>>8&15])(Q,$+ +oe,G,mt+oe-wt,re-oe,G,mt+oe),oe=re}$+=wt,mt+=wt,++ct&Ot||(Ft+=It)}Z!=C.nc&&a(S,N-yt,S,N+(Z-W-1)*yt,yt);break;case 1:for(yt=Q,V=$,wt=(Q=C.Ea)-(mt=Q&~(G=($=1<<C.b)-1)),ct=qt(Q,C.b),vt=C.K,C=C.w+(W>>C.b)*ct;W<Z;){for(Ot=vt,It=C,Rt=new dt,Ft=V+mt,ce=V+Q;V<Ft;)ie(Ot[It++],Rt),Wr(Rt,yt,V,$,S,N),V+=$,N+=$;V<ce&&(ie(Ot[It++],Rt),Wr(Rt,yt,V,wt,S,N),V+=wt,N+=wt),++W&G||(C+=ct)}break;case 3:if(Q==S&&$==N&&0<C.b){for(V=S,Q=yt=N+(Z-W)*yt-(mt=(Z-W)*qt(C.Ea,C.b)),$=S,G=N,ct=[],mt=(wt=mt)-1;0<=mt;--mt)ct[mt]=$[G+mt];for(mt=wt-1;0<=mt;--mt)V[Q+mt]=ct[mt];Ln(C,W,Z,S,yt,S,N)}else Ln(C,W,Z,Q,$,S,N)}N=d,S=u}S!=u&&a(d,u,N,S,w)}function ti(t,i){var u=t.V,d=t.Ba+t.c*t.C,m=i-t.C;if(e(i<=t.l.o),e(16>=m),0<m){var w=t.l,L=t.Ta,N=t.Ua,S=w.width;if(gn(t,m,u,d),m=N=[N],e((u=t.C)<(d=i)),e(w.v<w.va),d>w.o&&(d=w.o),u<w.j){var C=w.j-u;u=w.j,m[0]+=C*S}if(u>=d?u=0:(m[0]+=4*w.v,w.ka=u-w.j,w.U=w.va-w.v,w.T=d-u,u=1),u){if(N=N[0],11>(u=t.ca).S){var W=u.f.RGBA,Z=(d=u.S,m=w.U,w=w.T,C=W.eb,W.A),Q=w;for(W=W.fb+t.Ma*W.A;0<Q--;){var $=L,yt=N,ct=m,V=C,G=W;switch(d){case Ya:hn($,yt,ct,V,G);break;case Ja:an($,yt,ct,V,G);break;case rs:an($,yt,ct,V,G),Sn(V,G,0,ct,1,0);break;case Vs:ur($,yt,ct,V,G);break;case $a:xe($,yt,ct,V,G,1);break;case is:xe($,yt,ct,V,G,1),Sn(V,G,0,ct,1,0);break;case Xa:xe($,yt,ct,V,G,0);break;case Ka:xe($,yt,ct,V,G,0),Sn(V,G,1,ct,1,0);break;case ns:Lr($,yt,ct,V,G);break;case as:Lr($,yt,ct,V,G),be(V,G,ct,1,0);break;case Gs:lr($,yt,ct,V,G);break;default:e(0)}N+=S,W+=Z}t.Ma+=w}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=u.height)}}t.C=i,e(t.C<=t.i)}function or(t){var i;if(0<t.ua)return 0;for(i=0;i<t.Wb;++i){var u=t.Ya[i].G,d=t.Ya[i].H;if(0<u[1][d[1]+0].g||0<u[2][d[2]+0].g||0<u[3][d[3]+0].g)return 0}return 1}function jn(t,i,u,d,m,w){if(t.Z!=0){var L=t.qd,N=t.rd;for(e(_r[t.Z]!=null);i<u;++i)_r[t.Z](L,N,d,m,d,m,w),L=d,N=m,m+=w;t.qd=L,t.rd=N}}function En(t,i){var u=t.l.ma,d=u.Z==0||u.Z==1?t.l.j:t.C;if(d=t.C<d?d:t.C,e(i<=t.l.o),i>d){var m=t.l.width,w=u.ca,L=u.tb+m*d,N=t.V,S=t.Ba+t.c*d,C=t.gc;e(t.ab==1),e(C[0].hc==3),Ua(C[0],d,i,N,S,w,L),jn(u,d,i,w,L,m)}t.C=t.Ma=i}function Bn(t,i,u,d,m,w,L){var N=t.$/d,S=t.$%d,C=t.m,W=t.s,Z=u+t.$,Q=Z;m=u+d*m;var $=u+d*w,yt=280+W.ua,ct=t.Pb?N:16777216,V=0<W.ua?W.Wa:null,G=W.wc,mt=Z<$?Me(W,S,N):null;e(t.C<w),e($<=m);var wt=!1;t:for(;;){for(;wt||Z<$;){var vt=0;if(N>=ct){var Ot=Z-u;e((ct=t).Pb),ct.wd=ct.m,ct.xd=Ot,0<ct.s.ua&&at(ct.s.Wa,ct.s.vb),ct=N+bl}if(S&G||(mt=Me(W,S,N)),e(mt!=null),mt.Qb&&(i[Z]=mt.qb,wt=!0),!wt)if(J(C),mt.jc){vt=C,Ot=i;var It=Z,Rt=mt.pd[F(vt)&Ye-1];e(mt.jc),256>Rt.g?(R(vt,vt.u+Rt.g),Ot[It]=Rt.value,vt=0):(R(vt,vt.u+Rt.g-256),e(256<=Rt.value),vt=Rt.value),vt==0&&(wt=!0)}else vt=cn(mt.G[0],mt.H[0],C);if(C.h)break;if(wt||256>vt){if(!wt)if(mt.nd)i[Z]=(mt.qb|vt<<8)>>>0;else{if(J(C),wt=cn(mt.G[1],mt.H[1],C),J(C),Ot=cn(mt.G[2],mt.H[2],C),It=cn(mt.G[3],mt.H[3],C),C.h)break;i[Z]=(It<<24|wt<<16|vt<<8|Ot)>>>0}if(wt=!1,++Z,++S>=d&&(S=0,++N,L!=null&&N<=w&&!(N%16)&&L(t,N),V!=null))for(;Q<Z;)vt=i[Q++],V.X[(506832829*vt&4294967295)>>>V.Mb]=vt}else if(280>vt){if(vt=Fn(vt-256,C),Ot=cn(mt.G[4],mt.H[4],C),J(C),Ot=Jn(d,Ot=Fn(Ot,C)),C.h)break;if(Z-u<Ot||m-Z<vt)break t;for(It=0;It<vt;++It)i[Z+It]=i[Z+It-Ot];for(Z+=vt,S+=vt;S>=d;)S-=d,++N,L!=null&&N<=w&&!(N%16)&&L(t,N);if(e(Z<=m),S&G&&(mt=Me(W,S,N)),V!=null)for(;Q<Z;)vt=i[Q++],V.X[(506832829*vt&4294967295)>>>V.Mb]=vt}else{if(!(vt<yt))break t;for(wt=vt-280,e(V!=null);Q<Z;)vt=i[Q++],V.X[(506832829*vt&4294967295)>>>V.Mb]=vt;vt=Z,e(!(wt>>>(Ot=V).Xa)),i[vt]=Ot.X[wt],wt=!0}wt||e(C.h==O(C))}if(t.Pb&&C.h&&Z<m)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&at(t.s.vb,t.s.Wa);else{if(C.h)break t;L!=null&&L(t,N>w?w:N),t.a=0,t.$=Z-u}return 1}return t.a=3,0}function $n(t){e(t!=null),t.vc=null,t.yc=null,t.Ya=null;var i=t.Wa;i!=null&&(i.X=null),t.vb=null,e(t!=null)}function xn(){var t=new Qo;return t==null?null:(t.a=0,t.xb=$s,Vn("Predictor","VP8LPredictors"),Vn("Predictor","VP8LPredictors_C"),Vn("PredictorAdd","VP8LPredictorsAdd"),Vn("PredictorAdd","VP8LPredictorsAdd_C"),za=te,Wr=Gt,hn=jt,an=Xe,Lr=se,lr=In,ur=pe,U.VP8LMapColor32b=wi,U.VP8LMapColor8b=Ha,t)}function Xn(t,i,u,d,m){var w=1,L=[t],N=[i],S=d.m,C=d.s,W=null,Z=0;t:for(;;){if(u)for(;w&&gt(S,1);){var Q=L,$=N,yt=d,ct=1,V=yt.m,G=yt.gc[yt.ab],mt=gt(V,2);if(yt.Oc&1<<mt)w=0;else{switch(yt.Oc|=1<<mt,G.hc=mt,G.Ea=Q[0],G.nc=$[0],G.K=[null],++yt.ab,e(4>=yt.ab),mt){case 0:case 1:G.b=gt(V,3)+2,ct=Xn(qt(G.Ea,G.b),qt(G.nc,G.b),0,yt,G.K),G.K=G.K[0];break;case 3:var wt,vt=gt(V,8)+1,Ot=16<vt?0:4<vt?1:2<vt?2:3;if(Q[0]=qt(G.Ea,Ot),G.b=Ot,wt=ct=Xn(vt,1,0,yt,G.K)){var It,Rt=vt,Ft=G,ce=1<<(8>>Ft.b),he=o(ce);if(he==null)wt=0;else{var oe=Ft.K[0],re=Ft.w;for(he[0]=Ft.K[0][0],It=1;It<1*Rt;++It)he[It]=At(oe[re+It],he[It-1]);for(;It<4*ce;++It)he[It]=0;Ft.K[0]=null,Ft.K[0]=he,wt=1}}ct=wt;break;case 2:break;default:e(0)}w=ct}}if(L=L[0],N=N[0],w&&gt(S,1)&&!(w=1<=(Z=gt(S,4))&&11>=Z)){d.a=3;break t}var ge;if(ge=w)e:{var de,ee,De,fn=d,Te=L,dn=N,fe=Z,bn=u,yn=fn.m,He=fn.s,Je=[null],sn=1,kn=0,tr=vl[fe];n:for(;;){if(bn&&gt(yn,1)){var We=gt(yn,3)+2,pr=qt(Te,We),$r=qt(dn,We),Si=pr*$r;if(!Xn(pr,$r,0,fn,Je))break n;for(Je=Je[0],He.xc=We,de=0;de<Si;++de){var Pr=Je[de]>>8&65535;Je[de]=Pr,Pr>=sn&&(sn=Pr+1)}}if(yn.h)break n;for(ee=0;5>ee;++ee){var Pe=Ys[ee];!ee&&0<fe&&(Pe+=1<<fe),kn<Pe&&(kn=Pe)}var ls=l(sn*tr,I),rc=sn,ic=l(rc,T);if(ic==null)var eo=null;else e(65536>=rc),eo=ic;var fa=o(kn);if(eo==null||fa==null||ls==null){fn.a=1;break n}var no=ls;for(de=De=0;de<sn;++de){var Tn=eo[de],_i=Tn.G,Pi=Tn.H,ac=0,ro=1,oc=0;for(ee=0;5>ee;++ee){Pe=Ys[ee],_i[ee]=no,Pi[ee]=De,!ee&&0<fe&&(Pe+=1<<fe);i:{var io,us=Pe,ao=fn,da=fa,Dl=no,Tl=De,hs=0,kr=ao.m,Rl=gt(kr,1);if(s(da,0,0,us),Rl){var zl=gt(kr,1)+1,Ul=gt(kr,1),sc=gt(kr,Ul==0?1:8);da[sc]=1,zl==2&&(da[sc=gt(kr,8)]=1);var oo=1}else{var cc=o(19),lc=gt(kr,4)+4;if(19<lc){ao.a=3;var so=0;break i}for(io=0;io<lc;++io)cc[gl[io]]=gt(kr,3);var fs=void 0,pa=void 0,uc=ao,Hl=cc,co=us,hc=da,ds=0,Ir=uc.m,fc=8,dc=l(128,I);r:for(;P(dc,0,7,Hl,19);){if(gt(Ir,1)){var Wl=2+2*gt(Ir,3);if((fs=2+gt(Ir,Wl))>co)break r}else fs=co;for(pa=0;pa<co&&fs--;){J(Ir);var pc=dc[0+(127&F(Ir))];R(Ir,Ir.u+pc.g);var ki=pc.value;if(16>ki)hc[pa++]=ki,ki!=0&&(fc=ki);else{var Vl=ki==16,gc=ki-16,Gl=dl[gc],mc=gt(Ir,fl[gc])+Gl;if(pa+mc>co)break r;for(var Yl=Vl?fc:0;0<mc--;)hc[pa++]=Yl}}ds=1;break r}ds||(uc.a=3),oo=ds}(oo=oo&&!kr.h)&&(hs=P(Dl,Tl,8,da,us)),oo&&hs!=0?so=hs:(ao.a=3,so=0)}if(so==0)break n;if(ro&&pl[ee]==1&&(ro=no[De].g==0),ac+=no[De].g,De+=so,3>=ee){var ga,ps=fa[0];for(ga=1;ga<Pe;++ga)fa[ga]>ps&&(ps=fa[ga]);oc+=ps}}if(Tn.nd=ro,Tn.Qb=0,ro&&(Tn.qb=(_i[3][Pi[3]+0].value<<24|_i[1][Pi[1]+0].value<<16|_i[2][Pi[2]+0].value)>>>0,ac==0&&256>_i[0][Pi[0]+0].value&&(Tn.Qb=1,Tn.qb+=_i[0][Pi[0]+0].value<<8)),Tn.jc=!Tn.Qb&&6>oc,Tn.jc){var lo,gr=Tn;for(lo=0;lo<Ye;++lo){var Cr=lo,Fr=gr.pd[Cr],uo=gr.G[0][gr.H[0]+Cr];256<=uo.value?(Fr.g=uo.g+256,Fr.value=uo.value):(Fr.g=0,Fr.value=0,Cr>>=Re(uo,8,Fr),Cr>>=Re(gr.G[1][gr.H[1]+Cr],16,Fr),Cr>>=Re(gr.G[2][gr.H[2]+Cr],0,Fr),Re(gr.G[3][gr.H[3]+Cr],24,Fr))}}}He.vc=Je,He.Wb=sn,He.Ya=eo,He.yc=ls,ge=1;break e}ge=0}if(!(w=ge)){d.a=3;break t}if(0<Z){if(C.ua=1<<Z,!zt(C.Wa,Z)){d.a=1,w=0;break t}}else C.ua=0;var gs=d,vc=L,Jl=N,ms=gs.s,vs=ms.xc;if(gs.c=vc,gs.i=Jl,ms.md=qt(vc,vs),ms.wc=vs==0?-1:(1<<vs)-1,u){d.xb=Sl;break t}if((W=o(L*N))==null){d.a=1,w=0;break t}w=(w=Bn(d,W,0,L,N,N,null))&&!S.h;break t}return w?(m!=null?m[0]=W:(e(W==null),e(u)),d.$=0,u||$n(C)):$n(C),w}function Tr(t,i){var u=t.c*t.i,d=u+i+16*i;return e(t.c<=i),t.V=o(d),t.V==null?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+u+i,1)}function ei(t,i){var u=t.C,d=i-u,m=t.V,w=t.Ba+t.c*u;for(e(i<=t.l.o);0<d;){var L=16<d?16:d,N=t.l.ma,S=t.l.width,C=S*L,W=N.ca,Z=N.tb+S*u,Q=t.Ta,$=t.Ua;gn(t,L,m,w),je(Q,$,W,Z,C),jn(N,u,u+L,W,Z,S),d-=L,m+=L*t.c,u+=L}e(u==i),t.C=t.Ma=i}function ni(){this.ub=this.yd=this.td=this.Rb=0}function ri(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ii(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function xa(){this.Yb=function(){var t=[];return function i(u,d,m){for(var w=m[d],L=0;L<w&&(u.push(m.length>d+1?[]:0),!(m.length<d+1));L++)i(u[L],d+1,m)}(t,0,[3,11]),t}()}function Co(){this.jb=o(3),this.Wc=h([4,8],xa),this.Xc=h([4,17],xa)}function Fo(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function ai(){this.ld=this.La=this.dd=this.tc=0}function La(){this.Na=this.la=0}function jo(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ri(){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 Eo(){this.uc=this.M=this.Nb=0,this.wa=Array(new ai),this.Y=0,this.ya=Array(new Ri),this.aa=0,this.l=new oi}function Na(){this.y=o(16),this.f=o(8),this.ea=o(8)}function Bo(){this.cb=this.a=0,this.sc="",this.m=new Ct,this.Od=new ni,this.Kc=new ri,this.ed=new Fo,this.Qa=new ii,this.Ic=this.$c=this.Aa=0,this.D=new Eo,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=l(8,Ct),this.ia=0,this.pb=l(4,jo),this.Pa=new Co,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Na),this.Hd=0,this.rb=Array(new La),this.sb=0,this.wa=Array(new ai),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 Ri),this.L=this.aa=0,this.gd=h([4,2],ai),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 oi(){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 Oo(){var t=new Bo;return t!=null&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,ua||(ua=_a)),t}function Ce(t,i,u){return t.a==0&&(t.a=i,t.sc=u,t.cb=0),0}function Aa(t,i,u){return 3<=u&&t[i+0]==157&&t[i+1]==1&&t[i+2]==42}function Sa(t,i){if(t==null)return 0;if(t.a=0,t.sc="OK",i==null)return Ce(t,2,"null VP8Io passed to VP8GetHeaders()");var u=i.data,d=i.w,m=i.ha;if(4>m)return Ce(t,7,"Truncated header.");var w=u[d+0]|u[d+1]<<8|u[d+2]<<16,L=t.Od;if(L.Rb=!(1&w),L.td=w>>1&7,L.yd=w>>4&1,L.ub=w>>5,3<L.td)return Ce(t,3,"Incorrect keyframe parameters.");if(!L.yd)return Ce(t,4,"Frame not displayable.");d+=3,m-=3;var N=t.Kc;if(L.Rb){if(7>m)return Ce(t,7,"cannot parse picture header");if(!Aa(u,d,m))return Ce(t,3,"Bad code word");N.c=16383&(u[d+4]<<8|u[d+3]),N.Td=u[d+4]>>6,N.i=16383&(u[d+6]<<8|u[d+5]),N.Ud=u[d+6]>>6,d+=7,m-=7,t.za=N.c+15>>4,t.Ub=N.i+15>>4,i.width=N.c,i.height=N.i,i.Da=0,i.j=0,i.v=0,i.va=i.width,i.o=i.height,i.da=0,i.ib=i.width,i.hb=i.height,i.U=i.width,i.T=i.height,s((w=t.Pa).jb,0,255,w.jb.length),e((w=t.Qa)!=null),w.Cb=0,w.Bb=0,w.Fb=1,s(w.Zb,0,0,w.Zb.length),s(w.Lb,0,0,w.Lb)}if(L.ub>m)return Ce(t,7,"bad partition length");st(w=t.m,u,d,L.ub),d+=L.ub,m-=L.ub,L.Rb&&(N.Ld=rt(w),N.Kd=rt(w)),N=t.Qa;var S,C=t.Pa;if(e(w!=null),e(N!=null),N.Cb=rt(w),N.Cb){if(N.Bb=rt(w),rt(w)){for(N.Fb=rt(w),S=0;4>S;++S)N.Zb[S]=rt(w)?ut(w,7):0;for(S=0;4>S;++S)N.Lb[S]=rt(w)?ut(w,6):0}if(N.Bb)for(S=0;3>S;++S)C.jb[S]=rt(w)?it(w,8):255}else N.Bb=0;if(w.Ka)return Ce(t,3,"cannot parse segment header");if((N=t.ed).zd=rt(w),N.Tb=it(w,6),N.wb=it(w,3),N.Pc=rt(w),N.Pc&&rt(w)){for(C=0;4>C;++C)rt(w)&&(N.vd[C]=ut(w,6));for(C=0;4>C;++C)rt(w)&&(N.od[C]=ut(w,6))}if(t.L=N.Tb==0?0:N.zd?1:2,w.Ka)return Ce(t,3,"cannot parse filter header");var W=m;if(m=S=d,d=S+W,N=W,t.Xb=(1<<it(t.m,2))-1,W<3*(C=t.Xb))u=7;else{for(S+=3*C,N-=3*C,W=0;W<C;++W){var Z=u[m+0]|u[m+1]<<8|u[m+2]<<16;Z>N&&(Z=N),st(t.Jc[+W],u,S,Z),S+=Z,N-=Z,m+=3}st(t.Jc[+C],u,S,N),u=S<d?0:5}if(u!=0)return Ce(t,u,"cannot parse partitions");for(u=it(S=t.m,7),m=rt(S)?ut(S,4):0,d=rt(S)?ut(S,4):0,N=rt(S)?ut(S,4):0,C=rt(S)?ut(S,4):0,S=rt(S)?ut(S,4):0,W=t.Qa,Z=0;4>Z;++Z){if(W.Cb){var Q=W.Zb[Z];W.Fb||(Q+=u)}else{if(0<Z){t.pb[Z]=t.pb[0];continue}Q=u}var $=t.pb[Z];$.Sc[0]=os[mn(Q+m,127)],$.Sc[1]=ss[mn(Q+0,127)],$.Eb[0]=2*os[mn(Q+d,127)],$.Eb[1]=101581*ss[mn(Q+N,127)]>>16,8>$.Eb[1]&&($.Eb[1]=8),$.Qc[0]=os[mn(Q+C,117)],$.Qc[1]=ss[mn(Q+S,127)],$.lc=Q+S}if(!L.Rb)return Ce(t,4,"Not a key frame.");for(rt(w),L=t.Pa,u=0;4>u;++u){for(m=0;8>m;++m)for(d=0;3>d;++d)for(N=0;11>N;++N)C=nt(w,Nl[u][m][d][N])?it(w,8):xl[u][m][d][N],L.Wc[u][m].Yb[d][N]=C;for(m=0;17>m;++m)L.Xc[u][m]=L.Wc[u][Al[m]]}return t.kc=rt(w),t.kc&&(t.Bd=it(w,8)),t.cb=1}function _a(t,i,u,d,m,w,L){var N=i[m].Yb[u];for(u=0;16>m;++m){if(!nt(t,N[u+0]))return m;for(;!nt(t,N[u+1]);)if(N=i[++m].Yb[0],u=0,m==16)return 16;var S=i[m+1].Yb;if(nt(t,N[u+2])){var C=t,W=0;if(nt(C,(Q=N)[(Z=u)+3]))if(nt(C,Q[Z+6])){for(N=0,Z=2*(W=nt(C,Q[Z+8]))+(Q=nt(C,Q[Z+9+W])),W=0,Q=yl[Z];Q[N];++N)W+=W+nt(C,Q[N]);W+=3+(8<<Z)}else nt(C,Q[Z+7])?(W=7+2*nt(C,165),W+=nt(C,145)):W=5+nt(C,159);else W=nt(C,Q[Z+4])?3+nt(C,Q[Z+5]):2;N=S[2]}else W=1,N=S[1];S=L+wl[m],0>(C=t).b&&M(C);var Z,Q=C.b,$=(Z=C.Ca>>1)-(C.I>>Q)>>31;--C.b,C.Ca+=$,C.Ca|=1,C.I-=(Z+1&$)<<Q,w[S]=((W^$)-$)*d[(0<m)+0]}return 16}function zi(t){var i=t.rb[t.sb-1];i.la=0,i.Na=0,s(t.zc,0,0,t.zc.length),t.ja=0}function Mo(t,i){if(t==null)return 0;if(i==null)return Ce(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!Sa(t,i))return 0;if(e(t.cb),i.ac==null||i.ac(i)){i.ob&&(t.L=0);var u=to[t.L];if(t.L==2?(t.yb=0,t.zb=0):(t.yb=i.v-u>>4,t.zb=i.j-u>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=i.o+15+u>>4,t.Hb=i.va+15+u>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var d=t.ed;for(u=0;4>u;++u){var m;if(t.Qa.Cb){var w=t.Qa.Lb[u];t.Qa.Fb||(w+=d.Tb)}else w=d.Tb;for(m=0;1>=m;++m){var L=t.gd[u][m],N=w;if(d.Pc&&(N+=d.vd[0],m&&(N+=d.od[0])),0<(N=0>N?0:63<N?63:N)){var S=N;0<d.wb&&(S=4<d.wb?S>>2:S>>1)>9-d.wb&&(S=9-d.wb),1>S&&(S=1),L.dd=S,L.tc=2*N+S,L.ld=40<=N?2:15<=N?1:0}else L.tc=0;L.La=m}}}u=0}else Ce(t,6,"Frame setup failed"),u=t.a;if(u=u==0){if(u){t.$c=0,0<t.Aa||(t.Ic=ql);t:{u=t.Ic,d=4*(S=t.za);var C=32*S,W=S+1,Z=0<t.L?S*(0<t.Aa?2:1):0,Q=(t.Aa==2?2:1)*S;if((L=d+832+(m=3*(16*u+to[t.L])/2*C)+(w=t.Fa!=null&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=L)u=0;else{if(L>t.Vb){if(t.Vb=0,t.Ec=o(L),t.Fc=0,t.Ec==null){u=Ce(t,1,"no memory during frame initialization.");break t}t.Vb=L}L=t.Ec,N=t.Fc,t.Ac=L,t.Bc=N,N+=d,t.Gd=l(C,Na),t.Hd=0,t.rb=l(W+1,La),t.sb=1,t.wa=Z?l(Z,ai):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=S),e(!0),t.oc=L,t.pc=N,N+=832,t.ya=l(Q,Ri),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,t.Aa==2&&(t.D.aa+=S),t.R=16*S,t.B=8*S,S=(C=to[t.L])*t.R,C=C/2*t.B,t.sa=L,t.ta=N+S,t.qa=t.sa,t.ra=t.ta+16*u*t.R+C,t.Ha=t.qa,t.Ia=t.ra+8*u*t.B+C,t.$c=0,N+=m,t.mb=w?L:null,t.nb=w?N:null,e(N+w<=t.Fc+t.Vb),zi(t),s(t.Ac,t.Bc,0,d),u=1}}if(u){if(i.ka=0,i.y=t.sa,i.O=t.ta,i.f=t.qa,i.N=t.ra,i.ea=t.Ha,i.Vd=t.Ia,i.fa=t.R,i.Rc=t.B,i.F=null,i.J=0,!Va){for(u=-255;255>=u;++u)ze[255+u]=0>u?-u:u;for(u=-1020;1020>=u;++u)fr[1020+u]=-128>u?-128:127<u?127:u;for(u=-112;112>=u;++u)la[112+u]=-16>u?-16:15<u?15:u;for(u=-255;510>=u;++u)Ai[255+u]=0>u?0:255<u?255:u;Va=1}xi=To,hr=qo,oa=ka,on=Do,Nn=Ia,Fe=Pa,Li=Yi,Wa=Ur,sa=Zo,Vr=Ji,Gr=Ko,Nr=fi,Yr=$i,Ni=Da,Jr=qa,Ar=Zn,ca=cr,An=Xo,Dn[0]=Kn,Dn[1]=Ro,Dn[2]=Wo,Dn[3]=Vo,Dn[4]=ja,Dn[5]=ui,Dn[6]=Ea,Dn[7]=Wi,Dn[8]=Yo,Dn[9]=Go,Sr[0]=Ca,Sr[1]=Uo,Sr[2]=sr,Sr[3]=ci,Sr[4]=Ke,Sr[5]=Ho,Sr[6]=Fa,dr[0]=br,dr[1]=zo,dr[2]=Jo,dr[3]=Vi,dr[4]=zr,dr[5]=$o,dr[6]=Gi,u=1}else u=0}u&&(u=function($,yt){for($.M=0;$.M<$.Va;++$.M){var ct,V=$.Jc[$.M&$.Xb],G=$.m,mt=$;for(ct=0;ct<mt.za;++ct){var wt=G,vt=mt,Ot=vt.Ac,It=vt.Bc+4*ct,Rt=vt.zc,Ft=vt.ya[vt.aa+ct];if(vt.Qa.Bb?Ft.$b=nt(wt,vt.Pa.jb[0])?2+nt(wt,vt.Pa.jb[2]):nt(wt,vt.Pa.jb[1]):Ft.$b=0,vt.kc&&(Ft.Ad=nt(wt,vt.Bd)),Ft.Za=!nt(wt,145)+0,Ft.Za){var ce=Ft.Ob,he=0;for(vt=0;4>vt;++vt){var oe,re=Rt[0+vt];for(oe=0;4>oe;++oe){re=Ll[Ot[It+oe]][re];for(var ge=Js[nt(wt,re[0])];0<ge;)ge=Js[2*ge+nt(wt,re[ge])];re=-ge,Ot[It+oe]=re}a(ce,he,Ot,It,4),he+=4,Rt[0+vt]=re}}else re=nt(wt,156)?nt(wt,128)?1:3:nt(wt,163)?2:0,Ft.Ob[0]=re,s(Ot,It,re,4),s(Rt,0,re,4);Ft.Dd=nt(wt,142)?nt(wt,114)?nt(wt,183)?1:3:2:0}if(mt.m.Ka)return Ce($,7,"Premature end-of-partition0 encountered.");for(;$.ja<$.za;++$.ja){if(mt=V,wt=(G=$).rb[G.sb-1],Ot=G.rb[G.sb+G.ja],ct=G.ya[G.aa+G.ja],It=G.kc?ct.Ad:0)wt.la=Ot.la=0,ct.Za||(wt.Na=Ot.Na=0),ct.Hc=0,ct.Gc=0,ct.ia=0;else{var de,ee;if(wt=Ot,Ot=mt,It=G.Pa.Xc,Rt=G.ya[G.aa+G.ja],Ft=G.pb[Rt.$b],vt=Rt.ad,ce=0,he=G.rb[G.sb-1],re=oe=0,s(vt,ce,0,384),Rt.Za)var De=0,fn=It[3];else{ge=o(16);var Te=wt.Na+he.Na;if(Te=ua(Ot,It[1],Te,Ft.Eb,0,ge,0),wt.Na=he.Na=(0<Te)+0,1<Te)xi(ge,0,vt,ce);else{var dn=ge[0]+3>>3;for(ge=0;256>ge;ge+=16)vt[ce+ge]=dn}De=1,fn=It[0]}var fe=15&wt.la,bn=15&he.la;for(ge=0;4>ge;++ge){var yn=1&bn;for(dn=ee=0;4>dn;++dn)fe=fe>>1|(yn=(Te=ua(Ot,fn,Te=yn+(1&fe),Ft.Sc,De,vt,ce))>De)<<7,ee=ee<<2|(3<Te?3:1<Te?2:vt[ce+0]!=0),ce+=16;fe>>=4,bn=bn>>1|yn<<7,oe=(oe<<8|ee)>>>0}for(fn=fe,De=bn>>4,de=0;4>de;de+=2){for(ee=0,fe=wt.la>>4+de,bn=he.la>>4+de,ge=0;2>ge;++ge){for(yn=1&bn,dn=0;2>dn;++dn)Te=yn+(1&fe),fe=fe>>1|(yn=0<(Te=ua(Ot,It[2],Te,Ft.Qc,0,vt,ce)))<<3,ee=ee<<2|(3<Te?3:1<Te?2:vt[ce+0]!=0),ce+=16;fe>>=2,bn=bn>>1|yn<<5}re|=ee<<4*de,fn|=fe<<4<<de,De|=(240&bn)<<de}wt.la=fn,he.la=De,Rt.Hc=oe,Rt.Gc=re,Rt.ia=43690&re?0:Ft.ia,It=!(oe|re)}if(0<G.L&&(G.wa[G.Y+G.ja]=G.gd[ct.$b][ct.Za],G.wa[G.Y+G.ja].La|=!It),mt.Ka)return Ce($,7,"Premature end-of-file encountered.")}if(zi($),G=yt,mt=1,ct=(V=$).D,wt=0<V.L&&V.M>=V.zb&&V.M<=V.Va,V.Aa==0)t:{if(ct.M=V.M,ct.uc=wt,ea(V,ct),mt=1,ct=(ee=V.D).Nb,wt=(re=to[V.L])*V.R,Ot=re/2*V.B,ge=16*ct*V.R,dn=8*ct*V.B,It=V.sa,Rt=V.ta-wt+ge,Ft=V.qa,vt=V.ra-Ot+dn,ce=V.Ha,he=V.Ia-Ot+dn,bn=(fe=ee.M)==0,oe=fe>=V.Va-1,V.Aa==2&&ea(V,ee),ee.uc)for(yn=(Te=V).D.M,e(Te.D.uc),ee=Te.yb;ee<Te.Hb;++ee){De=ee,fn=yn;var He=(Je=(Pe=Te).D).Nb;de=Pe.R;var Je=Je.wa[Je.Y+De],sn=Pe.sa,kn=Pe.ta+16*He*de+16*De,tr=Je.dd,We=Je.tc;if(We!=0)if(e(3<=We),Pe.L==1)0<De&&Ar(sn,kn,de,We+4),Je.La&&An(sn,kn,de,We),0<fn&&Jr(sn,kn,de,We+4),Je.La&&ca(sn,kn,de,We);else{var pr=Pe.B,$r=Pe.qa,Si=Pe.ra+8*He*pr+8*De,Pr=Pe.Ha,Pe=Pe.Ia+8*He*pr+8*De;He=Je.ld,0<De&&(Wa(sn,kn,de,We+4,tr,He),Vr($r,Si,Pr,Pe,pr,We+4,tr,He)),Je.La&&(Nr(sn,kn,de,We,tr,He),Ni($r,Si,Pr,Pe,pr,We,tr,He)),0<fn&&(Li(sn,kn,de,We+4,tr,He),sa($r,Si,Pr,Pe,pr,We+4,tr,He)),Je.La&&(Gr(sn,kn,de,We,tr,He),Yr($r,Si,Pr,Pe,pr,We,tr,He))}}if(V.ia&&alert("todo:DitherRow"),G.put!=null){if(ee=16*fe,fe=16*(fe+1),bn?(G.y=V.sa,G.O=V.ta+ge,G.f=V.qa,G.N=V.ra+dn,G.ea=V.Ha,G.W=V.Ia+dn):(ee-=re,G.y=It,G.O=Rt,G.f=Ft,G.N=vt,G.ea=ce,G.W=he),oe||(fe-=re),fe>G.o&&(fe=G.o),G.F=null,G.J=null,V.Fa!=null&&0<V.Fa.length&&ee<fe&&(G.J=Qi(V,G,ee,fe-ee),G.F=V.mb,G.F==null&&G.F.length==0)){mt=Ce(V,3,"Could not decode alpha data.");break t}ee<G.j&&(re=G.j-ee,ee=G.j,e(!(1&re)),G.O+=V.R*re,G.N+=V.B*(re>>1),G.W+=V.B*(re>>1),G.F!=null&&(G.J+=G.width*re)),ee<fe&&(G.O+=G.v,G.N+=G.v>>1,G.W+=G.v>>1,G.F!=null&&(G.J+=G.v),G.ka=ee-G.j,G.U=G.va-G.v,G.T=fe-ee,mt=G.put(G))}ct+1!=V.Ic||oe||(a(V.sa,V.ta-wt,It,Rt+16*V.R,wt),a(V.qa,V.ra-Ot,Ft,vt+8*V.B,Ot),a(V.Ha,V.Ia-Ot,ce,he+8*V.B,Ot))}if(!mt)return Ce($,6,"Output aborted.")}return 1}(t,i)),i.bc!=null&&i.bc(i),u&=1}return u?(t.cb=0,u):0}function On(t,i,u,d,m){m=t[i+u+32*d]+(m>>3),t[i+u+32*d]=-256&m?0>m?0:255:m}function si(t,i,u,d,m,w){On(t,i,0,u,d+m),On(t,i,1,u,d+w),On(t,i,2,u,d-w),On(t,i,3,u,d-m)}function ln(t){return(20091*t>>16)+t}function Ui(t,i,u,d){var m,w=0,L=o(16);for(m=0;4>m;++m){var N=t[i+0]+t[i+8],S=t[i+0]-t[i+8],C=(35468*t[i+4]>>16)-ln(t[i+12]),W=ln(t[i+4])+(35468*t[i+12]>>16);L[w+0]=N+W,L[w+1]=S+C,L[w+2]=S-C,L[w+3]=N-W,w+=4,i++}for(m=w=0;4>m;++m)N=(t=L[w+0]+4)+L[w+8],S=t-L[w+8],C=(35468*L[w+4]>>16)-ln(L[w+12]),On(u,d,0,0,N+(W=ln(L[w+4])+(35468*L[w+12]>>16))),On(u,d,1,0,S+C),On(u,d,2,0,S-C),On(u,d,3,0,N-W),w++,d+=32}function Pa(t,i,u,d){var m=t[i+0]+4,w=35468*t[i+4]>>16,L=ln(t[i+4]),N=35468*t[i+1]>>16;si(u,d,0,m+L,t=ln(t[i+1]),N),si(u,d,1,m+w,t,N),si(u,d,2,m-w,t,N),si(u,d,3,m-L,t,N)}function qo(t,i,u,d,m){Ui(t,i,u,d),m&&Ui(t,i+16,u,d+4)}function ka(t,i,u,d){hr(t,i+0,u,d,1),hr(t,i+32,u,d+128,1)}function Do(t,i,u,d){var m;for(t=t[i+0]+4,m=0;4>m;++m)for(i=0;4>i;++i)On(u,d,i,m,t)}function Ia(t,i,u,d){t[i+0]&&on(t,i+0,u,d),t[i+16]&&on(t,i+16,u,d+4),t[i+32]&&on(t,i+32,u,d+128),t[i+48]&&on(t,i+48,u,d+128+4)}function To(t,i,u,d){var m,w=o(16);for(m=0;4>m;++m){var L=t[i+0+m]+t[i+12+m],N=t[i+4+m]+t[i+8+m],S=t[i+4+m]-t[i+8+m],C=t[i+0+m]-t[i+12+m];w[0+m]=L+N,w[8+m]=L-N,w[4+m]=C+S,w[12+m]=C-S}for(m=0;4>m;++m)L=(t=w[0+4*m]+3)+w[3+4*m],N=w[1+4*m]+w[2+4*m],S=w[1+4*m]-w[2+4*m],C=t-w[3+4*m],u[d+0]=L+N>>3,u[d+16]=C+S>>3,u[d+32]=L-N>>3,u[d+48]=C-S>>3,d+=64}function Hi(t,i,u){var d,m=i-32,w=vn,L=255-t[m-1];for(d=0;d<u;++d){var N,S=w,C=L+t[i-1];for(N=0;N<u;++N)t[i+N]=S[C+t[m+N]];i+=32}}function Ro(t,i){Hi(t,i,4)}function zo(t,i){Hi(t,i,8)}function Uo(t,i){Hi(t,i,16)}function sr(t,i){var u;for(u=0;16>u;++u)a(t,i+32*u,t,i-32,16)}function ci(t,i){var u;for(u=16;0<u;--u)s(t,i,t[i-1],16),i+=32}function li(t,i,u){var d;for(d=0;16>d;++d)s(i,u+32*d,t,16)}function Ca(t,i){var u,d=16;for(u=0;16>u;++u)d+=t[i-1+32*u]+t[i+u-32];li(d>>5,t,i)}function Ke(t,i){var u,d=8;for(u=0;16>u;++u)d+=t[i-1+32*u];li(d>>4,t,i)}function Ho(t,i){var u,d=8;for(u=0;16>u;++u)d+=t[i+u-32];li(d>>4,t,i)}function Fa(t,i){li(128,t,i)}function $t(t,i,u){return t+2*i+u+2>>2}function Wo(t,i){var u,d=i-32;for(d=new Uint8Array([$t(t[d-1],t[d+0],t[d+1]),$t(t[d+0],t[d+1],t[d+2]),$t(t[d+1],t[d+2],t[d+3]),$t(t[d+2],t[d+3],t[d+4])]),u=0;4>u;++u)a(t,i+32*u,d,0,d.length)}function Vo(t,i){var u=t[i-1],d=t[i-1+32],m=t[i-1+64],w=t[i-1+96];St(t,i+0,16843009*$t(t[i-1-32],u,d)),St(t,i+32,16843009*$t(u,d,m)),St(t,i+64,16843009*$t(d,m,w)),St(t,i+96,16843009*$t(m,w,w))}function Kn(t,i){var u,d=4;for(u=0;4>u;++u)d+=t[i+u-32]+t[i-1+32*u];for(d>>=3,u=0;4>u;++u)s(t,i+32*u,d,4)}function ja(t,i){var u=t[i-1+0],d=t[i-1+32],m=t[i-1+64],w=t[i-1-32],L=t[i+0-32],N=t[i+1-32],S=t[i+2-32],C=t[i+3-32];t[i+0+96]=$t(d,m,t[i-1+96]),t[i+1+96]=t[i+0+64]=$t(u,d,m),t[i+2+96]=t[i+1+64]=t[i+0+32]=$t(w,u,d),t[i+3+96]=t[i+2+64]=t[i+1+32]=t[i+0+0]=$t(L,w,u),t[i+3+64]=t[i+2+32]=t[i+1+0]=$t(N,L,w),t[i+3+32]=t[i+2+0]=$t(S,N,L),t[i+3+0]=$t(C,S,N)}function Ea(t,i){var u=t[i+1-32],d=t[i+2-32],m=t[i+3-32],w=t[i+4-32],L=t[i+5-32],N=t[i+6-32],S=t[i+7-32];t[i+0+0]=$t(t[i+0-32],u,d),t[i+1+0]=t[i+0+32]=$t(u,d,m),t[i+2+0]=t[i+1+32]=t[i+0+64]=$t(d,m,w),t[i+3+0]=t[i+2+32]=t[i+1+64]=t[i+0+96]=$t(m,w,L),t[i+3+32]=t[i+2+64]=t[i+1+96]=$t(w,L,N),t[i+3+64]=t[i+2+96]=$t(L,N,S),t[i+3+96]=$t(N,S,S)}function ui(t,i){var u=t[i-1+0],d=t[i-1+32],m=t[i-1+64],w=t[i-1-32],L=t[i+0-32],N=t[i+1-32],S=t[i+2-32],C=t[i+3-32];t[i+0+0]=t[i+1+64]=w+L+1>>1,t[i+1+0]=t[i+2+64]=L+N+1>>1,t[i+2+0]=t[i+3+64]=N+S+1>>1,t[i+3+0]=S+C+1>>1,t[i+0+96]=$t(m,d,u),t[i+0+64]=$t(d,u,w),t[i+0+32]=t[i+1+96]=$t(u,w,L),t[i+1+32]=t[i+2+96]=$t(w,L,N),t[i+2+32]=t[i+3+96]=$t(L,N,S),t[i+3+32]=$t(N,S,C)}function Wi(t,i){var u=t[i+0-32],d=t[i+1-32],m=t[i+2-32],w=t[i+3-32],L=t[i+4-32],N=t[i+5-32],S=t[i+6-32],C=t[i+7-32];t[i+0+0]=u+d+1>>1,t[i+1+0]=t[i+0+64]=d+m+1>>1,t[i+2+0]=t[i+1+64]=m+w+1>>1,t[i+3+0]=t[i+2+64]=w+L+1>>1,t[i+0+32]=$t(u,d,m),t[i+1+32]=t[i+0+96]=$t(d,m,w),t[i+2+32]=t[i+1+96]=$t(m,w,L),t[i+3+32]=t[i+2+96]=$t(w,L,N),t[i+3+64]=$t(L,N,S),t[i+3+96]=$t(N,S,C)}function Go(t,i){var u=t[i-1+0],d=t[i-1+32],m=t[i-1+64],w=t[i-1+96];t[i+0+0]=u+d+1>>1,t[i+2+0]=t[i+0+32]=d+m+1>>1,t[i+2+32]=t[i+0+64]=m+w+1>>1,t[i+1+0]=$t(u,d,m),t[i+3+0]=t[i+1+32]=$t(d,m,w),t[i+3+32]=t[i+1+64]=$t(m,w,w),t[i+3+64]=t[i+2+64]=t[i+0+96]=t[i+1+96]=t[i+2+96]=t[i+3+96]=w}function Yo(t,i){var u=t[i-1+0],d=t[i-1+32],m=t[i-1+64],w=t[i-1+96],L=t[i-1-32],N=t[i+0-32],S=t[i+1-32],C=t[i+2-32];t[i+0+0]=t[i+2+32]=u+L+1>>1,t[i+0+32]=t[i+2+64]=d+u+1>>1,t[i+0+64]=t[i+2+96]=m+d+1>>1,t[i+0+96]=w+m+1>>1,t[i+3+0]=$t(N,S,C),t[i+2+0]=$t(L,N,S),t[i+1+0]=t[i+3+32]=$t(u,L,N),t[i+1+32]=t[i+3+64]=$t(d,u,L),t[i+1+64]=t[i+3+96]=$t(m,d,u),t[i+1+96]=$t(w,m,d)}function Jo(t,i){var u;for(u=0;8>u;++u)a(t,i+32*u,t,i-32,8)}function Vi(t,i){var u;for(u=0;8>u;++u)s(t,i,t[i-1],8),i+=32}function Rr(t,i,u){var d;for(d=0;8>d;++d)s(i,u+32*d,t,8)}function br(t,i){var u,d=8;for(u=0;8>u;++u)d+=t[i+u-32]+t[i-1+32*u];Rr(d>>4,t,i)}function $o(t,i){var u,d=4;for(u=0;8>u;++u)d+=t[i+u-32];Rr(d>>3,t,i)}function zr(t,i){var u,d=4;for(u=0;8>u;++u)d+=t[i-1+32*u];Rr(d>>3,t,i)}function Gi(t,i){Rr(128,t,i)}function hi(t,i,u){var d=t[i-u],m=t[i+0],w=3*(m-d)+es[1020+t[i-2*u]-t[i+u]],L=Ga[112+(w+4>>3)];t[i-u]=vn[255+d+Ga[112+(w+3>>3)]],t[i+0]=vn[255+m-L]}function Ba(t,i,u,d){var m=t[i+0],w=t[i+u];return _n[255+t[i-2*u]-t[i-u]]>d||_n[255+w-m]>d}function Oa(t,i,u,d){return 4*_n[255+t[i-u]-t[i+0]]+_n[255+t[i-2*u]-t[i+u]]<=d}function Ma(t,i,u,d,m){var w=t[i-3*u],L=t[i-2*u],N=t[i-u],S=t[i+0],C=t[i+u],W=t[i+2*u],Z=t[i+3*u];return 4*_n[255+N-S]+_n[255+L-C]>d?0:_n[255+t[i-4*u]-w]<=m&&_n[255+w-L]<=m&&_n[255+L-N]<=m&&_n[255+Z-W]<=m&&_n[255+W-C]<=m&&_n[255+C-S]<=m}function qa(t,i,u,d){var m=2*d+1;for(d=0;16>d;++d)Oa(t,i+d,u,m)&&hi(t,i+d,u)}function Zn(t,i,u,d){var m=2*d+1;for(d=0;16>d;++d)Oa(t,i+d*u,1,m)&&hi(t,i+d*u,1)}function cr(t,i,u,d){var m;for(m=3;0<m;--m)qa(t,i+=4*u,u,d)}function Xo(t,i,u,d){var m;for(m=3;0<m;--m)Zn(t,i+=4,u,d)}function yr(t,i,u,d,m,w,L,N){for(w=2*w+1;0<m--;){if(Ma(t,i,u,w,L))if(Ba(t,i,u,N))hi(t,i,u);else{var S=t,C=i,W=u,Z=S[C-2*W],Q=S[C-W],$=S[C+0],yt=S[C+W],ct=S[C+2*W],V=27*(mt=es[1020+3*($-Q)+es[1020+Z-yt]])+63>>7,G=18*mt+63>>7,mt=9*mt+63>>7;S[C-3*W]=vn[255+S[C-3*W]+mt],S[C-2*W]=vn[255+Z+G],S[C-W]=vn[255+Q+V],S[C+0]=vn[255+$-V],S[C+W]=vn[255+yt-G],S[C+2*W]=vn[255+ct-mt]}i+=d}}function Mn(t,i,u,d,m,w,L,N){for(w=2*w+1;0<m--;){if(Ma(t,i,u,w,L))if(Ba(t,i,u,N))hi(t,i,u);else{var S=t,C=i,W=u,Z=S[C-W],Q=S[C+0],$=S[C+W],yt=Ga[112+((ct=3*(Q-Z))+4>>3)],ct=Ga[112+(ct+3>>3)],V=yt+1>>1;S[C-2*W]=vn[255+S[C-2*W]+V],S[C-W]=vn[255+Z+ct],S[C+0]=vn[255+Q-yt],S[C+W]=vn[255+$-V]}i+=d}}function Yi(t,i,u,d,m,w){yr(t,i,u,1,16,d,m,w)}function Ur(t,i,u,d,m,w){yr(t,i,1,u,16,d,m,w)}function Ko(t,i,u,d,m,w){var L;for(L=3;0<L;--L)Mn(t,i+=4*u,u,1,16,d,m,w)}function fi(t,i,u,d,m,w){var L;for(L=3;0<L;--L)Mn(t,i+=4,1,u,16,d,m,w)}function Zo(t,i,u,d,m,w,L,N){yr(t,i,m,1,8,w,L,N),yr(u,d,m,1,8,w,L,N)}function Ji(t,i,u,d,m,w,L,N){yr(t,i,1,m,8,w,L,N),yr(u,d,1,m,8,w,L,N)}function $i(t,i,u,d,m,w,L,N){Mn(t,i+4*m,m,1,8,w,L,N),Mn(u,d+4*m,m,1,8,w,L,N)}function Da(t,i,u,d,m,w,L,N){Mn(t,i+4,1,m,8,w,L,N),Mn(u,d+4,1,m,8,w,L,N)}function di(){this.ba=new Cn,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Se,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Xi(){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 Ki(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Ta(){this.ua=0,this.Wa=new q,this.vb=new q,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new T,this.yc=new I}function Qo(){this.xb=this.a=0,this.l=new oi,this.ca=new Cn,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new x,this.Pb=0,this.wd=new x,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Ta,this.ab=0,this.gc=l(4,Ki),this.Oc=0}function pi(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new oi,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Hr(t,i,u,d,m,w,L){for(t=t==null?0:t[i+0],i=0;i<L;++i)m[w+i]=t+u[d+i]&255,t=m[w+i]}function Zi(t,i,u,d,m,w,L){var N;if(t==null)Hr(null,null,u,d,m,w,L);else for(N=0;N<L;++N)m[w+N]=t[i+N]+u[d+N]&255}function wr(t,i,u,d,m,w,L){if(t==null)Hr(null,null,u,d,m,w,L);else{var N,S=t[i+0],C=S,W=S;for(N=0;N<L;++N)C=W+(S=t[i+N])-C,W=u[d+N]+(-256&C?0>C?0:255:C)&255,C=S,m[w+N]=W}}function Qi(t,i,u,d){var m=i.width,w=i.o;if(e(t!=null&&i!=null),0>u||0>=d||u+d>w)return null;if(!t.Cc){if(t.ga==null){var L;if(t.ga=new pi,(L=t.ga==null)||(L=i.width*i.o,e(t.Gb.length==0),t.Gb=o(L),t.Uc=0,t.Gb==null?L=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,L=1),L=!L),!L){L=t.ga;var N=t.Fa,S=t.P,C=t.qc,W=t.mb,Z=t.nb,Q=S+1,$=C-1,yt=L.l;if(e(N!=null&&W!=null&&i!=null),_r[0]=null,_r[1]=Hr,_r[2]=Zi,_r[3]=wr,L.ca=W,L.tb=Z,L.c=i.width,L.i=i.height,e(0<L.c&&0<L.i),1>=C)i=0;else if(L.$a=N[S+0]>>0&3,L.Z=N[S+0]>>2&3,L.Lc=N[S+0]>>4&3,S=N[S+0]>>6&3,0>L.$a||1<L.$a||4<=L.Z||1<L.Lc||S)i=0;else if(yt.put=Gn,yt.ac=Ge,yt.bc=Yn,yt.ma=L,yt.width=i.width,yt.height=i.height,yt.Da=i.Da,yt.v=i.v,yt.va=i.va,yt.j=i.j,yt.o=i.o,L.$a)t:{e(L.$a==1),i=xn();e:for(;;){if(i==null){i=0;break t}if(e(L!=null),L.mc=i,i.c=L.c,i.i=L.i,i.l=L.l,i.l.ma=L,i.l.width=L.c,i.l.height=L.i,i.a=0,tt(i.m,N,Q,$),!Xn(L.c,L.i,1,i,null)||(i.ab==1&&i.gc[0].hc==3&&or(i.s)?(L.ic=1,N=i.c*i.i,i.Ta=null,i.Ua=0,i.V=o(N),i.Ba=0,i.V==null?(i.a=1,i=0):i=1):(L.ic=0,i=Tr(i,L.c)),!i))break e;i=1;break t}L.mc=null,i=0}else i=$>=L.c*L.i;L=!i}if(L)return null;t.ga.Lc!=1?t.Ga=0:d=w-u}e(t.ga!=null),e(u+d<=w);t:{if(i=(N=t.ga).c,w=N.l.o,N.$a==0){if(Q=t.rc,$=t.Vc,yt=t.Fa,S=t.P+1+u*i,C=t.mb,W=t.nb+u*i,e(S<=t.P+t.qc),N.Z!=0)for(e(_r[N.Z]!=null),L=0;L<d;++L)_r[N.Z](Q,$,yt,S,C,W,i),Q=C,$=W,W+=i,S+=i;else for(L=0;L<d;++L)a(C,W,yt,S,i),Q=C,$=W,W+=i,S+=i;t.rc=Q,t.Vc=$}else{if(e(N.mc!=null),i=u+d,e((L=N.mc)!=null),e(i<=L.i),L.C>=i)i=1;else if(N.ic||X(),N.ic){N=L.V,Q=L.Ba,$=L.c;var ct=L.i,V=(yt=1,S=L.$/$,C=L.$%$,W=L.m,Z=L.s,L.$),G=$*ct,mt=$*i,wt=Z.wc,vt=V<mt?Me(Z,C,S):null;e(V<=G),e(i<=ct),e(or(Z));e:for(;;){for(;!W.h&&V<mt;){if(C&wt||(vt=Me(Z,C,S)),e(vt!=null),J(W),256>(ct=cn(vt.G[0],vt.H[0],W)))N[Q+V]=ct,++V,++C>=$&&(C=0,++S<=i&&!(S%16)&&En(L,S));else{if(!(280>ct)){yt=0;break e}ct=Fn(ct-256,W);var Ot,It=cn(vt.G[4],vt.H[4],W);if(J(W),!(V>=(It=Jn($,It=Fn(It,W)))&&G-V>=ct)){yt=0;break e}for(Ot=0;Ot<ct;++Ot)N[Q+V+Ot]=N[Q+V+Ot-It];for(V+=ct,C+=ct;C>=$;)C-=$,++S<=i&&!(S%16)&&En(L,S);V<mt&&C&wt&&(vt=Me(Z,C,S))}e(W.h==O(W))}En(L,S>i?i:S);break e}!yt||W.h&&V<G?(yt=0,L.a=W.h?5:3):L.$=V,i=yt}else i=Bn(L,L.V,L.Ba,L.c,L.i,i,ei);if(!i){d=0;break t}}u+d>=w&&(t.Cc=1),d=1}if(!d)return null;if(t.Cc&&((d=t.ga)!=null&&(d.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+u*m}function c(t,i,u,d,m,w){for(;0<m--;){var L,N=t,S=i+(u?1:0),C=t,W=i+(u?0:3);for(L=0;L<d;++L){var Z=C[W+4*L];Z!=255&&(Z*=32897,N[S+4*L+0]=N[S+4*L+0]*Z>>23,N[S+4*L+1]=N[S+4*L+1]*Z>>23,N[S+4*L+2]=N[S+4*L+2]*Z>>23)}i+=w}}function y(t,i,u,d,m){for(;0<d--;){var w;for(w=0;w<u;++w){var L=t[i+2*w+0],N=15&(C=t[i+2*w+1]),S=4369*N,C=(240&C|C>>4)*S>>16;t[i+2*w+0]=(240&L|L>>4)*S>>16&240|(15&L|L<<4)*S>>16>>4&15,t[i+2*w+1]=240&C|N}i+=m}}function E(t,i,u,d,m,w,L,N){var S,C,W=255;for(C=0;C<m;++C){for(S=0;S<d;++S){var Z=t[i+S];w[L+4*S]=Z,W&=Z}i+=u,L+=N}return W!=255}function z(t,i,u,d,m){var w;for(w=0;w<m;++w)u[d+w]=t[i+w]>>8}function X(){Sn=c,be=y,ye=E,je=z}function ft(t,i,u){U[t]=function(d,m,w,L,N,S,C,W,Z,Q,$,yt,ct,V,G,mt,wt){var vt,Ot=wt-1>>1,It=N[S+0]|C[W+0]<<16,Rt=Z[Q+0]|$[yt+0]<<16;e(d!=null);var Ft=3*It+Rt+131074>>2;for(i(d[m+0],255&Ft,Ft>>16,ct,V),w!=null&&(Ft=3*Rt+It+131074>>2,i(w[L+0],255&Ft,Ft>>16,G,mt)),vt=1;vt<=Ot;++vt){var ce=N[S+vt]|C[W+vt]<<16,he=Z[Q+vt]|$[yt+vt]<<16,oe=It+ce+Rt+he+524296,re=oe+2*(ce+Rt)>>3;Ft=re+It>>1,It=(oe=oe+2*(It+he)>>3)+ce>>1,i(d[m+2*vt-1],255&Ft,Ft>>16,ct,V+(2*vt-1)*u),i(d[m+2*vt-0],255&It,It>>16,ct,V+(2*vt-0)*u),w!=null&&(Ft=oe+Rt>>1,It=re+he>>1,i(w[L+2*vt-1],255&Ft,Ft>>16,G,mt+(2*vt-1)*u),i(w[L+2*vt+0],255&It,It>>16,G,mt+(2*vt+0)*u)),It=ce,Rt=he}1&wt||(Ft=3*It+Rt+131074>>2,i(d[m+wt-1],255&Ft,Ft>>16,ct,V+(wt-1)*u),w!=null&&(Ft=3*Rt+It+131074>>2,i(w[L+wt-1],255&Ft,Ft>>16,G,mt+(wt-1)*u)))}}function Lt(){Pn[Ya]=_l,Pn[Ja]=Xs,Pn[Vs]=Pl,Pn[$a]=Ks,Pn[Xa]=Zs,Pn[ns]=Qs,Pn[Gs]=kl,Pn[rs]=Xs,Pn[is]=Ks,Pn[Ka]=Zs,Pn[as]=Qs}function Bt(t){return t&-16384?0>t?0:255:t>>Il}function Tt(t,i){return Bt((19077*t>>8)+(26149*i>>8)-14234)}function Qt(t,i,u){return Bt((19077*t>>8)-(6419*i>>8)-(13320*u>>8)+8708)}function Kt(t,i){return Bt((19077*t>>8)+(33050*i>>8)-17685)}function ae(t,i,u,d,m){d[m+0]=Tt(t,u),d[m+1]=Qt(t,i,u),d[m+2]=Kt(t,i)}function Le(t,i,u,d,m){d[m+0]=Kt(t,i),d[m+1]=Qt(t,i,u),d[m+2]=Tt(t,u)}function _e(t,i,u,d,m){var w=Qt(t,i,u);i=w<<3&224|Kt(t,i)>>3,d[m+0]=248&Tt(t,u)|w>>5,d[m+1]=i}function qe(t,i,u,d,m){var w=240&Kt(t,i)|15;d[m+0]=240&Tt(t,u)|Qt(t,i,u)>>4,d[m+1]=w}function Ze(t,i,u,d,m){d[m+0]=255,ae(t,i,u,d,m+1)}function Ue(t,i,u,d,m){Le(t,i,u,d,m),d[m+3]=255}function qn(t,i,u,d,m){ae(t,i,u,d,m),d[m+3]=255}function mn(t,i){return 0>t?0:t>i?i:t}function Qn(t,i,u){U[t]=function(d,m,w,L,N,S,C,W,Z){for(var Q=W+(-2&Z)*u;W!=Q;)i(d[m+0],w[L+0],N[S+0],C,W),i(d[m+1],w[L+0],N[S+0],C,W+u),m+=2,++L,++S,W+=2*u;1&Z&&i(d[m+0],w[L+0],N[S+0],C,W)}}function Ra(t,i,u){return u==0?t==0?i==0?6:5:i==0?4:0:u}function ta(t,i,u,d,m){switch(t>>>30){case 3:hr(i,u,d,m,0);break;case 2:Fe(i,u,d,m);break;case 1:on(i,u,d,m)}}function ea(t,i){var u,d,m=i.M,w=i.Nb,L=t.oc,N=t.pc+40,S=t.oc,C=t.pc+584,W=t.oc,Z=t.pc+600;for(u=0;16>u;++u)L[N+32*u-1]=129;for(u=0;8>u;++u)S[C+32*u-1]=129,W[Z+32*u-1]=129;for(0<m?L[N-1-32]=S[C-1-32]=W[Z-1-32]=129:(s(L,N-32-1,127,21),s(S,C-32-1,127,9),s(W,Z-32-1,127,9)),d=0;d<t.za;++d){var Q=i.ya[i.aa+d];if(0<d){for(u=-1;16>u;++u)a(L,N+32*u-4,L,N+32*u+12,4);for(u=-1;8>u;++u)a(S,C+32*u-4,S,C+32*u+4,4),a(W,Z+32*u-4,W,Z+32*u+4,4)}var $=t.Gd,yt=t.Hd+d,ct=Q.ad,V=Q.Hc;if(0<m&&(a(L,N-32,$[yt].y,0,16),a(S,C-32,$[yt].f,0,8),a(W,Z-32,$[yt].ea,0,8)),Q.Za){var G=L,mt=N-32+16;for(0<m&&(d>=t.za-1?s(G,mt,$[yt].y[15],4):a(G,mt,$[yt+1].y,0,4)),u=0;4>u;u++)G[mt+128+u]=G[mt+256+u]=G[mt+384+u]=G[mt+0+u];for(u=0;16>u;++u,V<<=2)G=L,mt=N+ec[u],Dn[Q.Ob[u]](G,mt),ta(V,ct,16*+u,G,mt)}else if(G=Ra(d,m,Q.Ob[0]),Sr[G](L,N),V!=0)for(u=0;16>u;++u,V<<=2)ta(V,ct,16*+u,L,N+ec[u]);for(u=Q.Gc,G=Ra(d,m,Q.Dd),dr[G](S,C),dr[G](W,Z),V=ct,G=S,mt=C,255&(Q=u>>0)&&(170&Q?oa(V,256,G,mt):Nn(V,256,G,mt)),Q=W,V=Z,255&(u>>=8)&&(170&u?oa(ct,320,Q,V):Nn(ct,320,Q,V)),m<t.Ub-1&&(a($[yt].y,0,L,N+480,16),a($[yt].f,0,S,C+224,8),a($[yt].ea,0,W,Z+224,8)),u=8*w*t.B,$=t.sa,yt=t.ta+16*d+16*w*t.R,ct=t.qa,Q=t.ra+8*d+u,V=t.Ha,G=t.Ia+8*d+u,u=0;16>u;++u)a($,yt+u*t.R,L,N+32*u,16);for(u=0;8>u;++u)a(ct,Q+u*t.B,S,C+32*u,8),a(V,G+u*t.B,W,Z+32*u,8)}}function gi(t,i,u,d,m,w,L,N,S){var C=[0],W=[0],Z=0,Q=S!=null?S.kd:0,$=S??new Xi;if(t==null||12>u)return 7;$.data=t,$.w=i,$.ha=u,i=[i],u=[u],$.gb=[$.gb];t:{var yt=i,ct=u,V=$.gb;if(e(t!=null),e(ct!=null),e(V!=null),V[0]=0,12<=ct[0]&&!n(t,yt[0],"RIFF")){if(n(t,yt[0]+8,"WEBP")){V=3;break t}var G=kt(t,yt[0]+4);if(12>G||4294967286<G){V=3;break t}if(Q&&G>ct[0]-8){V=7;break t}V[0]=G,yt[0]+=12,ct[0]-=12}V=0}if(V!=0)return V;for(G=0<$.gb[0],u=u[0];;){t:{var mt=t;ct=i,V=u;var wt=C,vt=W,Ot=yt=[0];if((Ft=Z=[Z])[0]=0,8>V[0])V=7;else{if(!n(mt,ct[0],"VP8X")){if(kt(mt,ct[0]+4)!=10){V=3;break t}if(18>V[0]){V=7;break t}var It=kt(mt,ct[0]+8),Rt=1+_t(mt,ct[0]+12);if(2147483648<=Rt*(mt=1+_t(mt,ct[0]+15))){V=3;break t}Ot!=null&&(Ot[0]=It),wt!=null&&(wt[0]=Rt),vt!=null&&(vt[0]=mt),ct[0]+=18,V[0]-=18,Ft[0]=1}V=0}}if(Z=Z[0],yt=yt[0],V!=0)return V;if(ct=!!(2&yt),!G&&Z)return 3;if(w!=null&&(w[0]=!!(16&yt)),L!=null&&(L[0]=ct),N!=null&&(N[0]=0),L=C[0],yt=W[0],Z&&ct&&S==null){V=0;break}if(4>u){V=7;break}if(G&&Z||!G&&!Z&&!n(t,i[0],"ALPH")){u=[u],$.na=[$.na],$.P=[$.P],$.Sa=[$.Sa];t:{It=t,V=i,G=u;var Ft=$.gb;wt=$.na,vt=$.P,Ot=$.Sa,Rt=22,e(It!=null),e(G!=null),mt=V[0];var ce=G[0];for(e(wt!=null),e(Ot!=null),wt[0]=null,vt[0]=null,Ot[0]=0;;){if(V[0]=mt,G[0]=ce,8>ce){V=7;break t}var he=kt(It,mt+4);if(4294967286<he){V=3;break t}var oe=8+he+1&-2;if(Rt+=oe,0<Ft&&Rt>Ft){V=3;break t}if(!n(It,mt,"VP8 ")||!n(It,mt,"VP8L")){V=0;break t}if(ce[0]<oe){V=7;break t}n(It,mt,"ALPH")||(wt[0]=It,vt[0]=mt+8,Ot[0]=he),mt+=oe,ce-=oe}}if(u=u[0],$.na=$.na[0],$.P=$.P[0],$.Sa=$.Sa[0],V!=0)break}u=[u],$.Ja=[$.Ja],$.xa=[$.xa];t:if(Ft=t,V=i,G=u,wt=$.gb[0],vt=$.Ja,Ot=$.xa,It=V[0],mt=!n(Ft,It,"VP8 "),Rt=!n(Ft,It,"VP8L"),e(Ft!=null),e(G!=null),e(vt!=null),e(Ot!=null),8>G[0])V=7;else{if(mt||Rt){if(Ft=kt(Ft,It+4),12<=wt&&Ft>wt-12){V=3;break t}if(Q&&Ft>G[0]-8){V=7;break t}vt[0]=Ft,V[0]+=8,G[0]-=8,Ot[0]=Rt}else Ot[0]=5<=G[0]&&Ft[It+0]==47&&!(Ft[It+4]>>5),vt[0]=G[0];V=0}if(u=u[0],$.Ja=$.Ja[0],$.xa=$.xa[0],i=i[0],V!=0)break;if(4294967286<$.Ja)return 3;if(N==null||ct||(N[0]=$.xa?2:1),L=[L],yt=[yt],$.xa){if(5>u){V=7;break}N=L,Q=yt,ct=w,t==null||5>u?t=0:5<=u&&t[i+0]==47&&!(t[i+4]>>5)?(G=[0],Ft=[0],wt=[0],tt(vt=new x,t,i,u),Ht(vt,G,Ft,wt)?(N!=null&&(N[0]=G[0]),Q!=null&&(Q[0]=Ft[0]),ct!=null&&(ct[0]=wt[0]),t=1):t=0):t=0}else{if(10>u){V=7;break}N=yt,t==null||10>u||!Aa(t,i+3,u-3)?t=0:(Q=t[i+0]|t[i+1]<<8|t[i+2]<<16,ct=16383&(t[i+7]<<8|t[i+6]),t=16383&(t[i+9]<<8|t[i+8]),1&Q||3<(Q>>1&7)||!(Q>>4&1)||Q>>5>=$.Ja||!ct||!t?t=0:(L&&(L[0]=ct),N&&(N[0]=t),t=1))}if(!t||(L=L[0],yt=yt[0],Z&&(C[0]!=L||W[0]!=yt)))return 3;S!=null&&(S[0]=$,S.offset=i-S.w,e(4294967286>i-S.w),e(S.offset==S.ha-u));break}return V==0||V==7&&Z&&S==null?(w!=null&&(w[0]|=$.na!=null&&0<$.na.length),d!=null&&(d[0]=L),m!=null&&(m[0]=yt),0):V}function na(t,i,u){var d=i.width,m=i.height,w=0,L=0,N=d,S=m;if(i.Da=t!=null&&0<t.Da,i.Da&&(N=t.cd,S=t.bd,w=t.v,L=t.j,11>u||(w&=-2,L&=-2),0>w||0>L||0>=N||0>=S||w+N>d||L+S>m))return 0;if(i.v=w,i.j=L,i.va=w+N,i.o=L+S,i.U=N,i.T=S,i.da=t!=null&&0<t.da,i.da){if(!Yt(N,S,u=[t.ib],w=[t.hb]))return 0;i.ib=u[0],i.hb=w[0]}return i.ob=t!=null&&t.ob,i.Kb=t==null||!t.Sd,i.da&&(i.ob=i.ib<3*d/4&&i.hb<3*m/4,i.Kb=0),1}function ra(t){if(t==null)return 2;if(11>t.S){var i=t.f.RGBA;i.fb+=(t.height-1)*i.A,i.A=-i.A}else i=t.f.kb,t=t.height,i.O+=(t-1)*i.fa,i.fa=-i.fa,i.N+=(t-1>>1)*i.Ab,i.Ab=-i.Ab,i.W+=(t-1>>1)*i.Db,i.Db=-i.Db,i.F!=null&&(i.J+=(t-1)*i.lb,i.lb=-i.lb);return 0}function mi(t,i,u,d){if(d==null||0>=t||0>=i)return 2;if(u!=null){if(u.Da){var m=u.cd,w=u.bd,L=-2&u.v,N=-2&u.j;if(0>L||0>N||0>=m||0>=w||L+m>t||N+w>i)return 2;t=m,i=w}if(u.da){if(!Yt(t,i,m=[u.ib],w=[u.hb]))return 2;t=m[0],i=w[0]}}d.width=t,d.height=i;t:{var S=d.width,C=d.height;if(t=d.S,0>=S||0>=C||!(t>=Ya&&13>t))t=2;else{if(0>=d.Rd&&d.sd==null){L=w=m=i=0;var W=(N=S*nc[t])*C;if(11>t||(w=(C+1)/2*(i=(S+1)/2),t==12&&(L=(m=S)*C)),(C=o(W+2*w+L))==null){t=1;break t}d.sd=C,11>t?((S=d.f.RGBA).eb=C,S.fb=0,S.A=N,S.size=W):((S=d.f.kb).y=C,S.O=0,S.fa=N,S.Fd=W,S.f=C,S.N=0+W,S.Ab=i,S.Cd=w,S.ea=C,S.W=0+W+w,S.Db=i,S.Ed=w,t==12&&(S.F=C,S.J=0+W+2*w),S.Tc=L,S.lb=m)}if(i=1,m=d.S,w=d.width,L=d.height,m>=Ya&&13>m)if(11>m)t=d.f.RGBA,i&=(N=Math.abs(t.A))*(L-1)+w<=t.size,i&=N>=w*nc[m],i&=t.eb!=null;else{t=d.f.kb,N=(w+1)/2,W=(L+1)/2,S=Math.abs(t.fa),C=Math.abs(t.Ab);var Z=Math.abs(t.Db),Q=Math.abs(t.lb),$=Q*(L-1)+w;i&=S*(L-1)+w<=t.Fd,i&=C*(W-1)+N<=t.Cd,i=(i&=Z*(W-1)+N<=t.Ed)&S>=w&C>=N&Z>=N,i&=t.y!=null,i&=t.f!=null,i&=t.ea!=null,m==12&&(i&=Q>=w,i&=$<=t.Tc,i&=t.F!=null)}else i=0;t=i?0:2}}return t!=0||u!=null&&u.fd&&(t=ra(d)),t}var Ye=64,vi=[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],bi=24,yi=32,ia=8,un=[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,
vendor: 4,761 bytes, line 165
1656,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];Pt("Predictor0","PredictorAdd0"),U.Predictor0=function(){return 4278190080},U.Predictor1=function(t){return t},U.Predictor2=function(t,i,u){return i[u+0]},U.Predictor3=function(t,i,u){return i[u+1]},U.Predictor4=function(t,i,u){return i[u-1]},U.Predictor5=function(t,i,u){return bt(bt(t,i[u+1]),i[u+0])},U.Predictor6=function(t,i,u){return bt(t,i[u-1])},U.Predictor7=function(t,i,u){return bt(t,i[u+0])},U.Predictor8=function(t,i,u){return bt(i[u-1],i[u+0])},U.Predictor9=function(t,i,u){return bt(i[u+0],i[u+1])},U.Predictor10=function(t,i,u){return bt(bt(t,i[u-1]),bt(i[u+0],i[u+1]))},U.Predictor11=function(t,i,u){var d=i[u+0];return 0>=Ut(d>>24&255,t>>24&255,(i=i[u-1])>>24&255)+Ut(d>>16&255,t>>16&255,i>>16&255)+Ut(d>>8&255,t>>8&255,i>>8&255)+Ut(255&d,255&t,255&i)?d:t},U.Predictor12=function(t,i,u){var d=i[u+0];return(Et((t>>24&255)+(d>>24&255)-((i=i[u-1])>>24&255))<<24|Et((t>>16&255)+(d>>16&255)-(i>>16&255))<<16|Et((t>>8&255)+(d>>8&255)-(i>>8&255))<<8|Et((255&t)+(255&d)-(255&i)))>>>0},U.Predictor13=function(t,i,u){var d=i[u-1];return(Dt((t=bt(t,i[u+0]))>>24&255,d>>24&255)<<24|Dt(t>>16&255,d>>16&255)<<16|Dt(t>>8&255,d>>8&255)<<8|Dt(t>>0&255,d>>0&255))>>>0};var ts=U.PredictorAdd0;U.PredictorAdd1=Jt,Pt("Predictor2","PredictorAdd2"),Pt("Predictor3","PredictorAdd3"),Pt("Predictor4","PredictorAdd4"),Pt("Predictor5","PredictorAdd5"),Pt("Predictor6","PredictorAdd6"),Pt("Predictor7","PredictorAdd7"),Pt("Predictor8","PredictorAdd8"),Pt("Predictor9","PredictorAdd9"),Pt("Predictor10","PredictorAdd10"),Pt("Predictor11","PredictorAdd11"),Pt("Predictor12","PredictorAdd12"),Pt("Predictor13","PredictorAdd13");var aa=U.PredictorAdd2;ne("ColorIndexInverseTransform","MapARGB","32b",function(t){return t>>8&255},function(t){return t}),ne("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(t){return t},function(t){return t>>8&255});var za,Ln=U.ColorIndexInverseTransform,wi=U.MapARGB,Ua=U.VP8LColorIndexInverseTransformAlpha,Ha=U.MapAlpha,xr=U.VP8LPredictorsAdd=[];xr.length=16,(U.VP8LPredictors=[]).length=16,(U.VP8LPredictorsAdd_C=[]).length=16,(U.VP8LPredictors_C=[]).length=16;var Wr,hn,an,Lr,lr,ur,xi,hr,Fe,oa,on,Nn,Li,Wa,sa,Vr,Gr,Nr,Yr,Ni,Jr,Ar,ca,An,Sn,be,ye,je,ze=o(511),fr=o(2041),la=o(225),Ai=o(767),Va=0,es=fr,Ga=la,vn=Ai,_n=ze,Ya=0,Ja=1,Vs=2,$a=3,Xa=4,ns=5,Gs=6,rs=7,is=8,Ka=9,as=10,fl=[2,3,7],dl=[3,3,11],Ys=[280,256,256,256,40],pl=[0,1,1,1,0],gl=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],ml=[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],vl=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],bl=8,os=[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],ss=[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],ua=null,yl=[[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]],wl=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Js=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],xl=[[[[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,25
1655,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]]]],Ll=[[[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
1655,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]]],Nl=[[[[255,255,255,255,255,255,255,255,255,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: 4,137 bytes, line 165
1655,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]]]],Al=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Sr=[],Dn=[],dr=[],Sl=1,$s=2,_r=[],Pn=[];ft("UpsampleRgbLinePair",ae,3),ft("UpsampleBgrLinePair",Le,3),ft("UpsampleRgbaLinePair",qn,4),ft("UpsampleBgraLinePair",Ue,4),ft("UpsampleArgbLinePair",Ze,4),ft("UpsampleRgba4444LinePair",qe,2),ft("UpsampleRgb565LinePair",_e,2);var _l=U.UpsampleRgbLinePair,Pl=U.UpsampleBgrLinePair,Xs=U.UpsampleRgbaLinePair,Ks=U.UpsampleBgraLinePair,Zs=U.UpsampleArgbLinePair,Qs=U.UpsampleRgba4444LinePair,kl=U.UpsampleRgb565LinePair,Za=16,Qa=1<<Za-1,ha=-227,cs=482,Il=6,tc=0,Cl=o(256),Fl=o(256),jl=o(256),El=o(256),Bl=o(cs-ha),Ol=o(cs-ha);Qn("YuvToRgbRow",ae,3),Qn("YuvToBgrRow",Le,3),Qn("YuvToRgbaRow",qn,4),Qn("YuvToBgraRow",Ue,4),Qn("YuvToArgbRow",Ze,4),Qn("YuvToRgba4444Row",qe,2),Qn("YuvToRgb565Row",_e,2);var ec=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],to=[0,2,8],Ml=[8,7,6,4,4,2,2,2,1,1,1,1],ql=1;this.WebPDecodeRGBA=function(t,i,u,d,m){var w=Ja,L=new di,N=new Cn;L.ba=N,N.S=w,N.width=[N.width],N.height=[N.height];var S=N.width,C=N.height,W=new ar;if(W==null||t==null)var Z=2;else e(W!=null),Z=gi(t,i,u,W.width,W.height,W.Pd,W.Qd,W.format,null);if(Z!=0?S=0:(S!=null&&(S[0]=W.width[0]),C!=null&&(C[0]=W.height[0]),S=1),S){N.width=N.width[0],N.height=N.height[0],d!=null&&(d[0]=N.width),m!=null&&(m[0]=N.height);t:{if(d=new oi,(m=new Xi).data=t,m.w=i,m.ha=u,m.kd=1,i=[0],e(m!=null),((t=gi(m.data,m.w,m.ha,null,null,null,i,null,m))==0||t==7)&&i[0]&&(t=4),(i=t)==0){if(e(L!=null),d.data=m.data,d.w=m.w+m.offset,d.ha=m.ha-m.offset,d.put=Gn,d.ac=Ge,d.bc=Yn,d.ma=L,m.xa){if((t=xn())==null){L=1;break t}if(function(Q,$){var yt=[0],ct=[0],V=[0];e:for(;;){if(Q==null)return 0;if($==null)return Q.a=2,0;if(Q.l=$,Q.a=0,tt(Q.m,$.data,$.w,$.ha),!Ht(Q.m,yt,ct,V)){Q.a=3;break e}if(Q.xb=$s,$.width=yt[0],$.height=ct[0],!Xn(yt[0],ct[0],1,Q,null))break e;return 1}return e(Q.a!=0),0}(t,d)){if(d=(i=mi(d.width,d.height,L.Oa,L.ba))==0){e:{d=t;n:for(;;){if(d==null){d=0;break e}if(e(d.s.yc!=null),e(d.s.Ya!=null),e(0<d.s.Wb),e((u=d.l)!=null),e((m=u.ma)!=null),d.xb!=0){if(d.ca=m.ba,d.tb=m.tb,e(d.ca!=null),!na(m.Oa,u,$a)){d.a=2;break n}if(!Tr(d,u.width)||u.da)break n;if((u.da||le(d.ca.S))&&X(),11>d.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),d.ca.f.kb.F!=null&&X()),d.Pb&&0<d.s.ua&&d.s.vb.X==null&&!zt(d.s.vb,d.s.Wa.Xa)){d.a=1;break n}d.xb=0}if(!Bn(d,d.V,d.Ba,d.c,d.i,u.o,ti))break n;m.Dc=d.Ma,d=1;break e}e(d.a!=0),d=0}d=!d}d&&(i=t.a)}else i=t.a}else{if((t=new Oo)==null){L=1;break t}if(t.Fa=m.na,t.P=m.P,t.qc=m.Sa,Sa(t,d)){if((i=mi(d.width,d.height,L.Oa,L.ba))==0){if(t.Aa=0,u=L.Oa,e((m=t)!=null),u!=null){if(0<(S=0>(S=u.Md)?0:100<S?255:255*S/100)){for(C=W=0;4>C;++C)12>(Z=m.pb[C]).lc&&(Z.ia=S*Ml[0>Z.lc?0:Z.lc]>>3),W|=Z.ia;W&&(alert("todo:VP8InitRandom"),m.ia=1)}m.Ga=u.Id,100<m.Ga?m.Ga=100:0>m.Ga&&(m.Ga=0)}Mo(t,d)||(i=t.a)}}else i=t.a}i==0&&L.Oa!=null&&L.Oa.fd&&(i=ra(L.ba))}L=i}w=L!=0?null:11>w?N.f.RGBA.eb:N.f.kb.y}else w=null;return w};var nc=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function g(U,et){for(var pt="",P=0;P<4;P++)pt+=String.fromCharCode(U[et++]);return pt}function v(U,et){return(U[et+0]<<0|U[et+1]<<8|U[et+2]<<16)>>>0}function b(U,et){return(U[et+0]<<0|U[et+1]<<8|U[et+2]<<16|U[et+3]<<24)>>>0}new f;var A=[0],p=[0],j=[],k=new f,D=r,_=function(U,et){var pt={},P=0,I=!1,H=0,T=0;if(pt.frames=[],!function(F,O,R,J){for(var M=0;M<J;
165M++)if(F[O+M]!=R.charCodeAt(M))return!0;return!1}(U,et,"RIFF",4)){var st,it;for(b(U,et+=4),et+=8;et<U.length;){var ut=g(U,et),tt=b(U,et+=4);et+=4;var ht=tt+(1&tt);switch(ut){case"VP8 ":case"VP8L":pt.frames[P]===void 0&&(pt.frames[P]={}),(x=pt.frames[P]).src_off=I?T:et-8,x.src_size=H+tt+8,P++,I&&(I=!1,H=0,T=0);break;case"VP8X":(x=pt.header={}).feature_flags=U[et];var gt=et+4;x.canvas_width=1+v(U,gt),gt+=3,x.canvas_height=1+v(U,gt),gt+=3;break;case"ALPH":I=!0,H=ht+8,T=et-8;break;case"ANIM":(x=pt.header).bgcolor=b(U,et),gt=et+4,x.loop_count=(st=U)[(it=gt)+0]<<0|st[it+1]<<8,gt+=2;break;case"ANMF":var Ct,x;(x=pt.frames[P]={}).offset_x=2*v(U,et),et+=3,x.offset_y=2*v(U,et),et+=3,x.width=1+v(U,et),et+=3,x.height=1+v(U,et),et+=3,x.duration=v(U,et),et+=3,Ct=U[et++],x.dispose=1&Ct,x.blend=Ct>>1&1}ut!="ANMF"&&(et+=ht)}return pt}}(D,0);_.response=D,_.rgbaoutput=!0,_.dataurl=!1;var B=_.header?_.header:null,Y=_.frames?_.frames:null;if(B){B.loop_counter=B.loop_count,A=[B.canvas_height],p=[B.canvas_width];for(var ot=0;ot<Y.length&&Y[ot].blend!=0;ot++);}var lt=Y[0],xt=k.WebPDecodeRGBA(D,lt.src_off,lt.src_size,p,A);lt.rgba=xt,lt.imgwidth=p[0],lt.imgheight=A[0];for(var K=0;K<p[0]*A[0]*4;K++)j[K]=xt[K];return this.width=p,this.height=A,this.data=j,this}(function(r){var e=function(){return typeof Fs=="function"},n=function(A,p,j,k){var D=4,_=l;switch(k){case r.image_compression.FAST:D=1,_=o;break;case r.image_compression.MEDIUM:D=6,_=h;break;case r.image_compression.SLOW:D=9,_=f}A=a(A,p,j,_);var B=Fs(A,{level:D});return r.__addimage__.arrayBufferToBinaryString(B)},a=function(A,p,j,k){for(var D,_,B,Y=A.length/p,ot=new Uint8Array(A.length+Y),lt=v(),xt=0;xt<Y;xt+=1){if(B=xt*p,D=A.subarray(B,B+p),k)ot.set(k(D,j,_),B+xt);else{for(var K,U=lt.length,et=[];K<U;K+=1)et[K]=lt[K](D,j,_);var pt=b(et.concat());ot.set(et[pt],B+xt)}_=D}return ot},s=function(A){var p=Array.apply([],A);return p.unshift(0),p},o=function(A,p){var j,k=[],D=A.length;k[0]=1;for(var _=0;_<D;_+=1)j=A[_-p]||0,k[_+1]=A[_]-j+256&255;return k},l=function(A,p,j){var k,D=[],_=A.length;D[0]=2;for(var B=0;B<_;B+=1)k=j&&j[B]||0,D[B+1]=A[B]-k+256&255;return D},h=function(A,p,j){var k,D,_=[],B=A.length;_[0]=3;for(var Y=0;Y<B;Y+=1)k=A[Y-p]||0,D=j&&j[Y]||0,_[Y+1]=A[Y]+256-(k+D>>>1)&255;return _},f=function(A,p,j){var k,D,_,B,Y=[],ot=A.length;Y[0]=4;for(var lt=0;lt<ot;lt+=1)k=A[lt-p]||0,D=j&&j[lt]||0,_=j&&j[lt-p]||0,B=g(k,D,_),Y[lt+1]=A[lt]-B+256&255;return Y},g=function(A,p,j){if(A===p&&p===j)return A;var k=Math.abs(p-j),D=Math.abs(A-j),_=Math.abs(A+p-j-j);return k<=D&&k<=_?A:D<=_?p:j},v=function(){return[s,o,l,h,f]},b=function(A){var p=A.map(function(j){return j.reduce(function(k,D){return k+Math.abs(D)},0)});return p.indexOf(Math.min.apply(null,p))};r.processPNG=function(A,p,j,k){var D,_,B,Y,ot,lt,xt,K,U,et,pt,P,I,H,T,st=this.decode.FLATE_DECODE,it="";if(this.__addimage__.isArrayBuffer(A)&&(A=new Uint8Array(A)),this.__addimage__.isArrayBufferView(A)){if(A=(B=new Cu(A)).imgData,_=B.bits,D=B.colorSpace,ot=B.colors,[4,6].indexOf(B.colorType)!==-1){if(B.bits===8){U=(K=B.pixelBitlength==32?new Uint32Array(B.decodePixels().buffer):B.pixelBitlength==16?new Uint16Array(B.decodePixels().buffer):new Uint8Array(B.decodePixels().buffer)).length,pt=new Uint8Array(U*B.colors),et=new Uint8Array(U);var ut,tt=B.pixelBitlength-B.bits;for(H=0,T=0;H<U;H++){for(I=K[H],ut=0;ut<tt;)pt[T++]=I>>>ut&255,ut+=B.bits;et[H]=I>>>ut&255}}if(B.bits===16){U=(K=new Uint32Array(B.decodePixels().buffer)).length,pt=new Uint8Array(U*(32/B.pixelBitlength)*B.colors),et=new Uint8Array(U*(32/B.pixelBitlength)),P=B.colors>1,H=0,T=0;for(var ht=0;H<U;)I=K[H++],pt[T++]=I>>>0&255,P&&(pt[T++]=I>>>16&255,I=K[H++],pt[T++]=I>>>0&255),et[ht++]=I>>>16&255;_=8}k!==r.image_compression.NONE&&e()?(A=n(pt,B.width*B.colors,B.colors,k),xt=n(et,B.width,1,k)):(A=pt,xt=et,st=void 0)}if(B.colorType===3&&(D=this.color_spaces.INDEXED,lt=B.palette,B.transparency.indexed)){var gt=B.transparency.indexed,Ct=0;for(H=0,U=gt.length;H<U;++H)Ct+=gt[H];if((Ct/=255)===U-1&&gt.indexOf(0)!==-1)Y=[gt.indexOf(0)];else if(Ct!==U){for(K=B.decodePixels(),et=new Uint8Array(K.length),H=0,U=K.length;H<U;H++)et[H]=gt[K[H]];xt=n(et,B.width,1)}}var x=function(F){var O;switch(F){case r.image_compression.FAST:O=11;break;case r.image_compression.MEDIUM:O=13;break;case r.image_compression.SLOW:O=14;break;default:O=12}return O}(k);return st===this.decode.FLATE_DECODE&&(it="/Predictor "+x+" "),it+="/Colors "+ot+" /BitsPerComponent "+_+" /Columns "+B.width,(this.__addimage__.isArrayBuffer(A)||this.__addimage__.isArrayBufferView(A))&&(A=this.__addimage__.arrayBufferToBinaryString(A)),(xt&&this.__addimage__.isArrayBuffer(xt)||this.__addimage__.isArrayBufferView(xt))&&(xt=this.__addimage__.arrayBufferToBinaryString(xt)),{alias:j,data:A,index:p,filter:st,decodeParameters:it,transparency:Y,palette:lt,sMask:xt,predictor:x,width:B.width,height:B.height,bitsPerComponent:_,colorSpace:D}}}})(Wt.API),function(r){r.processGIF89A=function(e,n,a,s){var o=new Fu(e),l=o.width,h=o.height,f=[];o.decodeAndBlitFrameRGBA(0,f);var g={data:f,width:l,height:h},v=new _s(100).encode(g,100);return r.processJPEG.call(this,v,n,a,s)},r.processGIF87A=r.processGIF89A}(Wt.API),zn.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var r=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(r);for(var e=0;e<r;e++){var n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:s,green:a,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},zn.prototype.parseBGR=function(){this.pos=this.offset;try{var r="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[r]()}catch(n){me.log("bit decode error:"+n)}},zn.prototype.bit1=function(){var r,e=Math.ceil(this.width/8),n=e%4;for(r=this.height-1;r>=0;r--){for(var a=this.bottom_up?r:this.height-1-r,s=0;s<e;s++)for(var o=this.datav.getUint8(this.pos++,!0),l=a*this.width*4+8*s*4,h=0;h<8&&8*s+h<this.width;h++){var f=this.palette[o>>7-h&1];
vendor: 4,667 bytes, line 165
165this.data[l+4*h]=f.blue,this.data[l+4*h+1]=f.green,this.data[l+4*h+2]=f.red,this.data[l+4*h+3]=255}n!==0&&(this.pos+=4-n)}},zn.prototype.bit4=function(){for(var r=Math.ceil(this.width/2),e=r%4,n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,s=0;s<r;s++){var o=this.datav.getUint8(this.pos++,!0),l=a*this.width*4+2*s*4,h=o>>4,f=15&o,g=this.palette[h];if(this.data[l]=g.blue,this.data[l+1]=g.green,this.data[l+2]=g.red,this.data[l+3]=255,2*s+1>=this.width)break;g=this.palette[f],this.data[l+4]=g.blue,this.data[l+4+1]=g.green,this.data[l+4+2]=g.red,this.data[l+4+3]=255}e!==0&&(this.pos+=4-e)}},zn.prototype.bit8=function(){for(var r=this.width%4,e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,a=0;a<this.width;a++){var s=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*a;if(s<this.palette.length){var l=this.palette[s];this.data[o]=l.red,this.data[o+1]=l.green,this.data[o+2]=l.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}r!==0&&(this.pos+=4-r)}},zn.prototype.bit15=function(){for(var r=this.width%3,e=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,s=0;s<this.width;s++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(o&e)/e*255|0,h=(o>>5&e)/e*255|0,f=(o>>10&e)/e*255|0,g=o>>15?255:0,v=a*this.width*4+4*s;this.data[v]=f,this.data[v+1]=h,this.data[v+2]=l,this.data[v+3]=g}this.pos+=r}},zn.prototype.bit16=function(){for(var r=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),a=this.height-1;a>=0;a--){for(var s=this.bottom_up?a:this.height-1-a,o=0;o<this.width;o++){var l=this.datav.getUint16(this.pos,!0);this.pos+=2;var h=(l&e)/e*255|0,f=(l>>5&n)/n*255|0,g=(l>>11)/e*255|0,v=s*this.width*4+4*o;this.data[v]=g,this.data[v+1]=f,this.data[v+2]=h,this.data[v+3]=255}this.pos+=r}},zn.prototype.bit24=function(){for(var r=this.height-1;r>=0;r--){for(var e=this.bottom_up?r:this.height-1-r,n=0;n<this.width;n++){var a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),l=e*this.width*4+4*n;this.data[l]=o,this.data[l+1]=s,this.data[l+2]=a,this.data[l+3]=255}this.pos+=this.width%4}},zn.prototype.bit32=function(){for(var r=this.height-1;r>=0;r--)for(var e=this.bottom_up?r:this.height-1-r,n=0;n<this.width;n++){var a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),l=this.datav.getUint8(this.pos++,!0),h=e*this.width*4+4*n;this.data[h]=o,this.data[h+1]=s,this.data[h+2]=a,this.data[h+3]=l}},zn.prototype.getData=function(){return this.data},function(r){r.processBMP=function(e,n,a,s){var o=new zn(e,!1),l=o.width,h=o.height,f={data:o.getData(),width:l,height:h},g=new _s(100).encode(f,100);return r.processJPEG.call(this,g,n,a,s)}}(Wt.API),Mc.prototype.getData=function(){return this.data},function(r){r.processWEBP=function(e,n,a,s){var o=new Mc(e),l=o.width,h=o.height,f={data:o.getData(),width:l,height:h},g=new _s(100).encode(f,100);return r.processJPEG.call(this,g,n,a,s)}}(Wt.API),Wt.API.processRGBA=function(r,e,n){for(var a=r.data,s=a.length,o=new Uint8Array(s/4*3),l=new Uint8Array(s/4),h=0,f=0,g=0;g<s;g+=4){var v=a[g],b=a[g+1],A=a[g+2],p=a[g+3];o[h++]=v,o[h++]=b,o[h++]=A,l[f++]=p}var j=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(l),data:j,index:e,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:r.width,height:r.height}},Wt.API.setLanguage=function(r){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canad
165a)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[r]!==void 0&&(this.internal.languageSettings.languageCode=r,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Ci=Wt.API,go=Ci.getCharWidthsArray=function(r,e){var n,a,s=(e=e||{}).font||this.internal.getFont(),o=e.fontSize||this.internal.getFontSize(),l=e.charSpace||this.internal.getCharSpace(),h=e.widths?e.widths:s.metadata.Unicode.widths,f=h.fof?h.fof:1,g=e.kerning?e.kerning:s.metadata.Unicode.kerning,v=g.fof?g.fof:1,b=e.doKerning!==!1,A=0,p=r.length,j=0,k=h[0]||f,D=[];for(n=0;n<p;n++)a=r.charCodeAt(n),typeof s.metadata.widthOfString=="function"?D.push((s.metadata.widthOfGlyph(s.metadata.characterToGlyph(a))+l*(1e3/o)||0)/1e3):(A=b&&ve(g[a])==="object"&&!isNaN(parseInt(g[a][j],10))?g[a][j]/v:0,D.push((h[a]||k)/f+A)),j=a;return D},jc=Ci.getStringUnitWidth=function(r,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),a=e.font||this.internal.getFont(),s=e.charSpace||this.internal.getCharSpace();return Ci.processArabic&&(r=Ci.processArabic(r)),typeof a.metadata.widthOfString=="function"?a.metadata.widthOfString(r,n,s)/n:go.apply(this,arguments).reduce(function(o,l){return o+l},0)},Ec=function(r,e,n,a){for(var s=[],o=0,l=r.length,h=0;o!==l&&h+e[o]<n;)h+=e[o],o++;s.push(r.slice(0,o));var f=o;for(h=0;o!==l;)h+e[o]>a&&(s.push(r.slice(f,o)),h=0,f=o),h+=e[o],o++;return f!==o&&s.push(r.slice(f,o)),s},Bc=function(r,e,n){n||(n={});var a,s,o,l,h,f,g,v=[],b=[v],A=n.textIndent||0,p=0,j=0,k=r.split(" "),D=go.apply(this,[" ",n])[0];if(f=n.lineIndent===-1?k[0].length+2:n.lineIndent||0){var _=Array(f).join(" "),B=[];k.map(function(ot){(ot=ot.split(/\s*\n/)).length>1?B=B.concat(ot.map(function(lt,xt){return(xt&&lt.length?`
166`:"")+lt})):B.push(ot[0])}),k=B,f=jc.apply(this,[_,n])}for(o=0,l=k.length;o<l;o++){var Y=0;if(a=k[o],f&&a[0]==`
167`&&(a=a.substr(1),Y=1),A+p+(j=(s=go.apply(this,[a,n])).reduce(function(ot,lt){return ot+lt},0))>e||Y){if(j>e){for(h=Ec.apply(this,[a,s,e-(A+p),e]),v.push(h.shift()),v=[h.pop()];h.length;)b.push([h.shift()]);j=s.slice(a.length-(v[0]?v[0].length:0)).reduce(function(ot,lt){return ot+lt},0)}else v=[a];b.push(v),A=j+f,p=D}else v.push(a),A+=p+j,p=D}return g=f?function(ot,lt){return(lt?_:"")+ot.join(" ")}:function(ot){return ot.join(" ")},b.map(g)},Ci.splitTextToSize=function(r,e,n){var a,s=(n=n||{}).fontSize||this.internal.getFontSize(),o=(function(v){if(v.widths&&v.kerning)return{widths:v.widths,kerning:v.kerning};var b=this.internal.getFont(v.fontName,v.fontStyle);return b.metadata.Unicode?{widths:b.metadata.Unicode.widths||{0:1},kerning:b.metadata.Unicode.kerning||{}}:{font:b.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);a=Array.isArray(r)?r:String(r).split(/\r?\n/);var l=1*this.internal.scaleFactor*e/s;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/s:0,o.lineIndent=n.lineIndent;var h,f,g=[];for(h=0,f=a.length;h<f;h++)g=g.concat(Bc.apply(this,[a[h],l,o]));return g},function(r){r.__fontmetrics__=r.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",n={},a={},s=0;s<e.length;s++)n[e[s]]="0123456789abcdef"[s],a["0123456789abcdef"[s]]=e[s];var o=function(b){return"0x"+parseInt(b,10).toString(16)},l=r.__fontmetrics__.compress=function(b){var A,p,j,k,D=["{"];for(var _ in b){if(A=b[_],isNaN(parseInt(_,10))?p="'"+_+"'":(_=parseInt(_,10),p=(p=o(_).slice(2)).slice(0,-1)+a[p.slice(-1)]),typeof A=="number")A<0?(j=o(A).slice(3),k="-"):(j=o(A).slice(2),k=""),j=k+j.slice(0,-1)+a[j.slice(-1)];
vendor: 3,672 bytes, line 167
167else{if(ve(A)!=="object")throw new Error("Don't know what to do with value type "+ve(A)+".");j=l(A)}D.push(p+j)}return D.push("}"),D.join("")},h=r.__fontmetrics__.uncompress=function(b){if(typeof b!="string")throw new Error("Invalid argument passed to uncompress.");for(var A,p,j,k,D={},_=1,B=D,Y=[],ot="",lt="",xt=b.length-1,K=1;K<xt;K+=1)(k=b[K])=="'"?A?(j=A.join(""),A=void 0):A=[]:A?A.push(k):k=="{"?(Y.push([B,j]),B={},j=void 0):k=="}"?((p=Y.pop())[0][p[1]]=B,j=void 0,B=p[0]):k=="-"?_=-1:j===void 0?n.hasOwnProperty(k)?(ot+=n[k],j=parseInt(ot,16)*_,_=1,ot=""):ot+=k:n.hasOwnProperty(k)?(lt+=n[k],B[j]=parseInt(lt,16)*_,_=1,j=void 0,lt=""):lt+=k;return D},f={codePages:["WinAnsiEncoding"],WinAnsiEncoding:h("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},g={Unicode:{Courier:f,"Courier-Bold":f,"Courier-BoldOblique":f,"Courier-Oblique":f,Helvetica:f,"Helvetica-Bold":f,"Helvetica-BoldOblique":f,"Helvetica-Oblique":f,"Times-Roman":f,"Times-Bold":f,"Times-BoldItalic":f,"Times-Italic":f}},v={Unicode:{"Courier-Oblique":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":h("{'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":h("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
167dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'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:h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":h("{'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:h("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:h("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
167dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'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":h("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
167dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'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:h("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":h("{'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}
167fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":h("{'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":h("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
167dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};r.events.push(["addFont",function(b){var A=b.font,p=v.Unicode[A.postScriptName];p&&(A.metadata.Unicode={},A.metadata.Unicode.widths=p.widths,A.metadata.Unicode.kerning=p.kerning);var j=g.Unicode[A.postScriptName];j&&(A.metadata.Unicode.encoding=j,A.encoding=j.codePages[0])}])}(Wt.API),function(r){var e=function(n){for(var a=n.length,s=new Uint8Array(a),o=0;o<a;o++)s[o]=n.charCodeAt(o);return s};r.API.events.push(["addFont",function(n){var a=void 0,s=n.font,o=n.instance;if(!s.isStandardFont){if(o===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");if(typeof(a=o.existsFileInVFS(s.postScriptName)===!1?o.loadFile(s.postScriptName):o.getFileFromVFS(s.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");(function(l,h){h=/^\x00\x01\x00\x00/.test(h)?e(h):e(ba(h)),l.metadata=r.API.TTFFont.open(h),l.metadata.Unicode=l.metadata.Unicode||{encoding:{},kerning:{},widths:[]},l.metadata.glyIdsUsed=[0]})(s,a)}}])}(Wt),function(r){function e(){return(Vt.canvg?Promise.resolve(Vt.canvg):No(()=>import("./index.es-C6b2nYs_.js"),__vite__mapDeps([0,1,2,3]))).catch(function(n){return Promise.reject(new Error("Could not load canvg: "+n))}).then(function(n){return n.default?n.default:n})}Wt.API.addSvgAsImage=function(n,a,s,o,l,h,f,g){if(isNaN(a)||isNaN(s))throw me.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(o)||isNaN(l))throw me.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var v=document.createElement("canvas");v.width=o,v.height=l;var b=v.getContext("2d");b.fillStyle="#fff",b.fillRect(0,0,v.width,v.height);var A={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},p=this;return e().then(function(j){return j.fromString(b,n,A)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(j){return j.render(A)}).then(function(){p.addImage(v.toDataURL("image/jpeg",1),a,s,o,l,f,g)})}}(),Wt.API.putTotalPages=function(r){var e,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(r,"g"),n=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(r,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var a=1;a<=this.internal.getNumberOfPages();a++)for(var s=0;s<this.internal.pages[a].length;s++)this.internal.pages[a][s]=this.internal.pages[a][s].replace(e,n);return this},Wt.API.viewerPreferences=function(r,e){var n;r=r||{},e=e||!1;var a,s,o,l={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}},h=Object.keys(l),f=[],g=0,v=0,b=0;function A(j,k){var D,_=!1;for(D=0;D<j.length;D+=1)j[D]===k&&(_=!0);return _}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(l)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,r==="reset"||e===!0){var p=h.length;for(b=0;b<p;b+=1)n[h[b]].value=n[h[b]].defaultValue,n[h[b]].explicitSet=!1}
vendor: 4,292 bytes, lines 167-195
167if(ve(r)==="object"){for(s in r)if(o=r[s],A(h,s)&&o!==void 0){if(n[s].type==="boolean"&&typeof o=="boolean")n[s].value=o;else if(n[s].type==="name"&&A(n[s].valueSet,o))n[s].value=o;else if(n[s].type==="integer"&&Number.isInteger(o))n[s].value=o;else if(n[s].type==="array"){for(g=0;g<o.length;g+=1)if(a=!0,o[g].length===1&&typeof o[g][0]=="number")f.push(String(o[g]-1));else if(o[g].length>1){for(v=0;v<o[g].length;v+=1)typeof o[g][v]!="number"&&(a=!1);a===!0&&f.push([o[g][0]-1,o[g][1]-1].join(" "))}n[s].value="["+f.join(" ")+"]"}else n[s].value=n[s].defaultValue;n[s].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var j,k=[];for(j in n)n[j].explicitSet===!0&&(n[j].type==="name"?k.push("/"+j+" /"+n[j].value):k.push("/"+j+" "+n[j].value));k.length!==0&&this.internal.write(`/ViewerPreferences
168<<
169`+k.join(`
170`)+`
171>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},function(r){var e=function(){var a='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',s=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),o=unescape(encodeURIComponent(a)),l=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),h=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),f=unescape(encodeURIComponent("</x:xmpmeta>")),g=o.length+l.length+h.length+s.length+f.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+g+" >>"),this.internal.write("stream"),this.internal.write(s+o+l+h+f),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};r.addMetadata=function(a,s){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:a,namespaceuri:s||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",e)),this}}(Wt.API),function(r){var e=r.API,n=e.pdfEscape16=function(o,l){for(var h,f=l.metadata.Unicode.widths,g=["","0","00","000","0000"],v=[""],b=0,A=o.length;b<A;++b){if(h=l.metadata.characterToGlyph(o.charCodeAt(b)),l.metadata.glyIdsUsed.push(h),l.metadata.toUnicode[h]=o.charCodeAt(b),f.indexOf(h)==-1&&(f.push(h),f.push([parseInt(l.metadata.widthOfGlyph(h),10)])),h=="0")return v.join("");h=h.toString(16),v.push(g[4-h.length],h)}return v.join("")},a=function(o){var l,h,f,g,v,b,A;for(v=`/CIDInit /ProcSet findresource begin
17212 dict begin
173begincmap
174/CIDSystemInfo <<
175  /Registry (Adobe)
176  /Ordering (UCS)
177  /Supplement 0
178>> def
179/CMapName /Adobe-Identity-UCS def
180/CMapType 2 def
1811 begincodespacerange
182<0000><ffff>
183endcodespacerange`,f=[],b=0,A=(h=Object.keys(o).sort(function(p,j){return p-j})).length;b<A;b++)l=h[b],f.length>=100&&(v+=`
184`+f.length+` beginbfchar
185`+f.join(`
186`)+`
187endbfchar`,f=[]),o[l]!==void 0&&o[l]!==null&&typeof o[l].toString=="function"&&(g=("0000"+o[l].toString(16)).slice(-4),l=("0000"+(+l).toString(16)).slice(-4),f.push("<"+l+"><"+g+">"));return f.length&&(v+=`
188`+f.length+` beginbfchar
189`+f.join(`
190`)+`
191endbfchar
192`),v+=`endcmap
193CMapName currentdict /CMap defineresource pop
194end
195end`};e.events.push(["putFont",function(o){(function(l){var h=l.font,f=l.out,g=l.newObject,v=l.putStream;if(h.metadata instanceof r.API.TTFFont&&h.encoding==="Identity-H"){for(var b=h.metadata.Unicode.widths,A=h.metadata.subset.encode(h.metadata.glyIdsUsed,1),p="",j=0;j<A.length;j++)p+=String.fromCharCode(A[j]);var k=g();v({data:p,addLength1:!0,objectId:k}),f("endobj");var D=g();v({data:a(h.metadata.toUnicode),addLength1:!0,objectId:D}),f("endobj");var _=g();f("<<"),f("/Type /FontDescriptor"),f("/FontName /"+ji(h.fontName)),f("/FontFile2 "+k+" 0 R"),f("/FontBBox "+r.API.PDFObject.convert(h.metadata.bbox)),f("/Flags "+h.metadata.flags),f("/StemV "+h.metadata.stemV),f("/ItalicAngle "+h.metadata.italicAngle),f("/Ascent "+h.metadata.ascender),f("/Descent "+h.metadata.decender),f("/CapHeight "+h.metadata.capHeight),f(">>
195"),f("endobj");var B=g();f("<<"),f("/Type /Font"),f("/BaseFont /"+ji(h.fontName)),f("/FontDescriptor "+_+" 0 R"),f("/W "+r.API.PDFObject.convert(b)),f("/CIDToGIDMap /Identity"),f("/DW 1000"),f("/Subtype /CIDFontType2"),f("/CIDSystemInfo"),f("<<"),f("/Supplement 0"),f("/Registry (Adobe)"),f("/Ordering ("+h.encoding+")"),f(">>"),f(">>"),f("endobj"),h.objectNumber=g(),f("<<"),f("/Type /Font"),f("/Subtype /Type0"),f("/ToUnicode "+D+" 0 R"),f("/BaseFont /"+ji(h.fontName)),f("/Encoding /"+h.encoding),f("/DescendantFonts ["+B+" 0 R]"),f(">>"),f("endobj"),h.isAlreadyPutted=!0}})(o)}]),e.events.push(["putFont",function(o){(function(l){var h=l.font,f=l.out,g=l.newObject,v=l.putStream;if(h.metadata instanceof r.API.TTFFont&&h.encoding==="WinAnsiEncoding"){for(var b=h.metadata.rawData,A="",p=0;p<b.length;p++)A+=String.fromCharCode(b[p]);var j=g();v({data:A,addLength1:!0,objectId:j}),f("endobj");var k=g();v({data:a(h.metadata.toUnicode),addLength1:!0,objectId:k}),f("endobj");var D=g();f("<<"),f("/Descent "+h.metadata.decender),f("/CapHeight "+h.metadata.capHeight),f("/StemV "+h.metadata.stemV),f("/Type /FontDescriptor"),f("/FontFile2 "+j+" 0 R"),f("/Flags 96"),f("/FontBBox "+r.API.PDFObject.convert(h.metadata.bbox)),f("/FontName /"+ji(h.fontName)),f("/ItalicAngle "+h.metadata.italicAngle),f("/Ascent "+h.metadata.ascender),f(">>"),f("endobj"),h.objectNumber=g();for(var _=0;_<h.metadata.hmtx.widths.length;_++)h.metadata.hmtx.widths[_]=parseInt(h.metadata.hmtx.widths[_]*(1e3/h.metadata.head.unitsPerEm));f("<</Subtype/TrueType/Type/Font/ToUnicode "+k+" 0 R/BaseFont/"+ji(h.fontName)+"/FontDescriptor "+D+" 0 R/Encoding/"+h.encoding+" /FirstChar 29 /LastChar 255 /Widths "+r.API.PDFObject.convert(h.metadata.hmtx.widths)+">>"),f("endobj"),h.isAlreadyPutted=!0}})(o)}]);var s=function(o){var l,h=o.text||"",f=o.x,g=o.y,v=o.options||{},b=o.mutex||{},A=b.pdfEscape,p=b.activeFontKey,j=b.fonts,k=p,D="",_=0,B="",Y=j[k].encoding;if(j[k].encoding!=="Identity-H")return{text:h,x:f,y:g,options:v,mutex:b};for(B=h,k=p,Array.isArray(h)&&(B=h[0]),_=0;_<B.length;_+=1)j[k].metadata.hasOwnProperty("cmap")&&(l=j[k].metadata.cmap.unicode.codeMap[B[_].charCodeAt(0)]),l||B[_].charCodeAt(0)<256&&j[k].metadata.hasOwnProperty("Unicode")?D+=B[_]:D+="";var ot="";return parseInt(k.slice(1))<14||Y==="WinAnsiEncoding"?ot=A(D,k).split("").map(function(lt){return lt.charCodeAt(0).toString(16)}).join(""):Y==="Identity-H"&&(ot=n(D,j[k])),b.isHex=!0,{text:ot,x:f,y:g,options:v,mutex:b}};e.events.push(["postProcessText",function(o){var l=o.text||"",h=[],f={text:l,x:o.x,y:o.y,options:o.options,mutex:o.mutex};if(Array.isArray(l)){var g=0;for(g=0;g<l.length;g+=1)Array.isArray(l[g])&&l[g].length===3?h.push([s(Object.assign({},f,{text:l[g][0]})).text,l[g][1],l[g][2]]):h.push(s(Object.assign({},f,{text:l[g]})).text);o.text=h}else o.text=s(Object.assign({},f,{text:l})).text}])}(Wt),function(r){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};r.existsFileInVFS=function(n){return e.call(this),this.internal.vFS[n]!==void 0},r.addFileToVFS=function(n,a){return e.call(this),this.internal.vFS[n]=a,this},r.getFileFromVFS=function(n){return e.call(this),this.internal.vFS[n]!==void 0?this.internal.vFS[n]:null}}(Wt.API),function(r){r.__bidiEngine__=r.prototype.__bidiEngine__=function(a){var s,o,l,h,f,g,v,b=e,A=[[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]],j={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},k={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},D=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],_=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)$/),B=!1,Y=0;this.__bidiEngine__={};var ot=function(P){var I=P.charCodeAt(),H=I>>8,T=k[H];return T!==void 0?b[256*T+(255&I)]:H===252||H===253?"AL":_.test(H)?"L":H===8?"R":"N"},lt=function(P){for(var I,H=0;H<P.length;H++){if((I=ot(P.charAt(H)))==="L")return!1;if(I==="R")return!0}return!1},xt=function(P,I,H,T){var st,it,ut,tt,ht=I[T];switch(ht){case"L":case"R":B=!1;break;case"N":case"AN":break;case"EN":B&&(ht="AN");break;case"AL":B=!0,ht="R";break;case"WS":ht="N";break;case"CS":T<1||T+1>=I.length||(st=H[T-1])!=="EN"&&st!=="AN"||(it=I[T+1])!=="EN"&&it!=="AN"?ht="N":B&&(it="AN"),ht=it===st?it:"N";break;case"ES":ht=(st=T>0?H[T-1]:"B")==="EN"&&T+1<I.length&&I[T+1]==="EN"?"EN":"N";break;case"ET":if(T>0&&H[T-1]==="EN"){ht="EN";break}if(B){ht="N";break}for(ut=T+1,tt=I.length;ut<tt&&I[ut]==="ET";)ut++;ht=ut<tt&&I[ut]==="EN"?"EN":"N";break;case"NSM":if(l&&!h){for(tt=I.length,ut=T+1;ut<tt&&I[ut]==="NSM";)ut++;if(ut<tt){var gt=P[T],Ct=gt>=1425&&gt<=2303||gt===64286;if(st=I[ut],Ct&&(st==="R"||st==="AL")){ht="R";break}}}ht=T<1||(st=I[T-1])==="B"?"N":H[T-1];break;case"B":B=!1,s=!0,ht=Y;break;case"S":o=!0,ht="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":B=!1;break;case"BN":ht="N"}return ht},K=function(P,I,H){var T=P.split("");return H&&U(T,H,{hiLevel:Y}),T.reverse(),I&&I.reverse(),T.join("")},U=function(P,I,H){var T,st,it,ut,tt,ht=-1,gt=P.length,Ct=0,x=[],F=Y?p:A,O=[];for(B=!1,s=!1,o=!1,st=0;st<gt;st++)O[st]=ot(P[st]);for(it=0;it<gt;it++){if(tt=Ct,x[it]=xt(P,O,x,it),T=240&(Ct=F[tt][j[x[it]]]),Ct&=15,I[it]=ut=F[Ct][5],T>0)if(T===16){for(st=ht;st<it;st++)I[st]=1;ht=-1}else ht=-1;if(F[Ct][6])ht===-1&&(ht=it);else if(ht>-1){for(st=ht;st<it;st++)I[st]=ut;ht=-1}O[it]==="B"&&(I[it]=0),H.hiLevel|=ut}o&&function(R,J,M){for(var rt=0;rt<M;rt++)if(R[rt]==="S"){J[rt]=Y;for(var nt=rt-1;nt>=0&&R[nt]==="WS";nt--)J[nt]=Y}}(O,I,gt)},et=function(P,I,H,T,st){if(!(st.hiLevel<P)){if(P===1&&Y===1&&!s)return I.reverse(),void(H&&H.reverse());for(var it,ut,tt,ht,gt=I.length,Ct=0;Ct<gt;){if(T[Ct]>=P){for(tt=Ct+1;tt<gt&&T[tt]>=P;)tt++;for(ht=Ct,ut=tt-1;ht<ut;ht++,ut--)it=I[ht],I[ht]=I[ut],I[ut]=it,H&&(it=H[ht],H[ht]=H[ut],H[ut]=it);Ct=tt}Ct++}}},pt=function(P,I,H){var T=P.split(""),st={hiLevel:Y};return H||(H=[]),U(T,H,st),function(it,ut,tt){if(tt.hiLevel!==0&&v)for(var ht,gt=0;gt<it.length;gt++)ut[gt]===1&&(ht=D.indexOf(it[gt]))>=0&&(it[gt]=D[ht+1])}(T,H,st),et(2,T,I,H,st),et(1,T,I,H,st),T.join("")};return this.__bidiEngine__.doBidiReorder=function(P,I,H){if(function(st,it){if(it)for(var ut=0;ut<st.length;ut++)it[ut]=ut;h===void 0&&(h=lt(st)),g===void 0&&(g=lt(st))}(P,I),l||!f||g)if(l&&f&&h^g)Y=h?1:0,P=K(P,I,H);else if(!l&&f&&g)Y=h?1:0,P=pt(P,I,H),P=K(P,I);else if(!l||h||f||g){if(l&&!f&&h^g)P=K(P,I),h?(Y=0,P=pt(P,I,H)):(Y=1,P=pt(P,I,H),P=K(P,I));else if(l&&h&&!f&&g)Y=1,P=pt(P,I,H),P=K(P,I);else if(!l&&!f&&h^g){var T=v;h?(Y=1,P=pt(P,I,H),Y=0,v=!1,P=pt(P,I,H),v=T):(Y=0,P=pt(P,I,H),P=K(P,I),Y=1,v=!1,P=pt(P,I,H),v=T,P=K(P,I))}}else Y=0,P=pt(P,I,H);else Y=h?1:0,P=pt(P,I,H);return P},this.__bidiEngine__.setOptions=function(P){P&&(l=P.isInputVisual,f=P.isOutputVisual,h=P.isInputRtl,g=P.isOutputRtl,v=P.isSymmetricSwapping)},this.__bidiEngine__.setOptions(a),this.__bidiEngine__};var e=["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"
vendor: 14,763 bytes, line 195
195,"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"],n=new r.__bidiEngine__({isInputVisual:!0});r.API.events.push(["postProcessText",function(a){var s=a.text,o=(a.x,a.y,a.options||{}),l=(a.mutex,o.lang,[]);if(o.isInputVisual=typeof o.isInputVisual!="boolean"||o.isInputVisual,n.setOptions(o),Object.prototype.toString.call(s)==="[object Array]"){var h=0;for(l=[],h=0;h<s.length;h+=1)Object.prototype.toString.call(s[h])==="[object Array]"?l.push([n.doBidiReorder(s[h][0]),s[h][1],s[h][2]]):l.push([n.doBidiReorder(s[h])]);a.text=l}else a.text=n.doBidiReorder(s);n.setOptions({isInputVisual:!0})}])}(Wt),Wt.API.TTFFont=function(){function r(e){var n;if(this.rawData=e,n=this.contents=new Mr(e),this.contents.pos=4,n.readString(4)==="ttcf")throw new Error("TTCF not supported.");n.pos=0,this.parse(),this.subset=new Gu(this),this.registerTTF()}return r.open=function(e){return new r(e)},r.prototype.parse=function(){return this.directory=new ju(this.contents),this.head=new Bu(this),this.name=new Tu(this),this.cmap=new ol(this),this.toUnicode={},this.hhea=new Ou(this),this.maxp=new Ru(this),this.hmtx=new zu(this),this.post=new qu(this),this.os2=new Mu(this),this.loca=new Vu(this),this.glyf=new Uu(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},r.prototype.registerTTF=function(){var e,n,a,s,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var l,h,f,g;for(g=[],l=0,h=(f=this.bbox).length;l<h;l++)e=f[l],g.push(Math.round(e*this.scaleFactor));return g}).call(this),this.stemV=0,this.post.exists?(a=255&(s=this.post.italic_angle),32768&(n=s>>16)&&(n=-(1+(65535^n))),this.italicAngle=+(n+"."+a)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(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")},r.prototype.characterToGlyph=function(e){var n;return((n=this.cmap.unicode)!=null?n.codeMap[e]:void 0)||0},r.prototype.widthOfGlyph=function(e){var n;return n=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*n},r.prototype.widthOfString=function(e,n,a){var s,o,l,h;for(l=0,o=0,h=(e=""+e).length;0<=h?o<h:o>h;o=0<=h?++o:--o)s=e.charCodeAt(o),l+=this.widthOfGlyph(this.characterToGlyph(s))+a*(1e3/n)||0;return l*(n/1e3)},r.prototype.lineHeight=function(e,n){var a;return n==null&&(n=!1),a=n?this.lineGap:0,(this.ascender+a-this.decender)/1e3*e},r}();var Wn,Mr=function(){function r(e){this.data=e??[],this.pos=0,this.length=this.data.length}return r.prototype.readByte=function(){return this.data[this.pos++]},r.prototype.writeByte=function(e){return this.data[this.pos++]=e},r.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},r.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},r.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},r.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},r.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},r.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},r.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},r.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},r.prototype.readString=function(e){var n,a;for(a=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)a[n]=String.fromCharCode(this.readByte());return a.join("")},r.prototype.writeString=function(e){var n,a,s;for(s=[],n=0,a=e.length;0<=a?n<a:n>a;n=0<=a?++n:--n)s.push(this.writeByte(e.charCodeAt(n)));return s},r.prototype.readShort=function(){return this.readInt16()},r.prototype.writeShort=function(e){return this.writeInt16(e)},r.prototype.readLongLong=function(){var e,n,a,s,o,l,h,f;return e=this.readByte(),n=this.readByte(),a=this.readByte(),s=this.readByte(),o=this.readByte(),l=this.readByte(),h=this.readByte(),f=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^n)+1099511627776*(255^a)+4294967296*(255^s)+16777216*(255^o)+65536*(255^l)+256*(255^h)+(255^f)+1):72057594037927940*e+281474976710656*n+1099511627776*a+4294967296*s+16777216*o+65536*l+256*h+f},r.prototype.writeLongLong=function(e){var n,a;return n=Math.floor(e/4294967296),a=4294967295&e,this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n),this.writeByte(a>>24&255),this.writeByte(a>>16&255),this.writeByte(a>>8&255),this.writeByte(255&a)},r.prototype.readInt=function(){return this.readInt32()},r.prototype.writeInt=function(e){return this.writeInt32(e)},r.prototype.read=function(e){var n,a;for(n=[],a=0;0<=e?a<e:a>e;a=0<=e?++a:--a)n.push(this.readByte());return n},r.prototype.write=function(e){var n,a,s,o;for(o=[],a=0,s=e.length;a<s;a++)n=e[a],o.push(this.writeByte(n));return o},r}(),ju=function(){var r;function e(n){var a,s,o;for(this.scalarType=n.readInt(),this.tableCount=n.readShort(),this.searchRange=n.readShort(),this.entrySelector=n.readShort(),this.rangeShift=n.readShort(),this.tables={},s=0,o=this.tableCount;0<=o?s<o:s>o;s=0<=o?++s:--s)a={tag:n.readString(4),checksum:n.readInt(),offset:n.readInt(),length:n.readInt()},this.tables[a.tag]=a}return e.prototype.encode=function(n){var a,s,o,l,h,f,g,v,b,A,p,j,k;for(k in p=Object.keys(n).length,f=Math.log(2),b=16*Math.floor(Math.log(p)/f),l=Math.floor(b/f),v=16*p-b,(s=new Mr).writeInt(this.scalarType),s.writeShort(p),s.writeShort(b),s.writeShort(l),s.writeShort(v),o=16*p,g=s.pos+o,h=null,j=[],n)for(A=n[k],s.writeString(k),s.writeInt(r(A)),s.writeInt(g),s.writeInt(A.length),j=j.concat(A),k==="head"&&(h=g),g+=A.length;g%4;)j.push(0),g++;return s.write(j),a=2981146554-r(s.data),s.pos=h+8,s.writeUInt32(a),s.data},r=function(n){var a,s,o,l;for(n=sl.call(n);n.length%4;)n.push(0);for(o=new Mr(n),s=0,a=0,l=n.length;a<l;a=a+=4)s+=o.readUInt32();return 4294967295&s},e}(),Eu={}.hasOwnProperty,ir=function(r,e){for(var n in e)Eu.call(e,n)&&(r[n]=e[n]);function a(){this.constructor=r}return a.prototype=e.prototype,r.prototype=new a,r.__super__=e.prototype,r};Wn=function(){function r(e){var n;this.file=e,n=this.file.directory.tables[this.tag],this.exists=!!n,n&&(this.offset=n.offset,this.length=n.length,this.parse(this.file.contents))}return r.prototype.parse=function(){},r.prototype.encode=function(){},r.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},r}();var Bu=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return ir(e,Wn),e.prototype.tag="head",e.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()},e.prototype.encode=function(n){var a;return(a=new Mr).writeInt(this.version),a.writeInt(this.revision),a.writeInt(this.checkSumAdjustment),a.writeInt(this.magicNumber),a.writeShort(this.flags),a.writeShort(this.unitsPerEm),a.writeLongLong(this.created),a.writeLongLong(this.modified),a.writeShort(this.xMin),a.writeShort(this.yMin),a.writeShort(this.xMax),a.writeShort(this.yMax),a.writeShort(this.macStyle),a.writeShort(this.lowestRecPPEM),a.writeShort(this.fontDirectionHint),a.writeShort(n),a.writeShort(this.glyphDataFormat),a.data},e}(),qc=function(){function r(e,n){var a,s,o,l,h,f,g,v,b,A,p,j,k,D,_,B,Y;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=n+e.readInt(),b=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.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]=e.readByte();break;case 4:for(p=e.readUInt16(),A=p/2,e.pos+=6,o=function(){var ot,lt;for(lt=[],f=ot=0;0<=A?ot<A:ot>A;f=0<=A?++ot:--ot)lt.push(e.readUInt16());return lt}(),e.pos+=2,k=function(){var ot,lt;for(lt=[],f=ot=0;0<=A?ot<A:ot>A;f=0<=A?++ot:--ot)lt.push(e.readUInt16());return lt}(),g=function(){var ot,lt;for(lt=[],f=ot=0;0<=A?ot<A:ot>A;f=0<=A?++ot:--ot)lt.push(e.readUInt16());return lt}(),v=function(){var ot,lt;for(lt=[],f=ot=0;0<=A?ot<A:ot>A;f=0<=A?++ot:--ot)lt.push(e.readUInt16());return lt}(),s=(this.length-e.pos+this.offset)/2,h=function(){var ot,lt;for(lt=[],f=ot=0;0<=s?ot<s:ot>s;f=0<=s?++ot:--ot)lt.push(e.readUInt16());return lt}(),f=_=0,Y=o.length;_<Y;f=++_)for(D=o[f],a=B=j=k[f];j<=D?B<=D:B>=D;a=j<=D?++B:--B)v[f]===0?l=a+g[f]:(l=h[v[f]/2+(a-j)-(A-f)]||0)!==0&&(l+=g[f]),this.codeMap[a]=65535&l}e.pos=b}return r.encode=function(e,n){var a,s,o,l,h,f,g,v,b,A,p,j,k,D,_,B,Y,ot,lt,xt,K,U,et,pt,P,I,H,T,st,it,ut,tt,ht,gt,Ct,x,F,O,R,J,M,rt,nt,St,Nt,_t;switch(T=new Mr,l=Object.keys(e).sort(function(kt,zt){return kt-zt}),n){case"macroman":for(k=0,D=function(){var kt=[];for(j=0;j<256;++j)kt.push(0);return kt}(),B={0:0},o={},st=0,ht=l.length;st<ht;st++)B[nt=e[s=l[st]]]==null&&(B[nt]=++k),o[s]={old:e[s],new:B[e[s]]},D[s]=B[e[s]];return T.writeUInt16(1),T.writeUInt16(0),T.writeUInt32(12),T.writeUInt16(0),T.writeUInt16(262),T.writeUInt16(0),T.write(D),{charMap:o,subtable:T.data,maxGlyphID:k+1};case"unicode":for(I=[],b=[],Y=0,B={},a={},_=g=null,it=0,gt=l.length;it<gt;it++)B[lt=e[s=l[it]]]==null&&(B[lt]=++Y),a[s]={old:lt,new:B[lt]},h=B[lt]-s,_!=null&&h===g||(_&&b.push(_),I.push(s),g=h),_=s;for(_&&b.push(_),b.push(65535),I.push(65535),pt=2*(et=I.length),U=2*Math.pow(Math.log(et)/Math.LN2,2),A=Math.log(U/2)/Math.LN2,K=2*et-U,f=[],xt=[],p=[],j=ut=0,Ct=I.length;ut<Ct;j=++ut){if(P=I[j],v=b[j],P===65535){f.push(0),xt.push(0);break}if(P-(H=a[P].new)>=32768)for(f.push(0),xt.push(2*(p.length+et-j)),s=tt=P;P<=v?tt<=v:tt>=v;s=P<=v?++tt:--tt)p.push(a[s].new);else f.push(H-P),xt.push(0)}for(T.writeUInt16(3),T.writeUInt16(1),T.writeUInt32(12),T.writeUInt16(4),T.writeUInt16(16+8*et+2*p.length),T.writeUInt16(0),T.writeUInt16(pt),T.writeUInt16(U),T.writeUInt16(A),T.writeUInt16(K),M=0,x=b.length;M<x;M++)s=b[M],T.writeUInt16(s);for(T.writeUInt16(0),rt=0,F=I.length;rt<F;rt++)s=I[rt],T.writeUInt16(s);for(St=0,O=f.length;St<O;St++)h=f[St],T.writeUInt16(h);for(Nt=0,R=xt.length;Nt<R;Nt++)ot=xt[Nt],T.writeUInt16(ot);for(_t=0,J=p.length;_t<J;_t++)k=p[_t],T.writeUInt16(k);return{charMap:a,subtable:T.data,maxGlyphID:Y+1}}},r}(),ol=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return ir(e,Wn),e.prototype.tag="cmap",e.prototype.parse=function(n){var a,s,o;for(n.pos=this.offset,this.version=n.readUInt16(),o=n.readUInt16(),this.tables=[],this.unicode=null,s=0;0<=o?s<o:s>o;s=0<=o?++s:--s)a=new qc(n,this.offset),this.tables.push(a),a.isUnicode&&this.unicode==null&&(this.unicode=a);return!0},e.encode=function(n,a){var s,o;return a==null&&(a="macroman"),s=qc.encode(n,a),(o=new Mr).writeUInt16(0),o.writeUInt16(1),s.table=o.data.concat(s.subtable),s},e}(),Ou=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return ir(e,Wn),e.prototype.tag="hhea",e.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()},e}(),Mu=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return ir(e,Wn),e.prototype.tag="OS/2",e.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 a,s;for(s=[],a=0;a<10;++a)s.push(n.readByte());return s}(),this.charRange=function(){var a,s;for(s=[],a=0;a<4;++a)s.push(n.readInt());return s}(),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 a,s;for(s=[],a=0;a<2;a=++a)s.push(n.readInt());return s}(),this.version>1))return this.xHeight=n.readShort(),this.capHeight=n.readShort(),this.defaultChar=n.readShort(),this.breakChar=n.readShort(),this.maxContext=n.readShort()},e}(),qu=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return ir(e,Wn),e.prototype.tag="post",e.prototype.parse=function(n){var a,s,o;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:break;case 131072:var l;
195for(s=n.readUInt16(),this.glyphNameIndex=[],l=0;0<=s?l<s:l>s;l=0<=s?++l:--l)this.glyphNameIndex.push(n.readUInt16());for(this.names=[],o=[];n.pos<this.offset+this.length;)a=n.readByte(),o.push(this.names.push(n.readString(a)));return o;case 151552:return s=n.readUInt16(),this.offsets=n.read(s);case 196608:break;case 262144:return this.map=(function(){var h,f,g;for(g=[],l=h=0,f=this.file.maxp.numGlyphs;0<=f?h<f:h>f;l=0<=f?++h:--h)g.push(n.readUInt32());return g}).call(this)}},e}(),Du=function(r,e){this.raw=r,this.length=r.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},Tu=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return ir(e,Wn),e.prototype.tag="name",e.prototype.parse=function(n){var a,s,o,l,h,f,g,v,b,A,p;for(n.pos=this.offset,n.readShort(),a=n.readShort(),f=n.readShort(),s=[],l=0;0<=a?l<a:l>a;l=0<=a?++l:--l)s.push({platformID:n.readShort(),encodingID:n.readShort(),languageID:n.readShort(),nameID:n.readShort(),length:n.readShort(),offset:this.offset+f+n.readShort()});for(g={},l=b=0,A=s.length;b<A;l=++b)o=s[l],n.pos=o.offset,v=n.readString(o.length),h=new Du(v,o),g[p=o.nameID]==null&&(g[p]=[]),g[o.nameID].push(h);this.strings=g,this.copyright=g[0],this.fontFamily=g[1],this.fontSubfamily=g[2],this.uniqueSubfamily=g[3],this.fontName=g[4],this.version=g[5];try{this.postscriptName=g[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=g[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=g[7],this.manufacturer=g[8],this.designer=g[9],this.description=g[10],this.vendorUrl=g[11],this.designerUrl=g[12],this.license=g[13],this.licenseUrl=g[14],this.preferredFamily=g[15],this.preferredSubfamily=g[17],this.compatibleFull=g[18],this.sampleText=g[19]},e}(),Ru=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return ir(e,Wn),e.prototype.tag="maxp",e.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()},e}(),zu=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return ir(e,Wn),e.prototype.tag="hmtx",e.prototype.parse=function(n){var a,s,o,l,h,f,g;for(n.pos=this.offset,this.metrics=[],a=0,f=this.file.hhea.numberOfMetrics;0<=f?a<f:a>f;a=0<=f?++a:--a)this.metrics.push({advance:n.readUInt16(),lsb:n.readInt16()});for(o=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var v,b;for(b=[],a=v=0;0<=o?v<o:v>o;a=0<=o?++v:--v)b.push(n.readInt16());return b}(),this.widths=(function(){var v,b,A,p;for(p=[],v=0,b=(A=this.metrics).length;v<b;v++)l=A[v],p.push(l.advance);return p}).call(this),s=this.widths[this.widths.length-1],g=[],a=h=0;0<=o?h<o:h>o;a=0<=o?++h:--h)g.push(this.widths.push(s));return g},e.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]}},e}(),sl=[].slice,Uu=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return ir(e,Wn),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(n){var a,s,o,l,h,f,g,v,b,A;return n in this.cache?this.cache[n]:(l=this.file.loca,a=this.file.contents,s=l.indexOf(n),(o=l.lengthOf(n))===0?this.cache[n]=null:(a.pos=this.offset+s,h=(f=new Mr(a.read(o))).readShort(),v=f.readShort(),A=f.readShort(),g=f.readShort(),b=f.readShort(),this.cache[n]=h===-1?new Wu(f,v,A,g,b):new Hu(f,h,v,A,g,b),this.cache[n]))},e.prototype.encode=function(n,a,s){var o,l,h,f,g;for(h=[],l=[],f=0,g=a.length;f<g;f++)o=n[a[f]],l.push(h.length),o&&(h=h.concat(o.encode(s)));return l.push(h.length),{table:h,offsets:l}},e}(),Hu=function(){function r(e,n,a,s,o,l){this.raw=e,this.numberOfContours=n,this.xMin=a,this.yMin=s,this.xMax=o,this.yMax=l,this.compound=!1}return r.prototype.encode=function(){return this.raw.data},r}(),Wu=function(){function r(e,n,a,s,o){var l,h;for(this.raw=e,this.xMin=n,this.yMin=a,this.xMax=s,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],l=this.raw;h=l.readShort(),this.glyphOffsets.push(l.pos),this.glyphIDs.push(l.readUInt16()),32&h;)l.pos+=1&h?4:2,128&h?l.pos+=8:64&h?l.pos+=4:8&h&&(l.pos+=2)}return r.prototype.encode=function(){var e,n,a;for(n=new Mr(sl.call(this.raw.data)),e=0,a=this.glyphIDs.length;e<a;++e)n.pos=this.glyphOffsets[e];return n.data},r}(),Vu=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return ir(e,Wn),e.prototype.tag="loca",e.prototype.parse=function(n){var a,s;return n.pos=this.offset,a=this.file.head.indexToLocFormat,this.offsets=a===0?(function(){var o,l;for(l=[],s=0,o=this.length;s<o;s+=2)l.push(2*n.readUInt16());return l}).call(this):(function(){var o,l;for(l=[],s=0,o=this.length;s<o;s+=4)l.push(n.readUInt32());return l}).call(this)},e.prototype.indexOf=function(n){return this.offsets[n]},e.prototype.lengthOf=function(n){return this.offsets[n+1]-this.offsets[n]},e.prototype.encode=function(n,a){for(var s=new Uint32Array(this.offsets.length),o=0,l=0,h=0;h<s.length;++h)if(s[h]=o,l<a.length&&a[l]==h){++l,s[h]=o;var f=this.offsets[h],g=this.offsets[h+1]-f;g>0&&(o+=g)}for(var v=new Array(4*s.length),b=0;b<s.length;++b)v[4*b+3]=255&s[b],v[4*b+2]=(65280&s[b])>>8,v[4*b+1]=(16711680&s[b])>>16,v[4*b]=(4278190080&s[b])>>24;return v},e}(),Gu=function(){function r(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return r.prototype.generateCmap=function(){var e,n,a,s,o;for(n in s=this.font.cmap.tables[0].codeMap,e={},o=this.subset)a=o[n],e[n]=s[a];return e},r.prototype.glyphsFor=function(e){var n,a,s,o,l,h,f;for(s={},l=0,h=e.length;l<h;l++)s[o=e[l]]=this.font.glyf.glyphFor(o);for(o in n=[],s)(a=s[o])!=null&&a.compound&&n.push.apply(n,a.glyphIDs);if(n.length>0)for(o in f=this.glyphsFor(n))a=f[o],s[o]=a;return s},r.prototype.encode=function(e,n){var a,s,o,l,h,f,g,v,b,A,p,j,k,D,_;for(s in a=ol.encode(this.generateCmap(),"unicode"),l=this.glyphsFor(e),p={0:0},_=a.charMap)p[(f=_[s]).old]=f.new;for(j in A=a.maxGlyphID,l)j in p||(p[j]=A++);return v=function(B){var Y,ot;for(Y in ot={},B)ot[B[Y]]=Y;return ot}(p),b=Object.keys(v).sort(function(B,Y){return B-Y}),k=function(){var B,Y,ot;for(ot=[],B=0,Y=b.length;B<Y;B++)h=b[B],ot.push(v[h]);return ot}(),o=this.font.glyf.encode(l,k,p),g=this.font.loca.encode(o.offsets,k),D={cmap:this.font.cmap.raw(),glyf:o.table,loca:g,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(n)},this.font.os2.exists&&(D["OS/2"]=this.font.os2.raw()),this.font.directory.encode(D)},r}();Wt.API.PDFObject=function(){var r;function e(){}return r=function(n,a){return(Array(a+1).join("0")+n).slice(-a)},e.convert=function(n){var a,s,o,l;if(Array.isArray(n))return"["+function(){var h,f,g;for(g=[],h=0,f=n.length;h<f;h++)a=n[h],g.push(e.convert(a));return g}().join(" ")+"]";if(typeof n=="string")return"/"+n;if(n!=null&&n.isString)return"("+n+")";if(n instanceof Date)return"(D:"+r(n.getUTCFullYear(),4)+r(n.getUTCMonth(),2)+r(n.getUTCDate(),2)+r(n.getUTCHours(),2)+r(n.getUTCMinutes(),2)+r(n.getUTCSeconds(),2)+"Z)";if({}.toString.call(n)==="[object Object]"){for(s in o=["<<"],n)l=n[s],o.push("/"+s+" "+e.convert(l));return o.push(">>"),o.join(`
196`)}return""+n},e}();function cl(r){const e=typeof r=="number"?r:Number(String(r??"").trim());return Number.isFinite(e)?e:0}function Yu(r){const e=cl(r);return e>0?e:0}function Ju(r){const e=cl(r);return Number.isFinite(e)?Math.max(0,Math.min(100,e)):0}function wa(r){const e=String(r??"").trim();if(e==="")return 0;const n=e.replace(/,/g,""),a=Number(n);return Number.isFinite(a)?Math.round(a*100):0}function Oi(r){const e=Number(r)/100;return Number.isFinite(e)?e:0}function Ds(r){const e=String(r||"USD").toUpperCase();try{const n=new Intl.NumberFormat(void 0,{style:"currency",currency:e,currencyDisplay:"symbol"});return n.__ctCurrencyCode=e,n}catch{const n=new Intl.NumberFormat(void 0,{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2});return n.__ctCurrencyCode=e,n}}function $u(r){const e=Yu(r==null?void 0:r.qty),n=wa(r==null?void 0:r.unitPrice),a=wa(r==null?void 0:r.discount),s=Ju(r==null?void 0:r.taxPct),o=Math.round(e*n),l=Math.min(Math.max(a,0),Math.max(o,0)),h=Math.max(0,o-l),f=Math.round(h*(s/100)),g=h+f;return{qty:e,unitPriceCents:n,discountCents:l,taxableCents:h,taxCents:f,lineSubtotalCents:o,lineTotalCents:g}}function Ws(r){const e=Array.isArray(r==null?void 0:r.items)?r.items:[];let n=0,a=0,s=0,o=0;const l=e.map(b=>{const A=$u(b);return n+=A.lineSubtotalCents,a+=A.discountCents,s+=A.taxCents,o+=A.lineTotalCents,A}),h=Math.max(0,wa(r==null?void 0:r.shipping)),f=Math.max(0,o+h),g=Math.max(0,wa(r==null?void 0:r.amountPaid)),v=Math.max(0,f-g);return{lines:l,subtotalCents:n,discountTotalCents:a,taxTotalCents:s,shippingCents:h,grandTotalCents:f,paidCents:g,balanceDueCents:v}}function $e(r){return String(r??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function Ne(r){return String(r??"").trim()}function mo(r,e){var s;const n=r.format(e),a=(s=r.resolvedOptions)==null?void 0:s.call(r);if((a==null?void 0:a.style)==="decimal"){const o=String(r.__ctCurrencyCode||"").trim();if(o)return`${o} ${n}`}return n}function ll(){return`
197.ct-inv-doc{color:#111827}
198.ct-inv-paper{width:100%;max-width:1000px;margin:0 auto;background:#fff;border:0;border-radius:0;overflow:visible;box-shadow:none}
199.ct-inv-head{display:grid;grid-template-columns:1fr auto;align-items:start;column-gap:32px;row-gap:16px;padding:1.5rem 1.6rem .95rem;border-bottom:1px solid rgba(17,24,39,.06);background:#fff}
200.ct-inv-head-left{justify-self:start;text-align:left;display:flex;flex-direction:column;gap:.65rem;min-width:0}
201.ct-inv-head-right{justify-self:end;text-align:right;min-width:220px;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-start}
202.ct-inv-logo{display:block;max-height:56px;max-width:240px;object-fit:contain}
203.ct-inv-logo-placeholder{width:240px;max-width:100%;height:56px;border-radius:.75rem;border:1px dashed rgba(17,24,39,.16);background:transparent}
204.ct-inv-title{margin:0 0 10px 0;font-weight:800;letter-spacing:.10em;font-size:.9rem;color:rgba(17,24,39,.9);line-height:1.1;text-align:right}
205.ct-inv-meta{margin-top:0;width:220px;font-size:.82rem;line-height:1.38;color:rgba(17,24,39,.75)}
206.ct-inv-meta-row{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:baseline}
207.ct-inv-meta-k{color:rgba(17,24,39,.58)}
208.ct-inv-billto{padding:1.05rem 1.6rem .75rem}
209.ct-inv-section-title{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:rgba(17,24,39,.55);margin-bottom:.25rem}
210.ct-inv-table{width:100%;border-collapse:collapse}
211.ct-inv-th{font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:rgba(17,24,39,.55);padding:.7rem 1.6rem;background:transparent;border-top:1px solid rgba(17,24,39,.06);border-bottom:1px solid rgba(17,24,39,.06)}
212.ct-inv-th--num{text-align:right;white-space:nowrap}
213.ct-inv-td{padding:.75rem 1.6rem;border-bottom:1px solid rgba(17,24,39,.06);font-size:.86rem;vertical-align:top}
214.ct-inv-td--num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
215.ct-inv-td--total{font-weight:700}
216.ct-inv-item-name{font-weight:700;color:rgba(17,24,39,.92)}
217.ct-inv-item-desc{margin-top:.15rem;color:rgba(17,24,39,.60);line-height:1.4}
218.ct-inv-summary{padding:1rem 1.6rem 1.35rem}
219.ct-inv-summary-grid{display:grid;grid-template-columns:1fr auto;gap:1rem}
220.ct-inv-totals{margin-left:auto;max-width:22rem;font-size:.86rem;font-variant-numeric:tabular-nums}
221.ct-inv-total-row{display:flex;justify-content:space-between;gap:1rem;padding:.25rem 0}
222.ct-inv-total-row--grand{border-top:1px solid rgba(17,24,39,.12);margin-top:.35rem;padding-top:.55rem;font-weight:800;font-size:1.02rem;letter-spacing:-.01em}
223.ct-inv-total-row--due{font-weight:800;color:rgba(var(--bs-success-rgb),.95);font-size:1.02rem}
224.ct-inv-notes{padding:0 1.6rem 1.6rem}
225.ct-inv-prose{font-size:.86rem;line-height:1.6;color:rgba(17,24,39,.72)}
226
227@media (max-width:575.98px){
228  .ct-inv-head,.ct-inv-billto,.ct-inv-summary,.ct-inv-notes{padding-left:1rem;padding-right:1rem}
229  .ct-inv-th,.ct-inv-td{padding-left:1rem;padding-right:1rem}
230  .ct-inv-head{grid-template-columns:1fr;row-gap:12px}
231  .ct-inv-head-right{justify-self:start;align-items:flex-start;text-align:left;min-width:0}
232  .ct-inv-title{text-align:left}
233  .ct-inv-meta{width:100%}
234}
235
236/* Templates (affect document only) */
237.ct-inv-tpl--modern .ct-inv-head{background:#fff}
238.ct-inv-tpl--modern .ct-inv-title{color:rgba(17,24,39,.9)}
239.ct-inv-tpl--minimal .ct-inv-paper{box-shadow:none}
240.ct-inv-tpl--minimal .ct-inv-head{border-bottom-color:rgba(17,24,39,.10)}
241.ct-inv-tpl--minimal .ct-inv-th{background:transparent}
242`.trim()}function Ts(r){const e=Ds(r.currency),n=Ws({items:r.items,shipping:r.totals.shipping,amountPaid:r.totals.amountPaid}),a=r.items.filter(b=>Ne(b==null?void 0:b.name)||Ne(b==null?void 0:b.description)).map((b,A)=>{const p=n.lines[A],j=String(b.qty??"").trim()||"0",k=mo(e,Oi((p==null?void 0:p.unitPriceCents)??0)),D=mo(e,Oi((p==null?void 0:p.lineTotalCents)??0)),_=`${String(b.taxPct??"").trim()||"0"}%`,B=mo(e,Oi((p==null?void 0:p.discountCents)??0));return`
243<tr>
244  <td class="ct-inv-td ct-inv-td--item">
245    <div class="ct-inv-item-name">${$e(b.name||"—")}</div>
246    ${Ne(b.description)?`<div class="ct-inv-item-desc">${$e(b.description)}</div>`:""}
247  </td>
248  <td class="ct-inv-td ct-inv-td--num">${$e(j)}</td>
249  <td class="ct-inv-td ct-inv-td--num">${$e(k)}</td>
250  <td class="ct-inv-td ct-inv-td--num">${$e(_)}</td>
251  <td class="ct-inv-td ct-inv-td--num">${$e(B)}</td>
252  <td class="ct-inv-td ct-inv-td--num ct-inv-td--total">${$e(D)}</td>
253</tr>`}).join(""),s=[Ne(r.seller.name),Ne(r.seller.address),Ne(r.seller.email),Ne(r.seller.phone),Ne(r.seller.taxNo)?`Tax: ${Ne(r.seller.taxNo)}
253`:""].filter(Boolean).map(b=>`<div>${$e(b)}</div>`).join(""),o=[Ne(r.client.name),Ne(r.client.address),Ne(r.client.email),Ne(r.client.phone)].filter(Boolean).map(b=>`<div>${$e(b)}</div>`).join(""),l=[["Invoice #",Ne(r.invoice.number)],["Invoice date",Ne(r.invoice.date)],["Due date",Ne(r.invoice.dueDate)],["Payment terms",Ne(r.invoice.paymentTerms)]].filter(([,b])=>b).map(([b,A])=>`<div class="ct-inv-meta-row"><span class="ct-inv-meta-k">${$e(b)}</span><span class="ct-inv-meta-v">${$e(A)}</span></div>`).join(""),h=Ne(r.seller.logoDataUrl)||Ne(r.seller.logoUrl),f=h?`<img class="ct-inv-logo" src="${$e(h)}" crossorigin="anonymous" alt="${$e(r.seller.name||"Business logo")}">`:'<div class="ct-inv-logo-placeholder" aria-hidden="true"></div>',g=`ct-inv-tpl--${$e(r.template||"classic")}`,v=b=>$e(mo(e,Oi(b)));return`
254<div class="ct-inv-doc">
255  <article class="ct-inv-paper ${g}">
256    <header class="ct-inv-head">
257      <div class="ct-inv-head-left">
258        ${f}
259        <div class="ct-inv-seller">
260          ${s||'<div class="text-body-secondary">Add your business details on the left.</div>'}
261        </div>
262      </div>
263      <div class="ct-inv-head-right">
264        <div class="ct-inv-title">INVOICE</div>
265        <div class="ct-inv-meta">
266          ${l||'<div class="text-body-secondary">Add invoice details.</div>'}
267        </div>
268      </div>
269    </header>
270
271    <section class="ct-inv-billto">
272      <div class="ct-inv-section-title">Bill To</div>
273      <div class="ct-inv-client">
274        ${o||'<div class="text-body-secondary">Add client details.</div>'}
275      </div>
276    </section>
277
278    <section class="ct-inv-items">
279      <table class="ct-inv-table" aria-label="Invoice items">
280        <thead>
281          <tr>
282            <th class="ct-inv-th ct-inv-th--item">Item</th>
283            <th class="ct-inv-th ct-inv-th--num">Qty</th>
284            <th class="ct-inv-th ct-inv-th--num">Unit</th>
285            <th class="ct-inv-th ct-inv-th--num">Tax</th>
286            <th class="ct-inv-th ct-inv-th--num">Discount</th>
287            <th class="ct-inv-th ct-inv-th--num">Total</th>
288          </tr>
289        </thead>
290        <tbody>
291          ${a||'<tr><td class="ct-inv-td" colspan="6"><span class="text-body-secondary">Add line items to see them here.</span></td></tr>'}
292        </tbody>
293      </table>
294    </section>
295
296    <section class="ct-inv-summary">
297      <div class="ct-inv-summary-grid">
298        <div></div>
299        <div class="ct-inv-totals">
300          <div class="ct-inv-total-row"><span>Subtotal</span><span>${v(n.subtotalCents)}</span></div>
301          <div class="ct-inv-total-row"><span>Discount</span><span>- ${v(n.discountTotalCents)}</span></div>
302          <div class="ct-inv-total-row"><span>Tax</span><span>${v(n.taxTotalCents)}</span></div>
303          <div class="ct-inv-total-row"><span>Shipping / extra</span><span>${v(n.shippingCents)}</span></div>
304          <div class="ct-inv-total-row ct-inv-total-row--grand"><span>Grand total</span><span>${v(n.grandTotalCents)}</span></div>
305          <div class="ct-inv-total-row"><span>Amount paid</span><span>${v(n.paidCents)}</span></div>
306          <div class="ct-inv-total-row ct-inv-total-row--due"><span>Balance due</span><span>${v(n.balanceDueCents)}</span></div>
307        </div>
308      </div>
309    </section>
310
311    ${Ne(r.invoice.notes)||Ne(r.invoice.terms)?`
312      <section class="ct-inv-notes">
313        ${Ne(r.invoice.notes)?`<div class="ct-inv-section-title">Notes</div><div class="ct-inv-prose">
313${$e(r.invoice.notes).replace(/\\n/g,"<br>")}</div>`:""}
314        ${Ne(r.invoice.terms)?`<div class="ct-inv-section-title mt-2">Terms</div><div class="ct-inv-prose">${$e(r.invoice.terms).replace(/\\n/g,"<br>")}</div>`:""}
315      </section>
316    `:""}
317  </article>
318</div>
319`.trim()}const Dc="ct_invoice_draft_v1";function _o(){const r=document.querySelector("[data-ct-invoice-root]");return(r==null?void 0:r.dataset.ctSampleLogo)||"/logo.webp"}function Ei(r,e){r&&(r.textContent=e)}function vo(r,e){r&&(r.innerHTML=e)}function vr(r){return String(r??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function ul(r,e){var s;const n=r.format(e),a=(s=r.resolvedOptions)==null?void 0:s.call(r);if((a==null?void 0:a.style)==="decimal"){const o=String(r.__ctCurrencyCode||"").trim();if(o)return`${o} ${n}`}return n}function hl(){const r=new Date,e=n=>String(n).padStart(2,"0");return`${r.getFullYear()}-${e(r.getMonth()+1)}-${e(r.getDate())}`}function Xu(r){return new Promise((e,n)=>{const a=new FileReader;a.onload=()=>e(String(a.result||"")),a.onerror=()=>n(new Error("Failed to read file.")),a.readAsDataURL(r)})}function ke(r){return String(r??"").trim()}function Rs(){return{name:"",description:"",qty:"1",unitPrice:"",taxPct:"0",discount:""}}function Lo(){return{template:"classic",currency:"USD",currencyMode:"preset",currencyCustom:"",seller:{name:"",email:"",phone:"",address:"",taxNo:"",logoUrl:"",logoDataUrl:""},client:{name:"",email:"",phone:"",address:""},invoice:{number:`INV-${new Date().getFullYear()}-001`,date:hl(),dueDate:"",paymentTerms:"",notes:"",terms:""},totals:{shipping:"",amountPaid:""},items:[Rs()]}}function Ku(){const r=Lo();return r.seller={name:"Northwind Studio",email:"[email protected]",phone:"+1 (555) 013-7654",address:`12 Market Street
320San Francisco, CA 94105
321United States`,taxNo:"VAT-1234567",logoUrl:_o(),logoDataUrl:""},r.client={name:"Acme Corp",email:"[email protected]",phone:"+1 (555) 555-1122",address:`500 Howard Street
322San Francisco, CA 94105
323United States`},r.invoice={number:"INV-2026-0042",date:hl(),dueDate:"",paymentTerms:"Net 7",notes:"Thank you for your business. Please include the invoice number in your payment reference.",terms:"Late payments may be subject to a 2% monthly fee."},r.currency="USD",r.template="modern",r.totals.shipping="15.00",r.totals.amountPaid="0.00",r.items=[{name:"Website design (milestone 1)",description:"Homepage + core sections",qty:"1",unitPrice:"850.00",taxPct:"8",discount:"0.00"},{name:"Development",description:"Responsive implementation + QA",qty:"12",unitPrice:"60.00",taxPct:"8",discount:"50.00"},{name:"Hosting setup",description:"DNS + SSL + deployment",qty:"1",unitPrice:"120.00",taxPct:"0",discount:"0.00"}],r}function Zu(r){var s,o,l,h;const e=[];ke((s=r==null?void 0:r.seller)==null?void 0:s.name)||e.push("Business name is required."),ke((o=r==null?void 0:r.client)==null?void 0:o.name)||e.push("Client name is required."),ke((l=r==null?void 0:r.invoice)==null?void 0:l.number)||e.push("Invoice number is required."),ke((h=r==null?void 0:r.invoice)==null?void 0:h.date)||e.push("Invoice date is required.");const n=Array.isArray(r==null?void 0:r.items)?r.items:[];n.some(f=>ke(f==null?void 0:f.name))||e.push("Add at least one line item with an item/service name.");for(let f=0;f<n.length;f+=1){const g=n[f];if(!ke(g==null?void 0:g.name))continue;const v=Number(String((g==null?void 0:g.qty)??"").trim());(!Number.isFinite(v)||v<=0)&&e.push(`Item ${f+1}: quantity must be greater than 0.`),wa(g==null?void 0:g.unitPrice)<=0&&e.push(`Item ${f+1}: unit price must be greater than 0.`)}return e}function Qu(r,e,n){if(!r)return;const a=Ws({items:e.items,shipping:e.totals.shipping,amountPaid:e.totals.amountPaid});r.innerHTML="",e.items.forEach((s,o)=>{const l=a.lines[o],h=document.createElement("tr");h.dataset.ctIdx=String(o),h.innerHTML=`
324            <td>
325                <input class="form-control form-control-sm" data-ct-field="name" value="${vr(s.name)}" placeholder="e.g., Consulting service">
326            </td>
327            <td>
328                <input class="form-control form-control-sm" data-ct-field="description" value="${vr(s.description)}" placeholder="Optional description">
329            </td>
330            <td>
331                <input class="form-control form-control-sm" data-ct-field="qt
331y" inputmode="decimal" value="${vr(s.qty)}" placeholder="1">
332            </td>
333            <td>
334                <input class="form-control form-control-sm" data-ct-field="unitPrice" inputmode="decimal" value="${vr(s.unitPrice)}" placeholder="0.00">
335            </td>
336            <td>
337                <input class="form-control form-control-sm" data-ct-field="taxPct" inputmode="decimal" value="${vr(s.taxPct)}" placeholder="0">
338            </td>
339            <td>
340                <input class="form-control form-control-sm" data-ct-field="discount" inputmode="decimal" value="${vr(s.discount)}" placeholder="0.00">
341            </td>
342            <td class="text-end small fw-semibold" data-ct-line-total>
343                ${vr(ul(n,Oi((l==null?void 0:l.lineTotalCents)??0)))}
344            </td>
345            <td class="text-end">
346                <button type="button" class="btn btn-outline-danger btn-sm py-0" data-ct-remove="1" aria-label="Remove item">×</button>
347            </td>
348        `,r.appendChild(h)})}function Tc(r,e){if(!r)return;r.innerHTML=`<div class="ct-inv-preview-paper">${Ts(e)}</div>`;const n=r.querySelector("img.ct-inv-logo");
348n&&!n.dataset.ctBound&&(n.dataset.ctBound="1",n.addEventListener("error",()=>{const a=document.getElementById("ctInvLogoHint"),l=String(n.getAttribute("src")||"")===_o()?"Sample logo URL cannot be displayed because the host serves it as a download. Please upload a logo file instead, or use another image URL.":"Logo URL could not be loaded. Try a direct image link (PNG/JPG) or upload a file instead.";a==null||a.classList.add("text-danger"),Ei(a,l)},{once:!0}),n.addEventListener("load",()=>{const a=document.getElementById("ctInvLogoHint");a==null||a.classList.remove("text-danger")},{once:!0}))}function th(r,e){const n=document.createElement("a"),a=URL.createObjectURL(e);n.href=a,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(a)}function Rc({title:r,previewInnerHtml:e,mode:n="download"}){const a=vr(r||"Invoice"),s=e||"",o=ll(),l=n==="download"?`<div class="ct-inv-preview-shell"><div class="ct-inv-preview-bg"><div class="ct-inv-preview-paper">${s}</div></div></div>`:s,h=n==="download"?`
349body{margin:0;padding:24px;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;color:#111;background:#f3f4f6}
350.ct-inv-preview-shell{max-width:1080px;margin:0 auto}
351.ct-inv-preview-bg{padding:18px;border-radius:14px;border:1px solid rgba(17,24,39,.08);background:
352  radial-gradient(980px 300px at 10% 0%, rgba(13,110,253,.12), rgba(0,0,0,0)),
353  radial-gradient(920px 280px at 100% 0%, rgba(25,135,84,.10), rgba(0,0,0,0)),
354  linear-gradient(180deg, rgba(17,24,39,.025), rgba(17,24,39,.012))}
355.ct-inv-preview-paper{background:#fff;border:1px solid rgba(17,24,39,.10);border-radius:16px;overflow:hidden;box-shadow:0 1px 0 rgba(17,24,39,.04),0 22px 58px rgba(17,24,39,.16)}
356@media print{
357  html,body{background:#fff !important;margin:0 !important;padding:0 !important}
358  .ct-inv-preview-shell,.ct-inv-preview-bg,.ct-inv-preview-paper{background:#fff !important;box-shadow:none !important;border:0 !important;border-radius:0 !important;padding:0 !important}
359  .ct-inv-paper{box-shadow:none !important;border-radius:0 !important;border:0 !important;background:#fff !important;margin:0 auto !important}
360  *{-webkit-print-color-adjust:exact !important;print-color-adjust:exact !important}
361}
362`.trim():"html,body{margin:0;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact}body{font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;color:#111827;background:#fff}";return`<!doctype html>
363<html lang="en">
364<head>
365  <meta charset="utf-8">
366  <meta name="viewport" content="width=device-width, initial-scale=1">
367  <title>${a}</title>
368  <style>
369    ${n==="print"?"@page{size:A4;margin:12mm}":""}
370    ${h}
371    ${o}
372  </style>
373</head>
374<body>
375${l}
376</body>
377</html>`}function eh(r){const e=document.createElement("iframe");e.setAttribute("aria-hidden","true"),e.style.position="fixed",e.style.right="0",e.style.bottom="0",e.style.width="0",e.style.height="0",e.style.border="0",document.body.appendChild(e);const n=e.contentWindow,a=e.contentDocument;if(!n||!a){document.body.removeChild(e),window.print();return}a.open(),a.write(r),a.close();const s=()=>{try{document.body.removeChild(e)}catch{}},o=()=>{const h=Array.from(a.images||[]).filter(v=>!v.complete);if(h.length===0){n.focus(),n.print(),s();return}let f=h.length;const g=()=>{f-=1,f<=0&&(n.focus(),n.print(),s())};h.forEach(v=>{v.addEventListener("load",g,{once:!0}),v.addEventListener("error",g,{once:!0})}),setTimeout(()=>{n.focus(),n.print(),s()},1200)};n.addEventListener("load",()=>setTimeout(o,50),{once:!0}),setTimeout(o,150)}async function nh(r,e="invoice.pdf"){const n=await $l(r,{backgroundColor:"#ffffff",scale:Math.min(3,window.devicePixelRatio||1),useCORS:!0}),a=n.toDataURL("image/jpeg",.98),s=new Wt({unit:"pt",format:"a4"}),o=s.internal.pageSize.getWidth(),l=s.internal.pageSize.getHeight(),h=24,f=o-h*2,g=n.height*f/n.width;let v=0,b=g;for(s.addImage(a,"JPEG",h,v,f,g),b-=l;b>5;)s.addPage(),v=b-g,s.addImage(a,"JPEG",h,v,f,g),b-=l;s.save(e)}function rh(){const r=document.getElementById("ct-invoice-root");if(!r)return;const e=r.querySelector(".ct-inv-toc"),a=(e?Array.from(e.querySelectorAll('a[href^="#"]')):[]).map(l
377=>document.querySelector(l.getAttribute("href")||"")).filter(l=>l instanceof HTMLElement),s=()=>{var g;if(a.length===0)return;const l=window.scrollY+140;let h=(g=a[0])==null?void 0:g.id;a.forEach(v=>{v.getBoundingClientRect().top+window.scrollY<=l&&(h=v.id)});const f=`#${h}`;r.querySelectorAll('.ct-inv-toc a[href^="#"]').forEach(v=>{const b=v.getAttribute("href")===f;v.classList.toggle("ct-inv-toc-active",b),b?v.setAttribute("aria-current","true"):v.removeAttribute("aria-current")})};window.addEventListener("scroll",s,{passive:!0}),s(),r.querySelectorAll('.ct-inv-toc a[href^="#"]').forEach(l=>{l.addEventListener("click",h=>{const f=l.getAttribute("href"),g=f!=null&&f.startsWith("#")?f.slice(1):"",v=g?document.getElementById(g):null;v&&(h.preventDefault(),v.scrollIntoView({behavior:"smooth",block:"start"}),history.replaceState(null,"",`#${g}`))})});const o=document.getElementById("ctInvJumpPreview");o==null||o.addEventListener("click",()=>{const l=document.getElementById("ct-inv-sect-preview")||document.getElementById("ctInvPreviewWrap");l==null||l.scrollIntoView({behavior:"smooth",block:"start"}),history.replaceState(null,"","#ct-inv-sect-preview")})}function sh(){var At,Pt;if(!document.getElementById("ct-invoice-root"))return;const e=document.getElementById("ctInvoiceInlineMsg"),n=document.getElementById("ctInvValidation"),a=document.getElementById("ctInvItemsBody"),s=document.getElementById("ctInvPreview"),o=document.getElementById("ctInvPreviewWrap"),l=dt=>document.getElementById(dt),h=dt=>document.getElementById(dt),f=dt=>document.getElementById(dt),g=l("ctInvSellerName"),v=l("ctInvSellerEmail"),b=l("ctInvSellerPhone"),A=l("ctInvSellerTax"),p=h("ctInvSellerAddress"),j=document.getElementById("ctInvLogo"),k=document.getElementById("ctInvLogoUrl"),D=document.getElementById("ctInvUseSampleLogo"),_=document.getElementById("ctInvRemoveLogo"),B=l("ctInvClientName"),Y=l("ctInvClientEmail"),ot=l("ctInvClientPhone"),lt=h("ctInvClientAddress"),xt=l("ctInvNumber"),K=f("ctInvCurrency"),U=document.getElementById("ctInvCurrencyCustomWrap"),et=document.getElementById("ctInvCurrencyCustom"),pt=l("ctInvDate"),P=l("ctInvDueDate"),I=l("ctInvTerms"),H=l("ctInvShipping"),T=l("ctInvPaid"),st=h("ctInvNotes"),it=h("ctInvTnc"),ut=f("ctInvTemplate"),tt=document.getElementById("ctInvAddItem"),ht=document.getElementById("ctInvoiceClear"),gt=document.getElementById("ctInvoiceSample"),Ct=document.getElementById("ctInvoiceSaveDraft"),x=document.getElementById("ctInvoiceLoadDraft"),F=document.getElementById("ctInvPrint"),O=document.getElementById("ctInvDownloadPdf"),R=document.getElementById("ctInvDownloadHtml"),J=Array.from(document.querySelectorAll("[data-ct-inv-export]"));let M=Lo(),rt=!1;const nt=()=>{rt||(rt=!0,window.requestAnimationFrame(()=>{rt=!1,_t()}))},St=()=>{ut&&(ut.value=M.template),K&&(K.value=M.currencyMode==="custom"?"__custom__":M.currency),et&&(et.value=M.currencyCustom||""),U&&U.classList.toggle("d-none",(K==null?void 0:K.value)!=="__custom__"),g&&(g.value=M.seller.name),v&&(v.value=M.seller.email),b&&(b.value=M.seller.phone),p&&(p.value=M.seller.address),A&&(A.value=M.seller.taxNo),k&&
377(k.value=M.seller.logoUrl),B&&(B.value=M.client.name),Y&&(Y.value=M.client.email),ot&&(ot.value=M.client.phone),lt&&(lt.value=M.client.address),xt&&(xt.value=M.invoice.number),pt&&(pt.value=M.invoice.date),P&&(P.value=M.invoice.dueDate),I&&(I.value=M.invoice.paymentTerms),st&&(st.value=M.invoice.notes),it&&(it.value=M.invoice.terms),H&&(H.value=M.totals.shipping),T&&(T.value=M.totals.amountPaid),_&&(_.disabled=!(ke(M.seller.logoDataUrl)||ke(M.seller.logoUrl)))};if(!document.getElementById("ctInvDocCss")){const dt=document.createElement("style");dt.id="ctInvDocCss",dt.textContent=ll(),document.head.appendChild(dt)}const Nt=()=>{M.template=(ut==null?void 0:ut.value)||M.template;const dt=(K==null?void 0:K.value)||M.currency;dt==="__custom__"?(M.currencyMode="custom",M.currencyCustom=String((et==null?void 0:et.value)??"").trim().toUpperCase(),M.currency=M.currencyCustom||"USD"):(M.currencyMode="preset",M.currency=dt),M.seller.name=ke(g==null?void 0:g.value),M.seller.email=ke(v==null?void 0:v.value),M.seller.phone=ke(b==null?void 0:b.value),M.seller.address=String((p==null?void 0:p.value)??""),M.seller.taxNo=ke(A==null?void 0:A.value),M.seller.logoUrl=ke(k==null?void 0:k.value),M.client.name=ke(B==null?void 0:B.value),M.client.email=ke(Y==null?void 0:Y.value),M.client.phone=ke(ot==null?void 0:ot.value),M.client.address=String((lt==null?void 0:lt.value)??""),M.invoice.number=ke(xt==null?void 0:xt.value),M.invoice.date=ke(pt==null?void 0:pt.value),M.invoice.dueDate=ke(P==null?void 0:P.value),M.invoice.paymentTerms=ke(I==null?void 0:I.value),M.invoice.notes=String((st==null?void 0:st.value)??""),M.invoice.terms=String((it==null?void 0:it.value)??""),M.totals.shipping=ke(H==null?void 0:H.value),M.totals.amountPaid=ke(T==null?void 0:T.value)},_t=()=>{var bt;Nt();const dt=Ds(M.currency);Qu(a,M,dt),Tc(s,M),Ei(n,""),vo(e,""),(bt=window.__ctRenderPendingYandexRtbSlots)==null||bt.call(window)},kt=()=>{var dt;Nt(),Tc(s,M),Ei(n,""),vo(e,""),(dt=window.__ctRenderPendingYandexRtbSlots)==null||dt.call(window)},zt=(dt,bt)=>{var te,ie;if(!dt)return;const Et=dt.querySelector("[data-ct-line-total]");if(!Et)return;const Dt=Ds(M.currency),Jt=((ie=(te=Ws({items:M.items,shipping:M.totals.shipping,amountPaid:M.totals.amountPaid}).lines)==null?void 0:te[bt])==null?void 0:ie.lineTotalCents)??0;Et.textContent=ul(Dt,Oi(Jt))},at=(dt,bt)=>{if(!e)return;vo(e,`<span class="${dt==="success"?"text-success":dt==="warning"?"text-warning":dt==="danger"?"text-danger":"text-body-secondary"}">${vr(bt)}</span>`)},q=()=>{M.items.push(Rs()),_t()},Yt=dt=>{M.items.length<=1||(M.items.splice(dt,1),_t())};a==null||a.addEventListener("input",dt=>{var te,ie;const bt=dt.target,Et=bt==null?void 0:bt.closest("tr"),Dt=(te=Et==null?void 0:Et.dataset)!=null&&te.ctIdx?Number(Et.dataset.ctIdx):-1;if(!Number.isFinite(Dt)||Dt<0||Dt>=M.items.length)return;const Ut=((ie=bt==null?void 0:bt.getAttribute)==null?void 0:ie.call(bt,"data-ct-field"))||"";if(!Ut)return;const Jt=bt.value;M.items[Dt]={...M.items[Dt],[Ut]:Jt},zt(Et,Dt),nt()}),a==null||a.addEventListener("click",dt=>{var Ut,Jt,te;const bt=(Jt=(Ut=dt.target)==null?void 0:Ut.closest)==null?void 0:Jt.call(Ut,'[data-ct-remove="1"]');if(!bt)return;const Et=bt.closest("tr"),Dt=(te=Et==null?void 0:Et.dataset)!=null&&te.ctIdx?Number(Et.dataset.ctIdx):-1;!Number.isFinite(Dt)||Dt<0||Dt>=M.items.length||Yt(Dt)}),tt==null||tt.addEventListener("click",()=>q()),["ctInvSellerName","ctInvSellerEmail","ctInvSellerPhone","ctInvSellerAddress","ctInvSellerTax","ctInvLogoUrl","ctInvClientName","ctInvClientEmail","ctInvClientPhone","ctInvClientAddress","ctInvNumber","ctInvCurrency","ctInvDate","ctInvDueDate","ctInvTerms","ctInvShipping","ctInvPaid","ctInvNotes","ctInvTnc","ctInvTemplate"].forEach(dt=>{var bt;return(bt=document.getElementById(dt))==null?void 0:bt.addEventListener("input",()=>nt())}),(At=document.getElementById("ctInvCurrency"))==null||At.addEventListener("change",()=>nt()),(Pt=document.getElementById("ctInvTemplate"))==null||Pt.addEventListener("change",()=>nt()),j==null||j.addEventListener("change",async()=>{var bt;const dt=(bt=j.files)==null?void 0:bt[0];if(dt){if(!dt.type.startsWith("image/")){at("danger","Please upload a valid image file for the logo."),j.value="";return}try{M.seller.logoDataUrl=await Xu(dt),M.seller.logoUrl="",k&&(k.value=""),_&&(_.disabled=!1),kt()}catch{at("danger","Logo upload failed. Please try a different image.")}}}),D==null||D.addEventListener("click",()=>{M.seller.logoUrl=_o(),M.seller.logoDataUrl="",j&&(j.value=""),k&&(k.value=_o()),_&&(_.disabled=!1),kt(),at("success","Sample logo added. Replace it with your own logo anytime.")}),_==null||_.addEventListener("click",()=>{M.seller.logoDataUrl="",M.seller.logoUrl="",j&&(j.value=""),k&&(k.value=""),_&&(_.disabled=!0),kt()}),gt==null||gt.addEventListener("click",()=>{M=Ku(),St(),_t(),at("success","Sample invoice loaded. Edit any field to customize it.")}),Ct==null||Ct.addEventListener("click",async()=>{Nt();try{localStorage.setItem(Dc,JSON.stringify(M)),at("success","Draft saved locally in your browser.")}catch{at("danger","Could not save draft. Your browser storage may be full or blocked.")}}),x==null||x.addEventListener("click",()=>{try{const dt=localStorage.getItem(Dc);if(!dt){at("warning","No saved draft found.");return}const bt=JSON.parse(dt);
377if(!bt||typeof bt!="object"){at("danger","Saved draft is invalid.");return}M={...Lo(),...bt},(!Array.isArray(M.items)||M.items.length===0)&&(M.items=[Rs()]),St(),_t(),at("success","Draft loaded.")}catch{at("danger","Failed to load draft from local storage.")}}),ht==null||ht.addEventListener("click",async()=>{let dt=!1;try{dt=!!(await(await No(async()=>{const{default:Dt}=await import("./sweetalert2.esm.all-RcyeNO3Y.js");return{default:Dt}},[])).default.fire({title:"Clear invoice?",text:"This will reset all fields. This action does not affect any saved draft.",icon:"warning",showCancelButton:!0,confirmButtonText:"Clear invoice",cancelButtonText:"Cancel",confirmButtonColor:"#dc3545"})).isConfirmed}catch{dt=window.confirm("Clear invoice? This will reset all fields.")}dt&&(M=Lo(),St(),_t(),at("success","Invoice cleared."))}),F==null||F.addEventListener("click",()=>{Ei(n,""),vo(e,""),Nt();const dt=Rc({title:M.invoice.number||"Invoice",previewInnerHtml:Ts(M),mode:"print"});eh(dt)}),R==null||R.addEventListener("click",()=>{Ei(n,""),Nt();const dt=Rc({title:M.invoice.number||"Invoice",previewInnerHtml:Ts(M),mode:"download"});th(`${(M.invoice.number||"invoice").replace(/[^a-zA-Z0-9-_]+/g,"-")}.html`,new Blob([dt],{type:"text/html;charset=utf-8"})),at("success","HTML downloaded.")}),O==null||O.addEventListener("click",async()=>{Nt();const dt=Zu(M);if(dt.length){Ei(n,dt.join(" ")),at("warning","Please fix the required fields before downloading the PDF.");return}const bt=(s==null?void 0:s.querySelector(".ct-inv-paper"))||(o==null?void 0:o.querySelector(".ct-inv-paper"));if(bt){O.disabled=!0,at("info","Preparing PDF…");try{await nh(bt,`${(M.invoice.number||"invoice").replace(/[^a-zA-Z0-9-_]+/g,"-")}.pdf`),at("success","PDF downloaded.")}catch{at("danger","PDF export failed. Please try again or use Print.")}finally{O.disabled=!1}}}),St(),_t(),rh(),J.forEach(dt=>{dt.addEventListener("click",()=>{const bt=dt.getAttribute("data-ct-inv-export");bt==="pdf"&&(O==null||O.click()),bt==="html"&&(R==null||R.click()),bt==="print"&&(F==null||F.click())})}),K==null||K.addEventListener("change",()=>{U&&U.classList.toggle("d-none",K.value!=="__custom__"),nt()}),et==null||et.addEventListener("input",()=>nt())}export{sh as initInvoiceGeneratorPage};

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.