BuildingApartments.dab5c490.js 358 KB
Newer Older
abergavenny's avatar
abergavenny committed
1
2
3
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
import{_ as bo,u as nl,f as Xc,o as en,c as Qn,b as ne,t as ks,$ as _c,a4 as $c,A as rl,B as il,a5 as Is,i as vn,F as Kc,O as al,h as ma,p as Zc,e as Qc,r as pa,C as ol,D as sl,E as cl,G as ul,d as He,S as Sc,w as Mr,H as ds,J as ps,I as gs,K as ms,j as Fs,P as ll,T as vs,M as bs,Q as Pc}from"./index.1ae0b595.js";import{u as wo,a as hl}from"./apartments.4eae0434.js";import{_ as tu}from"./NoData.47d208fe.js";import{u as Us,M as fl}from"./ModalContainer.35e80a91.js";import{_ as dl,D as kc,a as ha}from"./DataPage.ae86e96e.js";import{I as pl}from"./InputWrapper.85fad3e2.js";const gl={class:"apartment-card__wrapper"},ml={class:"apartment-card__headline"},vl={class:"static-text"},bl={class:"apartment-card__content"},wl={class:"text"},yl=$c("Fenster"),Al={class:"text"},Nl=$c("Heizk\xF6rper"),Ll={__name:"ApartmentCard",props:["data"],setup(r){const e=r,n=nl(),a=wo();function s(){a.setActiveApartment(e.data._id),n.push({name:"buildings.dashboard.apartment"})}function o(h){if(h){const{largeHeatingElements:f,mediumHeatingElements:g,smallHeatingElements:v,workingHeatingInstallations:N}=h.data;let S=f+g+v;if(S===0)return"--icon-color: var(--clr-basic)";const[p]=rl(S,N);if(p<.75)return"--icon-color: var(--clr-critical)";if(p<.8)return"--icon-color: var(--clr-danger)";if(p<.95)return"--icon-color: var(--clr-warning)";if(p<=1)return"--icon-color: var(--clr-success)"}return"--icon-color: var(--clr-basic)"}function u(h){if(h){const{averageWindowAge:f,averageWindowCondition:g,windowGlazing:v}=h.data,[N]=il(f,g,v);if(N<1.5)return"--icon-color: var(--clr-critical)";if(N<2.5)return"--icon-color: var(--clr-danger)";if(N<3.5)return"--icon-color: var(--clr-warning)";if(N>=3.5)return"--icon-color: var(--clr-success)"}return"--icon-color: var(--clr-basic)"}return Xc(async()=>{await a.fetchFile(e.data._id)}),(h,f)=>(en(),Qn("div",{class:"apartment-card",onClick:s},[ne("div",gl,[ne("div",ml,[ne("span",vl,"Id: "+ks(e.data._id),1)]),ne("div",bl,[ne("span",null,ks(e.data.name),1),ne("span",wl,[ne("i",{class:"apartment-card__icon",style:_c(u(e.data))},null,4),yl]),ne("span",Al,[ne("i",{class:"apartment-card__icon",style:_c(o(e.data))},null,4),Nl])])])]))}},xl=bo(Ll,[["__scopeId","data-v-5f346416"]]);function de(r){return de=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(r)}var nn=Uint8Array,rn=Uint16Array,va=Uint32Array,yo=new nn([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]),Ao=new nn([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]),Cs=new nn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),eu=function(r,e){for(var n=new rn(31),a=0;a<31;++a)n[a]=e+=1<<r[a-1];for(var s=new va(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[n,s]},nu=eu(yo,2),ru=nu[0],js=nu[1];ru[28]=258,js[258]=28;var iu=eu(Ao,0),_l=iu[0],Ic=iu[1],Os=new rn(32768);for(var Ae=0;Ae<32768;++Ae){var jr=(Ae&43690)>>>1|(Ae&21845)<<1;jr=(jr&52428)>>>2|(jr&13107)<<2,jr=(jr&61680)>>>4|(jr&3855)<<4,Os[Ae]=((jr&65280)>>>8|(jr&255)<<8)>>>1}var er=function(r,e,n){for(var a=r.length,s=0,o=new rn(e);s<a;++s)++o[r[s]-1];var u=new rn(e);for(s=0;s<e;++s)u[s]=u[s-1]+o[s-1]<<1;var h;if(n){h=new rn(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],N=u[r[s]-1]++<<v,S=N|(1<<v)-1;N<=S;++N)h[Os[N]>>>f]=g}else for(h=new rn(a),s=0;s<a;++s)h[s]=Os[u[r[s]-1]++]>>>15-r[s];return h},Er=new nn(288);for(var Ae=0;Ae<144;++Ae)Er[Ae]=8;for(var Ae=144;Ae<256;++Ae)Er[Ae]=9;for(var Ae=256;Ae<280;++Ae)Er[Ae]=7;for(var Ae=280;Ae<288;++Ae)Er[Ae]=8;var ba=new nn(32);for(var Ae=0;Ae<32;++Ae)ba[Ae]=5;var Sl=er(Er,9,0),Pl=er(Er,9,1),kl=er(ba,5,0),Il=er(ba,5,1),ws=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)},Hs=function(r){return(r/8>>0)+(r&7&&1)},au=function(r,e,n){(e==null||e<0)&&(e=0),(n==null||n>r.length)&&(n=r.length);var a=new(r instanceof rn?rn:r instanceof va?va:nn)(n-e);return a.set(r.subarray(e,n)),a},Fl=function(r,e,n){var a=r.length,s=!e||n,o=!n||n.i;n||(n={}),e||(e=new nn(a*3));var u=function(Y){var Q=e.length;if(Y>Q){var et=new nn(Math.max(Q*2,Y));et.set(e),e=et}},h=n.f||0,f=n.p||0,g=n.b||0,v=n.l,N=n.d,S=n.m,p=n.n,M=a*8;do{if(!v){n.f=h=Rn(r,f,1);var I=Rn(r,f+1,3);if(f+=3,I)if(I==1)v=Pl,N=Il,S=9,p=5;else if(I==2){var J=Rn(r,f,31)+257,ot=Rn(r,f+10,15)+4,ut=J+Rn(r,f+5,31)+1;f+=14;for(var wt=new nn(ut),tt=new nn(19),R=0;R<ot;++R)tt[Cs[R]]=Rn(r,f+R*3,7);f+=ot*3;var gt=ws(tt),dt=(1<<gt)-1;if(!o&&f+ut*(gt+7)>M)break;for(var F=er(tt,gt,1),R=0;R<ut;){var P=F[Rn(r,f,dt)];f+=P&15;var B=P>>>4;if(B<16)wt[R++]=B;else{var z=0,q=0;for(B==16?(q=3+Rn(r,f,3),f+=2,z=wt[R-1]):B==17?(q=3+Rn(r,f,7),f+=3):B==18&&(q=11+Rn(r,f,127),f+=7);q--;)wt[R++]=z}}var at=wt.subarray(0,J),nt=wt.subarray(J);S=ws(at),p=ws(nt),v=er(at,S,1),N=er(nt,p,1)}else throw"invalid block type";else{var B=Hs(f)+4,_=r[B-4]|r[B-3]<<8,O=B+_;if(O>a){if(o)throw"unexpected EOF";break}s&&u(g+_),e.set(r.subarray(B,O),g),n.b=g+=_,n.p=f=O*8;continue}if(f>M)throw"unexpected EOF"}s&&u(g+131072);for(var lt=(1<<S)-1,Z=(1<<p)-1,ft=S+p+18;o||f+ft<M;){var z=v[ys(r,f)&lt],ht=z>>>4;if(f+=z&15,f>M)throw"unexpected EOF";if(!z)throw"invalid length/literal";if(ht<256)e[g++]=ht;else if(ht==256){v=null;break}else{var kt=ht-254;if(ht>264){var R=ht-257,A=yo[R];kt=Rn(r,f,(1<<A)-1)+ru[R],f+=A}var j=N[ys(r,f)&Z],E=j>>>4;if(!j)throw"invalid distance";f+=j&15;var nt=_l[E];if(E>3){var A=Ao[E];nt+=ys(r,f)&(1<<A)-1,f+=A}if(f>M)throw"unexpected EOF";s&&u(g+131072);for(var W=g+kt;g<W;g+=4)e[g]=e[g-nt],e[g+1]=e[g+1-nt],e[g+2]=e[g+2-nt],e[g+3]=e[g+3-nt];g=W}}n.l=v,n.p=f,n.b=g,v&&(h=1,n.m=S,n.d=N,n.n=p)}while(!h);return g==e.length?e:au(e,0,g)},gr=function(r,e,n){n<<=e&7;var a=e/8>>0;r[a]|=n,r[a+1]|=n>>>8},fa=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},As=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[new nn(0),0];if(s==1){var u=new nn(n[0].s+1);return u[n[0].s]=1,[u,1]}n.sort(function(ut,wt){return ut.f-wt.f}),n.push({s:-1,f:25001});var h=n[0],f=n[1],g=0,v=1,N=2;for(n[0]={s:-1,f:h.f+f.f,l:h,r:f};v!=s-1;)h=n[n[g].f<n[N].f?g++:N++],f=n[g!=v&&n[g].f<n[N].f?g++:N++],n[v++]={s:-1,f:h.f+f.f,l:h,r:f};for(var S=o[0].s,a=1;a<s;++a)o[a].s>S&&(S=o[a].s);var p=new rn(S+1),M=Ms(n[v-1],p,0);if(M>e){var a=0,I=0,B=M-e,_=1<<B;for(o.sort(function(wt,tt){return p[tt.s]-p[wt.s]||wt.f-tt.f});a<s;++a){var O=o[a].s;if(p[O]>e)I+=_-(1<<M-p[O]),p[O]=e;else break}for(I>>>=B;I>0;){var J=o[a].s;p[J]<e?I-=1<<e-p[J]++-1:++a}for(;a>=0&&I;--a){var ot=o[a].s;p[ot]==e&&(--p[ot],++I)}M=e}return[new nn(p),M]},Ms=function(r,e,n){return r.s==-1?Math.max(Ms(r.l,e,n+1),Ms(r.r,e,n+1)):e[r.s]=n},Fc=function(r){for(var e=r.length;e&&!r[--e];);for(var n=new rn(++e),a=0,s=r[0],o=1,u=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)u(32754);o>2&&(u(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(u(s),--o;o>6;o-=6)u(8304);o>2&&(u(o-3<<5|8208),o=0)}for(;o--;)u(s);o=1,s=r[h]}return[n.subarray(0,a),e]},da=function(r,e){for(var n=0,a=0;a<e.length;++a)n+=r[a]*e[a];return n},lo=function(r,e,n){var a=n.length,s=Hs(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},Cc=function(r,e,n,a,s,o,u,h,f,g,v){gr(e,v++,n),++s[256];for(var N=As(s,15),S=N[0],p=N[1],M=As(o,15),I=M[0],B=M[1],_=Fc(S),O=_[0],J=_[1],ot=Fc(I),ut=ot[0],wt=ot[1],tt=new rn(19),R=0;R<O.length;++R)tt[O[R]&31]++;for(var R=0;R<ut.length;++R)tt[ut[R]&31]++;for(var gt=As(tt,7),dt=gt[0],F=gt[1],P=19;P>4&&!dt[Cs[P-1]];--P);var z=g+5<<3,q=da(s,Er)+da(o,ba)+u,at=da(s,S)+da(o,I)+u+14+3*P+da(tt,dt)+(2*tt[16]+3*tt[17]+7*tt[18]);if(z<=q&&z<=at)return lo(e,v,r.subarray(f,f+g));var nt,lt,Z,ft;if(gr(e,v,1+(at<q)),v+=2,at<q){nt=er(S,p,0),lt=S,Z=er(I,B,0),ft=I;var ht=er(dt,F,0);gr(e,v,J-257),gr(e,v+5,wt-1),gr(e,v+10,P-4),v+=14;for(var R=0;R<P;++R)gr(e,v+3*R,dt[Cs[R]]);v+=3*P;for(var kt=[O,ut],A=0;A<2;++A)for(var j=kt[A],R=0;R<j.length;++R){var E=j[R]&31;gr(e,v,ht[E]),v+=dt[E],E>15&&(gr(e,v,j[R]>>>5&127),v+=j[R]>>>12)}}else nt=Sl,lt=Er,Z=kl,ft=ba;for(var R=0;R<h;++R)if(a[R]>255){var E=a[R]>>>18&31;fa(e,v,nt[E+257]),v+=lt[E+257],E>7&&(gr(e,v,a[R]>>>23&31),v+=yo[E]);var W=a[R]&31;fa(e,v,Z[W]),v+=ft[W],W>3&&(fa(e,v,a[R]>>>5&8191),v+=Ao[W])}else fa(e,v,nt[a[R]]),v+=lt[a[R]];return fa(e,v,nt[256]),v+lt[256]},Cl=new va([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),jl=new nn(0),Ol=function(r,e,n,a,s,o){var u=r.length,h=new nn(a+u+5*(1+Math.floor(u/7e3))+s),f=h.subarray(a,h.length-s),g=0;if(!e||u<8)for(var v=0;v<=u;v+=65535){var N=v+65535;N<u?g=lo(f,g,r.subarray(v,N)):(f[v]=o,g=lo(f,g,r.subarray(v,u)))}else{for(var S=Cl[e-1],p=S>>>13,M=S&8191,I=(1<<n)-1,B=new rn(32768),_=new rn(I+1),O=Math.ceil(n/3),J=2*O,ot=function(Ut){return(r[Ut]^r[Ut+1]<<O^r[Ut+2]<<J)&I},ut=new va(25e3),wt=new rn(288),tt=new rn(32),R=0,gt=0,v=0,dt=0,F=0,P=0;v<u;++v){var z=ot(v),q=v&32767,at=_[z];if(B[q]=at,_[z]=q,F<=v){var nt=u-v;if((R>7e3||dt>24576)&&nt>423){g=Cc(r,f,0,ut,wt,tt,gt,dt,P,v-P,g),dt=R=gt=0,P=v;for(var lt=0;lt<286;++lt)wt[lt]=0;for(var lt=0;lt<30;++lt)tt[lt]=0}var Z=2,ft=0,ht=M,kt=q-at&32767;if(nt>2&&z==ot(v-kt))for(var A=Math.min(p,nt)-1,j=Math.min(32767,v),E=Math.min(258,nt);kt<=j&&--ht&&q!=at;){if(r[v+Z]==r[v+Z-kt]){for(var W=0;W<E&&r[v+W]==r[v+W-kt];++W);if(W>Z){if(Z=W,ft=kt,W>A)break;for(var Y=Math.min(kt,W-2),Q=0,lt=0;lt<Y;++lt){var et=v-kt+lt+32768&32767,rt=B[et],Lt=et-rt+32768&32767;Lt>Q&&(Q=Lt,at=et)}}}q=at,at=B[q],kt+=q-at+32768&32767}if(ft){ut[dt++]=268435456|js[Z]<<18|Ic[ft];var Nt=js[Z]&31,Ct=Ic[ft]&31;gt+=yo[Nt]+Ao[Ct],++wt[257+Nt],++tt[Ct],F=v+Z,++R}else ut[dt++]=r[v],++wt[r[v]]}}g=Cc(r,f,o,ut,wt,tt,gt,dt,P,v-P,g),o||(g=lo(f,g,jl))}return au(h,0,a+Hs(g)+s)},Ml=function(){var r=1,e=0;return{p:function(n){for(var a=r,s=e,o=n.length,u=0;u!=o;){for(var h=Math.min(u+5552,o);u<h;++u)a+=n[u],s+=a;a%=65521,s%=65521}r=a,e=s},d:function(){return(r>>>8<<16|(e&255)<<8|e>>>8)+((r&255)<<23)*2}}},Bl=function(r,e,n,a,s){return Ol(r,e.level==null?6:e.level,e.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):12+e.mem,n,a,!s)},El=function(r,e,n){for(;n;++e)r[e]=n,n>>>=8},Dl=function(r,e){var n=e.level,a=n==0?0:n<6?1:n==9?3:2;r[0]=120,r[1]=a<<6|(a?32-2*a:1)},ql=function(r){if((r[0]&15)!=8||r[0]>>>4>7||(r[0]<<8|r[1])%31)throw"invalid zlib data";if(r[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function Bs(r,e){e===void 0&&(e={});var n=Ml();n.p(r);var a=Bl(r,e,2,4);return Dl(a,e),El(a,a.length-4,n.d()),a}function Rl(r,e){return Fl((ql(r),r.subarray(2,-4)),e)}var Ht=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Ns(){Ht.console&&typeof Ht.console.log=="function"&&Ht.console.log.apply(Ht.console,arguments)}var be={log:Ns,warn:function(r){Ht.console&&(typeof Ht.console.warn=="function"?Ht.console.warn.apply(Ht.console,arguments):Ns.call(null,arguments))},error:function(r){Ht.console&&(typeof Ht.console.error=="function"?Ht.console.error.apply(Ht.console,arguments):Ns(r))}};function Ls(r,e,n){var a=new XMLHttpRequest;a.open("GET",r),a.responseType="blob",a.onload=function(){Jr(a.response,e,n)},a.onerror=function(){be.error("could not download file")},a.send()}function jc(r){var e=new XMLHttpRequest;e.open("HEAD",r,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function oo(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 ga,Es,Jr=Ht.saveAs||((typeof window>"u"?"undefined":de(window))!=="object"||window!==Ht?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(r,e,n){var a=Ht.URL||Ht.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?jc(s.href)?Ls(r,e,n):oo(s,s.target="_blank"):oo(s)):(s.href=a.createObjectURL(r),setTimeout(function(){a.revokeObjectURL(s.href)},4e4),setTimeout(function(){oo(s)},0))}:"msSaveOrOpenBlob"in navigator?function(r,e,n){if(e=e||r.name||"download",typeof r=="string")if(jc(r))Ls(r,e,n);else{var a=document.createElement("a");a.href=r,a.target="_blank",setTimeout(function(){oo(a)})}else navigator.msSaveOrOpenBlob(function(s,o){return o===void 0?o={autoBom:!1}:de(o)!=="object"&&(be.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([String.fromCharCode(65279),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(Ht.HTMLElement)||Ht.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&o)&&(typeof FileReader>"u"?"undefined":de(FileReader))==="object"){var h=new FileReader;h.onloadend=function(){var v=h.result;v=u?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=v:location=v,a=null},h.readAsDataURL(r)}else{var f=Ht.URL||Ht.webkitURL,g=f.createObjectURL(r);a?a.location=g:location.href=g,a=null,setTimeout(function(){f.revokeObjectURL(g)},4e4)}});/**
 * A class to parse color values
 * @author Stoyan Stefanov <sstoo@gmail.com>
 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
 * @license Use it if you like it
 */function ou(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:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[r=(r=r.replace(/ /g,"")).toLowerCase()]||r;for(var 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,u=s.exec(r);u&&(e=o(u),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}}/**
 * @license
 * Joseph Myers does not specify a particular license for his work.
 *
 * Author: Joseph Myers
 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
 *
 * Modified by: Owen Leong
 */function xs(r,e){var n=r[0],a=r[1],s=r[2],o=r[3];n=$e(n,a,s,o,e[0],7,-680876936),o=$e(o,n,a,s,e[1],12,-389564586),s=$e(s,o,n,a,e[2],17,606105819),a=$e(a,s,o,n,e[3],22,-1044525330),n=$e(n,a,s,o,e[4],7,-176418897),o=$e(o,n,a,s,e[5],12,1200080426),s=$e(s,o,n,a,e[6],17,-1473231341),a=$e(a,s,o,n,e[7],22,-45705983),n=$e(n,a,s,o,e[8],7,1770035416),o=$e(o,n,a,s,e[9],12,-1958414417),s=$e(s,o,n,a,e[10],17,-42063),a=$e(a,s,o,n,e[11],22,-1990404162),n=$e(n,a,s,o,e[12],7,1804603682),o=$e(o,n,a,s,e[13],12,-40341101),s=$e(s,o,n,a,e[14],17,-1502002290),n=Ke(n,a=$e(a,s,o,n,e[15],22,1236535329),s,o,e[1],5,-165796510),o=Ke(o,n,a,s,e[6],9,-1069501632),s=Ke(s,o,n,a,e[11],14,643717713),a=Ke(a,s,o,n,e[0],20,-373897302),n=Ke(n,a,s,o,e[5],5,-701558691),o=Ke(o,n,a,s,e[10],9,38016083),s=Ke(s,o,n,a,e[15],14,-660478335),a=Ke(a,s,o,n,e[4],20,-405537848),n=Ke(n,a,s,o,e[9],5,568446438),o=Ke(o,n,a,s,e[14],9,-1019803690),s=Ke(s,o,n,a,e[3],14,-187363961),a=Ke(a,s,o,n,e[8],20,1163531501),n=Ke(n,a,s,o,e[13],5,-1444681467),o=Ke(o,n,a,s,e[2],9,-51403784),s=Ke(s,o,n,a,e[7],14,1735328473),n=Ze(n,a=Ke(a,s,o,n,e[12],20,-1926607734),s,o,e[5],4,-378558),o=Ze(o,n,a,s,e[8],11,-2022574463),s=Ze(s,o,n,a,e[11],16,1839030562),a=Ze(a,s,o,n,e[14],23,-35309556),n=Ze(n,a,s,o,e[1],4,-1530992060),o=Ze(o,n,a,s,e[4],11,1272893353),s=Ze(s,o,n,a,e[7],16,-155497632),a=Ze(a,s,o,n,e[10],23,-1094730640),n=Ze(n,a,s,o,e[13],4,681279174),o=Ze(o,n,a,s,e[0],11,-358537222),s=Ze(s,o,n,a,e[3],16,-722521979),a=Ze(a,s,o,n,e[6],23,76029189),n=Ze(n,a,s,o,e[9],4,-640364487),o=Ze(o,n,a,s,e[12],11,-421815835),s=Ze(s,o,n,a,e[15],16,530742520),n=Qe(n,a=Ze(a,s,o,n,e[2],23,-995338651),s,o,e[0],6,-198630844),o=Qe(o,n,a,s,e[7],10,1126891415),s=Qe(s,o,n,a,e[14],15,-1416354905),a=Qe(a,s,o,n,e[5],21,-57434055),n=Qe(n,a,s,o,e[12],6,1700485571),o=Qe(o,n,a,s,e[3],10,-1894986606),s=Qe(s,o,n,a,e[10],15,-1051523),a=Qe(a,s,o,n,e[1],21,-2054922799),n=Qe(n,a,s,o,e[8],6,1873313359),o=Qe(o,n,a,s,e[15],10,-30611744),s=Qe(s,o,n,a,e[6],15,-1560198380),a=Qe(a,s,o,n,e[13],21,1309151649),n=Qe(n,a,s,o,e[4],6,-145523070),o=Qe(o,n,a,s,e[11],10,-1120210379),s=Qe(s,o,n,a,e[2],15,718787259),a=Qe(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 No(r,e,n,a,s,o){return e=Br(Br(e,r),Br(a,o)),Br(e<<s|e>>>32-s,n)}function $e(r,e,n,a,s,o,u){return No(e&n|~e&a,r,e,s,o,u)}function Ke(r,e,n,a,s,o,u){return No(e&a|n&~a,r,e,s,o,u)}function Ze(r,e,n,a,s,o,u){return No(e^n^a,r,e,s,o,u)}function Qe(r,e,n,a,s,o,u){return No(n^(e|~a),r,e,s,o,u)}function su(r){var e,n=r.length,a=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=r.length;e+=64)xs(a,Tl(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(xs(a,s),e=0;e<16;e++)s[e]=0;return s[14]=8*n,xs(a,s),a}function Tl(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}ga=Ht.atob.bind(Ht),Es=Ht.btoa.bind(Ht);var Oc="0123456789abcdef".split("");function zl(r){for(var e="",n=0;n<4;n++)e+=Oc[r>>8*n+4&15]+Oc[r>>8*n&15];return e}function Ul(r){return String.fromCharCode((255&r)>>0,(65280&r)>>8,(16711680&r)>>16,(4278190080&r)>>24)}function Ds(r){return su(r).map(Ul).join("")}var Hl=function(r){for(var e=0;e<r.length;e++)r[e]=zl(r[e]);return r.join("")}(su("hello"))!="5d41402abc4b2a76b9719d911017c592";function Br(r,e){if(Hl){var n=(65535&r)+(65535&e);return(r>>16)+(e>>16)+(n>>16)<<16|65535&n}return r+e&4294967295}/**
 * @license
 * FPDF is released under a permissive license: there is no usage restriction.
 * You may embed it freely in your application (commercial or not), with or
 * without modifications.
 *
 * Reference: http://www.fpdf.org/en/script/script37.php
 */function qs(r,e){var n,a,s,o;if(r!==n){for(var u=(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+u.charCodeAt(f))%256,h[f]=h[g],h[g]=v}n=r,a=h}else h=a;var N=e.length,S=0,p=0,M="";for(f=0;f<N;f++)p=(p+(v=h[S=(S+1)%256]))%256,h[S]=h[p],h[p]=v,u=h[(h[S]+h[p])%256],M+=String.fromCharCode(e.charCodeAt(f)^u);return M}/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 * Author: Owen Leong (@owenl131)
 * Date: 15 Oct 2020
 * References:
 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
 * http://www.fpdf.org/en/script/script37.php
 */var Mc={print:4,modify:8,copy:16,"annot-forms":32};function Ii(r,e,n,a){this.v=1,this.r=2;var s=192;r.forEach(function(h){if(Mc.perm!==void 0)throw new Error("Invalid permission: "+h);s+=Mc[h]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var o=(e+this.padding).substr(0,32),u=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,u),this.P=-(1+(255^s)),this.encryptionKey=Ds(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=qs(this.encryptionKey,this.padding)}function Fi(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 Bc(r){if(de(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 u=e[n][o];try{u[0].apply(r,a)}catch(h){Ht.console&&be.error("jsPDF PubSub Error",h.message,h)}u[1]&&s.push(o)}s.length&&s.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function mo(r){if(!(this instanceof mo))return new mo(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 cu(r,e){this.gState=r,this.matrix=e,this.id="",this.objectNumber=-1}function Xr(r,e,n,a,s){if(!(this instanceof Xr))return new Xr(r,e,n,a,s);this.type=r==="axial"?2:3,this.coords=e,this.colors=n,cu.call(this,a,s)}function Ci(r,e,n,a,s){if(!(this instanceof Ci))return new Ci(r,e,n,a,s);this.boundingBox=r,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,cu.call(this,a,s)}function zt(r){var e,n=typeof arguments[0]=="string"?arguments[0]:"p",a=arguments[1],s=arguments[2],o=arguments[3],u=[],h=1,f=16,g="S",v=null;de(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"),u=r.filters||(o===!0?["FlateEncode"]:u),a=a||"mm",n=(""+(n||"P")).toLowerCase();var N=r.putOnlyUsedFonts||!1,S={},p={internal:{},__private__:{}};p.__private__.PubSub=Bc;var M="1.3",I=p.__private__.getPdfVersion=function(){return M};p.__private__.setPdfVersion=function(c){M=c};var B={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return B};var _=p.__private__.getPageFormat=function(c){return B[c]};s=s||"a4";var O={COMPAT:"compat",ADVANCED:"advanced"},J=O.COMPAT;function ot(){this.saveGraphicsState(),D(new Tt(Ft,0,0,-Ft,0,wr()*Ft).toString()+" cm"),this.setFontSize(this.getFontSize()/Ft),g="n",J=O.ADVANCED}function ut(){this.restoreGraphicsState(),g="S",J=O.COMPAT}var wt=p.__private__.combineFontStyleAndFontWeight=function(c,b){if(c=="bold"&&b=="normal"||c=="bold"&&b==400||c=="normal"&&b=="italic"||c=="bold"&&b=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return b&&(c=b==400||b==="normal"?c==="italic"?"italic":"normal":b!=700&&b!=="bold"||c!=="normal"?(b==700?"bold":b)+""+c:"bold"),c};p.advancedAPI=function(c){var b=J===O.COMPAT;return b&&ot.call(this),typeof c!="function"||(c(this),b&&ut.call(this)),this},p.compatAPI=function(c){var b=J===O.ADVANCED;return b&&ut.call(this),typeof c!="function"||(c(this),b&&ot.call(this)),this},p.isAdvancedAPI=function(){return J===O.ADVANCED};var tt,R=function(c){if(J!==O.ADVANCED)throw new Error(c+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},gt=p.roundToPrecision=p.__private__.roundToPrecision=function(c,b){var C=e||b;if(isNaN(c)||isNaN(C))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return c.toFixed(C).replace(/0+$/,"")};tt=p.hpf=p.__private__.hpf=typeof f=="number"?function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return gt(c,f)}:f==="smart"?function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return gt(c,c>-1&&c<1?16:5)}:function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.hpf");return gt(c,16)};var dt=p.f2=p.__private__.f2=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.f2");return gt(c,2)},F=p.__private__.f3=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.f3");return gt(c,3)},P=p.scale=p.__private__.scale=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.scale");return J===O.COMPAT?c*Ft:J===O.ADVANCED?c:void 0},z=function(c){return J===O.COMPAT?wr()-c:J===O.ADVANCED?c:void 0},q=function(c){return P(z(c))};p.__private__.setPrecision=p.setPrecision=function(c){typeof parseInt(c,10)=="number"&&(e=parseInt(c,10))};var at,nt="00000000000000000000000000000000",lt=p.__private__.getFileId=function(){return nt},Z=p.__private__.setFileId=function(c){return nt=c!==void 0&&/^[a-fA-F0-9]{32}$/.test(c)?c.toUpperCase():nt.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),v!==null&&(Je=new Ii(v.userPermissions,v.userPassword,v.ownerPassword,nt)),nt};p.setFileId=function(c){return Z(c),this},p.getFileId=function(){return lt()};var ft=p.__private__.convertDateToPDFDate=function(c){var b=c.getTimezoneOffset(),C=b<0?"+":"-",T=Math.floor(Math.abs(b/60)),X=Math.abs(b%60),st=[C,E(T),"'",E(X),"'"].join("");return["D:",c.getFullYear(),E(c.getMonth()+1),E(c.getDate()),E(c.getHours()),E(c.getMinutes()),E(c.getSeconds()),st].join("")},ht=p.__private__.convertPDFDateToDate=function(c){var b=parseInt(c.substr(2,4),10),C=parseInt(c.substr(6,2),10)-1,T=parseInt(c.substr(8,2),10),X=parseInt(c.substr(10,2),10),st=parseInt(c.substr(12,2),10),yt=parseInt(c.substr(14,2),10);return new Date(b,C,T,X,st,yt,0)},kt=p.__private__.setCreationDate=function(c){var b;if(c===void 0&&(c=new Date),c instanceof Date)b=ft(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");b=c}return at=b},A=p.__private__.getCreationDate=function(c){var b=at;return c==="jsDate"&&(b=ht(at)),b};p.setCreationDate=function(c){return kt(c),this},p.getCreationDate=function(c){return A(c)};var j,E=p.__private__.padd2=function(c){return("0"+parseInt(c)).slice(-2)},W=p.__private__.padd2Hex=function(c){return("00"+(c=c.toString())).substr(c.length)},Y=0,Q=[],et=[],rt=0,Lt=[],Nt=[],Ct=!1,Mt=et,Ut=function(){Y=0,rt=0,et=[],Q=[],Lt=[],ir=Me(),Pn=Me()};p.__private__.setCustomOutputDestination=function(c){Ct=!0,Mt=c};var ct=function(c){Ct||(Mt=c)};p.__private__.resetCustomOutputDestination=function(){Ct=!1,Mt=et};var D=p.__private__.out=function(c){return c=c.toString(),rt+=c.length+1,Mt.push(c),Mt},Xt=p.__private__.write=function(c){return D(arguments.length===1?c.toString():Array.prototype.join.call(arguments," "))},Et=p.__private__.getArrayBuffer=function(c){for(var b=c.length,C=new ArrayBuffer(b),T=new Uint8Array(C);b--;)T[b]=c.charCodeAt(b);return C},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 xt=r.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(c){return xt=J===O.ADVANCED?c/Ft:c,this};var It,Pt=p.__private__.getFontSize=p.getFontSize=function(){return J===O.COMPAT?xt:xt*Ft},Dt=r.R2L||!1;p.__private__.setR2L=p.setR2L=function(c){return Dt=c,this},p.__private__.getR2L=p.getR2L=function(){return Dt};var Gt,Zt=p.__private__.setZoomMode=function(c){var b=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(c))It=c;else if(isNaN(c)){if(b.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.');It=c}else It=parseInt(c,10)};p.__private__.getZoomMode=function(){return It};var te,ae=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.');Gt=c};p.__private__.getPageMode=function(){return Gt};var pe=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.');te=c};p.__private__.getLayoutMode=function(){return te},p.__private__.setDisplayMode=p.setDisplayMode=function(c,b,C){return Zt(c),pe(b),ae(C),this};var Wt={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(c){if(Object.keys(Wt).indexOf(c)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Wt[c]},p.__private__.getDocumentProperties=function(){return Wt},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(c){for(var b in Wt)Wt.hasOwnProperty(b)&&c[b]&&(Wt[b]=c[b]);return this},p.__private__.setDocumentProperty=function(c,b){if(Object.keys(Wt).indexOf(c)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Wt[c]=b};var ee,Ft,Ye,se,xn,me={},Ne={},Hn=[],ue={},qr={},xe={},_n={},rr=null,_e=0,Yt=[],le=new Bc(p),Rr=r.hotfixes||[],Ve={},Wn={},Vn=[],Tt=function c(b,C,T,X,st,yt){if(!(this instanceof c))return new c(b,C,T,X,st,yt);isNaN(b)&&(b=1),isNaN(C)&&(C=0),isNaN(T)&&(T=0),isNaN(X)&&(X=1),isNaN(st)&&(st=0),isNaN(yt)&&(yt=0),this._matrix=[b,C,T,X,st,yt]};Object.defineProperty(Tt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(c){this._matrix[0]=c}}),Object.defineProperty(Tt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(c){this._matrix[1]=c}}),Object.defineProperty(Tt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(c){this._matrix[2]=c}}),Object.defineProperty(Tt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(c){this._matrix[3]=c}}),Object.defineProperty(Tt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(c){this._matrix[4]=c}}),Object.defineProperty(Tt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(c){this._matrix[5]=c}}),Object.defineProperty(Tt.prototype,"a",{get:function(){return this._matrix[0]},set:function(c){this._matrix[0]=c}}),Object.defineProperty(Tt.prototype,"b",{get:function(){return this._matrix[1]},set:function(c){this._matrix[1]=c}}),Object.defineProperty(Tt.prototype,"c",{get:function(){return this._matrix[2]},set:function(c){this._matrix[2]=c}}),Object.defineProperty(Tt.prototype,"d",{get:function(){return this._matrix[3]},set:function(c){this._matrix[3]=c}}),Object.defineProperty(Tt.prototype,"e",{get:function(){return this._matrix[4]},set:function(c){this._matrix[4]=c}}),Object.defineProperty(Tt.prototype,"f",{get:function(){return this._matrix[5]},set:function(c){this._matrix[5]=c}}),Object.defineProperty(Tt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Tt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Tt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Tt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Tt.prototype.join=function(c){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(tt).join(c)},Tt.prototype.multiply=function(c){var b=c.sx*this.sx+c.shy*this.shx,C=c.sx*this.shy+c.shy*this.sy,T=c.shx*this.sx+c.sy*this.shx,X=c.shx*this.shy+c.sy*this.sy,st=c.tx*this.sx+c.ty*this.shx+this.tx,yt=c.tx*this.shy+c.ty*this.sy+this.ty;return new Tt(b,C,T,X,st,yt)},Tt.prototype.decompose=function(){var c=this.sx,b=this.shy,C=this.shx,T=this.sy,X=this.tx,st=this.ty,yt=Math.sqrt(c*c+b*b),jt=(c/=yt)*C+(b/=yt)*T;C-=c*jt,T-=b*jt;var qt=Math.sqrt(C*C+T*T);return jt/=qt,c*(T/=qt)<b*(C/=qt)&&(c=-c,b=-b,jt=-jt,yt=-yt),{scale:new Tt(yt,0,0,qt,0,0),translate:new Tt(1,0,0,1,X,st),rotate:new Tt(c,b,-b,c,0,0),skew:new Tt(1,0,jt,1,0,0)}},Tt.prototype.toString=function(c){return this.join(" ")},Tt.prototype.inversed=function(){var c=this.sx,b=this.shy,C=this.shx,T=this.sy,X=this.tx,st=this.ty,yt=1/(c*T-b*C),jt=T*yt,qt=-b*yt,$t=-C*yt,Qt=c*yt;return new Tt(jt,qt,$t,Qt,-jt*X-$t*st,-qt*X-Qt*st)},Tt.prototype.applyToPoint=function(c){var b=c.x*this.sx+c.y*this.shx+this.tx,C=c.x*this.shy+c.y*this.sy+this.ty;return new fi(b,C)},Tt.prototype.applyToRectangle=function(c){var b=this.applyToPoint(c),C=this.applyToPoint(new fi(c.x+c.w,c.y+c.h));return new Gi(b.x,b.y,C.x-b.x,C.y-b.y)},Tt.prototype.clone=function(){var c=this.sx,b=this.shy,C=this.shx,T=this.sy,X=this.tx,st=this.ty;return new Tt(c,b,C,T,X,st)},p.Matrix=Tt;var Sn=p.matrixMult=function(c,b){return b.multiply(c)},Gn=new Tt(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Gn;var an=function(c,b){if(!qr[c]){var C=(b instanceof Xr?"Sh":"P")+(Object.keys(ue).length+1).toString(10);b.id=C,qr[c]=C,ue[C]=b,le.publish("addPattern",b)}};p.ShadingPattern=Xr,p.TilingPattern=Ci,p.addShadingPattern=function(c,b){return R("addShadingPattern()"),an(c,b),this},p.beginTilingPattern=function(c){R("beginTilingPattern()"),Da(c.boundingBox[0],c.boundingBox[1],c.boundingBox[2]-c.boundingBox[0],c.boundingBox[3]-c.boundingBox[1],c.matrix)},p.endTilingPattern=function(c,b){R("endTilingPattern()"),b.stream=Nt[j].join(`
`),an(c,b),le.publish("endTilingPattern",b),Vn.pop().restore()};var qe=p.__private__.newObject=function(){var c=Me();return fn(c,!0),c},Me=p.__private__.newObjectDeferred=function(){return Y++,Q[Y]=function(){return rt},Y},fn=function(c,b){return b=typeof b=="boolean"&&b,Q[c]=rt,b&&D(c+" 0 obj"),c},Qr=p.__private__.newAdditionalObject=function(){var c={objId:Me(),content:""};return Lt.push(c),c},ir=Me(),Pn=Me(),kn=p.__private__.decodeColorString=function(c){var b=c.split(" ");if(b.length!==2||b[1]!=="g"&&b[1]!=="G")b.length===5&&(b[4]==="k"||b[4]==="K")&&(b=[(1-b[0])*(1-b[3]),(1-b[1])*(1-b[3]),(1-b[2])*(1-b[3]),"r"]);else{var C=parseFloat(b[0]);b=[C,C,C,"r"]}for(var T="#",X=0;X<3;X++)T+=("0"+Math.floor(255*parseFloat(b[X])).toString(16)).slice(-2);return T},In=p.__private__.encodeColorString=function(c){var b;typeof c=="string"&&(c={ch1:c});var C=c.ch1,T=c.ch2,X=c.ch3,st=c.ch4,yt=c.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof C=="string"&&C.charAt(0)!=="#"){var jt=new ou(C);if(jt.ok)C=jt.toHex();else if(!/^\d*\.?\d*$/.test(C))throw new Error('Invalid color "'+C+'" passed to jsPDF.encodeColorString.')}if(typeof C=="string"&&/^#[0-9A-Fa-f]{3}$/.test(C)&&(C="#"+C[1]+C[1]+C[2]+C[2]+C[3]+C[3]),typeof C=="string"&&/^#[0-9A-Fa-f]{6}$/.test(C)){var qt=parseInt(C.substr(1),16);C=qt>>16&255,T=qt>>8&255,X=255&qt}if(T===void 0||st===void 0&&C===T&&T===X)if(typeof C=="string")b=C+" "+yt[0];else switch(c.precision){case 2:b=dt(C/255)+" "+yt[0];break;case 3:default:b=F(C/255)+" "+yt[0]}else if(st===void 0||de(st)==="object"){if(st&&!isNaN(st.a)&&st.a===0)return b=["1.","1.","1.",yt[1]].join(" ");if(typeof C=="string")b=[C,T,X,yt[1]].join(" ");else switch(c.precision){case 2:b=[dt(C/255),dt(T/255),dt(X/255),yt[1]].join(" ");break;default:case 3:b=[F(C/255),F(T/255),F(X/255),yt[1]].join(" ")}}else if(typeof C=="string")b=[C,T,X,st,yt[2]].join(" ");else switch(c.precision){case 2:b=[dt(C),dt(T),dt(X),dt(st),yt[2]].join(" ");break;case 3:default:b=[F(C),F(T),F(X),F(st),yt[2]].join(" ")}return b},Yn=p.__private__.getFilters=function(){return u},bn=p.__private__.putStream=function(c){var b=(c=c||{}).data||"",C=c.filters||Yn(),T=c.alreadyAppliedFilters||[],X=c.addLength1||!1,st=b.length,yt=c.objectId,jt=function(Xe){return Xe};if(v!==null&&yt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");v!==null&&(jt=Je.encryptor(yt,0));var qt={};C===!0&&(C=["FlateEncode"]);var $t=c.additionalKeyValues||[],Qt=(qt=zt.API.processDataByFilters!==void 0?zt.API.processDataByFilters(b,C):{data:b,reverseChain:[]}).reverseChain+(Array.isArray(T)?T.join(" "):T.toString());if(qt.data.length!==0&&($t.push({key:"Length",value:qt.data.length}),X===!0&&$t.push({key:"Length1",value:st})),Qt.length!=0)if(Qt.split("/").length-1==1)$t.push({key:"Filter",value:Qt});else{$t.push({key:"Filter",value:"["+Qt+"]"});for(var ie=0;ie<$t.length;ie+=1)if($t[ie].key==="DecodeParms"){for(var Le=[],Se=0;Se<qt.reverseChain.split("/").length-1;Se+=1)Le.push("null");Le.push($t[ie].value),$t[ie].value="["+Le.join(" ")+"]"}}D("<<");for(var Be=0;Be<$t.length;Be++)D("/"+$t[Be].key+" "+$t[Be].value);D(">>"),qt.data.length!==0&&(D("stream"),D(jt(qt.data)),D("endstream"))},Jn=p.__private__.putPage=function(c){var b=c.number,C=c.data,T=c.objId,X=c.contentsObjId;fn(T,!0),D("<</Type /Page"),D("/Parent "+c.rootDictionaryObjId+" 0 R"),D("/Resources "+c.resourceDictionaryObjId+" 0 R"),D("/MediaBox ["+parseFloat(tt(c.mediaBox.bottomLeftX))+" "+parseFloat(tt(c.mediaBox.bottomLeftY))+" "+tt(c.mediaBox.topRightX)+" "+tt(c.mediaBox.topRightY)+"]"),c.cropBox!==null&&D("/CropBox ["+tt(c.cropBox.bottomLeftX)+" "+tt(c.cropBox.bottomLeftY)+" "+tt(c.cropBox.topRightX)+" "+tt(c.cropBox.topRightY)+"]"),c.bleedBox!==null&&D("/BleedBox ["+tt(c.bleedBox.bottomLeftX)+" "+tt(c.bleedBox.bottomLeftY)+" "+tt(c.bleedBox.topRightX)+" "+tt(c.bleedBox.topRightY)+"]"),c.trimBox!==null&&D("/TrimBox ["+tt(c.trimBox.bottomLeftX)+" "+tt(c.trimBox.bottomLeftY)+" "+tt(c.trimBox.topRightX)+" "+tt(c.trimBox.topRightY)+"]"),c.artBox!==null&&D("/ArtBox ["+tt(c.artBox.bottomLeftX)+" "+tt(c.artBox.bottomLeftY)+" "+tt(c.artBox.topRightX)+" "+tt(c.artBox.topRightY)+"]"),typeof c.userUnit=="number"&&c.userUnit!==1&&D("/UserUnit "+c.userUnit),le.publish("putPage",{objId:T,pageContext:Yt[b],pageNumber:b,page:C}),D("/Contents "+X+" 0 R"),D(">>"),D("endobj");var st=C.join(`
`);return J===O.ADVANCED&&(st+=`
Q`),fn(X,!0),bn({data:st,filters:Yn(),objectId:X}),D("endobj"),T},Tr=p.__private__.putPages=function(){var c,b,C=[];for(c=1;c<=_e;c++)Yt[c].objId=Me(),Yt[c].contentsObjId=Me();for(c=1;c<=_e;c++)C.push(Jn({number:c,data:Nt[c],objId:Yt[c].objId,contentsObjId:Yt[c].contentsObjId,mediaBox:Yt[c].mediaBox,cropBox:Yt[c].cropBox,bleedBox:Yt[c].bleedBox,trimBox:Yt[c].trimBox,artBox:Yt[c].artBox,userUnit:Yt[c].userUnit,rootDictionaryObjId:ir,resourceDictionaryObjId:Pn}));fn(ir,!0),D("<</Type /Pages");var T="/Kids [";for(b=0;b<_e;b++)T+=C[b]+" 0 R ";D(T+"]"),D("/Count "+_e),D(">>"),D("endobj"),le.publish("postPutPages")},ti=function(c){le.publish("putFont",{font:c,out:D,newObject:qe,putStream:bn}),c.isAlreadyPutted!==!0&&(c.objectNumber=qe(),D("<<"),D("/Type /Font"),D("/BaseFont /"+Fi(c.postScriptName)),D("/Subtype /Type1"),typeof c.encoding=="string"&&D("/Encoding /"+c.encoding),D("/FirstChar 32"),D("/LastChar 255"),D(">>"),D("endobj"))},ei=function(){for(var c in me)me.hasOwnProperty(c)&&(N===!1||N===!0&&S.hasOwnProperty(c))&&ti(me[c])},ni=function(c){c.objectNumber=qe();var b=[];b.push({key:"Type",value:"/XObject"}),b.push({key:"Subtype",value:"/Form"}),b.push({key:"BBox",value:"["+[tt(c.x),tt(c.y),tt(c.x+c.width),tt(c.y+c.height)].join(" ")+"]"}),b.push({key:"Matrix",value:"["+c.matrix.toString()+"]"});var C=c.pages[1].join(`
`);bn({data:C,additionalKeyValues:b,objectId:c.objectNumber}),D("endobj")},ri=function(){for(var c in Ve)Ve.hasOwnProperty(c)&&ni(Ve[c])},wa=function(c,b){var C,T=[],X=1/(b-1);for(C=0;C<1;C+=X)T.push(C);if(T.push(1),c[0].offset!=0){var st={offset:0,color:c[0].color};c.unshift(st)}if(c[c.length-1].offset!=1){var yt={offset:1,color:c[c.length-1].color};c.push(yt)}for(var jt="",qt=0,$t=0;$t<T.length;$t++){for(C=T[$t];C>c[qt+1].offset;)qt++;var Qt=c[qt].offset,ie=(C-Qt)/(c[qt+1].offset-Qt),Le=c[qt].color,Se=c[qt+1].color;jt+=W(Math.round((1-ie)*Le[0]+ie*Se[0]).toString(16))+W(Math.round((1-ie)*Le[1]+ie*Se[1]).toString(16))+W(Math.round((1-ie)*Le[2]+ie*Se[2]).toString(16))}return jt.trim()},Lo=function(c,b){b||(b=21);var C=qe(),T=wa(c.colors,b),X=[];X.push({key:"FunctionType",value:"0"}),X.push({key:"Domain",value:"[0.0 1.0]"}),X.push({key:"Size",value:"["+b+"]"}),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]"}),bn({data:T,additionalKeyValues:X,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:C}),D("endobj"),c.objectNumber=qe(),D("<< /ShadingType "+c.type),D("/ColorSpace /DeviceRGB");var st="/Coords ["+tt(parseFloat(c.coords[0]))+" "+tt(parseFloat(c.coords[1]))+" ";c.type===2?st+=tt(parseFloat(c.coords[2]))+" "+tt(parseFloat(c.coords[3])):st+=tt(parseFloat(c.coords[2]))+" "+tt(parseFloat(c.coords[3]))+" "+tt(parseFloat(c.coords[4]))+" "+tt(parseFloat(c.coords[5])),D(st+="]"),c.matrix&&D("/Matrix ["+c.matrix.toString()+"]"),D("/Function "+C+" 0 R"),D("/Extend [true true]"),D(">>"),D("endobj")},xo=function(c,b){var C=Me(),T=qe();b.push({resourcesOid:C,objectOid:T}),c.objectNumber=T;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(tt).join(" ")+"]"}),X.push({key:"XStep",value:tt(c.xStep)}),X.push({key:"YStep",value:tt(c.yStep)}),X.push({key:"Resources",value:C+" 0 R"}),c.matrix&&X.push({key:"Matrix",value:"["+c.matrix.toString()+"]"}),bn({data:c.stream,additionalKeyValues:X,objectId:c.objectNumber}),D("endobj")},ii=function(c){var b;for(b in ue)ue.hasOwnProperty(b)&&(ue[b]instanceof Xr?Lo(ue[b]):ue[b]instanceof Ci&&xo(ue[b],c))},ya=function(c){for(var b in c.objectNumber=qe(),D("<<"),c)switch(b){case"opacity":D("/ca "+dt(c[b]));break;case"stroke-opacity":D("/CA "+dt(c[b]))}D(">>"),D("endobj")},_o=function(){var c;for(c in xe)xe.hasOwnProperty(c)&&ya(xe[c])},Ei=function(){for(var c in D("/XObject <<"),Ve)Ve.hasOwnProperty(c)&&Ve[c].objectNumber>=0&&D("/"+c+" "+Ve[c].objectNumber+" 0 R");le.publish("putXobjectDict"),D(">>")},So=function(){Je.oid=qe(),D("<<"),D("/Filter /Standard"),D("/V "+Je.v),D("/R "+Je.r),D("/U <"+Je.toHexString(Je.U)+">"),D("/O <"+Je.toHexString(Je.O)+">"),D("/P "+Je.P),D(">>"),D("endobj")},Aa=function(){for(var c in D("/Font <<"),me)me.hasOwnProperty(c)&&(N===!1||N===!0&&S.hasOwnProperty(c))&&D("/"+c+" "+me[c].objectNumber+" 0 R");D(">>")},Po=function(){if(Object.keys(ue).length>0){for(var c in D("/Shading <<"),ue)ue.hasOwnProperty(c)&&ue[c]instanceof Xr&&ue[c].objectNumber>=0&&D("/"+c+" "+ue[c].objectNumber+" 0 R");le.publish("putShadingPatternDict"),D(">>")}},ai=function(c){if(Object.keys(ue).length>0){for(var b in D("/Pattern <<"),ue)ue.hasOwnProperty(b)&&ue[b]instanceof p.TilingPattern&&ue[b].objectNumber>=0&&ue[b].objectNumber<c&&D("/"+b+" "+ue[b].objectNumber+" 0 R");le.publish("putTilingPatternDict"),D(">>")}},ko=function(){if(Object.keys(xe).length>0){var c;for(c in D("/ExtGState <<"),xe)xe.hasOwnProperty(c)&&xe[c].objectNumber>=0&&D("/"+c+" "+xe[c].objectNumber+" 0 R");le.publish("putGStateDict"),D(">>")}},Ie=function(c){fn(c.resourcesOid,!0),D("<<"),D("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Aa(),Po(),ai(c.objectOid),ko(),Ei(),D(">>"),D("endobj")},Na=function(){var c=[];ei(),_o(),ri(),ii(c),le.publish("putResources"),c.forEach(Ie),Ie({resourcesOid:Pn,objectOid:Number.MAX_SAFE_INTEGER}),le.publish("postPutResources")},La=function(){le.publish("putAdditionalObjects");for(var c=0;c<Lt.length;c++){var b=Lt[c];fn(b.objId,!0),D(b.content),D("endobj")}le.publish("postPutAdditionalObjects")},xa=function(c){Ne[c.fontName]=Ne[c.fontName]||{},Ne[c.fontName][c.fontStyle]=c.id},Di=function(c,b,C,T,X){var st={id:"F"+(Object.keys(me).length+1).toString(10),postScriptName:c,fontName:b,fontStyle:C,encoding:T,isStandardFont:X||!1,metadata:{}};return le.publish("addFont",{font:st,instance:this}),me[st.id]=st,xa(st),st.id},Io=function(c){for(var b=0,C=At.length;b<C;b++){var T=Di.call(this,c[b][0],c[b][1],c[b][2],At[b][3],!0);N===!1&&(S[T]=!0);var X=c[b][0].split("-");xa({id:T,fontName:X[0],fontStyle:X[1]||""})}le.publish("addFonts",{fonts:me,dictionary:Ne})},Fn=function(c){return c.foo=function(){try{return c.apply(this,arguments)}catch(T){var b=T.stack||"";~b.indexOf(" at ")&&(b=b.split(" at ")[1]);var C="Error in function "+b.split(`
`)[0].split("<")[0]+": "+T.message;if(!Ht.console)throw new Error(C);Ht.console.error(C,T),Ht.alert&&alert(C)}},c.foo.bar=c,c.foo},oi=function(c,b){var C,T,X,st,yt,jt,qt,$t,Qt;if(X=(b=b||{}).sourceEncoding||"Unicode",yt=b.outputEncoding,(b.autoencode||yt)&&me[ee].metadata&&me[ee].metadata[X]&&me[ee].metadata[X].encoding&&(st=me[ee].metadata[X].encoding,!yt&&me[ee].encoding&&(yt=me[ee].encoding),!yt&&st.codePages&&(yt=st.codePages[0]),typeof yt=="string"&&(yt=st[yt]),yt)){for(qt=!1,jt=[],C=0,T=c.length;C<T;C++)($t=yt[c.charCodeAt(C)])?jt.push(String.fromCharCode($t)):jt.push(c[C]),jt[C].charCodeAt(0)>>8&&(qt=!0);c=jt.join("")}for(C=c.length;qt===void 0&&C!==0;)c.charCodeAt(C-1)>>8&&(qt=!0),C--;if(!qt)return c;for(jt=b.noBOM?[]:[254,255],C=0,T=c.length;C<T;C++){if((Qt=($t=c.charCodeAt(C))>>8)>>8)throw new Error("Character at position "+C+" of string '"+c+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");jt.push(Qt),jt.push($t-(Qt<<8))}return String.fromCharCode.apply(void 0,jt)},on=p.__private__.pdfEscape=p.pdfEscape=function(c,b){return oi(c,b).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},qi=p.__private__.beginPage=function(c){Nt[++_e]=[],Yt[_e]={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])}},Sa(_e),ct(Nt[j])},_a=function(c,b){var C,T,X;switch(n=b||n,typeof c=="string"&&(C=_(c.toLowerCase()),Array.isArray(C)&&(T=C[0],X=C[1])),Array.isArray(c)&&(T=c[0]*Ft,X=c[1]*Ft),isNaN(T)&&(T=s[0],X=s[1]),(T>14400||X>14400)&&(be.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),T=Math.min(14400,T),X=Math.min(14400,X)),s=[T,X],n.substr(0,1)){case"l":X>T&&(s=[X,T]);break;case"p":T>X&&(s=[X,T])}qi(s),ja(Ui),D(Cn),Wi!==0&&D(Wi+" J"),Vi!==0&&D(Vi+" j"),le.publish("addPage",{pageNumber:_e})},Fo=function(c){c>0&&c<=_e&&(Nt.splice(c,1),Yt.splice(c,1),_e--,j>_e&&(j=_e),this.setPage(j))},Sa=function(c){c>0&&c<=_e&&(j=c)},Co=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return Nt.length-1},Pa=function(c,b,C){var T,X=void 0;return C=C||{},c=c!==void 0?c:me[ee].fontName,b=b!==void 0?b:me[ee].fontStyle,T=c.toLowerCase(),Ne[T]!==void 0&&Ne[T][b]!==void 0?X=Ne[T][b]:Ne[c]!==void 0&&Ne[c][b]!==void 0?X=Ne[c][b]:C.disableWarning===!1&&be.warn("Unable to look up font label for font '"+c+"', '"+b+"'. Refer to getFontList() for available fonts."),X||C.noFallback||(X=Ne.times[b])==null&&(X=Ne.times.normal),X},jo=p.__private__.putInfo=function(){var c=qe(),b=function(T){return T};for(var C in v!==null&&(b=Je.encryptor(c,0)),D("<<"),D("/Producer ("+on(b("jsPDF "+zt.version))+")"),Wt)Wt.hasOwnProperty(C)&&Wt[C]&&D("/"+C.substr(0,1).toUpperCase()+C.substr(1)+" ("+on(b(Wt[C]))+")");D("/CreationDate ("+on(b(at))+")"),D(">>"),D("endobj")},Ri=p.__private__.putCatalog=function(c){var b=(c=c||{}).rootDictionaryObjId||ir;switch(qe(),D("<<"),D("/Type /Catalog"),D("/Pages "+b+" 0 R"),It||(It="fullwidth"),It){case"fullwidth":D("/OpenAction [3 0 R /FitH null]");break;case"fullheight":D("/OpenAction [3 0 R /FitV null]");break;case"fullpage":D("/OpenAction [3 0 R /Fit]");break;case"original":D("/OpenAction [3 0 R /XYZ null null 1]");break;default:var C=""+It;C.substr(C.length-1)==="%"&&(It=parseInt(It)/100),typeof It=="number"&&D("/OpenAction [3 0 R /XYZ null null "+dt(It)+"]")}switch(te||(te="continuous"),te){case"continuous":D("/PageLayout /OneColumn");break;case"single":D("/PageLayout /SinglePage");break;case"two":case"twoleft":D("/PageLayout /TwoColumnLeft");break;case"tworight":D("/PageLayout /TwoColumnRight")}Gt&&D("/PageMode /"+Gt),le.publish("putCatalog"),D(">>"),D("endobj")},Oo=p.__private__.putTrailer=function(){D("trailer"),D("<<"),D("/Size "+(Y+1)),D("/Root "+Y+" 0 R"),D("/Info "+(Y-1)+" 0 R"),v!==null&&D("/Encrypt "+Je.oid+" 0 R"),D("/ID [ <"+nt+"> <"+nt+"> ]"),D(">>")},Mo=p.__private__.putHeader=function(){D("%PDF-"+M),D("%\xBA\xDF\xAC\xE0")},Bo=p.__private__.putXRef=function(){var c="0000000000";D("xref"),D("0 "+(Y+1)),D("0000000000 65535 f ");for(var b=1;b<=Y;b++)typeof Q[b]=="function"?D((c+Q[b]()).slice(-10)+" 00000 n "):Q[b]!==void 0?D((c+Q[b]).slice(-10)+" 00000 n "):D("0000000000 00000 n ")},ar=p.__private__.buildDocument=function(){Ut(),ct(et),le.publish("buildDocument"),Mo(),Tr(),La(),Na(),v!==null&&So(),jo(),Ri();var c=rt;return Bo(),Oo(),D("startxref"),D(""+c),D("%%EOF"),ct(Nt[j]),et.join(`
`)},si=p.__private__.getBlob=function(c){return new Blob([Et(c)],{type:"application/pdf"})},ci=p.output=p.__private__.output=Fn(function(c,b){switch(typeof(b=b||{})=="string"?b={filename:b}:b.filename=b.filename||"generated.pdf",c){case void 0:return ar();case"save":p.save(b.filename);break;case"arraybuffer":return Et(ar());case"blob":return si(ar());case"bloburi":case"bloburl":if(Ht.URL!==void 0&&typeof Ht.URL.createObjectURL=="function")return Ht.URL&&Ht.URL.createObjectURL(si(ar()))||void 0;be.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var C="",T=ar();try{C=Es(T)}catch{C=Es(unescape(encodeURIComponent(T)))}return"data:application/pdf;filename="+b.filename+";base64,"+C;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Ht)==="[object Window]"){var X="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",st=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';b.pdfObjectUrl&&(X=b.pdfObjectUrl,st="");var yt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+X+'"'+st+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(b)+");<\/script></body></html>",jt=Ht.open();return jt!==null&&jt.document.write(yt),jt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Ht)==="[object Window]"){var qt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(b.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+b.filename+'" width="500px" height="400px" /></body></html>',$t=Ht.open();if($t!==null){$t.document.write(qt);var Qt=this;$t.document.documentElement.querySelector("#pdfViewer").onload=function(){$t.document.title=b.filename,$t.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Qt.output("bloburl"))}}return $t}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Ht)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ie='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",b)+'"></iframe></body></html>',Le=Ht.open();if(Le!==null&&(Le.document.write(ie),Le.document.title=b.filename),Le||typeof safari>"u")return Le;break;case"datauri":case"dataurl":return Ht.document.location.href=this.output("datauristring",b);default:return null}}),ka=function(c){return Array.isArray(Rr)===!0&&Rr.indexOf(c)>-1};switch(a){case"pt":Ft=1;break;case"mm":Ft=72/25.4;break;case"cm":Ft=72/2.54;break;case"in":Ft=72;break;case"px":Ft=ka("px_scaling")==1?.75:96/72;break;case"pc":case"em":Ft=12;break;case"ex":Ft=6;break;default:if(typeof a!="number")throw new Error("Invalid unit: "+a);Ft=a}var Je=null;kt(),Z();var Eo=function(c){return v!==null?Je.encryptor(c,0):function(b){return b}},Ia=p.__private__.getPageInfo=p.getPageInfo=function(c){if(isNaN(c)||c%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Yt[c].objId,pageNumber:c,pageContext:Yt[c]}},Vt=p.__private__.getPageInfoByObjId=function(c){if(isNaN(c)||c%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var b in Yt)if(Yt[b].objId===c)break;return Ia(b)},Do=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Yt[j].objId,pageNumber:j,pageContext:Yt[j]}};p.addPage=function(){return _a.apply(this,arguments),this},p.setPage=function(){return Sa.apply(this,arguments),ct.call(this,Nt[j]),this},p.insertPage=function(c){return this.addPage(),this.movePage(j,c),this},p.movePage=function(c,b){var C,T;if(c>b){C=Nt[c],T=Yt[c];for(var X=c;X>b;X--)Nt[X]=Nt[X-1],Yt[X]=Yt[X-1];Nt[b]=C,Yt[b]=T,this.setPage(b)}else if(c<b){C=Nt[c],T=Yt[c];for(var st=c;st<b;st++)Nt[st]=Nt[st+1],Yt[st]=Yt[st+1];Nt[b]=C,Yt[b]=T,this.setPage(b)}return this},p.deletePage=function(){return Fo.apply(this,arguments),this},p.__private__.text=p.text=function(c,b,C,T,X){var st,yt,jt,qt,$t,Qt,ie,Le,Se,Be=(T=T||{}).scope||this;if(typeof c=="number"&&typeof b=="number"&&(typeof C=="string"||Array.isArray(C))){var Xe=C;C=b,b=c,c=Xe}if(arguments[3]instanceof Tt?(R("The transform parameter of text() with a Matrix value"),Se=X):(jt=arguments[4],qt=arguments[5],de(ie=arguments[3])==="object"&&ie!==null||(typeof jt=="string"&&(qt=jt,jt=null),typeof ie=="string"&&(qt=ie,ie=null),typeof ie=="number"&&(jt=ie,ie=null),T={flags:ie,angle:jt,align:qt})),isNaN(b)||isNaN(C)||c==null)throw new Error("Invalid arguments passed to jsPDF.text");if(c.length===0)return Be;var Te="",jn=!1,dn=typeof T.lineHeightFactor=="number"?T.lineHeightFactor:Ur,sr=Be.internal.scaleFactor;function qa(we){return we=we.split("	").join(Array(T.TabLen||9).join(" ")),on(we,ie)}function $i(we){for(var ye,Fe=we.concat(),Re=[],hr=Fe.length;hr--;)typeof(ye=Fe.shift())=="string"?Re.push(ye):Array.isArray(we)&&(ye.length===1||ye[1]===void 0&&ye[2]===void 0)?Re.push(ye[0]):Re.push([ye[0],ye[1],ye[2]]);return Re}function Ki(we,ye){var Fe;if(typeof we=="string")Fe=ye(we)[0];else if(Array.isArray(we)){for(var Re,hr,xr=we.concat(),Ni=[],Ta=xr.length;Ta--;)typeof(Re=xr.shift())=="string"?Ni.push(ye(Re)[0]):Array.isArray(Re)&&typeof Re[0]=="string"&&(hr=ye(Re[0],Re[1],Re[2]),Ni.push([hr[0],hr[1],hr[2]]));Fe=Ni}return Fe}var pi=!1,Zi=!0;if(typeof c=="string")pi=!0;else if(Array.isArray(c)){var Qi=c.concat();yt=[];for(var gi,sn=Qi.length;sn--;)(typeof(gi=Qi.shift())!="string"||Array.isArray(gi)&&typeof gi[0]!="string")&&(Zi=!1);pi=Zi}if(pi===!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 mi=xt/Be.internal.scaleFactor,vi=mi*(dn-1);switch(T.baseline){case"bottom":C-=vi;break;case"top":C+=mi-vi;break;case"hanging":C+=mi-2*vi;break;case"middle":C+=mi/2-vi}if((Qt=T.maxWidth||0)>0&&(typeof c=="string"?c=Be.splitTextToSize(c,Qt):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(we,ye){return we.concat(Be.splitTextToSize(ye,Qt))},[]))),st={text:c,x:b,y:C,options:T,mutex:{pdfEscape:on,activeFontKey:ee,fonts:me,activeFontSize:xt}},le.publish("preProcessText",st),c=st.text,jt=(T=st.options).angle,!(Se instanceof Tt)&&jt&&typeof jt=="number"){jt*=Math.PI/180,T.rotationDirection===0&&(jt=-jt),J===O.ADVANCED&&(jt=-jt);var bi=Math.cos(jt),ta=Math.sin(jt);Se=new Tt(bi,ta,-ta,bi,0,0)}else jt&&jt instanceof Tt&&(Se=jt);J!==O.ADVANCED||Se||(Se=Gn),($t=T.charSpace||hi)!==void 0&&(Te+=tt(P($t))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(Le=T.horizontalScale)!==void 0&&(Te+=tt(100*Le)+` Tz
`),T.lang;var cn=-1,Yo=T.renderingMode!==void 0?T.renderingMode:T.stroke,ea=Be.internal.getCurrentPageInfo().pageContext;switch(Yo){case 0:case!1:case"fill":cn=0;break;case 1:case!0:case"stroke":cn=1;break;case 2:case"fillThenStroke":cn=2;break;case 3:case"invisible":cn=3;break;case 4:case"fillAndAddForClipping":cn=4;break;case 5:case"strokeAndAddPathForClipping":cn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":cn=6;break;case 7:case"addToPathForClipping":cn=7}var Ra=ea.usedRenderingMode!==void 0?ea.usedRenderingMode:-1;cn!==-1?Te+=cn+` Tr
`:Ra!==-1&&(Te+=`0 Tr
`),cn!==-1&&(ea.usedRenderingMode=cn),qt=T.align||"left";var On,na=xt*dn,Jo=Be.internal.pageSize.getWidth(),Xo=me[ee];$t=T.charSpace||hi,Qt=T.maxWidth||0,ie=Object.assign({autoencode:!0,noBOM:!0},T.flags);var yr=[];if(Object.prototype.toString.call(c)==="[object Array]"){var wn;yt=$i(c),qt!=="left"&&(On=yt.map(function(we){return Be.getStringUnitWidth(we,{font:Xo,charSpace:$t,fontSize:xt,doKerning:!1})*xt/sr}));var Mn,Ar=0;if(qt==="right"){b-=On[0],c=[],sn=yt.length;for(var $n=0;$n<sn;$n++)$n===0?(Mn=or(b),wn=vr(C)):(Mn=P(Ar-On[$n]),wn=-na),c.push([yt[$n],Mn,wn]),Ar=On[$n]}else if(qt==="center"){b-=On[0]/2,c=[],sn=yt.length;for(var cr=0;cr<sn;cr++)cr===0?(Mn=or(b),wn=vr(C)):(Mn=P((Ar-On[cr])/2),wn=-na),c.push([yt[cr],Mn,wn]),Ar=On[cr]}else if(qt==="left"){c=[],sn=yt.length;for(var wi=0;wi<sn;wi++)c.push(yt[wi])}else{if(qt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');c=[],sn=yt.length,Qt=Qt!==0?Qt:Jo;for(var Bn=0;Bn<sn;Bn++)wn=Bn===0?vr(C):-na,Mn=Bn===0?or(b):0,Bn<sn-1?yr.push(tt(P((Qt-On[Bn])/(yt[Bn].split(" ").length-1)))):yr.push(0),c.push([yt[Bn],Mn,wn])}}var yi=typeof T.R2L=="boolean"?T.R2L:Dt;yi===!0&&(c=Ki(c,function(we,ye,Fe){return[we.split("").reverse().join(""),ye,Fe]})),st={text:c,x:b,y:C,options:T,mutex:{pdfEscape:on,activeFontKey:ee,fonts:me,activeFontSize:xt}},le.publish("postProcessText",st),c=st.text,jn=st.mutex.isHex||!1;var ra=me[ee].encoding;ra!=="WinAnsiEncoding"&&ra!=="StandardEncoding"||(c=Ki(c,function(we,ye,Fe){return[qa(we),ye,Fe]})),yt=$i(c),c=[];for(var Nr,En,ur,Vr=0,Ai=1,Gr=Array.isArray(yt[0])?Ai:Vr,Lr="",ia=function(we,ye,Fe){var Re="";return Fe instanceof Tt?(Fe=typeof T.angle=="number"?Sn(Fe,new Tt(1,0,0,1,we,ye)):Sn(new Tt(1,0,0,1,we,ye),Fe),J===O.ADVANCED&&(Fe=Sn(new Tt(1,0,0,-1,0,0),Fe)),Re=Fe.join(" ")+` Tm
`):Re=tt(we)+" "+tt(ye)+` Td
`,Re},yn=0;yn<yt.length;yn++){switch(Lr="",Gr){case Ai:ur=(jn?"<":"(")+yt[yn][0]+(jn?">":")"),Nr=parseFloat(yt[yn][1]),En=parseFloat(yt[yn][2]);break;case Vr:ur=(jn?"<":"(")+yt[yn]+(jn?">":")"),Nr=or(b),En=vr(C)}yr!==void 0&&yr[yn]!==void 0&&(Lr=yr[yn]+` Tw
`),yn===0?c.push(Lr+ia(Nr,En,Se)+ur):Gr===Vr?c.push(Lr+ur):Gr===Ai&&c.push(Lr+ia(Nr,En,Se)+ur)}c=Gr===Vr?c.join(` Tj
T* `):c.join(` Tj
`),c+=` Tj
`;var lr=`BT
/`;return lr+=ee+" "+xt+` Tf
`,lr+=tt(xt*dn)+` TL
`,lr+=Hr+`
`,lr+=Te,lr+=c,D(lr+="ET"),S[ee]=!0,Be};var qo=p.__private__.clip=p.clip=function(c){return D(c==="evenodd"?"W*":"W"),this};p.clipEvenOdd=function(){return qo("evenodd")},p.__private__.discardPath=p.discardPath=function(){return D("n"),this};var Xn=p.__private__.isValidStyle=function(c){var b=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(c)!==-1&&(b=!0),b};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(c){return Xn(c)&&(g=c),this};var Fa=p.__private__.getStyle=p.getStyle=function(c){var b=g;switch(c){case"D":case"S":b="S";break;case"F":b="f";break;case"FD":case"DF":b="B";break;case"f":case"f*":case"B":case"B*":b=c}return b},Ca=p.close=function(){return D("h"),this};p.stroke=function(){return D("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,b){de(b)==="object"?To(b,c):D(c)},Ti=function(c){c===null||J===O.ADVANCED&&c===void 0||(c=Fa(c),D(c))};function Ro(c,b,C,T,X){var st=new Ci(b||this.boundingBox,C||this.xStep,T||this.yStep,this.gState,X||this.matrix);st.stream=this.stream;var yt=c+"$$"+this.cloneIndex+++"$$";return an(yt,st),st}var To=function(c,b){var C=qr[c.key],T=ue[C];if(T instanceof Xr)D("q"),D(zo(b)),T.gState&&p.setGState(T.gState),D(c.matrix.toString()+" cm"),D("/"+C+" sh"),D("Q");else if(T instanceof Ci){var X=new Tt(1,0,0,-1,0,wr());c.matrix&&(X=X.multiply(c.matrix||Gn),C=Ro.call(T,c.key,c.boundingBox,c.xStep,c.yStep,X).id),D("q"),D("/Pattern cs"),D("/"+C+" scn"),T.gState&&p.setGState(T.gState),D(b),D("Q")}},zo=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"}},zi=p.moveTo=function(c,b){return D(tt(P(c))+" "+tt(q(b))+" m"),this},zr=p.lineTo=function(c,b){return D(tt(P(c))+" "+tt(q(b))+" l"),this},mr=p.curveTo=function(c,b,C,T,X,st){return D([tt(P(c)),tt(q(b)),tt(P(C)),tt(q(T)),tt(P(X)),tt(q(st)),"c"].join(" ")),this};p.__private__.line=p.line=function(c,b,C,T,X){if(isNaN(c)||isNaN(b)||isNaN(C)||isNaN(T)||!Xn(X))throw new Error("Invalid arguments passed to jsPDF.line");return J===O.COMPAT?this.lines([[C-c,T-b]],c,b,[1,1],X||"S"):this.lines([[C-c,T-b]],c,b,[1,1]).stroke()},p.__private__.lines=p.lines=function(c,b,C,T,X,st){var yt,jt,qt,$t,Qt,ie,Le,Se,Be,Xe,Te,jn;if(typeof c=="number"&&(jn=C,C=b,b=c,c=jn),T=T||[1,1],st=st||!1,isNaN(b)||isNaN(C)||!Array.isArray(c)||!Array.isArray(T)||!Xn(X)||typeof st!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(zi(b,C),yt=T[0],jt=T[1],$t=c.length,Xe=b,Te=C,qt=0;qt<$t;qt++)(Qt=c[qt]).length===2?(Xe=Qt[0]*yt+Xe,Te=Qt[1]*jt+Te,zr(Xe,Te)):(ie=Qt[0]*yt+Xe,Le=Qt[1]*jt+Te,Se=Qt[2]*yt+Xe,Be=Qt[3]*jt+Te,Xe=Qt[4]*yt+Xe,Te=Qt[5]*jt+Te,mr(ie,Le,Se,Be,Xe,Te));return st&&Ca(),Ti(X),this},p.path=function(c){for(var b=0;b<c.length;b++){var C=c[b],T=C.c;switch(C.op){case"m":zi(T[0],T[1]);break;case"l":zr(T[0],T[1]);break;case"c":mr.apply(this,T);break;case"h":Ca()}}return this},p.__private__.rect=p.rect=function(c,b,C,T,X){if(isNaN(c)||isNaN(b)||isNaN(C)||isNaN(T)||!Xn(X))throw new Error("Invalid arguments passed to jsPDF.rect");return J===O.COMPAT&&(T=-T),D([tt(P(c)),tt(q(b)),tt(P(C)),tt(P(T)),"re"].join(" ")),Ti(X),this},p.__private__.triangle=p.triangle=function(c,b,C,T,X,st,yt){if(isNaN(c)||isNaN(b)||isNaN(C)||isNaN(T)||isNaN(X)||isNaN(st)||!Xn(yt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[C-c,T-b],[X-C,st-T],[c-X,b-st]],c,b,[1,1],yt,!0),this},p.__private__.roundedRect=p.roundedRect=function(c,b,C,T,X,st,yt){if(isNaN(c)||isNaN(b)||isNaN(C)||isNaN(T)||isNaN(X)||isNaN(st)||!Xn(yt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var jt=4/3*(Math.SQRT2-1);return X=Math.min(X,.5*C),st=Math.min(st,.5*T),this.lines([[C-2*X,0],[X*jt,0,X,st-st*jt,X,st],[0,T-2*st],[0,st*jt,-X*jt,st,-X,st],[2*X-C,0],[-X*jt,0,-X,-st*jt,-X,-st],[0,2*st-T],[0,-st*jt,X*jt,-st,X,-st]],c+X,b,[1,1],yt,!0),this},p.__private__.ellipse=p.ellipse=function(c,b,C,T,X){if(isNaN(c)||isNaN(b)||isNaN(C)||isNaN(T)||!Xn(X))throw new Error("Invalid arguments passed to jsPDF.ellipse");var st=4/3*(Math.SQRT2-1)*C,yt=4/3*(Math.SQRT2-1)*T;return zi(c+C,b),mr(c+C,b-yt,c+st,b-T,c,b-T),mr(c-st,b-T,c-C,b-yt,c-C,b),mr(c-C,b+yt,c-st,b+T,c,b+T),mr(c+st,b+T,c+C,b+yt,c+C,b),Ti(X),this},p.__private__.circle=p.circle=function(c,b,C,T){if(isNaN(c)||isNaN(b)||isNaN(C)||!Xn(T))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(c,b,C,C,T)},p.setFont=function(c,b,C){return C&&(b=wt(b,C)),ee=Pa(c,b,{disableWarning:!1}),this};var Uo=p.__private__.getFont=p.getFont=function(){return me[Pa.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var c,b,C={};for(c in Ne)if(Ne.hasOwnProperty(c))for(b in C[c]=[],Ne[c])Ne[c].hasOwnProperty(b)&&C[c].push(b);return C},p.addFont=function(c,b,C,T,X){var st=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&st.indexOf(arguments[3])!==-1?X=arguments[3]:arguments[3]&&st.indexOf(arguments[3])==-1&&(C=wt(C,T)),X=X||"Identity-H",Di.call(this,c,b,C,X)};var Ur,Ui=r.lineWidth||.200025,li=p.__private__.getLineWidth=p.getLineWidth=function(){return Ui},ja=p.__private__.setLineWidth=p.setLineWidth=function(c){return Ui=c,D(tt(P(c))+" w"),this};p.__private__.setLineDash=zt.API.setLineDash=zt.API.setLineDashPattern=function(c,b){if(c=c||[],b=b||0,isNaN(b)||!Array.isArray(c))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return c=c.map(function(C){return tt(P(C))}).join(" "),b=tt(P(b)),D("["+c+"] "+b+" d"),this};var Oa=p.__private__.getLineHeight=p.getLineHeight=function(){return xt*Ur};p.__private__.getLineHeight=p.getLineHeight=function(){return xt*Ur};var Ma=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(c){return typeof(c=c||1.15)=="number"&&(Ur=c),this},Ba=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return Ur};Ma(r.lineHeight);var or=p.__private__.getHorizontalCoordinate=function(c){return P(c)},vr=p.__private__.getVerticalCoordinate=function(c){return J===O.ADVANCED?c:Yt[j].mediaBox.topRightY-Yt[j].mediaBox.bottomLeftY-P(c)},Ho=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(c){return tt(or(c))},br=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(c){return tt(vr(c))},Cn=r.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return kn(Cn)},p.__private__.setStrokeColor=p.setDrawColor=function(c,b,C,T){return Cn=In({ch1:c,ch2:b,ch3:C,ch4:T,pdfColorType:"draw",precision:2}),D(Cn),this};var Hi=r.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return kn(Hi)},p.__private__.setFillColor=p.setFillColor=function(c,b,C,T){return Hi=In({ch1:c,ch2:b,ch3:C,ch4:T,pdfColorType:"fill",precision:2}),D(Hi),this};var Hr=r.textColor||"0 g",Wo=p.__private__.getTextColor=p.getTextColor=function(){return kn(Hr)};p.__private__.setTextColor=p.setTextColor=function(c,b,C,T){return Hr=In({ch1:c,ch2:b,ch3:C,ch4:T,pdfColorType:"text",precision:3}),this};var hi=r.charSpace,Vo=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(hi||0)};p.__private__.setCharSpace=p.setCharSpace=function(c){if(isNaN(c))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return hi=c,this};var Wi=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 b=p.CapJoinStyles[c];if(b===void 0)throw new Error("Line cap style of '"+c+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Wi=b,D(b+" J"),this};var Vi=0;p.__private__.setLineJoin=p.setLineJoin=function(c){var b=p.CapJoinStyles[c];if(b===void 0)throw new Error("Line join style of '"+c+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Vi=b,D(b+" 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 D(tt(P(c))+" M"),this},p.GState=mo,p.setGState=function(c){(c=typeof c=="string"?xe[_n[c]]:Ea(null,c)).equals(rr)||(D("/"+c.id+" gs"),rr=c)};var Ea=function(c,b){if(!c||!_n[c]){var C=!1;for(var T in xe)if(xe.hasOwnProperty(T)&&xe[T].equals(b)){C=!0;break}if(C)b=xe[T];else{var X="GS"+(Object.keys(xe).length+1).toString(10);xe[X]=b,b.id=X}return c&&(_n[c]=b.id),le.publish("addGState",b),b}};p.addGState=function(c,b){return Ea(c,b),this},p.saveGraphicsState=function(){return D("q"),Hn.push({key:ee,size:xt,color:Hr}),this},p.restoreGraphicsState=function(){D("Q");var c=Hn.pop();return ee=c.key,xt=c.size,Hr=c.color,rr=null,this},p.setCurrentTransformationMatrix=function(c){return D(c.toString()+" cm"),this},p.comment=function(c){return D("#"+c),this};var fi=function(c,b){var C=c||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return C},set:function(st){isNaN(st)||(C=parseFloat(st))}});var T=b||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return T},set:function(st){isNaN(st)||(T=parseFloat(st))}});var X="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return X},set:function(st){X=st.toString()}}),this},Gi=function(c,b,C,T){fi.call(this,c,b),this.type="rect";var X=C||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return X},set:function(yt){isNaN(yt)||(X=parseFloat(yt))}});var st=T||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return st},set:function(yt){isNaN(yt)||(st=parseFloat(yt))}}),this},Yi=function(){this.page=_e,this.currentPage=j,this.pages=Nt.slice(0),this.pagesContext=Yt.slice(0),this.x=Ye,this.y=se,this.matrix=xn,this.width=Wr(j),this.height=wr(j),this.outputDestination=Mt,this.id="",this.objectNumber=-1};Yi.prototype.restore=function(){_e=this.page,j=this.currentPage,Yt=this.pagesContext,Nt=this.pages,Ye=this.x,se=this.y,xn=this.matrix,Ji(j,this.width),Xi(j,this.height),Mt=this.outputDestination};var Da=function(c,b,C,T,X){Vn.push(new Yi),_e=j=0,Nt=[],Ye=c,se=b,xn=X,qi([C,T])},Go=function(c){if(Wn[c])Vn.pop().restore();else{var b=new Yi,C="Xo"+(Object.keys(Ve).length+1).toString(10);b.id=C,Wn[c]=C,Ve[C]=b,le.publish("addFormObject",b),Vn.pop().restore()}};for(var di in p.beginFormObject=function(c,b,C,T,X){return Da(c,b,C,T,X),this},p.endFormObject=function(c){return Go(c),this},p.doFormObject=function(c,b){var C=Ve[Wn[c]];return D("q"),D(b.toString()+" cm"),D("/"+C.id+" Do"),D("Q"),this},p.getFormObject=function(c){var b=Ve[Wn[c]];return{x:b.x,y:b.y,width:b.width,height:b.height,matrix:b.matrix}},p.save=function(c,b){return c=c||"generated.pdf",(b=b||{}).returnPromise=b.returnPromise||!1,b.returnPromise===!1?(Jr(si(ar()),c),typeof Jr.unload=="function"&&Ht.setTimeout&&setTimeout(Jr.unload,911),this):new Promise(function(C,T){try{var X=Jr(si(ar()),c);typeof Jr.unload=="function"&&Ht.setTimeout&&setTimeout(Jr.unload,911),C(X)}catch(st){T(st.message)}})},zt.API)zt.API.hasOwnProperty(di)&&(di==="events"&&zt.API.events.length?function(c,b){var C,T,X;for(X=b.length-1;X!==-1;X--)C=b[X][0],T=b[X][1],c.subscribe.apply(c,[C].concat(typeof T=="function"?[T]:T))}(le,zt.API.events):p[di]=zt.API[di]);var Wr=p.getPageWidth=function(c){return(Yt[c=c||j].mediaBox.topRightX-Yt[c].mediaBox.bottomLeftX)/Ft},Ji=p.setPageWidth=function(c,b){Yt[c].mediaBox.topRightX=b*Ft+Yt[c].mediaBox.bottomLeftX},wr=p.getPageHeight=function(c){return(Yt[c=c||j].mediaBox.topRightY-Yt[c].mediaBox.bottomLeftY)/Ft},Xi=p.setPageHeight=function(c,b){Yt[c].mediaBox.topRightY=b*Ft+Yt[c].mediaBox.bottomLeftY};return p.internal={pdfEscape:on,getStyle:Fa,getFont:Uo,getFontSize:Pt,getCharSpace:Vo,getTextColor:Wo,getLineHeight:Oa,getLineHeightFactor:Ba,getLineWidth:li,write:Xt,getHorizontalCoordinate:or,getVerticalCoordinate:vr,getCoordinateString:Ho,getVerticalCoordinateString:br,collections:{},newObject:qe,newAdditionalObject:Qr,newObjectDeferred:Me,newObjectDeferredBegin:fn,getFilters:Yn,putStream:bn,events:le,scaleFactor:Ft,pageSize:{getWidth:function(){return Wr(j)},setWidth:function(c){Ji(j,c)},getHeight:function(){return wr(j)},setHeight:function(c){Xi(j,c)}},encryptionOptions:v,encryption:Je,getEncryptor:Eo,output:ci,getNumberOfPages:Co,pages:Nt,out:D,f2:dt,f3:F,getPageInfo:Ia,getPageInfoByObjId:Vt,getCurrentPageInfo:Do,getPDFVersion:I,Point:fi,Rectangle:Gi,Matrix:Tt,hasHotfix:ka},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return Wr(j)},set:function(c){Ji(j,c)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return wr(j)},set:function(c){Xi(j,c)},enumerable:!0,configurable:!0}),Io.call(p,At),ee="F1",_a(s,n),le.publish("initialized"),p}Ii.prototype.lsbFirstWord=function(r){return String.fromCharCode(r>>0&255,r>>8&255,r>>16&255,r>>24&255)},Ii.prototype.toHexString=function(r){return r.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Ii.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("")},Ii.prototype.processOwnerPassword=function(r,e){return qs(Ds(e).substr(0,5),r)},Ii.prototype.encryptor=function(r,e){var n=Ds(this.encryptionKey+String.fromCharCode(255&r,r>>8&255,r>>16&255,255&e,e>>8&255)).substr(0,10);return function(a){return qs(n,a)}},mo.prototype.equals=function(r){var e,n="id,objectNumber,equals";if(!r||de(r)!==de(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},zt.API={events:[]},zt.version="2.5.1";var ke=zt.API,Ws=1,Kr=function(r){return r.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Pi=function(r){return r.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Jt=function(r){return r.toFixed(2)},Or=function(r){return r.toFixed(5)};ke.__acroform__={};var hn=function(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r},Ec=function(r){return r*Ws},Zn=function(r){var e=new lu,n=Bt.internal.getHeight(r)||0,a=Bt.internal.getWidth(r)||0;return e.BBox=[0,0,Number(Jt(a)),Number(Jt(n))],e},Wl=ke.__acroform__.setBit=function(r,e){if(r=r||0,e=e||0,isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return r|=1<<e},Vl=ke.__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)},Gl=ke.__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)==0?0:1},Ce=ke.__acroform__.getBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Gl(r,e-1)},je=ke.__acroform__.setBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Wl(r,e-1)},Oe=ke.__acroform__.clearBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Vl(r,e-1)},Yl=ke.__acroform__.calculateCoordinates=function(r,e){var n=e.internal.getHorizontalCoordinate,a=e.internal.getVerticalCoordinate,s=r[0],o=r[1],u=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+u)||0,f.upperRight_Y=a(o)||0,[Number(Jt(f.lowerLeft_X)),Number(Jt(f.lowerLeft_Y)),Number(Jt(f.upperRight_X)),Number(Jt(f.upperRight_Y))]},Jl=function(r){if(r.appearanceStreamContent)return r.appearanceStreamContent;if(r.V||r.DV){var e=[],n=r._V||r.DV,a=Rs(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+" "+Jt(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=Zn(r);return o.scope=r.scope,o.stream=e.join(`
`),o}},Rs=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(F){return F.split(`
`)}):s.map(function(F){return[F]});var o=n,u=Bt.internal.getHeight(r)||0;u=u<0?-u:u;var h=Bt.internal.getWidth(r)||0;h=h<0?-h:h;var f=function(F,P,z){if(F+1<s.length){var q=P+" "+s[F+1][0];return so(q,r,z).width<=h-4}return!1};o++;t:for(;o>0;){e="",o--;var g,v,N=so("3",r,o).height,S=r.multiline?u-o:(u-N)/2,p=S+=2,M=0,I=0,B=0;if(o<=0){e=`(...) Tj
`,e+="% Width of Text: "+so(e,r,o=12).width+", FieldWidth:"+h+`
`;break}for(var _="",O=0,J=0;J<s.length;J++)if(s.hasOwnProperty(J)){var ot=!1;if(s[J].length!==1&&B!==s[J].length-1){if((N+2)*(O+2)+2>u)continue t;_+=s[J][B],ot=!0,I=J,J--}else{_=(_+=s[J][B]+" ").substr(_.length-1)==" "?_.substr(0,_.length-1):_;var ut=parseInt(J),wt=f(ut,_,o),tt=J>=s.length-1;if(wt&&!tt){_+=" ",B=0;continue}if(wt||tt){if(tt)I=ut;else if(r.multiline&&(N+2)*(O+2)+2>u)continue t}else{if(!r.multiline||(N+2)*(O+2)+2>u)continue t;I=ut}}for(var R="",gt=M;gt<=I;gt++){var dt=s[gt];if(r.multiline){if(gt===I){R+=dt[B]+" ",B=(B+1)%dt.length;continue}if(gt===M){R+=dt[dt.length-1]+" ";continue}}R+=dt[0]+" "}switch(R=R.substr(R.length-1)==" "?R.substr(0,R.length-1):R,v=so(R,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+=Jt(g)+" "+Jt(p)+` Td
`,e+="("+Kr(R)+`) Tj
`,e+=-Jt(g)+` 0 Td
`,p=-(o+2),v=0,M=ot?I:I+1,O++,_=""}break}return a.text=e,a.fontSize=o,a},so=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}},Xl={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},$l=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)},Kl=function(r,e){for(var n in r)if(r.hasOwnProperty(n)){var a=n,s=r[n];e.internal.newObjectDeferredBegin(s.objId,!0),de(s)==="object"&&typeof s.putStream=="function"&&s.putStream(),delete r[a]}},Zl=function(r,e){if(e.scope=r,r.internal!==void 0&&(r.internal.acroformPlugin===void 0||r.internal.acroformPlugin.isInitialized===!1)){if(zn.FieldNum=0,r.internal.acroformPlugin=JSON.parse(JSON.stringify(Xl)),r.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ws=r.internal.scaleFactor,r.internal.acroformPlugin.acroFormDictionaryRoot=new hu,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&&$l(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 u 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(u)){var h=a[u],f=[],g=h.Rect;if(h.Rect&&(h.Rect=Yl(h.Rect,s)),s.internal.newObjectDeferredBegin(h.objId,!0),h.DA=Bt.createDefaultAppearanceStream(h),de(h)==="object"&&typeof h.getKeyValueListForStream=="function"&&(f=h.getKeyValueListForStream()),h.Rect=g,h.hasAppearanceStream&&!h.appearanceStreamContent){var v=Jl(h);f.push({key:"AP",value:"<</N "+v+">>"}),s.internal.acroformPlugin.xForms.push(v)}if(h.appearanceStreamContent){var N="";for(var S in h.appearanceStreamContent)if(h.appearanceStreamContent.hasOwnProperty(S)){var p=h.appearanceStreamContent[S];if(N+="/"+S+" ",N+="<<",Object.keys(p).length>=1||Array.isArray(p)){for(var u in p)if(p.hasOwnProperty(u)){var M=p[u];typeof M=="function"&&(M=M.call(s,h)),N+="/"+u+" "+M+" ",s.internal.acroformPlugin.xForms.indexOf(M)>=0||s.internal.acroformPlugin.xForms.push(M)}}else typeof(M=p)=="function"&&(M=M.call(s,h)),N+="/"+u+" "+M,s.internal.acroformPlugin.xForms.indexOf(M)>=0||s.internal.acroformPlugin.xForms.push(M);N+=">>"}f.push({key:"AP",value:`<<
`+N+">>"})}s.internal.putStream({additionalKeyValues:f,objectId:h.objId}),s.internal.out("endobj")}o&&Kl(s.internal.acroformPlugin.xForms,s)})(n,r)}),r.internal.acroformPlugin.isInitialized=!0}},uu=ke.__acroform__.arrayToPdfArray=function(r,e,n){var a=function(u){return u};if(Array.isArray(r)){for(var s="[",o=0;o<r.length;o++)switch(o!==0&&(s+=" "),de(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+="("+Kr(a(r[o].toString()))+")"):s+=r[o].toString()}return s+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},_s=function(r,e,n){var a=function(s){return s};return e!==void 0&&n&&(a=n.internal.getEncryptor(e)),(r=r||"").toString(),r="("+Kr(a(r))+")"},tr=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})};tr.prototype.toString=function(){return this.objId+" 0 R"},tr.prototype.putStream=function(){var r=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:r,objectId:this.objId}),this.scope.internal.out("endobj")},tr.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:uu(s,this.objId,this.scope)}):s instanceof tr?(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 lu=function(){tr.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}})};hn(lu,tr);var hu=function(){tr.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)),"("+Kr(n(r))+")"}},set:function(n){r=n}})};hn(hu,tr);var zn=function r(){tr.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 Boolean(Ce(e,3))},set:function(_){Boolean(_)===!0?this.F=je(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 vo)return;o="FieldObject"+r.FieldNum++}var _=function(O){return O};return this.scope&&(_=this.scope.internal.getEncryptor(this.objId)),"("+Kr(_(o))+")"},set:function(_){o=_.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(_){o=_}});var u="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return u},set:function(_){u=_}});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/Ws:g},set:function(_){g=_}});var v="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return v},set:function(_){v=_}});var N="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!N||this instanceof vo||this instanceof $r))return _s(N,this.objId,this.scope)},set:function(_){_=_.toString(),N=_}});var S=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(S)return this instanceof We?S:_s(S,this.objId,this.scope)},set:function(_){_=_.toString(),S=this instanceof We?_:_.substr(0,1)==="("?Pi(_.substr(1,_.length-2)):Pi(_)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof We?Pi(S.substr(1,S.length-1)):S},set:function(_){_=_.toString(),S=this instanceof We?"/"+_:_}});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 We?p:_s(p,this.objId,this.scope)},set:function(_){_=_.toString(),p=this instanceof We?_:_.substr(0,1)==="("?Pi(_.substr(1,_.length-2)):Pi(_)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof We?Pi(p.substr(1,p.length-1)):p},set:function(_){_=_.toString(),p=this instanceof We?"/"+_:_}}),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 M,I=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return I},set:function(_){_=Boolean(_),I=_}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(M)return M},set:function(_){M=_}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ce(this.Ff,1))},set:function(_){Boolean(_)===!0?this.Ff=je(this.Ff,1):this.Ff=Oe(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ce(this.Ff,2))},set:function(_){Boolean(_)===!0?this.Ff=je(this.Ff,2):this.Ff=Oe(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ce(this.Ff,3))},set:function(_){Boolean(_)===!0?this.Ff=je(this.Ff,3):this.Ff=Oe(this.Ff,3)}});var B=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(B!==null)return B},set:function(_){if([0,1,2].indexOf(_)===-1)throw new Error('Invalid value "'+_+'" for attribute Q supplied.');B=_}}),Object.defineProperty(this,"textAlign",{get:function(){var _;switch(B){case 0:default:_="left";break;case 1:_="center";break;case 2:_="right"}return _},configurable:!0,enumerable:!0,set:function(_){switch(_){case"right":case 2:B=2;break;case"center":case 1:B=1;break;case"left":case 0:default:B=0}}})};hn(zn,tr);var ji=function(){zn.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 uu(e,this.objId,this.scope)},set:function(n){var a,s;s=[],typeof(a=n)=="string"&&(s=function(o,u,h){h||(h=1);for(var f,g=[];f=u.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 Boolean(Ce(this.Ff,18))},set:function(n){Boolean(n)===!0?this.Ff=je(this.Ff,18):this.Ff=Oe(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ce(this.Ff,19))},set:function(n){this.combo===!0&&(Boolean(n)===!0?this.Ff=je(this.Ff,19):this.Ff=Oe(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ce(this.Ff,20))},set:function(n){Boolean(n)===!0?(this.Ff=je(this.Ff,20),e.sort()):this.Ff=Oe(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ce(this.Ff,22))},set:function(n){Boolean(n)===!0?this.Ff=je(this.Ff,22):this.Ff=Oe(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ce(this.Ff,23))},set:function(n){Boolean(n)===!0?this.Ff=je(this.Ff,23):this.Ff=Oe(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ce(this.Ff,27))},set:function(n){Boolean(n)===!0?this.Ff=je(this.Ff,27):this.Ff=Oe(this.Ff,27)}}),this.hasAppearanceStream=!1};hn(ji,zn);var Oi=function(){ji.call(this),this.fontName="helvetica",this.combo=!1};hn(Oi,ji);var Mi=function(){Oi.call(this),this.combo=!0};hn(Mi,Oi);var ho=function(){Mi.call(this),this.edit=!0};hn(ho,Mi);var We=function(){zn.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ce(this.Ff,15))},set:function(n){Boolean(n)===!0?this.Ff=je(this.Ff,15):this.Ff=Oe(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ce(this.Ff,16))},set:function(n){Boolean(n)===!0?this.Ff=je(this.Ff,16):this.Ff=Oe(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ce(this.Ff,17))},set:function(n){Boolean(n)===!0?this.Ff=je(this.Ff,17):this.Ff=Oe(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ce(this.Ff,26))},set:function(n){Boolean(n)===!0?this.Ff=je(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+" ("+Kr(n(e[a]))+")");return s.push(">>"),s.join(`
`)}},set:function(n){de(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}})};hn(We,zn);var fo=function(){We.call(this),this.pushButton=!0};hn(fo,We);var Bi=function(){We.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:[]}})};hn(Bi,We);var vo=function(){var r,e;zn.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,u=[];for(o in u.push("<<"),a)u.push("/"+o+" ("+Kr(s(a[o]))+")");return u.push(">>"),u.join(`
`)},set:function(s){de(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=Bt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};hn(vo,zn),Bi.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()}},Bi.prototype.createOption=function(r){var e=new vo;return e.Parent=this,e.optionName=r,this.Kids.push(e),Ql.call(this.scope,e),e};var po=function(){We.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Bt.CheckBox.createAppearanceStream()};hn(po,We);var $r=function(){zn.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ce(this.Ff,13))},set:function(e){Boolean(e)===!0?this.Ff=je(this.Ff,13):this.Ff=Oe(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ce(this.Ff,21))},set:function(e){Boolean(e)===!0?this.Ff=je(this.Ff,21):this.Ff=Oe(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ce(this.Ff,23))},set:function(e){Boolean(e)===!0?this.Ff=je(this.Ff,23):this.Ff=Oe(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ce(this.Ff,24))},set:function(e){Boolean(e)===!0?this.Ff=je(this.Ff,24):this.Ff=Oe(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ce(this.Ff,25))},set:function(e){Boolean(e)===!0?this.Ff=je(this.Ff,25):this.Ff=Oe(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ce(this.Ff,26))},set:function(e){Boolean(e)===!0?this.Ff=je(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}})};hn($r,zn);var go=function(){$r.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ce(this.Ff,14))},set:function(r){Boolean(r)===!0?this.Ff=je(this.Ff,14):this.Ff=Oe(this.Ff,14)}}),this.password=!0};hn(go,$r);var Bt={CheckBox:{createAppearanceStream:function(){return{N:{On:Bt.CheckBox.YesNormal},D:{On:Bt.CheckBox.YesPushDown,Off:Bt.CheckBox.OffPushDown}}},YesPushDown:function(r){var e=Zn(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=Rs(r,r.caption);return n.push("0.749023 g"),n.push("0 0 "+Jt(Bt.internal.getWidth(r))+" "+Jt(Bt.internal.getHeight(r))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+a+" "+Jt(o.fontSize)+" Tf "+s),n.push("BT"),n.push(o.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join(`
`),e},YesNormal:function(r){var e=Zn(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=Bt.internal.getHeight(r),u=Bt.internal.getWidth(r),h=Rs(r,r.caption);return s.push("1 g"),s.push("0 0 "+Jt(u)+" "+Jt(o)+" re"),s.push("f"),s.push("q"),s.push("0 0 1 rg"),s.push("0 0 "+Jt(u-1)+" "+Jt(o-1)+" re"),s.push("W"),s.push("n"),s.push("0 g"),s.push("BT"),s.push("/"+n+" "+Jt(h.fontSize)+" Tf "+a),s.push(h.text),s.push("ET"),s.push("Q"),e.stream=s.join(`
`),e},OffPushDown:function(r){var e=Zn(r);e.scope=r.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Jt(Bt.internal.getWidth(r))+" "+Jt(Bt.internal.getHeight(r))+" re"),n.push("f"),e.stream=n.join(`
`),e}},RadioButton:{Circle:{createAppearanceStream:function(r){var e={D:{Off:Bt.RadioButton.Circle.OffPushDown},N:{}};return e.N[r]=Bt.RadioButton.Circle.YesNormal,e.D[r]=Bt.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(r){var e=Zn(r);e.scope=r.scope;var n=[],a=Bt.internal.getWidth(r)<=Bt.internal.getHeight(r)?Bt.internal.getWidth(r)/4:Bt.internal.getHeight(r)/4;a=Number((.9*a).toFixed(5));var s=Bt.internal.Bezier_C,o=Number((a*s).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Or(Bt.internal.getWidth(r)/2)+" "+Or(Bt.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(`
`),e},YesPushDown:function(r){var e=Zn(r);e.scope=r.scope;var n=[],a=Bt.internal.getWidth(r)<=Bt.internal.getHeight(r)?Bt.internal.getWidth(r)/4:Bt.internal.getHeight(r)/4;a=Number((.9*a).toFixed(5));var s=Number((2*a).toFixed(5)),o=Number((s*Bt.internal.Bezier_C).toFixed(5)),u=Number((a*Bt.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Or(Bt.internal.getWidth(r)/2)+" "+Or(Bt.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 "+Or(Bt.internal.getWidth(r)/2)+" "+Or(Bt.internal.getHeight(r)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+u+" "+u+" "+a+" 0 "+a+" c"),n.push("-"+u+" "+a+" -"+a+" "+u+" -"+a+" 0 c"),n.push("-"+a+" -"+u+" -"+u+" -"+a+" 0 -"+a+" c"),n.push(u+" -"+a+" "+a+" -"+u+" "+a+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join(`
`),e},OffPushDown:function(r){var e=Zn(r);e.scope=r.scope;var n=[],a=Bt.internal.getWidth(r)<=Bt.internal.getHeight(r)?Bt.internal.getWidth(r)/4:Bt.internal.getHeight(r)/4;a=Number((.9*a).toFixed(5));var s=Number((2*a).toFixed(5)),o=Number((s*Bt.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Or(Bt.internal.getWidth(r)/2)+" "+Or(Bt.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(`
`),e}},Cross:{createAppearanceStream:function(r){var e={D:{Off:Bt.RadioButton.Cross.OffPushDown},N:{}};return e.N[r]=Bt.RadioButton.Cross.YesNormal,e.D[r]=Bt.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(r){var e=Zn(r);e.scope=r.scope;var n=[],a=Bt.internal.calculateCross(r);return n.push("q"),n.push("1 1 "+Jt(Bt.internal.getWidth(r)-2)+" "+Jt(Bt.internal.getHeight(r)-2)+" re"),n.push("W"),n.push("n"),n.push(Jt(a.x1.x)+" "+Jt(a.x1.y)+" m"),n.push(Jt(a.x2.x)+" "+Jt(a.x2.y)+" l"),n.push(Jt(a.x4.x)+" "+Jt(a.x4.y)+" m"),n.push(Jt(a.x3.x)+" "+Jt(a.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join(`
`),e},YesPushDown:function(r){var e=Zn(r);e.scope=r.scope;var n=Bt.internal.calculateCross(r),a=[];return a.push("0.749023 g"),a.push("0 0 "+Jt(Bt.internal.getWidth(r))+" "+Jt(Bt.internal.getHeight(r))+" re"),a.push("f"),a.push("q"),a.push("1 1 "+Jt(Bt.internal.getWidth(r)-2)+" "+Jt(Bt.internal.getHeight(r)-2)+" re"),a.push("W"),a.push("n"),a.push(Jt(n.x1.x)+" "+Jt(n.x1.y)+" m"),a.push(Jt(n.x2.x)+" "+Jt(n.x2.y)+" l"),a.push(Jt(n.x4.x)+" "+Jt(n.x4.y)+" m"),a.push(Jt(n.x3.x)+" "+Jt(n.x3.y)+" l"),a.push("s"),a.push("Q"),e.stream=a.join(`
`),e},OffPushDown:function(r){var e=Zn(r);e.scope=r.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Jt(Bt.internal.getWidth(r))+" "+Jt(Bt.internal.getHeight(r))+" re"),n.push("f"),e.stream=n.join(`
`),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}};Bt.internal={Bezier_C:.551915024494,calculateCross:function(r){var e=Bt.internal.getWidth(r),n=Bt.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}}}},Bt.internal.getWidth=function(r){var e=0;return de(r)==="object"&&(e=Ec(r.Rect[2])),e},Bt.internal.getHeight=function(r){var e=0;return de(r)==="object"&&(e=Ec(r.Rect[3])),e};var Ql=ke.addField=function(r){if(Zl(this,r),!(r instanceof zn))throw new Error("Invalid argument passed to jsPDF.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};ke.AcroFormChoiceField=ji,ke.AcroFormListBox=Oi,ke.AcroFormComboBox=Mi,ke.AcroFormEditBox=ho,ke.AcroFormButton=We,ke.AcroFormPushButton=fo,ke.AcroFormRadioButton=Bi,ke.AcroFormCheckBox=po,ke.AcroFormTextField=$r,ke.AcroFormPasswordField=go,ke.AcroFormAppearance=Bt,ke.AcroForm={ChoiceField:ji,ListBox:Oi,ComboBox:Mi,EditBox:ho,Button:We,PushButton:fo,RadioButton:Bi,CheckBox:po,TextField:$r,PasswordField:go,Appearance:Bt},zt.AcroForm={ChoiceField:ji,ListBox:Oi,ComboBox:Mi,EditBox:ho,Button:We,PushButton:fo,RadioButton:Bi,CheckBox:po,TextField:$r,PasswordField:go,Appearance:Bt};zt.AcroForm;function fu(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(F,P){var z,q,at,nt,lt,Z=e;if((P=P||e)==="RGBA"||F.data!==void 0&&F.data instanceof Uint8ClampedArray&&"height"in F&&"width"in F)return"RGBA";if(wt(F))for(lt in n)for(at=n[lt],z=0;z<at.length;z+=1){for(nt=!0,q=0;q<at[z].length;q+=1)if(at[z][q]!==void 0&&at[z][q]!==F[q]){nt=!1;break}if(nt===!0){Z=lt;break}}else for(lt in n)for(at=n[lt],z=0;z<at.length;z+=1){for(nt=!0,q=0;q<at[z].length;q+=1)if(at[z][q]!==void 0&&at[z][q]!==F.charCodeAt(q)){nt=!1;break}if(nt===!0){Z=lt;break}}return Z===e&&P!==e&&(Z=P),Z},s=function F(P){for(var z=this.internal.write,q=this.internal.putStream,at=(0,this.internal.getFilters)();at.indexOf("FlateEncode")!==-1;)at.splice(at.indexOf("FlateEncode"),1);P.objectId=this.internal.newObject();var nt=[];if(nt.push({key:"Type",value:"/XObject"}),nt.push({key:"Subtype",value:"/Image"}),nt.push({key:"Width",value:P.width}),nt.push({key:"Height",value:P.height}),P.colorSpace===B.INDEXED?nt.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(P.palette.length/3-1)+" "+("sMask"in P&&P.sMask!==void 0?P.objectId+2:P.objectId+1)+" 0 R]"}):(nt.push({key:"ColorSpace",value:"/"+P.colorSpace}),P.colorSpace===B.DEVICE_CMYK&&nt.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),nt.push({key:"BitsPerComponent",value:P.bitsPerComponent}),"decodeParameters"in P&&P.decodeParameters!==void 0&&nt.push({key:"DecodeParms",value:"<<"+P.decodeParameters+">>"}),"transparency"in P&&Array.isArray(P.transparency)){for(var lt="",Z=0,ft=P.transparency.length;Z<ft;Z++)lt+=P.transparency[Z]+" "+P.transparency[Z]+" ";nt.push({key:"Mask",value:"["+lt+"]"})}P.sMask!==void 0&&nt.push({key:"SMask",value:P.objectId+1+" 0 R"});var ht=P.filter!==void 0?["/"+P.filter]:void 0;if(q({data:P.data,additionalKeyValues:nt,alreadyAppliedFilters:ht,objectId:P.objectId}),z("endobj"),"sMask"in P&&P.sMask!==void 0){var kt="/Predictor "+P.predictor+" /Colors 1 /BitsPerComponent "+P.bitsPerComponent+" /Columns "+P.width,A={width:P.width,height:P.height,colorSpace:"DeviceGray",bitsPerComponent:P.bitsPerComponent,decodeParameters:kt,data:P.sMask};"filter"in P&&(A.filter=P.filter),F.call(this,A)}if(P.colorSpace===B.INDEXED){var j=this.internal.newObject();q({data:R(new Uint8Array(P.palette)),objectId:j}),z("endobj")}},o=function(){var F=this.internal.collections.addImage_images;for(var P in F)s.call(this,F[P])},u=function(){var F,P=this.internal.collections.addImage_images,z=this.internal.write;for(var q in P)z("/I"+(F=P[q]).index,F.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",u))},f=function(){var F=this.internal.collections.addImage_images;return h.call(this),F},g=function(){return Object.keys(this.internal.collections.addImage_images).length},v=function(F){return typeof r["process"+F.toUpperCase()]=="function"},N=function(F){return de(F)==="object"&&F.nodeType===1},S=function(F,P){if(F.nodeName==="IMG"&&F.hasAttribute("src")){var z=""+F.getAttribute("src");if(z.indexOf("data:image/")===0)return ga(unescape(z).split("base64,").pop());var q=r.loadFile(z,!0);if(q!==void 0)return q}if(F.nodeName==="CANVAS"){if(F.width===0||F.height===0)throw new Error("Given canvas must have data. Canvas width: "+F.width+", height: "+F.height);var at;switch(P){case"PNG":at="image/png";break;case"WEBP":at="image/webp";break;case"JPEG":case"JPG":default:at="image/jpeg"}return ga(F.toDataURL(at,1).split("base64,").pop())}},p=function(F){var P=this.internal.collections.addImage_images;if(P){for(var z in P)if(F===P[z].alias)return P[z]}},M=function(F,P,z){return F||P||(F=-96,P=-96),F<0&&(F=-1*z.width*72/F/this.internal.scaleFactor),P<0&&(P=-1*z.height*72/P/this.internal.scaleFactor),F===0&&(F=P*z.width/z.height),P===0&&(P=F*z.height/z.width),[F,P]},I=function(F,P,z,q,at,nt){var lt=M.call(this,z,q,at),Z=this.internal.getCoordinateString,ft=this.internal.getVerticalCoordinateString,ht=f.call(this);if(z=lt[0],q=lt[1],ht[at.index]=at,nt){nt*=Math.PI/180;var kt=Math.cos(nt),A=Math.sin(nt),j=function(W){return W.toFixed(4)},E=[j(kt),j(A),j(-1*A),j(kt),0,0,"cm"]}this.internal.write("q"),nt?(this.internal.write([1,"0","0",1,Z(F),ft(P+q),"cm"].join(" ")),this.internal.write(E.join(" ")),this.internal.write([Z(z),"0","0",Z(q),"0","0","cm"].join(" "))):this.internal.write([Z(z),"0","0",Z(q),Z(F),ft(P+q),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+at.index+" Do"),this.internal.write("Q")},B=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"},O=r.__addimage__.sHashCode=function(F){var P,z,q=0;if(typeof F=="string")for(z=F.length,P=0;P<z;P++)q=(q<<5)-q+F.charCodeAt(P),q|=0;else if(wt(F))for(z=F.byteLength/2,P=0;P<z;P++)q=(q<<5)-q+F[P],q|=0;return q},J=r.__addimage__.validateStringAsBase64=function(F){(F=F||"").toString().trim();var P=!0;return F.length===0&&(P=!1),F.length%4!=0&&(P=!1),/^[A-Za-z0-9+/]+$/.test(F.substr(0,F.length-2))===!1&&(P=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(F.substr(-2))===!1&&(P=!1),P},ot=r.__addimage__.extractImageFromDataUrl=function(F){var P=(F=F||"").split("base64,"),z=null;if(P.length===2){var q=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(P[0]);Array.isArray(q)&&(z={mimeType:q[1],charset:q[2],data:P[1]})}return z},ut=r.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};r.__addimage__.isArrayBuffer=function(F){return ut()&&F instanceof ArrayBuffer};var wt=r.__addimage__.isArrayBufferView=function(F){return ut()&&typeof Uint32Array<"u"&&(F instanceof Int8Array||F instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&F instanceof Uint8ClampedArray||F instanceof Int16Array||F instanceof Uint16Array||F instanceof Int32Array||F instanceof Uint32Array||F instanceof Float32Array||F instanceof Float64Array)},tt=r.__addimage__.binaryStringToUint8Array=function(F){for(var P=F.length,z=new Uint8Array(P),q=0;q<P;q++)z[q]=F.charCodeAt(q);return z},R=r.__addimage__.arrayBufferToBinaryString=function(F){for(var P="",z=wt(F)?F:new Uint8Array(F),q=0;q<z.length;q+=8192)P+=String.fromCharCode.apply(null,z.subarray(q,q+8192));return P};r.addImage=function(){var F,P,z,q,at,nt,lt,Z,ft;if(typeof arguments[1]=="number"?(P=e,z=arguments[1],q=arguments[2],at=arguments[3],nt=arguments[4],lt=arguments[5],Z=arguments[6],ft=arguments[7]):(P=arguments[1],z=arguments[2],q=arguments[3],at=arguments[4],nt=arguments[5],lt=arguments[6],Z=arguments[7],ft=arguments[8]),de(F=arguments[0])==="object"&&!N(F)&&"imageData"in F){var ht=F;F=ht.imageData,P=ht.format||P||e,z=ht.x||z||0,q=ht.y||q||0,at=ht.w||ht.width||at,nt=ht.h||ht.height||nt,lt=ht.alias||lt,Z=ht.compression||Z,ft=ht.rotation||ht.angle||ft}var kt=this.internal.getFilters();if(Z===void 0&&kt.indexOf("FlateEncode")!==-1&&(Z="SLOW"),isNaN(z)||isNaN(q))throw new Error("Invalid coordinates passed to jsPDF.addImage");h.call(this);var A=gt.call(this,F,P,lt,Z);return I.call(this,z,q,at,nt,A,ft),this};var gt=function(F,P,z,q){var at,nt,lt;if(typeof F=="string"&&a(F)===e){F=unescape(F);var Z=dt(F,!1);(Z!==""||(Z=r.loadFile(F,!0))!==void 0)&&(F=Z)}if(N(F)&&(F=S(F,P)),P=a(F,P),!v(P))throw new Error("addImage does not support files of type '"+P+"', please ensure that a plugin for '"+P+"' support is added.");if(((lt=z)==null||lt.length===0)&&(z=function(ft){return typeof ft=="string"||wt(ft)?O(ft):wt(ft.data)?O(ft.data):null}(F)),(at=p.call(this,z))||(ut()&&(F instanceof Uint8Array||P==="RGBA"||(nt=F,F=tt(F))),at=this["process"+P.toUpperCase()](F,g.call(this),z,function(ft){return ft&&typeof ft=="string"&&(ft=ft.toUpperCase()),ft in r.image_compression?ft:_.NONE}(q),nt)),!at)throw new Error("An unknown error occurred whilst processing the image.");return at},dt=r.__addimage__.convertBase64ToBinaryString=function(F,P){var z;P=typeof P!="boolean"||P;var q,at="";if(typeof F=="string"){q=(z=ot(F))!==null?z.data:F;try{at=ga(q)}catch(nt){if(P)throw J(q)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+nt.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return at};r.getImageProperties=function(F){var P,z,q="";if(N(F)&&(F=S(F)),typeof F=="string"&&a(F)===e&&((q=dt(F,!1))===""&&(q=r.loadFile(F)||""),F=q),z=a(F),!v(z))throw new Error("addImage does not support files of type '"+z+"', please ensure that a plugin for '"+z+"' support is added.");if(!ut()||F instanceof Uint8Array||(F=tt(F)),!(P=this["process"+z.toUpperCase()](F)))throw new Error("An unknown error occurred whilst processing the image");return P.fileType=z,P}})(zt.API),function(r){var e=function(n){if(n!==void 0&&n!="")return!0};zt.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),r.events.push(["putPage",function(n){for(var a,s,o,u=this.internal.getCoordinateString,h=this.internal.getVerticalCoordinateString,f=this.internal.getPageInfoByObjId(n.objId),g=n.pageContext.annotations,v=!1,N=0;N<g.length&&!v;N++)switch((a=g[N]).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 S=0;S<g.length;S++){a=g[S];var p=this.internal.pdfEscape,M=this.internal.getEncryptor(n.objId);switch(a.type){case"reference":this.internal.write(" "+a.object.objId+" 0 R ");break;case"text":var I=this.internal.newAdditionalObject(),B=this.internal.newAdditionalObject(),_=this.internal.getEncryptor(I.objId),O=a.title||"Note";o="<</Type /Annot /Subtype /Text "+(s="/Rect ["+u(a.bounds.x)+" "+h(a.bounds.y+a.bounds.h)+" "+u(a.bounds.x+a.bounds.w)+" "+h(a.bounds.y)+"] ")+"/Contents ("+p(_(a.contents))+")",o+=" /Popup "+B.objId+" 0 R",o+=" /P "+f.objId+" 0 R",o+=" /T ("+p(_(O))+") >>",I.content=o;var J=I.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(s="/Rect ["+u(a.bounds.x+30)+" "+h(a.bounds.y+a.bounds.h)+" "+u(a.bounds.x+a.bounds.w+30)+" "+h(a.bounds.y)+"] ")+" /Parent "+J,a.open&&(o+=" /Open true"),o+=" >>",B.content=o,this.internal.write(I.objId,"0 R",B.objId,"0 R");break;case"freetext":s="/Rect ["+u(a.bounds.x)+" "+h(a.bounds.y)+" "+u(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(M(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 ut=this.annotations._nameMap[a.options.name];a.options.pageNumber=ut.page,a.options.top=ut.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(M(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 wt=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+" "+wt+" "+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,u){var h=this.internal.getCurrentPageInfo(),f=this.internal.getCoordinateString,g=this.internal.getVerticalCoordinateString;h.pageContext.annotations.push({finalBounds:{x:f(n),y:g(a),w:f(n+s),h:g(a+o)},options:u,type:"link"})},r.textWithLink=function(n,a,s,o){var u,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;u=Math.ceil(g*v)}else h=f,u=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,u,o),f},r.getTextWidth=function(n){var a=this.internal.getFontSize();return this.getStringUnitWidth(n)*a/this.internal.scaleFactor}}(zt.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(I){return e[I.charCodeAt(0)]!==void 0},u=r.__arabicParser__.isArabicLetter=function(I){return typeof I=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(I)},h=r.__arabicParser__.isArabicEndLetter=function(I){return u(I)&&o(I)&&e[I.charCodeAt(0)].length<=2},f=r.__arabicParser__.isArabicAlfLetter=function(I){return u(I)&&s.indexOf(I.charCodeAt(0))>=0};r.__arabicParser__.arabicLetterHasIsolatedForm=function(I){return u(I)&&o(I)&&e[I.charCodeAt(0)].length>=1};var g=r.__arabicParser__.arabicLetterHasFinalForm=function(I){return u(I)&&o(I)&&e[I.charCodeAt(0)].length>=2};r.__arabicParser__.arabicLetterHasInitialForm=function(I){return u(I)&&o(I)&&e[I.charCodeAt(0)].length>=3};var v=r.__arabicParser__.arabicLetterHasMedialForm=function(I){return u(I)&&o(I)&&e[I.charCodeAt(0)].length==4},N=r.__arabicParser__.resolveLigatures=function(I){var B=0,_=n,O="",J=0;for(B=0;B<I.length;B+=1)_[I.charCodeAt(B)]!==void 0?(J++,typeof(_=_[I.charCodeAt(B)])=="number"&&(O+=String.fromCharCode(_),_=n,J=0),B===I.length-1&&(_=n,O+=I.charAt(B-(J-1)),B-=J-1,J=0)):(_=n,O+=I.charAt(B-J),B-=J,J=0);return O};r.__arabicParser__.isArabicDiacritic=function(I){return I!==void 0&&a[I.charCodeAt(0)]!==void 0};var S=r.__arabicParser__.getCorrectForm=function(I,B,_){return u(I)?o(I)===!1?-1:!g(I)||!u(B)&&!u(_)||!u(_)&&h(B)||h(I)&&!u(B)||h(I)&&f(B)||h(I)&&h(B)?0:v(I)&&u(B)&&!h(B)&&u(_)&&g(_)?3:h(I)||!u(_)?1:2:-1},p=function(I){var B=0,_=0,O=0,J="",ot="",ut="",wt=(I=I||"").split("\\s+"),tt=[];for(B=0;B<wt.length;B+=1){for(tt.push(""),_=0;_<wt[B].length;_+=1)J=wt[B][_],ot=wt[B][_-1],ut=wt[B][_+1],u(J)?(O=S(J,ot,ut),tt[B]+=O!==-1?String.fromCharCode(e[J.charCodeAt(0)][O]):J):tt[B]+=J;tt[B]=N(tt[B])}return tt.join(" ")},M=r.__arabicParser__.processArabic=r.processArabic=function(){var I,B=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,_=[];if(Array.isArray(B)){var O=0;for(_=[],O=0;O<B.length;O+=1)Array.isArray(B[O])?_.push([p(B[O][0]),B[O][1],B[O][2]]):_.push([p(B[O])]);I=_}else I=p(B);return typeof arguments[0]=="string"?I:(arguments[0].text=I,arguments[0])};r.events.push(["preProcessText",M])}(zt.API),zt.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 u={};Object.defineProperty(this,"style",{get:function(){return u},set:function(h){u=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}])}(zt.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(I){f=I}});var g=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return g},set:function(I){g=I}});var v=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return v},set:function(I){v=I}});var N=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return N},set:function(I){N=I}});var S=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return S},set:function(I){S=I}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return p},set:function(I){p=I}});var M=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return M},set:function(I){M=I}}),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(),N=g.font||this.getFont(),S=g.scaleFactor||this.internal.scaleFactor,p=0,M=0,I=0,B=this;if(!Array.isArray(f)&&typeof f!="string"){if(typeof f!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");f=String(f)}var _=g.maxWidth;_>0?typeof f=="string"?f=this.splitTextToSize(f,_):Object.prototype.toString.call(f)==="[object Array]"&&(f=f.reduce(function(J,ot){return J.concat(B.splitTextToSize(ot,_))},[])):f=Array.isArray(f)?f:[f];for(var O=0;O<f.length;O++)p<(I=this.getStringUnitWidth(f[O],{font:N})*v)&&(p=I);return p!==0&&(M=f.length),{w:p/=S,h:Math.max((M*v*this.getLineHeightFactor()-v*(this.getLineHeightFactor()-1))/S,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 u=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,N=this.internal.__cell__.margins||e,S=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+N.bottom>this.getPageHeight()?(this.cellAddPage(),f.y=N.top,p&&S&&(this.printHeaderRow(f.lineNumber,!0),f.y+=S[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,N,S){if(a.call(this),!v)throw new Error("No data for PDF table.");var p,M,I,B,_=[],O=[],J=[],ot={},ut={},wt=[],tt=[],R=(S=S||{}).autoSize||!1,gt=S.printHeaders!==!1,dt=S.css&&S.css["font-size"]!==void 0?16*S.css["font-size"]:S.fontSize||12,F=S.margins||Object.assign({width:this.getPageWidth()},e),P=typeof S.padding=="number"?S.padding:3,z=S.headerBackgroundColor||"#c8c8c8",q=S.headerTextColor||"#000";if(s.call(this),this.internal.__cell__.printHeaders=gt,this.internal.__cell__.margins=F,this.internal.__cell__.table_font_size=dt,this.internal.__cell__.padding=P,this.internal.__cell__.headerBackgroundColor=z,this.internal.__cell__.headerTextColor=q,this.setFontSize(dt),N==null)O=_=Object.keys(v[0]),J=_.map(function(){return"left"});else if(Array.isArray(N)&&de(N[0])==="object")for(_=N.map(function(ht){return ht.name}),O=N.map(function(ht){return ht.prompt||ht.name||""}),J=N.map(function(ht){return ht.align||"left"}),p=0;p<N.length;p+=1)ut[N[p].name]=N[p].width*(19.049976/25.4);else Array.isArray(N)&&typeof N[0]=="string"&&(O=_=N,J=_.map(function(){return"left"}));if(R||Array.isArray(N)&&typeof N[0]=="string")for(p=0;p<_.length;p+=1){for(ot[B=_[p]]=v.map(function(ht){return ht[B]}),this.setFont(void 0,"bold"),wt.push(this.getTextDimensions(O[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),M=ot[B],this.setFont(void 0,"normal"),I=0;I<M.length;I+=1)wt.push(this.getTextDimensions(M[I],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);ut[B]=Math.max.apply(null,wt)+P+P,wt=[]}if(gt){var at={};for(p=0;p<_.length;p+=1)at[_[p]]={},at[_[p]].text=O[p],at[_[p]].align=J[p];var nt=h.call(this,at,ut);tt=_.map(function(ht){return new o(f,g,ut[ht],nt,at[ht].text,void 0,at[ht].align)}),this.setTableHeaderRow(tt),this.printHeaderRow(1,!1)}var lt=N.reduce(function(ht,kt){return ht[kt.name]=kt.align,ht},{});for(p=0;p<v.length;p+=1){"rowStart"in S&&S.rowStart instanceof Function&&S.rowStart({row:p,data:v[p]},this);var Z=h.call(this,v[p],ut);for(I=0;I<_.length;I+=1){var ft=v[p][_[I]];"cellStart"in S&&S.cellStart instanceof Function&&S.cellStart({row:p,col:I,data:ft},this),u.call(this,new o(f,g,ut[_[I]],Z,ft,p+2,lt[_[I]]))}}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,N=this.internal.__cell__.table_font_size,S=this.internal.scaleFactor;return Object.keys(f).map(function(p){var M=f[p];return this.splitTextToSize(M.hasOwnProperty("text")?M.text:M,g[p]-v-v)},this).map(function(p){return this.getLineHeightFactor()*p.length*N/S+v+v},this).reduce(function(p,M){return Math.max(p,M)},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 N=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(N[0],N[1],N[2],N[3],void 0,-1)}this.setFont(void 0,"bold");for(var S=[],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,S.push(v)),v.lineNumber=f;var M=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),u.call(this,v),this.setTextColor(M)}S.length>0&&this.setTableHeaderRow(S),this.setFont(void 0,"normal"),n=!1}}(zt.API);var du={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},pu=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ts=fu(pu),gu=[100,200,300,400,500,600,700,800,900],t1=fu(gu);function zs(r){var e=r.family.replace(/"|'/g,"").toLowerCase(),n=function(o){return du[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 Ts[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 Dc(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 e1={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},qc={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Rc(r){return[r.stretch,r.style,r.weight,r.family].join(" ")}function n1(r,e,n){for(var a=(n=n||{}).defaultFontFamily||"times",s=Object.assign({},e1,n.genericFontFamilies||{}),o=null,u=null,h=0;h<e.length;++h)if(s[(o=zs(e[h])).family]&&(o.family=s[o.family]),r.hasOwnProperty(o.family)){u=r[o.family];break}if(!(u=u||r[a]))throw new Error("Could not find a font-family for the rule '"+Rc(o)+"' and default family '"+a+"'.");if(u=function(f,g){if(g[f])return g[f];var v=Ts[f],N=v<=Ts.normal?-1:1,S=Dc(g,pu,v,N);if(!S)throw new Error("Could not find a matching font-stretch value for "+f);return S}(o.stretch,u),u=function(f,g){if(g[f])return g[f];for(var v=du[f],N=0;N<v.length;++N)if(g[v[N]])return g[v[N]];throw new Error("Could not find a matching font-style for "+f)}(o.style,u),!(u=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=t1[f],N=Dc(g,gu,v,f<400?-1:1);if(!N)throw new Error("Could not find a matching font-weight for value "+f);return N}(o.weight,u)))throw new Error("Failed to resolve a font for the rule '"+Rc(o)+"'.");return u}function Tc(r){return r.trimLeft()}function r1(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 i1(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 co,zc,Uc,Ss=["times"];(function(r){var e,n,a,s,o,u,h,f,g,v=function(A){return A=A||{},this.isStrokeTransparent=A.isStrokeTransparent||!1,this.strokeOpacity=A.strokeOpacity||1,this.strokeStyle=A.strokeStyle||"#000000",this.fillStyle=A.fillStyle||"#000000",this.isFillTransparent=A.isFillTransparent||!1,this.fillOpacity=A.fillOpacity||1,this.font=A.font||"10px sans-serif",this.textBaseline=A.textBaseline||"alphabetic",this.textAlign=A.textAlign||"left",this.lineWidth=A.lineWidth||1,this.lineJoin=A.lineJoin||"miter",this.lineCap=A.lineCap||"butt",this.path=A.path||[],this.transform=A.transform!==void 0?A.transform.clone():new f,this.globalCompositeOperation=A.globalCompositeOperation||"normal",this.globalAlpha=A.globalAlpha||1,this.clip_path=A.clip_path||[],this.currentPoint=A.currentPoint||new u,this.miterLimit=A.miterLimit||10,this.lastPoint=A.lastPoint||new u,this.lineDashOffset=A.lineDashOffset||0,this.lineDash=A.lineDash||[],this.margin=A.margin||[0,0,0,0],this.prevPageLastElemOffset=A.prevPageLastElemOffset||0,this.ignoreClearRect=typeof A.ignoreClearRect!="boolean"||A.ignoreClearRect,this};r.events.push(["initialized",function(){this.context2d=new N(this),e=this.internal.f2,n=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,s=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,u=this.internal.Point,h=this.internal.Rectangle,f=this.internal.Matrix,g=new v}]);var N=function(A){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var j=A;Object.defineProperty(this,"pdf",{get:function(){return j}});var E=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return E},set:function(ct){E=Boolean(ct)}});var W=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return W},set:function(ct){W=Boolean(ct)}});var Y=0;Object.defineProperty(this,"posX",{get:function(){return Y},set:function(ct){isNaN(ct)||(Y=ct)}});var Q=0;Object.defineProperty(this,"posY",{get:function(){return Q},set:function(ct){isNaN(ct)||(Q=ct)}}),Object.defineProperty(this,"margin",{get:function(){return g.margin},set:function(ct){var D;typeof ct=="number"?D=[ct,ct,ct,ct]:((D=new Array(4))[0]=ct[0],D[1]=ct.length>=2?ct[1]:D[0],D[2]=ct.length>=3?ct[2]:D[0],D[3]=ct.length>=4?ct[3]:D[1]),g.margin=D}});var et=!1;Object.defineProperty(this,"autoPaging",{get:function(){return et},set:function(ct){et=ct}});var rt=0;Object.defineProperty(this,"lastBreak",{get:function(){return rt},set:function(ct){rt=ct}});var Lt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Lt},set:function(ct){Lt=ct}}),Object.defineProperty(this,"ctx",{get:function(){return g},set:function(ct){ct instanceof v&&(g=ct)}}),Object.defineProperty(this,"path",{get:function(){return g.path},set:function(ct){g.path=ct}});var Nt=[];Object.defineProperty(this,"ctxStack",{get:function(){return Nt},set:function(ct){Nt=ct}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ct){var D;D=S(ct),this.ctx.fillStyle=D.style,this.ctx.isFillTransparent=D.a===0,this.ctx.fillOpacity=D.a,this.pdf.setFillColor(D.r,D.g,D.b,{a:D.a}),this.pdf.setTextColor(D.r,D.g,D.b,{a:D.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ct){var D=S(ct);this.ctx.strokeStyle=D.style,this.ctx.isStrokeTransparent=D.a===0,this.ctx.strokeOpacity=D.a,D.a===0?this.pdf.setDrawColor(255,255,255):(D.a,this.pdf.setDrawColor(D.r,D.g,D.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ct){["butt","round","square"].indexOf(ct)!==-1&&(this.ctx.lineCap=ct,this.pdf.setLineCap(ct))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ct){isNaN(ct)||(this.ctx.lineWidth=ct,this.pdf.setLineWidth(ct))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ct){["bevel","round","miter"].indexOf(ct)!==-1&&(this.ctx.lineJoin=ct,this.pdf.setLineJoin(ct))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ct){isNaN(ct)||(this.ctx.miterLimit=ct,this.pdf.setMiterLimit(ct))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ct){this.ctx.textBaseline=ct}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ct){["right","end","center","left","start"].indexOf(ct)!==-1&&(this.ctx.textAlign=ct)}});var Ct=null;function Mt(ct,D){if(Ct===null){var Xt=function(Et){var At=[];return Object.keys(Et).forEach(function(xt){Et[xt].forEach(function(It){var Pt=null;switch(It){case"bold":Pt={family:xt,weight:"bold"};break;case"italic":Pt={family:xt,style:"italic"};break;case"bolditalic":Pt={family:xt,weight:"bold",style:"italic"};break;case"":case"normal":Pt={family:xt}}Pt!==null&&(Pt.ref={name:xt,style:It},At.push(Pt))})}),At}(ct.getFontList());Ct=function(Et){for(var At={},xt=0;xt<Et.length;++xt){var It=zs(Et[xt]),Pt=It.family,Dt=It.stretch,Gt=It.style,Zt=It.weight;At[Pt]=At[Pt]||{},At[Pt][Dt]=At[Pt][Dt]||{},At[Pt][Dt][Gt]=At[Pt][Dt][Gt]||{},At[Pt][Dt][Gt][Zt]=It}return At}(Xt.concat(D))}return Ct}var Ut=null;Object.defineProperty(this,"fontFaces",{get:function(){return Ut},set:function(ct){Ct=null,Ut=ct}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(ct){var D;if(this.ctx.font=ct,(D=/^\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(ct))!==null){var Xt=D[1],Et=(D[2],D[3]),At=D[4],xt=(D[5],D[6]),It=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(At)[2];At=Math.floor(It==="px"?parseFloat(At)*this.pdf.internal.scaleFactor:It==="em"?parseFloat(At)*this.pdf.getFontSize():parseFloat(At)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(At);var Pt=function(Wt){var ee,Ft,Ye=[],se=Wt.trim();if(se==="")return Ss;if(se in qc)return[qc[se]];for(;se!=="";){switch(Ft=null,ee=(se=Tc(se)).charAt(0)){case'"':case"'":Ft=r1(se.substring(1),ee);break;default:Ft=i1(se)}if(Ft===null||(Ye.push(Ft[0]),(se=Tc(Ft[1]))!==""&&se.charAt(0)!==","))return Ss;se=se.replace(/^,/,"")}return Ye}(xt);if(this.fontFaces){var Dt=n1(Mt(this.pdf,this.fontFaces),Pt.map(function(Wt){return{family:Wt,stretch:"normal",weight:Et,style:Xt}}));this.pdf.setFont(Dt.ref.name,Dt.ref.style)}else{var Gt="";(Et==="bold"||parseInt(Et,10)>=700||Xt==="bold")&&(Gt="bold"),Xt==="italic"&&(Gt+="italic"),Gt.length===0&&(Gt="normal");for(var Zt="",te={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"},ae=0;ae<Pt.length;ae++){if(this.pdf.internal.getFont(Pt[ae],Gt,{noFallback:!0,disableWarning:!0})!==void 0){Zt=Pt[ae];break}if(Gt==="bolditalic"&&this.pdf.internal.getFont(Pt[ae],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Zt=Pt[ae],Gt="bold";else if(this.pdf.internal.getFont(Pt[ae],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Zt=Pt[ae],Gt="normal";break}}if(Zt===""){for(var pe=0;pe<Pt.length;pe++)if(te[Pt[pe]]){Zt=te[Pt[pe]];break}}Zt=Zt===""?"Times":Zt,this.pdf.setFont(Zt,Gt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(ct){this.ctx.globalCompositeOperation=ct}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(ct){this.ctx.globalAlpha=ct}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(ct){this.ctx.lineDashOffset=ct,kt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(ct){this.ctx.lineDash=ct,kt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(ct){this.ctx.ignoreClearRect=Boolean(ct)}})};N.prototype.setLineDash=function(A){this.lineDash=A},N.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},N.prototype.fill=function(){ot.call(this,"fill",!1)},N.prototype.stroke=function(){ot.call(this,"stroke",!1)},N.prototype.beginPath=function(){this.path=[{type:"begin"}]},N.prototype.moveTo=function(A,j){if(isNaN(A)||isNaN(j))throw be.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var E=this.ctx.transform.applyToPoint(new u(A,j));this.path.push({type:"mt",x:E.x,y:E.y}),this.ctx.lastPoint=new u(A,j)},N.prototype.closePath=function(){var A=new u(0,0),j=0;for(j=this.path.length-1;j!==-1;j--)if(this.path[j].type==="begin"&&de(this.path[j+1])==="object"&&typeof this.path[j+1].x=="number"){A=new u(this.path[j+1].x,this.path[j+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new u(A.x,A.y)},N.prototype.lineTo=function(A,j){if(isNaN(A)||isNaN(j))throw be.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var E=this.ctx.transform.applyToPoint(new u(A,j));this.path.push({type:"lt",x:E.x,y:E.y}),this.ctx.lastPoint=new u(E.x,E.y)},N.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),ot.call(this,null,!0)},N.prototype.quadraticCurveTo=function(A,j,E,W){if(isNaN(E)||isNaN(W)||isNaN(A)||isNaN(j))throw be.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Y=this.ctx.transform.applyToPoint(new u(E,W)),Q=this.ctx.transform.applyToPoint(new u(A,j));this.path.push({type:"qct",x1:Q.x,y1:Q.y,x:Y.x,y:Y.y}),this.ctx.lastPoint=new u(Y.x,Y.y)},N.prototype.bezierCurveTo=function(A,j,E,W,Y,Q){if(isNaN(Y)||isNaN(Q)||isNaN(A)||isNaN(j)||isNaN(E)||isNaN(W))throw be.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var et=this.ctx.transform.applyToPoint(new u(Y,Q)),rt=this.ctx.transform.applyToPoint(new u(A,j)),Lt=this.ctx.transform.applyToPoint(new u(E,W));this.path.push({type:"bct",x1:rt.x,y1:rt.y,x2:Lt.x,y2:Lt.y,x:et.x,y:et.y}),this.ctx.lastPoint=new u(et.x,et.y)},N.prototype.arc=function(A,j,E,W,Y,Q){if(isNaN(A)||isNaN(j)||isNaN(E)||isNaN(W)||isNaN(Y))throw be.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Q=Boolean(Q),!this.ctx.transform.isIdentity){var et=this.ctx.transform.applyToPoint(new u(A,j));A=et.x,j=et.y;var rt=this.ctx.transform.applyToPoint(new u(0,E)),Lt=this.ctx.transform.applyToPoint(new u(0,0));E=Math.sqrt(Math.pow(rt.x-Lt.x,2)+Math.pow(rt.y-Lt.y,2))}Math.abs(Y-W)>=2*Math.PI&&(W=0,Y=2*Math.PI),this.path.push({type:"arc",x:A,y:j,radius:E,startAngle:W,endAngle:Y,counterclockwise:Q})},N.prototype.arcTo=function(A,j,E,W,Y){throw new Error("arcTo not implemented.")},N.prototype.rect=function(A,j,E,W){if(isNaN(A)||isNaN(j)||isNaN(E)||isNaN(W))throw be.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(A,j),this.lineTo(A+E,j),this.lineTo(A+E,j+W),this.lineTo(A,j+W),this.lineTo(A,j),this.lineTo(A+E,j),this.lineTo(A,j)},N.prototype.fillRect=function(A,j,E,W){if(isNaN(A)||isNaN(j)||isNaN(E)||isNaN(W))throw be.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var Y={};this.lineCap!=="butt"&&(Y.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Y.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(A,j,E,W),this.fill(),Y.hasOwnProperty("lineCap")&&(this.lineCap=Y.lineCap),Y.hasOwnProperty("lineJoin")&&(this.lineJoin=Y.lineJoin)}},N.prototype.strokeRect=function(A,j,E,W){if(isNaN(A)||isNaN(j)||isNaN(E)||isNaN(W))throw be.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");M.call(this)||(this.beginPath(),this.rect(A,j,E,W),this.stroke())},N.prototype.clearRect=function(A,j,E,W){if(isNaN(A)||isNaN(j)||isNaN(E)||isNaN(W))throw be.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(A,j,E,W))},N.prototype.save=function(A){A=typeof A!="boolean"||A;for(var j=this.pdf.internal.getCurrentPageInfo().pageNumber,E=0;E<this.pdf.internal.getNumberOfPages();E++)this.pdf.setPage(E+1),this.pdf.internal.out("q");if(this.pdf.setPage(j),A){this.ctx.fontSize=this.pdf.internal.getFontSize();var W=new v(this.ctx);this.ctxStack.push(this.ctx),this.ctx=W}},N.prototype.restore=function(A){A=typeof A!="boolean"||A;for(var j=this.pdf.internal.getCurrentPageInfo().pageNumber,E=0;E<this.pdf.internal.getNumberOfPages();E++)this.pdf.setPage(E+1),this.pdf.internal.out("Q");this.pdf.setPage(j),A&&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)},N.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var S=function(A){var j,E,W,Y;if(A.isCanvasGradient===!0&&(A=A.getColor()),!A)return{r:0,g:0,b:0,a:0,style:A};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(A))j=0,E=0,W=0,Y=0;else{var Q=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(A);if(Q!==null)j=parseInt(Q[1]),E=parseInt(Q[2]),W=parseInt(Q[3]),Y=1;else if((Q=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(A))!==null)j=parseInt(Q[1]),E=parseInt(Q[2]),W=parseInt(Q[3]),Y=parseFloat(Q[4]);else{if(Y=1,typeof A=="string"&&A.charAt(0)!=="#"){var et=new ou(A);A=et.ok?et.toHex():"#000000"}A.length===4?(j=A.substring(1,2),j+=j,E=A.substring(2,3),E+=E,W=A.substring(3,4),W+=W):(j=A.substring(1,3),E=A.substring(3,5),W=A.substring(5,7)),j=parseInt(j,16),E=parseInt(E,16),W=parseInt(W,16)}}return{r:j,g:E,b:W,a:Y,style:A}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},M=function(){return Boolean(this.ctx.isStrokeTransparent||this.globalAlpha==0)};N.prototype.fillText=function(A,j,E,W){if(isNaN(j)||isNaN(E)||typeof A!="string")throw be.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(W=isNaN(W)?void 0:W,!p.call(this)){var Y=Z(this.ctx.transform.rotation),Q=this.ctx.transform.scaleX;P.call(this,{text:A,x:j,y:E,scale:Q,angle:Y,align:this.textAlign,maxWidth:W})}},N.prototype.strokeText=function(A,j,E,W){if(isNaN(j)||isNaN(E)||typeof A!="string")throw be.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!M.call(this)){W=isNaN(W)?void 0:W;var Y=Z(this.ctx.transform.rotation),Q=this.ctx.transform.scaleX;P.call(this,{text:A,x:j,y:E,scale:Q,renderingMode:"stroke",angle:Y,align:this.textAlign,maxWidth:W})}},N.prototype.measureText=function(A){if(typeof A!="string")throw be.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var j=this.pdf,E=this.pdf.internal.scaleFactor,W=j.internal.getFontSize(),Y=j.getStringUnitWidth(A)*W/j.internal.scaleFactor,Q=function(et){var rt=(et=et||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return rt}}),this};return new Q({width:Y*=Math.round(96*E/72*1e4)/1e4})},N.prototype.scale=function(A,j){if(isNaN(A)||isNaN(j))throw be.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var E=new f(A,0,0,j,0,0);this.ctx.transform=this.ctx.transform.multiply(E)},N.prototype.rotate=function(A){if(isNaN(A))throw be.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var j=new f(Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0);this.ctx.transform=this.ctx.transform.multiply(j)},N.prototype.translate=function(A,j){if(isNaN(A)||isNaN(j))throw be.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var E=new f(1,0,0,1,A,j);this.ctx.transform=this.ctx.transform.multiply(E)},N.prototype.transform=function(A,j,E,W,Y,Q){if(isNaN(A)||isNaN(j)||isNaN(E)||isNaN(W)||isNaN(Y)||isNaN(Q))throw be.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var et=new f(A,j,E,W,Y,Q);this.ctx.transform=this.ctx.transform.multiply(et)},N.prototype.setTransform=function(A,j,E,W,Y,Q){A=isNaN(A)?1:A,j=isNaN(j)?0:j,E=isNaN(E)?0:E,W=isNaN(W)?1:W,Y=isNaN(Y)?0:Y,Q=isNaN(Q)?0:Q,this.ctx.transform=new f(A,j,E,W,Y,Q)};var I=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};N.prototype.drawImage=function(A,j,E,W,Y,Q,et,rt,Lt){var Nt=this.pdf.getImageProperties(A),Ct=1,Mt=1,Ut=1,ct=1;W!==void 0&&rt!==void 0&&(Ut=rt/W,ct=Lt/Y,Ct=Nt.width/W*rt/W,Mt=Nt.height/Y*Lt/Y),Q===void 0&&(Q=j,et=E,j=0,E=0),W!==void 0&&rt===void 0&&(rt=W,Lt=Y),W===void 0&&rt===void 0&&(rt=Nt.width,Lt=Nt.height);for(var D,Xt=this.ctx.transform.decompose(),Et=Z(Xt.rotate.shx),At=new f,xt=(At=(At=(At=At.multiply(Xt.translate)).multiply(Xt.skew)).multiply(Xt.scale)).applyToRectangle(new h(Q-j*Ut,et-E*ct,W*Ct,Y*Mt)),It=B.call(this,xt),Pt=[],Dt=0;Dt<It.length;Dt+=1)Pt.indexOf(It[Dt])===-1&&Pt.push(It[Dt]);if(J(Pt),this.autoPaging)for(var Gt=Pt[0],Zt=Pt[Pt.length-1],te=Gt;te<Zt+1;te++){this.pdf.setPage(te);var ae=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],pe=te===1?this.posY+this.margin[0]:this.margin[0],Wt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ee=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ft=te===1?0:Wt+(te-2)*ee;if(this.ctx.clip_path.length!==0){var Ye=this.path;D=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=O(D,this.posX+this.margin[3],-Ft+pe+this.ctx.prevPageLastElemOffset),ut.call(this,"fill",!0),this.path=Ye}var se=JSON.parse(JSON.stringify(xt));se=O([se],this.posX+this.margin[3],-Ft+pe+this.ctx.prevPageLastElemOffset)[0];var xn=(te>Gt||te<Zt)&&I.call(this);xn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ae,ee,null).clip().discardPath()),this.pdf.addImage(A,"JPEG",se.x,se.y,se.w,se.h,null,null,Et),xn&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(A,"JPEG",xt.x,xt.y,xt.w,xt.h,null,null,Et)};var B=function(A,j,E){var W=[];j=j||this.pdf.internal.pageSize.width,E=E||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Y=this.posY+this.ctx.prevPageLastElemOffset;switch(A.type){default:case"mt":case"lt":W.push(Math.floor((A.y+Y)/E)+1);break;case"arc":W.push(Math.floor((A.y+Y-A.radius)/E)+1),W.push(Math.floor((A.y+Y+A.radius)/E)+1);break;case"qct":var Q=ft(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x,A.y);W.push(Math.floor((Q.y+Y)/E)+1),W.push(Math.floor((Q.y+Q.h+Y)/E)+1);break;case"bct":var et=ht(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x2,A.y2,A.x,A.y);W.push(Math.floor((et.y+Y)/E)+1),W.push(Math.floor((et.y+et.h+Y)/E)+1);break;case"rect":W.push(Math.floor((A.y+Y)/E)+1),W.push(Math.floor((A.y+A.h+Y)/E)+1)}for(var rt=0;rt<W.length;rt+=1)for(;this.pdf.internal.getNumberOfPages()<W[rt];)_.call(this);return W},_=function(){var A=this.fillStyle,j=this.strokeStyle,E=this.font,W=this.lineCap,Y=this.lineWidth,Q=this.lineJoin;this.pdf.addPage(),this.fillStyle=A,this.strokeStyle=j,this.font=E,this.lineCap=W,this.lineWidth=Y,this.lineJoin=Q},O=function(A,j,E){for(var W=0;W<A.length;W++)switch(A[W].type){case"bct":A[W].x2+=j,A[W].y2+=E;case"qct":A[W].x1+=j,A[W].y1+=E;case"mt":case"lt":case"arc":default:A[W].x+=j,A[W].y+=E}return A},J=function(A){return A.sort(function(j,E){return j-E})},ot=function(A,j){for(var E,W,Y=this.fillStyle,Q=this.strokeStyle,et=this.lineCap,rt=this.lineWidth,Lt=Math.abs(rt*this.ctx.transform.scaleX),Nt=this.lineJoin,Ct=JSON.parse(JSON.stringify(this.path)),Mt=JSON.parse(JSON.stringify(this.path)),Ut=[],ct=0;ct<Mt.length;ct++)if(Mt[ct].x!==void 0)for(var D=B.call(this,Mt[ct]),Xt=0;Xt<D.length;Xt+=1)Ut.indexOf(D[Xt])===-1&&Ut.push(D[Xt]);for(var Et=0;Et<Ut.length;Et++)for(;this.pdf.internal.getNumberOfPages()<Ut[Et];)_.call(this);if(J(Ut),this.autoPaging)for(var At=Ut[0],xt=Ut[Ut.length-1],It=At;It<xt+1;It++){this.pdf.setPage(It),this.fillStyle=Y,this.strokeStyle=Q,this.lineCap=et,this.lineWidth=Lt,this.lineJoin=Nt;var Pt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Dt=It===1?this.posY+this.margin[0]:this.margin[0],Gt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Zt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],te=It===1?0:Gt+(It-2)*Zt;if(this.ctx.clip_path.length!==0){var ae=this.path;E=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=O(E,this.posX+this.margin[3],-te+Dt+this.ctx.prevPageLastElemOffset),ut.call(this,A,!0),this.path=ae}if(W=JSON.parse(JSON.stringify(Ct)),this.path=O(W,this.posX+this.margin[3],-te+Dt+this.ctx.prevPageLastElemOffset),j===!1||It===0){var pe=(It>At||It<xt)&&I.call(this);pe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Pt,Zt,null).clip().discardPath()),ut.call(this,A,j),pe&&this.pdf.restoreGraphicsState()}this.lineWidth=rt}else this.lineWidth=Lt,ut.call(this,A,j),this.lineWidth=rt;this.path=Ct},ut=function(A,j){if((A!=="stroke"||j||!M.call(this))&&(A==="stroke"||j||!p.call(this))){for(var E,W,Y=[],Q=this.path,et=0;et<Q.length;et++){var rt=Q[et];switch(rt.type){case"begin":Y.push({begin:!0});break;case"close":Y.push({close:!0});break;case"mt":Y.push({start:rt,deltas:[],abs:[]});break;case"lt":var Lt=Y.length;if(Q[et-1]&&!isNaN(Q[et-1].x)&&(E=[rt.x-Q[et-1].x,rt.y-Q[et-1].y],Lt>0)){for(;Lt>=0;Lt--)if(Y[Lt-1].close!==!0&&Y[Lt-1].begin!==!0){Y[Lt-1].deltas.push(E),Y[Lt-1].abs.push(rt);break}}break;case"bct":E=[rt.x1-Q[et-1].x,rt.y1-Q[et-1].y,rt.x2-Q[et-1].x,rt.y2-Q[et-1].y,rt.x-Q[et-1].x,rt.y-Q[et-1].y],Y[Y.length-1].deltas.push(E);break;case"qct":var Nt=Q[et-1].x+2/3*(rt.x1-Q[et-1].x),Ct=Q[et-1].y+2/3*(rt.y1-Q[et-1].y),Mt=rt.x+2/3*(rt.x1-rt.x),Ut=rt.y+2/3*(rt.y1-rt.y),ct=rt.x,D=rt.y;E=[Nt-Q[et-1].x,Ct-Q[et-1].y,Mt-Q[et-1].x,Ut-Q[et-1].y,ct-Q[et-1].x,D-Q[et-1].y],Y[Y.length-1].deltas.push(E);break;case"arc":Y.push({deltas:[],abs:[],arc:!0}),Array.isArray(Y[Y.length-1].abs)&&Y[Y.length-1].abs.push(rt)}}W=j?null:A==="stroke"?"stroke":"fill";for(var Xt=!1,Et=0;Et<Y.length;Et++)if(Y[Et].arc)for(var At=Y[Et].abs,xt=0;xt<At.length;xt++){var It=At[xt];It.type==="arc"?R.call(this,It.x,It.y,It.radius,It.startAngle,It.endAngle,It.counterclockwise,void 0,j,!Xt):z.call(this,It.x,It.y),Xt=!0}else if(Y[Et].close===!0)this.pdf.internal.out("h"),Xt=!1;else if(Y[Et].begin!==!0){var Pt=Y[Et].start.x,Dt=Y[Et].start.y;q.call(this,Y[Et].deltas,Pt,Dt),Xt=!0}W&&gt.call(this,W),j&&dt.call(this)}},wt=function(A){var j=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,E=j*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return A-E;case"top":return A+j-E;case"hanging":return A+j-2*E;case"middle":return A+j/2-E;case"ideographic":return A;case"alphabetic":default:return A}},tt=function(A){return A+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};N.prototype.createLinearGradient=function(){var A=function(){};return A.colorStops=[],A.addColorStop=function(j,E){this.colorStops.push([j,E])},A.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},A.isCanvasGradient=!0,A},N.prototype.createPattern=function(){return this.createLinearGradient()},N.prototype.createRadialGradient=function(){return this.createLinearGradient()};var R=function(A,j,E,W,Y,Q,et,rt,Lt){for(var Nt=nt.call(this,E,W,Y,Q),Ct=0;Ct<Nt.length;Ct++){var Mt=Nt[Ct];Ct===0&&(Lt?F.call(this,Mt.x1+A,Mt.y1+j):z.call(this,Mt.x1+A,Mt.y1+j)),at.call(this,A,j,Mt.x2,Mt.y2,Mt.x3,Mt.y3,Mt.x4,Mt.y4)}rt?dt.call(this):gt.call(this,et)},gt=function(A){switch(A){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},dt=function(){this.pdf.clip(),this.pdf.discardPath()},F=function(A,j){this.pdf.internal.out(n(A)+" "+a(j)+" m")},P=function(A){var j;switch(A.align){case"right":case"end":j="right";break;case"center":j="center";break;case"left":case"start":default:j="left"}var E=this.pdf.getTextDimensions(A.text),W=wt.call(this,A.y),Y=tt.call(this,W)-E.h,Q=this.ctx.transform.applyToPoint(new u(A.x,W)),et=this.ctx.transform.decompose(),rt=new f;rt=(rt=(rt=rt.multiply(et.translate)).multiply(et.skew)).multiply(et.scale);for(var Lt,Nt,Ct,Mt=this.ctx.transform.applyToRectangle(new h(A.x,W,E.w,E.h)),Ut=rt.applyToRectangle(new h(A.x,Y,E.w,E.h)),ct=B.call(this,Ut),D=[],Xt=0;Xt<ct.length;Xt+=1)D.indexOf(ct[Xt])===-1&&D.push(ct[Xt]);if(J(D),this.autoPaging)for(var Et=D[0],At=D[D.length-1],xt=Et;xt<At+1;xt++){this.pdf.setPage(xt);var It=xt===1?this.posY+this.margin[0]:this.margin[0],Pt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Dt=this.pdf.internal.pageSize.height-this.margin[2],Gt=Dt-this.margin[0],Zt=this.pdf.internal.pageSize.width-this.margin[1],te=Zt-this.margin[3],ae=xt===1?0:Pt+(xt-2)*Gt;if(this.ctx.clip_path.length!==0){var pe=this.path;Lt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=O(Lt,this.posX+this.margin[3],-1*ae+It),ut.call(this,"fill",!0),this.path=pe}var Wt=O([JSON.parse(JSON.stringify(Ut))],this.posX+this.margin[3],-ae+It+this.ctx.prevPageLastElemOffset)[0];A.scale>=.01&&(Nt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Nt*A.scale),Ct=this.lineWidth,this.lineWidth=Ct*A.scale);var ee=this.autoPaging!=="text";if(ee||Wt.y+Wt.h<=Dt){if(ee||Wt.y>=It&&Wt.x<=Zt){var Ft=ee?A.text:this.pdf.splitTextToSize(A.text,A.maxWidth||Zt-Wt.x)[0],Ye=O([JSON.parse(JSON.stringify(Mt))],this.posX+this.margin[3],-ae+It+this.ctx.prevPageLastElemOffset)[0],se=ee&&(xt>Et||xt<At)&&I.call(this);se&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],te,Gt,null).clip().discardPath()),this.pdf.text(Ft,Ye.x,Ye.y,{angle:A.angle,align:j,renderingMode:A.renderingMode}),se&&this.pdf.restoreGraphicsState()}}else Wt.y<Dt&&(this.ctx.prevPageLastElemOffset+=Dt-Wt.y);A.scale>=.01&&(this.pdf.setFontSize(Nt),this.lineWidth=Ct)}else A.scale>=.01&&(Nt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Nt*A.scale),Ct=this.lineWidth,this.lineWidth=Ct*A.scale),this.pdf.text(A.text,Q.x+this.posX,Q.y+this.posY,{angle:A.angle,align:j,renderingMode:A.renderingMode,maxWidth:A.maxWidth}),A.scale>=.01&&(this.pdf.setFontSize(Nt),this.lineWidth=Ct)},z=function(A,j,E,W){E=E||0,W=W||0,this.pdf.internal.out(n(A+E)+" "+a(j+W)+" l")},q=function(A,j,E){return this.pdf.lines(A,j,E,null,null)},at=function(A,j,E,W,Y,Q,et,rt){this.pdf.internal.out([e(s(E+A)),e(o(W+j)),e(s(Y+A)),e(o(Q+j)),e(s(et+A)),e(o(rt+j)),"c"].join(" "))},nt=function(A,j,E,W){for(var Y=2*Math.PI,Q=Math.PI/2;j>E;)j-=Y;var et=Math.abs(E-j);et<Y&&W&&(et=Y-et);for(var rt=[],Lt=W?-1:1,Nt=j;et>1e-5;){var Ct=Nt+Lt*Math.min(et,Q);rt.push(lt.call(this,A,Nt,Ct)),et-=Math.abs(Ct-Nt),Nt=Ct}return rt},lt=function(A,j,E){var W=(E-j)/2,Y=A*Math.cos(W),Q=A*Math.sin(W),et=Y,rt=-Q,Lt=et*et+rt*rt,Nt=Lt+et*Y+rt*Q,Ct=4/3*(Math.sqrt(2*Lt*Nt)-Nt)/(et*Q-rt*Y),Mt=et-Ct*rt,Ut=rt+Ct*et,ct=Mt,D=-Ut,Xt=W+j,Et=Math.cos(Xt),At=Math.sin(Xt);return{x1:A*Math.cos(j),y1:A*Math.sin(j),x2:Mt*Et-Ut*At,y2:Mt*At+Ut*Et,x3:ct*Et-D*At,y3:ct*At+D*Et,x4:A*Math.cos(E),y4:A*Math.sin(E)}},Z=function(A){return 180*A/Math.PI},ft=function(A,j,E,W,Y,Q){var et=A+.5*(E-A),rt=j+.5*(W-j),Lt=Y+.5*(E-Y),Nt=Q+.5*(W-Q),Ct=Math.min(A,Y,et,Lt),Mt=Math.max(A,Y,et,Lt),Ut=Math.min(j,Q,rt,Nt),ct=Math.max(j,Q,rt,Nt);return new h(Ct,Ut,Mt-Ct,ct-Ut)},ht=function(A,j,E,W,Y,Q,et,rt){var Lt,Nt,Ct,Mt,Ut,ct,D,Xt,Et,At,xt,It,Pt,Dt,Gt=E-A,Zt=W-j,te=Y-E,ae=Q-W,pe=et-Y,Wt=rt-Q;for(Nt=0;Nt<41;Nt++)Et=(D=(Ct=A+(Lt=Nt/40)*Gt)+Lt*((Ut=E+Lt*te)-Ct))+Lt*(Ut+Lt*(Y+Lt*pe-Ut)-D),At=(Xt=(Mt=j+Lt*Zt)+Lt*((ct=W+Lt*ae)-Mt))+Lt*(ct+Lt*(Q+Lt*Wt-ct)-Xt),Nt==0?(xt=Et,It=At,Pt=Et,Dt=At):(xt=Math.min(xt,Et),It=Math.min(It,At),Pt=Math.max(Pt,Et),Dt=Math.max(Dt,At));return new h(Math.round(xt),Math.round(It),Math.round(Pt-xt),Math.round(Dt-It))},kt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var A,j,E=(A=this.ctx.lineDash,j=this.ctx.lineDashOffset,JSON.stringify({lineDash:A,lineDashOffset:j}));this.prevLineDash!==E&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=E)}}})(zt.API),function(r){var e=function(o){var u,h,f,g,v,N,S,p,M,I;for(/[^\x00-\xFF]/.test(o),h=[],f=0,g=(o+=u="\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?(N=(v=((v=((v=((v=(v-(I=v%85))/85)-(M=v%85))/85)-(p=v%85))/85)-(S=v%85))/85)%85,h.push(N+33,S+33,p+33,M+33,I+33)):h.push(122);return function(B,_){for(var O=_;O>0;O--)B.pop()}(h,u.length),String.fromCharCode.apply(String,h)+"~>"},n=function(o){var u,h,f,g,v,N=String,S="length",p=255,M="charCodeAt",I="slice",B="replace";for(o[I](-2),o=o[I](0,-2)[B](/\s/g,"")[B]("z","!!!!!"),f=[],g=0,v=(o+=u="uuuuu"[I](o[S]%5||5))[S];v>g;g+=5)h=52200625*(o[M](g)-33)+614125*(o[M](g+1)-33)+7225*(o[M](g+2)-33)+85*(o[M](g+3)-33)+(o[M](g+4)-33),f.push(p&h>>24,p&h>>16,p&h>>8,p&h);return function(_,O){for(var J=O;J>0;J--)_.pop()}(f,u[S]),N.fromCharCode.apply(N,f)},a=function(o){var u=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"),u.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 u=new Uint8Array(o.length),h=o.length;h--;)u[h]=o.charCodeAt(h);return o=(u=Bs(u)).reduce(function(f,g){return f+String.fromCharCode(g)},"")};r.processDataByFilters=function(o,u){var h=0,f=o||"",g=[];for(typeof(u=u||[])=="string"&&(u=[u]),h=0;h<u.length;h+=1)switch(u[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: "'+u[h]+'" is not implemented')}return{data:f,reverseChain:g.reverse().join(" ")}}}(zt.API),function(r){r.loadFile=function(e,n,a){return function(s,o,u){o=o!==!1,u=typeof u=="function"?u:function(){};var h=void 0;try{h=function(f,g,v){var N=new XMLHttpRequest,S=0,p=function(M){var I=M.length,B=[],_=String.fromCharCode;for(S=0;S<I;S+=1)B.push(_(255&M.charCodeAt(S)));return B.join("")};if(N.open("GET",f,!g),N.overrideMimeType("text/plain; charset=x-user-defined"),g===!1&&(N.onload=function(){N.status===200?v(p(this.responseText)):v(void 0)}),N.send(null),g&&N.status===200)return p(N.responseText)}(s,o,u)}catch{}return h}(e,n,a)},r.loadImageFile=r.loadFile}(zt.API),function(r){function e(){return(Ht.html2canvas?Promise.resolve(Ht.html2canvas):Is(()=>import("./html2canvas.esm.0eae2bf4.js"),[])).catch(function(u){return Promise.reject(new Error("Could not load html2canvas: "+u))}).then(function(u){return u.default?u.default:u})}function n(){return(Ht.DOMPurify?Promise.resolve(Ht.DOMPurify):Is(()=>import("./purify.es.69ed73e6.js"),[])).catch(function(u){return Promise.reject(new Error("Could not load dompurify: "+u))}).then(function(u){return u.default?u.default:u})}var a=function(u){var h=de(u);return h==="undefined"?"undefined":h==="string"||u instanceof String?"string":h==="number"||u instanceof Number?"number":h==="function"||u instanceof Function?"function":u&&u.constructor===Array?"array":u&&u.nodeType===1?"element":h==="object"?"object":"unknown"},s=function(u,h){var f=document.createElement(u);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 u(h){var f=Object.assign(u.convert(Promise.resolve()),JSON.parse(JSON.stringify(u.template))),g=u.convert(Promise.resolve(),f);return g=(g=g.setProgress(1,u,1,[u])).set(h)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(u,h){return u.__proto__=h||o.prototype,u},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(u,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"}}(u)){case"string":return this.then(n).then(function(f){return this.set({src:s("div",{innerHTML:u,dompurify:f})})});case"element":return this.set({src:u});case"canvas":return this.set({canvas:u});case"img":return this.set({img:u});default:return this.error("Unknown source type.")}})},o.prototype.to=function(u){switch(u){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 u={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 N=g.nodeType===3?document.createTextNode(g.nodeValue):g.cloneNode(!1),S=g.firstChild;S;S=S.nextSibling)v!==!0&&S.nodeType===1&&S.nodeName==="SCRIPT"||N.appendChild(f(S,v));return g.nodeType===1&&(g.nodeName==="CANVAS"?(N.width=g.width,N.height=g.height,N.getContext("2d").drawImage(g,0,0)):g.nodeName!=="TEXTAREA"&&g.nodeName!=="SELECT"||(N.value=g.value),N.addEventListener("load",function(){N.scrollTop=g.scrollTop,N.scrollLeft=g.scrollLeft},!0)),N}(this.prop.src,this.opt.html2canvas.javascriptEnabled);h.tagName==="BODY"&&(u.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:u}),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 u=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(u).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 u=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(u).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,N=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 N.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 S=0;S<g.length;++S){var p=g[S],M=p.src.find(function(I){return I.format==="truetype"});M&&f.addFont(M.url,p.ref.name,p.ref.style)}return N.windowHeight=N.windowHeight||0,N.windowHeight=N.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):N.windowHeight,f.context2d.save(!0),h(this.prop.container,N)}).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 u=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=u})},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(u,h,f){return(f=f||"pdf").toLowerCase()==="img"||f.toLowerCase()==="image"?this.outputImg(u,h):this.outputPdf(u,h)},o.prototype.outputPdf=function(u,h){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(u,h)})},o.prototype.outputImg=function(u){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(u){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 "'+u+'" is not supported.'}})},o.prototype.save=function(u){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(u?{filename:u}: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(u){if(a(u)!=="object")return this;var h=Object.keys(u||{}).map(function(f){if(f in o.template.prop)return function(){this.prop[f]=u[f]};switch(f){case"margin":return this.setMargin.bind(this,u.margin);case"jsPDF":return function(){return this.opt.jsPDF=u.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,u.pageSize);default:return function(){this.opt[f]=u[f]}}},this);return this.then(function(){return this.thenList(h)})},o.prototype.get=function(u,h){return this.then(function(){var f=u in o.template.prop?this.prop[u]:this.opt[u];return h?h(f):f})},o.prototype.setMargin=function(u){return this.then(function(){switch(a(u)){case"number":u=[u,u,u,u];case"array":if(u.length===2&&(u=[u[0],u[1],u[0],u[1]]),u.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=u}).then(this.setPageSize)},o.prototype.setPageSize=function(u){function h(f,g){return Math.floor(f*g/72*96)}return this.then(function(){(u=u||zt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(u.inner={width:u.width-this.opt.margin[1]-this.opt.margin[3],height:u.height-this.opt.margin[0]-this.opt.margin[2]},u.inner.px={width:h(u.inner.width,u.k),height:h(u.inner.height,u.k)},u.inner.ratio=u.inner.height/u.inner.width),this.prop.pageSize=u})},o.prototype.setProgress=function(u,h,f,g){return u!=null&&(this.progress.val=u),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(u,h,f,g){return this.setProgress(u?this.progress.val+u:null,h||null,f?this.progress.n+f:null,g?this.progress.stack.concat(g):null)},o.prototype.then=function(u,h){var f=this;return this.thenCore(u,h,function(g,v){return f.updateProgress(null,null,1,[g]),Promise.prototype.then.call(this,function(N){return f.updateProgress(null,g),N}).then(g,v).then(function(N){return f.updateProgress(1),N})})},o.prototype.thenCore=function(u,h,f){f=f||Promise.prototype.then,u&&(u=u.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,u,h);return o.convert(v,this.__proto__)},o.prototype.thenExternal=function(u,h){return Promise.prototype.then.call(this,u,h)},o.prototype.thenList=function(u){var h=this;return u.forEach(function(f){h=h.thenCore(f)}),h},o.prototype.catch=function(u){u&&(u=u.bind(this));var h=Promise.prototype.catch.call(this,u);return o.convert(h,this)},o.prototype.catchExternal=function(u){return Promise.prototype.catch.call(this,u)},o.prototype.error=function(u){return this.then(function(){throw new Error(u)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,zt.getPageSize=function(u,h,f){if(de(u)==="object"){var g=u;u=g.orientation,h=g.unit||h,f=g.format||f}h=h||"mm",f=f||"a4",u=(""+(u||"P")).toLowerCase();var v,N=(""+f).toLowerCase(),S={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,M=0,I=0;if(S.hasOwnProperty(N))M=S[N][1]/v,I=S[N][0]/v;else try{M=f[1],I=f[0]}catch{throw new Error("Invalid format: "+f)}if(u==="p"||u==="portrait")u="p",I>M&&(p=I,I=M,M=p);else{if(u!=="l"&&u!=="landscape")throw"Invalid orientation: "+u;u="l",M>I&&(p=I,I=M,M=p)}return{width:I,height:M,unit:h,k:v,orientation:u}},r.html=function(u,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(zs):null;var f=new o(h);return h.worker?f:f.from(u).doCallback()}}(zt.API),zt.API.addJS=function(r){return Uc=r,this.internal.events.subscribe("postPutResources",function(){co=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(co+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),zc=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Uc+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){co!==void 0&&zc!==void 0&&this.internal.out("/Names <</JavaScript "+co+" 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 u=s[o],h=a.exec(u);if(h!=null){var f=h[1];n.internal.newObjectDeferredBegin(f,!1)}n.internal.write(u)}if(this.outline.createNamedDestinations){var g=this.internal.pages.length,v=[];for(o=0;o<g;o++){var N=n.internal.newObject();v.push(N);var S=n.internal.getPageInfo(o+1);n.internal.write("<< /D["+S.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 u={title:s,options:o,children:[]};return a==null&&(a=this.root),a.children.push(u),u},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 u=a.children[o];this.objStart(u),this.line("/Title "+this.makeString(u.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])),u.children.length>0&&(this.line("/First "+this.makeRef(u.children[0])),this.line("/Last "+this.makeRef(u.children[u.children.length-1])));var h=this.count=this.count_r({count:0},u);if(h>0&&this.line("/Count "+h),u.options&&u.options.pageNumber){var f=n.internal.getPageInfo(u.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
`},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
`+a.id+` 0 obj\r
<<\r
`},n.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},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}}])}(zt.API),function(r){var e=[192,193,194,195,196,197,198,199];r.processJPEG=function(n,a,s,o,u,h){var f,g=this.decode.DCT_DECODE,v=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=u||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,(f=function(N){for(var S,p=256*N.charCodeAt(4)+N.charCodeAt(5),M=N.length,I={width:0,height:0,numcomponents:1},B=4;B<M;B+=2){if(B+=p,e.indexOf(N.charCodeAt(B+1))!==-1){S=256*N.charCodeAt(B+5)+N.charCodeAt(B+6),I={width:256*N.charCodeAt(B+7)+N.charCodeAt(B+8),height:S,numcomponents:N.charCodeAt(B+9)};break}p=256*N.charCodeAt(B+2)+N.charCodeAt(B+3)}return I}(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}}(zt.API);var ki,uo,Hc,Wc,Vc,a1=function(){var r,e,n;function a(o){var u,h,f,g,v,N,S,p,M,I,B,_,O,J;for(this.data=o,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},N=null;;){switch(u=this.readUInt32(),M=function(){var ot,ut;for(ut=[],ot=0;ot<4;++ot)ut.push(String.fromCharCode(this.data[this.pos++]));return ut}.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(u);break;case"fcTL":N&&this.animation.frames.push(N),this.pos+=4,N={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},v=this.readUInt16(),g=this.readUInt16()||100,N.delay=1e3*v/g,N.disposeOp=this.data[this.pos++],N.blendOp=this.data[this.pos++],N.data=[];break;case"IDAT":case"fdAT":for(M==="fdAT"&&(this.pos+=4,u-=4),o=(N!=null?N.data:void 0)||this.imgData,_=0;0<=u?_<u:_>u;0<=u?++_:--_)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(u),this.transparency.indexed.length>f)throw new Error("More transparent colors than palette size");if((I=f-this.transparency.indexed.length)>0)for(O=0;0<=I?O<I:O>I;0<=I?++O:--O)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(u)[0];break;case 2:this.transparency.rgb=this.read(u)}break;case"tEXt":S=(B=this.read(u)).indexOf(0),p=String.fromCharCode.apply(String,B.slice(0,S)),this.text[p]=String.fromCharCode.apply(String,B.slice(S+1));break;case"IEND":return N&&this.animation.frames.push(N),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(J=this.colorType)===4||J===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+=u}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}a.prototype.read=function(o){var u,h;for(h=[],u=0;0<=o?u<o:u>o;0<=o?++u:--u)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 u=this.pixelBitlength/8,h=new Uint8Array(this.width*this.height*u),f=0,g=this;if(o==null&&(o=this.imgData),o.length===0)return new Uint8Array(0);function v(N,S,p,M){var I,B,_,O,J,ot,ut,wt,tt,R,gt,dt,F,P,z,q,at,nt,lt,Z,ft,ht=Math.ceil((g.width-N)/p),kt=Math.ceil((g.height-S)/M),A=g.width==ht&&g.height==kt;for(P=u*ht,dt=A?h:new Uint8Array(P*kt),ot=o.length,F=0,B=0;F<kt&&f<ot;){switch(o[f++]){case 0:for(O=at=0;at<P;O=at+=1)dt[B++]=o[f++];break;case 1:for(O=nt=0;nt<P;O=nt+=1)I=o[f++],J=O<u?0:dt[B-u],dt[B++]=(I+J)%256;break;case 2:for(O=lt=0;lt<P;O=lt+=1)I=o[f++],_=(O-O%u)/u,z=F&&dt[(F-1)*P+_*u+O%u],dt[B++]=(z+I)%256;break;case 3:for(O=Z=0;Z<P;O=Z+=1)I=o[f++],_=(O-O%u)/u,J=O<u?0:dt[B-u],z=F&&dt[(F-1)*P+_*u+O%u],dt[B++]=(I+Math.floor((J+z)/2))%256;break;case 4:for(O=ft=0;ft<P;O=ft+=1)I=o[f++],_=(O-O%u)/u,J=O<u?0:dt[B-u],F===0?z=q=0:(z=dt[(F-1)*P+_*u+O%u],q=_&&dt[(F-1)*P+(_-1)*u+O%u]),ut=J+z-q,wt=Math.abs(ut-J),R=Math.abs(ut-z),gt=Math.abs(ut-q),tt=wt<=R&&wt<=gt?J:R<=gt?z:q,dt[B++]=(I+tt)%256;break;default:throw new Error("Invalid filter algorithm: "+o[f-1])}if(!A){var j=((S+F*M)*g.width+N)*u,E=F*P;for(O=0;O<ht;O+=1){for(var W=0;W<u;W+=1)h[j++]=dt[E++];j+=(p-1)*u}}F++}}return o=Rl(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,u,h,f,g,v,N,S,p;for(h=this.palette,v=this.transparency.indexed||[],g=new Uint8Array((v.length||0)+h.length),f=0,o=0,u=N=0,S=h.length;N<S;u=N+=3)g[f++]=h[u],g[f++]=h[u+1],g[f++]=h[u+2],g[f++]=(p=v[o++])!=null?p:255;return g},a.prototype.copyToImageData=function(o,u){var h,f,g,v,N,S,p,M,I,B,_;if(f=this.colors,I=null,h=this.hasAlphaChannel,this.palette.length&&(I=(_=this._decodedPalette)!=null?_:this._decodedPalette=this.decodePalette(),f=4,h=!0),M=(g=o.data||o).length,N=I||u,v=S=0,f===1)for(;v<M;)p=I?4*u[v/4]:S,B=N[p++],g[v++]=B,g[v++]=B,g[v++]=B,g[v++]=h?N[p++]:255,S=p;else for(;v<M;)p=I?4*u[v/4]:S,g[v++]=N[p++],g[v++]=N[p++],g[v++]=N[p++],g[v++]=h?N[p++]:255,S=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(Ht)==="[object Window]"){try{e=Ht.document.createElement("canvas"),n=e.getContext("2d")}catch{return!1}return!0}return!1};return s(),r=function(o){var u;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),(u=new Image).src=e.toDataURL(),u;throw new Error("This method requires a Browser with Canvas-capability.")},a.prototype.decodeFrames=function(o){var u,h,f,g,v,N,S,p;if(this.animation){for(p=[],h=v=0,N=(S=this.animation.frames).length;v<N;h=++v)u=S[h],f=o.createImageData(u.width,u.height),g=this.decodePixels(new Uint8Array(u.data)),this.copyToImageData(f,g),u.imageData=f,p.push(u.image=r(f));return p}},a.prototype.renderFrame=function(o,u){var h,f,g;return h=(f=this.animation.frames)[u],g=f[u-1],u===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 u,h,f,g,v,N,S=this;return h=0,N=this.animation,g=N.numFrames,f=N.frames,v=N.numPlays,(u=function(){var p,M;if(p=h++%g,M=f[p],S.renderFrame(o,p),g>1&&h/g<v)return S.animation._timeout=setTimeout(u,M.delay)})()},a.prototype.stopAnimation=function(){var o;return clearTimeout((o=this.animation)!=null?o._timeout:void 0)},a.prototype.render=function(o){var u,h;return o._png&&o._png.stopAnimation(),o._png=this,o.width=this.width,o.height=this.height,u=o.getContext("2d"),this.animation?(this.decodeFrames(u),this.animate(u)):(h=u.createImageData(this.width,this.height),this.copyToImageData(h,this.decodePixels()),u.putImageData(h,0,0))},a}();/**
 * @license
 *
 * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * ====================================================================
 *//**
 * @license
 * (c) Dean McNamee <dean@gmail.com>, 2013.
 *
 * https://github.com/deanm/omggif
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to
 * deal in the Software without restriction, including without limitation the
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 * sell copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 *
 * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
 * including animation and compression.  It does not rely on any specific
 * underlying system, so should run in the browser, Node, or Plask.
 */function o1(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.");var n=r[e++]|r[e++]<<8,a=r[e++]|r[e++]<<8,s=r[e++],o=s>>7,u=1<<(7&s)+1;r[e++],r[e++];var h=null,f=null;o&&(h=e,f=u,e+=3*u);var g=!0,v=[],N=0,S=null,p=0,M=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,M=r[e++]|r[e++]<<8,e++;else for(e+=12;;){if(!((F=r[e++])>=0))throw Error("Invalid block size");if(F===0)break;e+=F}break;case 249:if(r[e++]!==4||r[e+4]!==0)throw new Error("Invalid graphics extension block.");var I=r[e++];N=r[e++]|r[e++]<<8,S=r[e++],(1&I)==0&&(S=null),p=I>>2&7,e++;break;case 254:for(;;){if(!((F=r[e++])>=0))throw Error("Invalid block size");if(F===0)break;e+=F}break;default:throw new Error("Unknown graphic control label: 0x"+r[e-1].toString(16))}break;case 44:var B=r[e++]|r[e++]<<8,_=r[e++]|r[e++]<<8,O=r[e++]|r[e++]<<8,J=r[e++]|r[e++]<<8,ot=r[e++],ut=ot>>6&1,wt=1<<(7&ot)+1,tt=h,R=f,gt=!1;ot>>7&&(gt=!0,tt=e,R=wt,e+=3*wt);var dt=e;for(e++;;){var F;if(!((F=r[e++])>=0))throw Error("Invalid block size");if(F===0)break;e+=F}v.push({x:B,y:_,width:O,height:J,has_local_palette:gt,palette_offset:tt,palette_size:R,data_offset:dt,data_length:e-dt,transparent_index:S,interlaced:!!ut,delay:N,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 M},this.frameInfo=function(P){if(P<0||P>=v.length)throw new Error("Frame index out of range.");return v[P]},this.decodeAndBlitFrameBGRA=function(P,z){var q=this.frameInfo(P),at=q.width*q.height,nt=new Uint8Array(at);Gc(r,q.data_offset,nt,at);var lt=q.palette_offset,Z=q.transparent_index;Z===null&&(Z=256);var ft=q.width,ht=n-ft,kt=ft,A=4*(q.y*n+q.x),j=4*((q.y+q.height)*n+q.x),E=A,W=4*ht;q.interlaced===!0&&(W+=4*n*7);for(var Y=8,Q=0,et=nt.length;Q<et;++Q){var rt=nt[Q];if(kt===0&&(kt=ft,(E+=W)>=j&&(W=4*ht+4*n*(Y-1),E=A+(ft+ht)*(Y<<1),Y>>=1)),rt===Z)E+=4;else{var Lt=r[lt+3*rt],Nt=r[lt+3*rt+1],Ct=r[lt+3*rt+2];z[E++]=Ct,z[E++]=Nt,z[E++]=Lt,z[E++]=255}--kt}},this.decodeAndBlitFrameRGBA=function(P,z){var q=this.frameInfo(P),at=q.width*q.height,nt=new Uint8Array(at);Gc(r,q.data_offset,nt,at);var lt=q.palette_offset,Z=q.transparent_index;Z===null&&(Z=256);var ft=q.width,ht=n-ft,kt=ft,A=4*(q.y*n+q.x),j=4*((q.y+q.height)*n+q.x),E=A,W=4*ht;q.interlaced===!0&&(W+=4*n*7);for(var Y=8,Q=0,et=nt.length;Q<et;++Q){var rt=nt[Q];if(kt===0&&(kt=ft,(E+=W)>=j&&(W=4*ht+4*n*(Y-1),E=A+(ft+ht)*(Y<<1),Y>>=1)),rt===Z)E+=4;else{var Lt=r[lt+3*rt],Nt=r[lt+3*rt+1],Ct=r[lt+3*rt+2];z[E++]=Lt,z[E++]=Nt,z[E++]=Ct,z[E++]=255}--kt}}}function Gc(r,e,n,a){for(var s=r[e++],o=1<<s,u=o+1,h=u+1,f=s+1,g=(1<<f)-1,v=0,N=0,S=0,p=r[e++],M=new Int32Array(4096),I=null;;){for(;v<16&&p!==0;)N|=r[e++]<<v,v+=8,p===1?p=r[e++]:--p;if(v<f)break;var B=N&g;if(N>>=f,v-=f,B!==o){if(B===u)break;for(var _=B<h?B:I,O=0,J=_;J>o;)J=M[J]>>8,++O;var ot=J;if(S+O+(_!==B?1:0)>a)return void be.log("Warning, gif stream longer than expected.");n[S++]=ot;var ut=S+=O;for(_!==B&&(n[S++]=ot),J=_;O--;)J=M[J],n[--ut]=255&J,J>>=8;I!==null&&h<4096&&(M[h++]=I<<8|ot,h>=g+1&&f<12&&(++f,g=g<<1|1)),I=B}else h=u+1,g=(1<<(f=s+1))-1,I=null}return S!==a&&be.log("Warning, gif stream shorter than expected."),n}/**
 * @license
  Copyright (c) 2008, Adobe Systems Incorporated
  All rights reserved.

  Redistribution and use in source and binary forms, with or without 
  modification, are permitted provided that the following conditions are
  met:

  * Redistributions of source code must retain the above copyright notice, 
    this list of conditions and the following disclaimer.
  
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the 
    documentation and/or other materials provided with the distribution.
  
  * Neither the name of Adobe Systems Incorporated nor the names of its 
    contributors may be used to endorse or promote products derived from 
    this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function Ps(r){var e,n,a,s,o,u=Math.floor,h=new Array(64),f=new Array(64),g=new Array(64),v=new Array(64),N=new Array(65535),S=new Array(65535),p=new Array(64),M=new Array(64),I=[],B=0,_=7,O=new Array(64),J=new Array(64),ot=new Array(64),ut=new Array(256),wt=new Array(2048),tt=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],R=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],gt=[0,1,2,3,4,5,6,7,8,9,10,11],dt=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],F=[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],P=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],z=[0,1,2,3,4,5,6,7,8,9,10,11],q=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],at=[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 nt(A,j){for(var E=0,W=0,Y=new Array,Q=1;Q<=16;Q++){for(var et=1;et<=A[Q];et++)Y[j[W]]=[],Y[j[W]][0]=E,Y[j[W]][1]=Q,W++,E++;E*=2}return Y}function lt(A){for(var j=A[0],E=A[1]-1;E>=0;)j&1<<E&&(B|=1<<_),E--,--_<0&&(B==255?(Z(255),Z(0)):Z(B),_=7,B=0)}function Z(A){I.push(A)}function ft(A){Z(A>>8&255),Z(255&A)}function ht(A,j,E,W,Y){for(var Q,et=Y[0],rt=Y[240],Lt=function(At,xt){var It,Pt,Dt,Gt,Zt,te,ae,pe,Wt,ee,Ft=0;for(Wt=0;Wt<8;++Wt){It=At[Ft],Pt=At[Ft+1],Dt=At[Ft+2],Gt=At[Ft+3],Zt=At[Ft+4],te=At[Ft+5],ae=At[Ft+6];var Ye=It+(pe=At[Ft+7]),se=It-pe,xn=Pt+ae,me=Pt-ae,Ne=Dt+te,Hn=Dt-te,ue=Gt+Zt,qr=Gt-Zt,xe=Ye+ue,_n=Ye-ue,rr=xn+Ne,_e=xn-Ne;At[Ft]=xe+rr,At[Ft+4]=xe-rr;var Yt=.707106781*(_e+_n);At[Ft+2]=_n+Yt,At[Ft+6]=_n-Yt;var le=.382683433*((xe=qr+Hn)-(_e=me+se)),Rr=.5411961*xe+le,Ve=1.306562965*_e+le,Wn=.707106781*(rr=Hn+me),Vn=se+Wn,Tt=se-Wn;At[Ft+5]=Tt+Rr,At[Ft+3]=Tt-Rr,At[Ft+1]=Vn+Ve,At[Ft+7]=Vn-Ve,Ft+=8}for(Ft=0,Wt=0;Wt<8;++Wt){It=At[Ft],Pt=At[Ft+8],Dt=At[Ft+16],Gt=At[Ft+24],Zt=At[Ft+32],te=At[Ft+40],ae=At[Ft+48];var Sn=It+(pe=At[Ft+56]),Gn=It-pe,an=Pt+ae,qe=Pt-ae,Me=Dt+te,fn=Dt-te,Qr=Gt+Zt,ir=Gt-Zt,Pn=Sn+Qr,kn=Sn-Qr,In=an+Me,Yn=an-Me;At[Ft]=Pn+In,At[Ft+32]=Pn-In;var bn=.707106781*(Yn+kn);At[Ft+16]=kn+bn,At[Ft+48]=kn-bn;var Jn=.382683433*((Pn=ir+fn)-(Yn=qe+Gn)),Tr=.5411961*Pn+Jn,ti=1.306562965*Yn+Jn,ei=.707106781*(In=fn+qe),ni=Gn+ei,ri=Gn-ei;At[Ft+40]=ri+Tr,At[Ft+24]=ri-Tr,At[Ft+8]=ni+ti,At[Ft+56]=ni-ti,Ft++}for(Wt=0;Wt<64;++Wt)ee=At[Wt]*xt[Wt],p[Wt]=ee>0?ee+.5|0:ee-.5|0;return p}(A,j),Nt=0;Nt<64;++Nt)M[tt[Nt]]=Lt[Nt];var Ct=M[0]-E;E=M[0],Ct==0?lt(W[0]):(lt(W[S[Q=32767+Ct]]),lt(N[Q]));for(var Mt=63;Mt>0&&M[Mt]==0;)Mt--;if(Mt==0)return lt(et),E;for(var Ut,ct=1;ct<=Mt;){for(var D=ct;M[ct]==0&&ct<=Mt;)++ct;var Xt=ct-D;if(Xt>=16){Ut=Xt>>4;for(var Et=1;Et<=Ut;++Et)lt(rt);Xt&=15}Q=32767+M[ct],lt(Y[(Xt<<4)+S[Q]]),lt(N[Q]),ct++}return Mt!=63&&lt(et),E}function kt(A){A=Math.min(Math.max(A,1),100),o!=A&&(function(j){for(var E=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],W=0;W<64;W++){var Y=u((E[W]*j+50)/100);Y=Math.min(Math.max(Y,1),255),h[tt[W]]=Y}for(var Q=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],et=0;et<64;et++){var rt=u((Q[et]*j+50)/100);rt=Math.min(Math.max(rt,1),255),f[tt[et]]=rt}for(var Lt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Nt=0,Ct=0;Ct<8;Ct++)for(var Mt=0;Mt<8;Mt++)g[Nt]=1/(h[tt[Nt]]*Lt[Ct]*Lt[Mt]*8),v[Nt]=1/(f[tt[Nt]]*Lt[Ct]*Lt[Mt]*8),Nt++}(A<50?Math.floor(5e3/A):Math.floor(200-2*A)),o=A)}this.encode=function(A,j){j&&kt(j),I=new Array,B=0,_=7,ft(65496),ft(65504),ft(16),Z(74),Z(70),Z(73),Z(70),Z(0),Z(1),Z(1),Z(0),ft(1),ft(1),Z(0),Z(0),function(){ft(65499),ft(132),Z(0);for(var Pt=0;Pt<64;Pt++)Z(h[Pt]);Z(1);for(var Dt=0;Dt<64;Dt++)Z(f[Dt])}(),function(Pt,Dt){ft(65472),ft(17),Z(8),ft(Dt),ft(Pt),Z(3),Z(1),Z(17),Z(0),Z(2),Z(17),Z(1),Z(3),Z(17),Z(1)}(A.width,A.height),function(){ft(65476),ft(418),Z(0);for(var Pt=0;Pt<16;Pt++)Z(R[Pt+1]);for(var Dt=0;Dt<=11;Dt++)Z(gt[Dt]);Z(16);for(var Gt=0;Gt<16;Gt++)Z(dt[Gt+1]);for(var Zt=0;Zt<=161;Zt++)Z(F[Zt]);Z(1);for(var te=0;te<16;te++)Z(P[te+1]);for(var ae=0;ae<=11;ae++)Z(z[ae]);Z(17);for(var pe=0;pe<16;pe++)Z(q[pe+1]);for(var Wt=0;Wt<=161;Wt++)Z(at[Wt])}(),ft(65498),ft(12),Z(3),Z(1),Z(0),Z(2),Z(17),Z(3),Z(17),Z(0),Z(63),Z(0);var E=0,W=0,Y=0;B=0,_=7,this.encode.displayName="_encode_";for(var Q,et,rt,Lt,Nt,Ct,Mt,Ut,ct,D=A.data,Xt=A.width,Et=A.height,At=4*Xt,xt=0;xt<Et;){for(Q=0;Q<At;){for(Nt=At*xt+Q,Mt=-1,Ut=0,ct=0;ct<64;ct++)Ct=Nt+(Ut=ct>>3)*At+(Mt=4*(7&ct)),xt+Ut>=Et&&(Ct-=At*(xt+1+Ut-Et)),Q+Mt>=At&&(Ct-=Q+Mt-At+4),et=D[Ct++],rt=D[Ct++],Lt=D[Ct++],O[ct]=(wt[et]+wt[rt+256>>0]+wt[Lt+512>>0]>>16)-128,J[ct]=(wt[et+768>>0]+wt[rt+1024>>0]+wt[Lt+1280>>0]>>16)-128,ot[ct]=(wt[et+1280>>0]+wt[rt+1536>>0]+wt[Lt+1792>>0]>>16)-128;E=ht(O,g,E,e,a),W=ht(J,v,W,n,s),Y=ht(ot,v,Y,n,s),Q+=32}xt+=8}if(_>=0){var It=[];It[1]=_+1,It[0]=(1<<_+1)-1,lt(It)}return ft(65497),new Uint8Array(I)},r=r||50,function(){for(var A=String.fromCharCode,j=0;j<256;j++)ut[j]=A(j)}(),e=nt(R,gt),n=nt(P,z),a=nt(dt,F),s=nt(q,at),function(){for(var A=1,j=2,E=1;E<=15;E++){for(var W=A;W<j;W++)S[32767+W]=E,N[32767+W]=[],N[32767+W][1]=E,N[32767+W][0]=W;for(var Y=-(j-1);Y<=-A;Y++)S[32767+Y]=E,N[32767+Y]=[],N[32767+Y][1]=E,N[32767+Y][0]=j-1+Y;A<<=1,j<<=1}}(),function(){for(var A=0;A<256;A++)wt[A]=19595*A,wt[A+256>>0]=38470*A,wt[A+512>>0]=7471*A+32768,wt[A+768>>0]=-11059*A,wt[A+1024>>0]=-21709*A,wt[A+1280>>0]=32768*A+8421375,wt[A+1536>>0]=-27439*A,wt[A+1792>>0]=-5329*A}(),kt(r)}/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */function Tn(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 Yc(r){function e(R){if(!R)throw Error("assert :P")}function n(R,gt,dt){for(var F=0;4>F;F++)if(R[gt+F]!=dt.charCodeAt(F))return!0;return!1}function a(R,gt,dt,F,P){for(var z=0;z<P;z++)R[gt+z]=dt[F+z]}function s(R,gt,dt,F){for(var P=0;P<F;P++)R[gt+P]=dt}function o(R){return new Int32Array(R)}function u(R,gt){for(var dt=[],F=0;F<R;F++)dt.push(new gt);return dt}function h(R,gt){var dt=[];return function F(P,z,q){for(var at=q[z],nt=0;nt<at&&(P.push(q.length>z+1?[]:new gt),!(q.length<z+1));nt++)F(P[nt],z+1,q)}(dt,0,R),dt}var f=function(){var R=this;function gt(t,i){for(var l=1<<i-1>>>0;t&l;)l>>>=1;return l?(t&l-1)+l:t}function dt(t,i,l,d,m){e(!(d%l));do t[i+(d-=l)]=m;while(0<d)}function F(t,i,l,d,m){if(e(2328>=m),512>=m)var w=o(512);else if((w=o(m))==null)return 0;return function(y,L,x,k,U,$){var K,G,vt=L,it=1<<x,H=o(16),V=o(16);for(e(U!=0),e(k!=null),e(y!=null),e(0<x),G=0;G<U;++G){if(15<k[G])return 0;++H[k[G]]}if(H[0]==U)return 0;for(V[1]=0,K=1;15>K;++K){if(H[K]>1<<K)return 0;V[K+1]=V[K]+H[K]}for(G=0;G<U;++G)K=k[G],0<k[G]&&($[V[K]++]=G);if(V[15]==1)return(k=new P).g=0,k.value=$[0],dt(y,vt,1,it,k),it;var pt,bt=-1,mt=it-1,Ot=0,_t=1,Rt=1,St=1<<x;for(G=0,K=1,U=2;K<=x;++K,U<<=1){if(_t+=Rt<<=1,0>(Rt-=H[K]))return 0;for(;0<H[K];--H[K])(k=new P).g=K,k.value=$[G++],dt(y,vt+Ot,U,St,k),Ot=gt(Ot,K)}for(K=x+1,U=2;15>=K;++K,U<<=1){if(_t+=Rt<<=1,0>(Rt-=H[K]))return 0;for(;0<H[K];--H[K]){if(k=new P,(Ot&mt)!=bt){for(vt+=St,pt=1<<(bt=K)-x;15>bt&&!(0>=(pt-=H[bt]));)++bt,pt<<=1;it+=St=1<<(pt=bt-x),y[L+(bt=Ot&mt)].g=pt+x,y[L+bt].value=vt-L-bt}k.g=K-x,k.value=$[G++],dt(y,vt+(Ot>>x),U,St,k),Ot=gt(Ot,K)}}return _t!=2*V[15]-1?0:it}(t,i,l,d,m,w)}function P(){this.value=this.g=0}function z(){this.value=this.g=0}function q(){this.G=u(5,P),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=u(sn,z)}function at(t,i,l,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=l,t.Jd=i,t.Yc=l+d,t.Zc=4<=d?l+d-4+1:l,Q(t)}function nt(t,i){for(var l=0;0<i--;)l|=rt(t,128)<<i;return l}function lt(t,i){var l=nt(t,i);return et(t)?-l:l}function Z(t,i,l,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[l+m]<<8*m;t.Ra=w,t.bb=d,t.oa=i,t.pa=l}function ft(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<bi-8>>>0,++t.bb,t.u-=8;E(t)&&(t.h=1,t.u=0)}function ht(t,i){if(e(0<=i),!t.h&&i<=vi){var l=j(t)&mi[i];return t.u+=i,ft(t),l}return t.h=1,t.u=0}function kt(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function A(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function j(t){return t.Ra>>>(t.u&bi-1)>>>0}function E(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>bi}function W(t,i){t.u=i,t.h=E(t)}function Y(t){t.u>=ta&&(e(t.u>=ta),ft(t))}function Q(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 et(t){return nt(t,1)}function rt(t,i){var l=t.Ca;0>t.b&&Q(t);var d=t.b,m=l*i>>>8,w=(t.I>>>d>m)+0;for(w?(l-=m,t.I-=m+1<<d>>>0):l=m+1,d=l,m=0;256<=d;)m+=8,d>>=8;return d=7^m+cn[d],t.b-=d,t.Ca=(l<<d)-1,w}function Lt(t,i,l){t[i+0]=l>>24&255,t[i+1]=l>>16&255,t[i+2]=l>>8&255,t[i+3]=l>>0&255}function Nt(t,i){return t[i+0]<<0|t[i+1]<<8}function Ct(t,i){return Nt(t,i)|t[i+2]<<16}function Mt(t,i){return Nt(t,i)|Nt(t,i+2)<<16}function Ut(t,i){var l=1<<i;return e(t!=null),e(0<i),t.X=o(l),t.X==null?0:(t.Mb=32-i,t.Xa=i,1)}function ct(t,i){e(t!=null),e(i!=null),e(t.Xa==i.Xa),a(i.X,0,t.X,0,1<<i.Xa)}function D(){this.X=[],this.Xa=this.Mb=0}function Xt(t,i,l,d){e(l!=null),e(d!=null);var m=l[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:(l[0]=m,d[0]=w,1)}function Et(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 xt(t,i){R[i]=function(l,d,m,w,y,L,x){var k;for(k=0;k<y;++k){var U=R[t](L[x+k-1],m,w+k);L[x+k]=At(l[d+k],U)}}}function It(){this.ud=this.hd=this.jd=0}function Pt(t,i){return((4278124286&(t^i))>>>1)+(t&i)>>>0}function Dt(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function Gt(t,i){return Dt(t+(t-i+.5>>1))}function Zt(t,i,l){return Math.abs(i-l)-Math.abs(t-l)}function te(t,i,l,d,m,w,y){for(d=w[y-1],l=0;l<m;++l)w[y+l]=d=At(t[i+l],d)}function ae(t,i,l,d,m){var w;for(w=0;w<l;++w){var y=t[i+w],L=y>>8&255,x=16711935&(x=(x=16711935&y)+((L<<16)+L));d[m+w]=(4278255360&y)+x>>>0}}function pe(t,i){i.jd=t>>0&255,i.hd=t>>8&255,i.ud=t>>16&255}function Wt(t,i,l,d,m,w){var y;for(y=0;y<d;++y){var L=i[l+y],x=L>>>8,k=L,U=255&(U=(U=L>>>16)+((t.jd<<24>>24)*(x<<24>>24)>>>5));k=255&(k=(k=k+((t.hd<<24>>24)*(x<<24>>24)>>>5))+((t.ud<<24>>24)*(U<<24>>24)>>>5)),m[w+y]=(4278255360&L)+(U<<16)+k}}function ee(t,i,l,d,m){R[i]=function(w,y,L,x,k,U,$,K,G){for(x=$;x<K;++x)for($=0;$<G;++$)k[U++]=m(L[d(w[y++])])},R[t]=function(w,y,L,x,k,U,$){var K=8>>w.b,G=w.Ea,vt=w.K[0],it=w.w;if(8>K)for(w=(1<<w.b)-1,it=(1<<K)-1;y<L;++y){var H,V=0;for(H=0;H<G;++H)H&w||(V=d(x[k++])),U[$++]=m(vt[V&it]),V>>=K}else R["VP8LMapColor"+l](x,k,vt,it,U,$,y,L,G)}}function Ft(t,i,l,d,m){for(l=i+l;i<l;){var w=t[i++];d[m++]=w>>16&255,d[m++]=w>>8&255,d[m++]=w>>0&255}}function Ye(t,i,l,d,m){for(l=i+l;i<l;){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,l,d,m){for(l=i+l;i<l;){var w=(y=t[i++])>>16&240|y>>12&15,y=y>>0&240|y>>28&15;d[m++]=w,d[m++]=y}}function xn(t,i,l,d,m){for(l=i+l;i<l;){var w=(y=t[i++])>>16&248|y>>13&7,y=y>>5&224|y>>3&31;d[m++]=w,d[m++]=y}}function me(t,i,l,d,m){for(l=i+l;i<l;){var w=t[i++];d[m++]=w>>0&255,d[m++]=w>>8&255,d[m++]=w>>16&255}}function Ne(t,i,l,d,m,w){if(w==0)for(l=i+l;i<l;)Lt(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,l)}function Hn(t,i){R[i][0]=R[t+"0"],R[i][1]=R[t+"1"],R[i][2]=R[t+"2"],R[i][3]=R[t+"3"],R[i][4]=R[t+"4"],R[i][5]=R[t+"5"],R[i][6]=R[t+"6"],R[i][7]=R[t+"7"],R[i][8]=R[t+"8"],R[i][9]=R[t+"9"],R[i][10]=R[t+"10"],R[i][11]=R[t+"11"],R[i][12]=R[t+"12"],R[i][13]=R[t+"13"],R[i][14]=R[t+"0"],R[i][15]=R[t+"0"]}function ue(t){return t==Zo||t==Qo||t==Ga||t==ts}function qr(){this.eb=[],this.size=this.A=this.fb=0}function xe(){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 _n(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new qr,this.f.kb=new xe,this.sd=null}function rr(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function _e(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Yt(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function le(t,i){var l=t.T,d=i.ba.f.RGBA,m=d.eb,w=d.fb+t.ka*d.A,y=Nn[i.ba.S],L=t.y,x=t.O,k=t.f,U=t.N,$=t.ea,K=t.W,G=i.cc,vt=i.dc,it=i.Mc,H=i.Nc,V=t.ka,pt=t.ka+t.T,bt=t.U,mt=bt+1>>1;for(V==0?y(L,x,null,null,k,U,$,K,k,U,$,K,m,w,null,null,bt):(y(i.ec,i.fc,L,x,G,vt,it,H,k,U,$,K,m,w-d.A,m,w,bt),++l);V+2<pt;V+=2)G=k,vt=U,it=$,H=K,U+=t.Rc,K+=t.Rc,w+=2*d.A,y(L,(x+=2*t.fa)-t.fa,L,x,G,vt,it,H,k,U,$,K,m,w-d.A,m,w,bt);return x+=t.fa,t.j+pt<t.o?(a(i.ec,i.fc,L,x,bt),a(i.cc,i.dc,k,U,mt),a(i.Mc,i.Nc,$,K,mt),l--):1&pt||y(L,x,null,null,k,U,$,K,k,U,$,K,m,w+d.A,null,null,bt),l}function Rr(t,i,l){var d=t.F,m=[t.J];if(d!=null){var w=t.U,y=i.ba.S,L=y==Va||y==Ga;i=i.ba.f.RGBA;var x=[0],k=t.ka;x[0]=t.T,t.Kb&&(k==0?--x[0]:(--k,m[0]-=t.width),t.j+t.ka+t.T==t.o&&(x[0]=t.o-t.j-k));var U=i.eb;k=i.fb+k*i.A,t=Ta(d,m[0],t.width,w,x,U,k+(L?0:3),i.A),e(l==x),t&&ue(y)&&xr(U,k,L,w,x,i.A)}return 0}function Ve(t){var i=t.ma,l=i.ba.S,d=11>l,m=l==Ha||l==Wa||l==Va||l==Ko||l==12||ue(l);if(i.memory=null,i.Ib=null,i.Jb=null,i.Nd=null,!Zi(i.Oa,t,m?11:12))return 0;if(m&&ue(l)&&yt(),t.da)alert("todo:use_scaling");else{if(d){if(i.Ib=Yt,t.Kb){if(l=t.U+1>>1,i.memory=o(t.U+2*l),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+l,i.Ib=le,yt()}}else alert("todo:EmitYUV");m&&(i.Jb=Rr,d&&X())}if(d&&!sc){for(t=0;256>t;++t)Du[t]=89858*(t-128)+Ja>>Ya,Tu[t]=-22014*(t-128)+Ja,Ru[t]=-45773*(t-128),qu[t]=113618*(t-128)+Ja>>Ya;for(t=oa;t<rs;++t)i=76283*(t-16)+Ja>>Ya,zu[t-oa]=dn(i,255),Uu[t-oa]=dn(i+8>>4,15);sc=1}return 1}function Wn(t){var i=t.ma,l=t.U,d=t.T;return e(!(1&t.ka)),0>=l||0>=d?0:(l=i.Ib(t,i),i.Jb!=null&&i.Jb(t,i,l),i.Dc+=l,1)}function Vn(t){t.ma.memory=null}function Tt(t,i,l,d){return ht(t,8)!=47?0:(i[0]=ht(t,14)+1,l[0]=ht(t,14)+1,d[0]=ht(t,1),ht(t,3)!=0?0:!t.h)}function Sn(t,i){if(4>t)return t+1;var l=t-2>>1;return(2+(1&t)<<l)+ht(i,l)+1}function Gn(t,i){return 120<i?i-120:1<=(l=((l=Lu[i-1])>>4)*t+(8-(15&l)))?l:1;var l}function an(t,i,l){var d=j(l),m=t[i+=255&d].g-8;return 0<m&&(W(l,l.u+8),d=j(l),i+=t[i].value,i+=d&(1<<m)-1),W(l,l.u+t[i].g),t[i].value}function qe(t,i,l){return l.g+=t.g,l.value+=t.value<<i>>>0,e(8>=l.g),t.g}function Me(t,i,l){var d=t.xc;return e((i=d==0?0:t.vc[t.md*(l>>d)+(i>>d)])<t.Wb),t.Ya[i]}function fn(t,i,l,d){var m=t.ab,w=t.c*i,y=t.C;i=y+i;var L=l,x=d;for(d=t.Ta,l=t.Ua;0<m--;){var k=t.gc[m],U=y,$=i,K=L,G=x,vt=(x=d,L=l,k.Ea);switch(e(U<$),e($<=k.nc),k.hc){case 2:Ra(K,G,($-U)*vt,x,L);break;case 0:var it=U,H=$,V=x,pt=L,bt=(St=k).Ea;it==0&&(Yo(K,G,null,null,1,V,pt),te(K,G+1,0,0,bt-1,V,pt+1),G+=bt,pt+=bt,++it);for(var mt=1<<St.b,Ot=mt-1,_t=Et(bt,St.b),Rt=St.K,St=St.w+(it>>St.b)*_t;it<H;){var ce=Rt,he=St,oe=1;for(ea(K,G,V,pt-bt,1,V,pt);oe<bt;){var re=(oe&~Ot)+mt;re>bt&&(re=bt),(0,yr[ce[he++]>>8&15])(K,G+ +oe,V,pt+oe-bt,re-oe,V,pt+oe),oe=re}G+=bt,pt+=bt,++it&Ot||(St+=_t)}$!=k.nc&&a(x,L-vt,x,L+($-U-1)*vt,vt);break;case 1:for(vt=K,H=G,bt=(K=k.Ea)-(pt=K&~(V=(G=1<<k.b)-1)),it=Et(K,k.b),mt=k.K,k=k.w+(U>>k.b)*it;U<$;){for(Ot=mt,_t=k,Rt=new It,St=H+pt,ce=H+K;H<St;)pe(Ot[_t++],Rt),wn(Rt,vt,H,G,x,L),H+=G,L+=G;H<ce&&(pe(Ot[_t++],Rt),wn(Rt,vt,H,bt,x,L),H+=bt,L+=bt),++U&V||(k+=it)}break;case 3:if(K==x&&G==L&&0<k.b){for(H=x,K=vt=L+($-U)*vt-(pt=($-U)*Et(k.Ea,k.b)),G=x,V=L,it=[],pt=(bt=pt)-1;0<=pt;--pt)it[pt]=G[V+pt];for(pt=bt-1;0<=pt;--pt)H[K+pt]=it[pt];On(k,U,$,x,vt,x,L)}else On(k,U,$,K,G,x,L)}L=d,x=l}x!=l&&a(d,l,L,x,w)}function Qr(t,i){var l=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,y=t.Ta,L=t.Ua,x=w.width;if(fn(t,m,l,d),m=L=[L],e((l=t.C)<(d=i)),e(w.v<w.va),d>w.o&&(d=w.o),l<w.j){var k=w.j-l;l=w.j,m[0]+=k*x}if(l>=d?l=0:(m[0]+=4*w.v,w.ka=l-w.j,w.U=w.va-w.v,w.T=d-l,l=1),l){if(L=L[0],11>(l=t.ca).S){var U=l.f.RGBA,$=(d=l.S,m=w.U,w=w.T,k=U.eb,U.A),K=w;for(U=U.fb+t.Ma*U.A;0<K--;){var G=y,vt=L,it=m,H=k,V=U;switch(d){case Ua:Mn(G,vt,it,H,V);break;case Ha:Ar(G,vt,it,H,V);break;case Zo:Ar(G,vt,it,H,V),xr(H,V,0,it,1,0);break;case Ks:wi(G,vt,it,H,V);break;case Wa:Ne(G,vt,it,H,V,1);break;case Qo:Ne(G,vt,it,H,V,1),xr(H,V,0,it,1,0);break;case Va:Ne(G,vt,it,H,V,0);break;case Ga:Ne(G,vt,it,H,V,0),xr(H,V,1,it,1,0);break;case Ko:$n(G,vt,it,H,V);break;case ts:$n(G,vt,it,H,V),Ni(H,V,it,1,0);break;case Zs:cr(G,vt,it,H,V);break;default:e(0)}L+=x,U+=$}t.Ma+=w}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=l.height)}}t.C=i,e(t.C<=t.i)}function ir(t){var i;if(0<t.ua)return 0;for(i=0;i<t.Wb;++i){var l=t.Ya[i].G,d=t.Ya[i].H;if(0<l[1][d[1]+0].g||0<l[2][d[2]+0].g||0<l[3][d[3]+0].g)return 0}return 1}function Pn(t,i,l,d,m,w){if(t.Z!=0){var y=t.qd,L=t.rd;for(e(Sr[t.Z]!=null);i<l;++i)Sr[t.Z](y,L,d,m,d,m,w),y=d,L=m,m+=w;t.qd=y,t.rd=L}}function kn(t,i){var l=t.l.ma,d=l.Z==0||l.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=l.ca,y=l.tb+m*d,L=t.V,x=t.Ba+t.c*d,k=t.gc;e(t.ab==1),e(k[0].hc==3),Jo(k[0],d,i,L,x,w,y),Pn(l,d,i,w,y,m)}t.C=t.Ma=i}function In(t,i,l,d,m,w,y){var L=t.$/d,x=t.$%d,k=t.m,U=t.s,$=l+t.$,K=$;m=l+d*m;var G=l+d*w,vt=280+U.ua,it=t.Pb?L:16777216,H=0<U.ua?U.Wa:null,V=U.wc,pt=$<G?Me(U,x,L):null;e(t.C<w),e(G<=m);var bt=!1;t:for(;;){for(;bt||$<G;){var mt=0;if(L>=it){var Ot=$-l;e((it=t).Pb),it.wd=it.m,it.xd=Ot,0<it.s.ua&&ct(it.s.Wa,it.s.vb),it=L+_u}if(x&V||(pt=Me(U,x,L)),e(pt!=null),pt.Qb&&(i[$]=pt.qb,bt=!0),!bt)if(Y(k),pt.jc){mt=k,Ot=i;var _t=$,Rt=pt.pd[j(mt)&sn-1];e(pt.jc),256>Rt.g?(W(mt,mt.u+Rt.g),Ot[_t]=Rt.value,mt=0):(W(mt,mt.u+Rt.g-256),e(256<=Rt.value),mt=Rt.value),mt==0&&(bt=!0)}else mt=an(pt.G[0],pt.H[0],k);if(k.h)break;if(bt||256>mt){if(!bt)if(pt.nd)i[$]=(pt.qb|mt<<8)>>>0;else{if(Y(k),bt=an(pt.G[1],pt.H[1],k),Y(k),Ot=an(pt.G[2],pt.H[2],k),_t=an(pt.G[3],pt.H[3],k),k.h)break;i[$]=(_t<<24|bt<<16|mt<<8|Ot)>>>0}if(bt=!1,++$,++x>=d&&(x=0,++L,y!=null&&L<=w&&!(L%16)&&y(t,L),H!=null))for(;K<$;)mt=i[K++],H.X[(506832829*mt&4294967295)>>>H.Mb]=mt}else if(280>mt){if(mt=Sn(mt-256,k),Ot=an(pt.G[4],pt.H[4],k),Y(k),Ot=Gn(d,Ot=Sn(Ot,k)),k.h)break;if($-l<Ot||m-$<mt)break t;for(_t=0;_t<mt;++_t)i[$+_t]=i[$+_t-Ot];for($+=mt,x+=mt;x>=d;)x-=d,++L,y!=null&&L<=w&&!(L%16)&&y(t,L);if(e($<=m),x&V&&(pt=Me(U,x,L)),H!=null)for(;K<$;)mt=i[K++],H.X[(506832829*mt&4294967295)>>>H.Mb]=mt}else{if(!(mt<vt))break t;for(bt=mt-280,e(H!=null);K<$;)mt=i[K++],H.X[(506832829*mt&4294967295)>>>H.Mb]=mt;mt=$,e(!(bt>>>(Ot=H).Xa)),i[mt]=Ot.X[bt],bt=!0}bt||e(k.h==E(k))}if(t.Pb&&k.h&&$<m)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&ct(t.s.vb,t.s.Wa);else{if(k.h)break t;y!=null&&y(t,L>w?w:L),t.a=0,t.$=$-l}return 1}return t.a=3,0}function Yn(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 bn(){var t=new Go;return t==null?null:(t.a=0,t.xb=ec,Hn("Predictor","VP8LPredictors"),Hn("Predictor","VP8LPredictors_C"),Hn("PredictorAdd","VP8LPredictorsAdd"),Hn("PredictorAdd","VP8LPredictorsAdd_C"),Ra=ae,wn=Wt,Mn=Ft,Ar=Ye,$n=se,cr=xn,wi=me,R.VP8LMapColor32b=na,R.VP8LMapColor8b=Xo,t)}function Jn(t,i,l,d,m){var w=1,y=[t],L=[i],x=d.m,k=d.s,U=null,$=0;t:for(;;){if(l)for(;w&&ht(x,1);){var K=y,G=L,vt=d,it=1,H=vt.m,V=vt.gc[vt.ab],pt=ht(H,2);if(vt.Oc&1<<pt)w=0;else{switch(vt.Oc|=1<<pt,V.hc=pt,V.Ea=K[0],V.nc=G[0],V.K=[null],++vt.ab,e(4>=vt.ab),pt){case 0:case 1:V.b=ht(H,3)+2,it=Jn(Et(V.Ea,V.b),Et(V.nc,V.b),0,vt,V.K),V.K=V.K[0];break;case 3:var bt,mt=ht(H,8)+1,Ot=16<mt?0:4<mt?1:2<mt?2:3;if(K[0]=Et(V.Ea,Ot),V.b=Ot,bt=it=Jn(mt,1,0,vt,V.K)){var _t,Rt=mt,St=V,ce=1<<(8>>St.b),he=o(ce);if(he==null)bt=0;else{var oe=St.K[0],re=St.w;for(he[0]=St.K[0][0],_t=1;_t<1*Rt;++_t)he[_t]=At(oe[re+_t],he[_t-1]);for(;_t<4*ce;++_t)he[_t]=0;St.K[0]=null,St.K[0]=he,bt=1}}it=bt;break;case 2:break;default:e(0)}w=it}}if(y=y[0],L=L[0],w&&ht(x,1)&&!(w=1<=($=ht(x,4))&&11>=$)){d.a=3;break t}var ve;if(ve=w)e:{var ge,Kt,Ee,un=d,De=y,ln=L,fe=$,gn=l,mn=un.m,ze=un.s,Ge=[null],tn=1,Ln=0,Kn=xu[fe];n:for(;;){if(gn&&ht(mn,1)){var Ue=ht(mn,3)+2,dr=Et(De,Ue),Yr=Et(ln,Ue),Li=dr*Yr;if(!Jn(dr,Yr,0,un,Ge))break n;for(Ge=Ge[0],ze.xc=Ue,ge=0;ge<Li;++ge){var Pr=Ge[ge]>>8&65535;Ge[ge]=Pr,Pr>=tn&&(tn=Pr+1)}}if(mn.h)break n;for(Kt=0;5>Kt;++Kt){var Pe=Qs[Kt];!Kt&&0<fe&&(Pe+=1<<fe),Ln<Pe&&(Ln=Pe)}var is=u(tn*Kn,P),lc=tn,hc=u(lc,q);if(hc==null)var $a=null;else e(65536>=lc),$a=hc;var sa=o(Ln);if($a==null||sa==null||is==null){un.a=1;break n}var Ka=is;for(ge=Ee=0;ge<tn;++ge){var qn=$a[ge],xi=qn.G,_i=qn.H,fc=0,Za=1,dc=0;for(Kt=0;5>Kt;++Kt){Pe=Qs[Kt],xi[Kt]=Ka,_i[Kt]=Ee,!Kt&&0<fe&&(Pe+=1<<fe);i:{var Qa,as=Pe,to=un,ca=sa,Vu=Ka,Gu=Ee,os=0,kr=to.m,Yu=ht(kr,1);if(s(ca,0,0,as),Yu){var Ju=ht(kr,1)+1,Xu=ht(kr,1),pc=ht(kr,Xu==0?1:8);ca[pc]=1,Ju==2&&(ca[pc=ht(kr,8)]=1);var eo=1}else{var gc=o(19),mc=ht(kr,4)+4;if(19<mc){to.a=3;var no=0;break i}for(Qa=0;Qa<mc;++Qa)gc[Nu[Qa]]=ht(kr,3);var ss=void 0,ua=void 0,vc=to,$u=gc,ro=as,bc=ca,cs=0,Ir=vc.m,wc=8,yc=u(128,P);r:for(;F(yc,0,7,$u,19);){if(ht(Ir,1)){var Ku=2+2*ht(Ir,3);if((ss=2+ht(Ir,Ku))>ro)break r}else ss=ro;for(ua=0;ua<ro&&ss--;){Y(Ir);var Ac=yc[0+(127&j(Ir))];W(Ir,Ir.u+Ac.g);var Si=Ac.value;if(16>Si)bc[ua++]=Si,Si!=0&&(wc=Si);else{var Zu=Si==16,Nc=Si-16,Qu=yu[Nc],Lc=ht(Ir,wu[Nc])+Qu;if(ua+Lc>ro)break r;for(var tl=Zu?wc:0;0<Lc--;)bc[ua++]=tl}}cs=1;break r}cs||(vc.a=3),eo=cs}(eo=eo&&!kr.h)&&(os=F(Vu,Gu,8,ca,as)),eo&&os!=0?no=os:(to.a=3,no=0)}if(no==0)break n;if(Za&&Au[Kt]==1&&(Za=Ka[Ee].g==0),fc+=Ka[Ee].g,Ee+=no,3>=Kt){var la,us=sa[0];for(la=1;la<Pe;++la)sa[la]>us&&(us=sa[la]);dc+=us}}if(qn.nd=Za,qn.Qb=0,Za&&(qn.qb=(xi[3][_i[3]+0].value<<24|xi[1][_i[1]+0].value<<16|xi[2][_i[2]+0].value)>>>0,fc==0&&256>xi[0][_i[0]+0].value&&(qn.Qb=1,qn.qb+=xi[0][_i[0]+0].value<<8)),qn.jc=!qn.Qb&&6>dc,qn.jc){var io,pr=qn;for(io=0;io<sn;++io){var Fr=io,Cr=pr.pd[Fr],ao=pr.G[0][pr.H[0]+Fr];256<=ao.value?(Cr.g=ao.g+256,Cr.value=ao.value):(Cr.g=0,Cr.value=0,Fr>>=qe(ao,8,Cr),Fr>>=qe(pr.G[1][pr.H[1]+Fr],16,Cr),Fr>>=qe(pr.G[2][pr.H[2]+Fr],0,Cr),qe(pr.G[3][pr.H[3]+Fr],24,Cr))}}}ze.vc=Ge,ze.Wb=tn,ze.Ya=$a,ze.yc=is,ve=1;break e}ve=0}if(!(w=ve)){d.a=3;break t}if(0<$){if(k.ua=1<<$,!Ut(k.Wa,$)){d.a=1,w=0;break t}}else k.ua=0;var ls=d,xc=y,el=L,hs=ls.s,fs=hs.xc;if(ls.c=xc,ls.i=el,hs.md=Et(xc,fs),hs.wc=fs==0?-1:(1<<fs)-1,l){d.xb=ju;break t}if((U=o(y*L))==null){d.a=1,w=0;break t}w=(w=In(d,U,0,y,L,L,null))&&!x.h;break t}return w?(m!=null?m[0]=U:(e(U==null),e(l)),d.$=0,l||Yn(k)):Yn(k),w}function Tr(t,i){var l=t.c*t.i,d=l+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+l+i,1)}function ti(t,i){var l=t.C,d=i-l,m=t.V,w=t.Ba+t.c*l;for(e(i<=t.l.o);0<d;){var y=16<d?16:d,L=t.l.ma,x=t.l.width,k=x*y,U=L.ca,$=L.tb+x*l,K=t.Ta,G=t.Ua;fn(t,y,m,w),Vs(K,G,U,$,k),Pn(L,l,l+y,U,$,x),d-=y,m+=y*t.c,l+=y}e(l==i),t.C=t.Ma=i}function ei(){this.ub=this.yd=this.td=this.Rb=0}function ni(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ri(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function wa(){this.Yb=function(){var t=[];return function i(l,d,m){for(var w=m[d],y=0;y<w&&(l.push(m.length>d+1?[]:0),!(m.length<d+1));y++)i(l[y],d+1,m)}(t,0,[3,11]),t}()}function Lo(){this.jb=o(3),this.Wc=h([4,8],wa),this.Xc=h([4,17],wa)}function xo(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function ii(){this.ld=this.La=this.dd=this.tc=0}function ya(){this.Na=this.la=0}function _o(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ei(){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 So(){this.uc=this.M=this.Nb=0,this.wa=Array(new ii),this.Y=0,this.ya=Array(new Ei),this.aa=0,this.l=new ai}function Aa(){this.y=o(16),this.f=o(8),this.ea=o(8)}function Po(){this.cb=this.a=0,this.sc="",this.m=new kt,this.Od=new ei,this.Kc=new ni,this.ed=new xo,this.Qa=new ri,this.Ic=this.$c=this.Aa=0,this.D=new So,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=u(8,kt),this.ia=0,this.pb=u(4,_o),this.Pa=new Lo,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Aa),this.Hd=0,this.rb=Array(new ya),this.sb=0,this.wa=Array(new ii),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 Ei),this.L=this.aa=0,this.gd=h([4,2],ii),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 ai(){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 ko(){var t=new Po;return t!=null&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,aa||(aa=xa)),t}function Ie(t,i,l){return t.a==0&&(t.a=i,t.sc=l,t.cb=0),0}function Na(t,i,l){return 3<=l&&t[i+0]==157&&t[i+1]==1&&t[i+2]==42}function La(t,i){if(t==null)return 0;if(t.a=0,t.sc="OK",i==null)return Ie(t,2,"null VP8Io passed to VP8GetHeaders()");var l=i.data,d=i.w,m=i.ha;if(4>m)return Ie(t,7,"Truncated header.");var w=l[d+0]|l[d+1]<<8|l[d+2]<<16,y=t.Od;if(y.Rb=!(1&w),y.td=w>>1&7,y.yd=w>>4&1,y.ub=w>>5,3<y.td)return Ie(t,3,"Incorrect keyframe parameters.");if(!y.yd)return Ie(t,4,"Frame not displayable.");d+=3,m-=3;var L=t.Kc;if(y.Rb){if(7>m)return Ie(t,7,"cannot parse picture header");if(!Na(l,d,m))return Ie(t,3,"Bad code word");L.c=16383&(l[d+4]<<8|l[d+3]),L.Td=l[d+4]>>6,L.i=16383&(l[d+6]<<8|l[d+5]),L.Ud=l[d+6]>>6,d+=7,m-=7,t.za=L.c+15>>4,t.Ub=L.i+15>>4,i.width=L.c,i.height=L.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(y.ub>m)return Ie(t,7,"bad partition length");at(w=t.m,l,d,y.ub),d+=y.ub,m-=y.ub,y.Rb&&(L.Ld=et(w),L.Kd=et(w)),L=t.Qa;var x,k=t.Pa;if(e(w!=null),e(L!=null),L.Cb=et(w),L.Cb){if(L.Bb=et(w),et(w)){for(L.Fb=et(w),x=0;4>x;++x)L.Zb[x]=et(w)?lt(w,7):0;for(x=0;4>x;++x)L.Lb[x]=et(w)?lt(w,6):0}if(L.Bb)for(x=0;3>x;++x)k.jb[x]=et(w)?nt(w,8):255}else L.Bb=0;if(w.Ka)return Ie(t,3,"cannot parse segment header");if((L=t.ed).zd=et(w),L.Tb=nt(w,6),L.wb=nt(w,3),L.Pc=et(w),L.Pc&&et(w)){for(k=0;4>k;++k)et(w)&&(L.vd[k]=lt(w,6));for(k=0;4>k;++k)et(w)&&(L.od[k]=lt(w,6))}if(t.L=L.Tb==0?0:L.zd?1:2,w.Ka)return Ie(t,3,"cannot parse filter header");var U=m;if(m=x=d,d=x+U,L=U,t.Xb=(1<<nt(t.m,2))-1,U<3*(k=t.Xb))l=7;else{for(x+=3*k,L-=3*k,U=0;U<k;++U){var $=l[m+0]|l[m+1]<<8|l[m+2]<<16;$>L&&($=L),at(t.Jc[+U],l,x,$),x+=$,L-=$,m+=3}at(t.Jc[+k],l,x,L),l=x<d?0:5}if(l!=0)return Ie(t,l,"cannot parse partitions");for(l=nt(x=t.m,7),m=et(x)?lt(x,4):0,d=et(x)?lt(x,4):0,L=et(x)?lt(x,4):0,k=et(x)?lt(x,4):0,x=et(x)?lt(x,4):0,U=t.Qa,$=0;4>$;++$){if(U.Cb){var K=U.Zb[$];U.Fb||(K+=l)}else{if(0<$){t.pb[$]=t.pb[0];continue}K=l}var G=t.pb[$];G.Sc[0]=es[dn(K+m,127)],G.Sc[1]=ns[dn(K+0,127)],G.Eb[0]=2*es[dn(K+d,127)],G.Eb[1]=101581*ns[dn(K+L,127)]>>16,8>G.Eb[1]&&(G.Eb[1]=8),G.Qc[0]=es[dn(K+k,117)],G.Qc[1]=ns[dn(K+x,127)],G.lc=K+x}if(!y.Rb)return Ie(t,4,"Not a key frame.");for(et(w),y=t.Pa,l=0;4>l;++l){for(m=0;8>m;++m)for(d=0;3>d;++d)for(L=0;11>L;++L)k=rt(w,Fu[l][m][d][L])?nt(w,8):ku[l][m][d][L],y.Wc[l][m].Yb[d][L]=k;for(m=0;17>m;++m)y.Xc[l][m]=y.Wc[l][Cu[m]]}return t.kc=et(w),t.kc&&(t.Bd=nt(w,8)),t.cb=1}function xa(t,i,l,d,m,w,y){var L=i[m].Yb[l];for(l=0;16>m;++m){if(!rt(t,L[l+0]))return m;for(;!rt(t,L[l+1]);)if(L=i[++m].Yb[0],l=0,m==16)return 16;var x=i[m+1].Yb;if(rt(t,L[l+2])){var k=t,U=0;if(rt(k,(K=L)[($=l)+3]))if(rt(k,K[$+6])){for(L=0,$=2*(U=rt(k,K[$+8]))+(K=rt(k,K[$+9+U])),U=0,K=Su[$];K[L];++L)U+=U+rt(k,K[L]);U+=3+(8<<$)}else rt(k,K[$+7])?(U=7+2*rt(k,165),U+=rt(k,145)):U=5+rt(k,159);else U=rt(k,K[$+4])?3+rt(k,K[$+5]):2;L=x[2]}else U=1,L=x[1];x=y+Pu[m],0>(k=t).b&&Q(k);var $,K=k.b,G=($=k.Ca>>1)-(k.I>>K)>>31;--k.b,k.Ca+=G,k.Ca|=1,k.I-=($+1&G)<<K,w[x]=((U^G)-G)*d[(0<m)+0]}return 16}function Di(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 Io(t,i){if(t==null)return 0;if(i==null)return Ie(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!La(t,i))return 0;if(e(t.cb),i.ac==null||i.ac(i)){i.ob&&(t.L=0);var l=Xa[t.L];if(t.L==2?(t.yb=0,t.zb=0):(t.yb=i.v-l>>4,t.zb=i.j-l>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=i.o+15+l>>4,t.Hb=i.va+15+l>>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(l=0;4>l;++l){var m;if(t.Qa.Cb){var w=t.Qa.Lb[l];t.Qa.Fb||(w+=d.Tb)}else w=d.Tb;for(m=0;1>=m;++m){var y=t.gd[l][m],L=w;if(d.Pc&&(L+=d.vd[0],m&&(L+=d.od[0])),0<(L=0>L?0:63<L?63:L)){var x=L;0<d.wb&&(x=4<d.wb?x>>2:x>>1)>9-d.wb&&(x=9-d.wb),1>x&&(x=1),y.dd=x,y.tc=2*L+x,y.ld=40<=L?2:15<=L?1:0}else y.tc=0;y.La=m}}}l=0}else Ie(t,6,"Frame setup failed"),l=t.a;if(l=l==0){if(l){t.$c=0,0<t.Aa||(t.Ic=Wu);t:{l=t.Ic,d=4*(x=t.za);var k=32*x,U=x+1,$=0<t.L?x*(0<t.Aa?2:1):0,K=(t.Aa==2?2:1)*x;if((y=d+832+(m=3*(16*l+Xa[t.L])/2*k)+(w=t.Fa!=null&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=y)l=0;else{if(y>t.Vb){if(t.Vb=0,t.Ec=o(y),t.Fc=0,t.Ec==null){l=Ie(t,1,"no memory during frame initialization.");break t}t.Vb=y}y=t.Ec,L=t.Fc,t.Ac=y,t.Bc=L,L+=d,t.Gd=u(k,Aa),t.Hd=0,t.rb=u(U+1,ya),t.sb=1,t.wa=$?u($,ii):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=x),e(!0),t.oc=y,t.pc=L,L+=832,t.ya=u(K,Ei),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,t.Aa==2&&(t.D.aa+=x),t.R=16*x,t.B=8*x,x=(k=Xa[t.L])*t.R,k=k/2*t.B,t.sa=y,t.ta=L+x,t.qa=t.sa,t.ra=t.ta+16*l*t.R+k,t.Ha=t.qa,t.Ia=t.ra+8*l*t.B+k,t.$c=0,L+=m,t.mb=w?y:null,t.nb=w?L:null,e(L+w<=t.Fc+t.Vb),Di(t),s(t.Ac,t.Bc,0,d),l=1}}if(l){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,!$s){for(l=-255;255>=l;++l)Gs[255+l]=0>l?-l:l;for(l=-1020;1020>=l;++l)Ys[1020+l]=-128>l?-128:127<l?127:l;for(l=-112;112>=l;++l)Js[112+l]=-16>l?-16:15<l?15:l;for(l=-255;510>=l;++l)Xs[255+l]=0>l?0:255<l?255:l;$s=1}Bn=jo,yi=Fo,Nr=Sa,En=Co,ur=Pa,ra=_a,Vr=Hi,Ai=Hr,Gr=Vo,Lr=Wi,ia=Wo,yn=hi,lr=Vi,we=Ea,ye=Ba,Fe=or,Re=vr,hr=Ho,Dn[0]=Xn,Dn[1]=Oo,Dn[2]=Do,Dn[3]=qo,Dn[4]=Fa,Dn[5]=ui,Dn[6]=Ca,Dn[7]=Ti,Dn[8]=To,Dn[9]=Ro,_r[0]=ka,_r[1]=Bo,_r[2]=ar,_r[3]=si,_r[4]=Je,_r[5]=Eo,_r[6]=Ia,fr[0]=mr,fr[1]=Mo,fr[2]=zo,fr[3]=zi,fr[4]=Ur,fr[5]=Uo,fr[6]=Ui,l=1}else l=0}l&&(l=function(G,vt){for(G.M=0;G.M<G.Va;++G.M){var it,H=G.Jc[G.M&G.Xb],V=G.m,pt=G;for(it=0;it<pt.za;++it){var bt=V,mt=pt,Ot=mt.Ac,_t=mt.Bc+4*it,Rt=mt.zc,St=mt.ya[mt.aa+it];if(mt.Qa.Bb?St.$b=rt(bt,mt.Pa.jb[0])?2+rt(bt,mt.Pa.jb[2]):rt(bt,mt.Pa.jb[1]):St.$b=0,mt.kc&&(St.Ad=rt(bt,mt.Bd)),St.Za=!rt(bt,145)+0,St.Za){var ce=St.Ob,he=0;for(mt=0;4>mt;++mt){var oe,re=Rt[0+mt];for(oe=0;4>oe;++oe){re=Iu[Ot[_t+oe]][re];for(var ve=tc[rt(bt,re[0])];0<ve;)ve=tc[2*ve+rt(bt,re[ve])];re=-ve,Ot[_t+oe]=re}a(ce,he,Ot,_t,4),he+=4,Rt[0+mt]=re}}else re=rt(bt,156)?rt(bt,128)?1:3:rt(bt,163)?2:0,St.Ob[0]=re,s(Ot,_t,re,4),s(Rt,0,re,4);St.Dd=rt(bt,142)?rt(bt,114)?rt(bt,183)?1:3:2:0}if(pt.m.Ka)return Ie(G,7,"Premature end-of-partition0 encountered.");for(;G.ja<G.za;++G.ja){if(pt=H,bt=(V=G).rb[V.sb-1],Ot=V.rb[V.sb+V.ja],it=V.ya[V.aa+V.ja],_t=V.kc?it.Ad:0)bt.la=Ot.la=0,it.Za||(bt.Na=Ot.Na=0),it.Hc=0,it.Gc=0,it.ia=0;else{var ge,Kt;if(bt=Ot,Ot=pt,_t=V.Pa.Xc,Rt=V.ya[V.aa+V.ja],St=V.pb[Rt.$b],mt=Rt.ad,ce=0,he=V.rb[V.sb-1],re=oe=0,s(mt,ce,0,384),Rt.Za)var Ee=0,un=_t[3];else{ve=o(16);var De=bt.Na+he.Na;if(De=aa(Ot,_t[1],De,St.Eb,0,ve,0),bt.Na=he.Na=(0<De)+0,1<De)Bn(ve,0,mt,ce);else{var ln=ve[0]+3>>3;for(ve=0;256>ve;ve+=16)mt[ce+ve]=ln}Ee=1,un=_t[0]}var fe=15&bt.la,gn=15&he.la;for(ve=0;4>ve;++ve){var mn=1&gn;for(ln=Kt=0;4>ln;++ln)fe=fe>>1|(mn=(De=aa(Ot,un,De=mn+(1&fe),St.Sc,Ee,mt,ce))>Ee)<<7,Kt=Kt<<2|(3<De?3:1<De?2:mt[ce+0]!=0),ce+=16;fe>>=4,gn=gn>>1|mn<<7,oe=(oe<<8|Kt)>>>0}for(un=fe,Ee=gn>>4,ge=0;4>ge;ge+=2){for(Kt=0,fe=bt.la>>4+ge,gn=he.la>>4+ge,ve=0;2>ve;++ve){for(mn=1&gn,ln=0;2>ln;++ln)De=mn+(1&fe),fe=fe>>1|(mn=0<(De=aa(Ot,_t[2],De,St.Qc,0,mt,ce)))<<3,Kt=Kt<<2|(3<De?3:1<De?2:mt[ce+0]!=0),ce+=16;fe>>=2,gn=gn>>1|mn<<5}re|=Kt<<4*ge,un|=fe<<4<<ge,Ee|=(240&gn)<<ge}bt.la=un,he.la=Ee,Rt.Hc=oe,Rt.Gc=re,Rt.ia=43690&re?0:St.ia,_t=!(oe|re)}if(0<V.L&&(V.wa[V.Y+V.ja]=V.gd[it.$b][it.Za],V.wa[V.Y+V.ja].La|=!_t),pt.Ka)return Ie(G,7,"Premature end-of-file encountered.")}if(Di(G),V=vt,pt=1,it=(H=G).D,bt=0<H.L&&H.M>=H.zb&&H.M<=H.Va,H.Aa==0)t:{if(it.M=H.M,it.uc=bt,Ki(H,it),pt=1,it=(Kt=H.D).Nb,bt=(re=Xa[H.L])*H.R,Ot=re/2*H.B,ve=16*it*H.R,ln=8*it*H.B,_t=H.sa,Rt=H.ta-bt+ve,St=H.qa,mt=H.ra-Ot+ln,ce=H.Ha,he=H.Ia-Ot+ln,gn=(fe=Kt.M)==0,oe=fe>=H.Va-1,H.Aa==2&&Ki(H,Kt),Kt.uc)for(mn=(De=H).D.M,e(De.D.uc),Kt=De.yb;Kt<De.Hb;++Kt){Ee=Kt,un=mn;var ze=(Ge=(Pe=De).D).Nb;ge=Pe.R;var Ge=Ge.wa[Ge.Y+Ee],tn=Pe.sa,Ln=Pe.ta+16*ze*ge+16*Ee,Kn=Ge.dd,Ue=Ge.tc;if(Ue!=0)if(e(3<=Ue),Pe.L==1)0<Ee&&Fe(tn,Ln,ge,Ue+4),Ge.La&&hr(tn,Ln,ge,Ue),0<un&&ye(tn,Ln,ge,Ue+4),Ge.La&&Re(tn,Ln,ge,Ue);else{var dr=Pe.B,Yr=Pe.qa,Li=Pe.ra+8*ze*dr+8*Ee,Pr=Pe.Ha,Pe=Pe.Ia+8*ze*dr+8*Ee;ze=Ge.ld,0<Ee&&(Ai(tn,Ln,ge,Ue+4,Kn,ze),Lr(Yr,Li,Pr,Pe,dr,Ue+4,Kn,ze)),Ge.La&&(yn(tn,Ln,ge,Ue,Kn,ze),we(Yr,Li,Pr,Pe,dr,Ue,Kn,ze)),0<un&&(Vr(tn,Ln,ge,Ue+4,Kn,ze),Gr(Yr,Li,Pr,Pe,dr,Ue+4,Kn,ze)),Ge.La&&(ia(tn,Ln,ge,Ue,Kn,ze),lr(Yr,Li,Pr,Pe,dr,Ue,Kn,ze))}}if(H.ia&&alert("todo:DitherRow"),V.put!=null){if(Kt=16*fe,fe=16*(fe+1),gn?(V.y=H.sa,V.O=H.ta+ve,V.f=H.qa,V.N=H.ra+ln,V.ea=H.Ha,V.W=H.Ia+ln):(Kt-=re,V.y=_t,V.O=Rt,V.f=St,V.N=mt,V.ea=ce,V.W=he),oe||(fe-=re),fe>V.o&&(fe=V.o),V.F=null,V.J=null,H.Fa!=null&&0<H.Fa.length&&Kt<fe&&(V.J=Xi(H,V,Kt,fe-Kt),V.F=H.mb,V.F==null&&V.F.length==0)){pt=Ie(H,3,"Could not decode alpha data.");break t}Kt<V.j&&(re=V.j-Kt,Kt=V.j,e(!(1&re)),V.O+=H.R*re,V.N+=H.B*(re>>1),V.W+=H.B*(re>>1),V.F!=null&&(V.J+=V.width*re)),Kt<fe&&(V.O+=V.v,V.N+=V.v>>1,V.W+=V.v>>1,V.F!=null&&(V.J+=V.v),V.ka=Kt-V.j,V.U=V.va-V.v,V.T=fe-Kt,pt=V.put(V))}it+1!=H.Ic||oe||(a(H.sa,H.ta-bt,_t,Rt+16*H.R,bt),a(H.qa,H.ra-Ot,St,mt+8*H.B,Ot),a(H.Ha,H.Ia-Ot,ce,he+8*H.B,Ot))}if(!pt)return Ie(G,6,"Output aborted.")}return 1}(t,i)),i.bc!=null&&i.bc(i),l&=1}return l?(t.cb=0,l):0}function Fn(t,i,l,d,m){m=t[i+l+32*d]+(m>>3),t[i+l+32*d]=-256&m?0>m?0:255:m}function oi(t,i,l,d,m,w){Fn(t,i,0,l,d+m),Fn(t,i,1,l,d+w),Fn(t,i,2,l,d-w),Fn(t,i,3,l,d-m)}function on(t){return(20091*t>>16)+t}function qi(t,i,l,d){var m,w=0,y=o(16);for(m=0;4>m;++m){var L=t[i+0]+t[i+8],x=t[i+0]-t[i+8],k=(35468*t[i+4]>>16)-on(t[i+12]),U=on(t[i+4])+(35468*t[i+12]>>16);y[w+0]=L+U,y[w+1]=x+k,y[w+2]=x-k,y[w+3]=L-U,w+=4,i++}for(m=w=0;4>m;++m)L=(t=y[w+0]+4)+y[w+8],x=t-y[w+8],k=(35468*y[w+4]>>16)-on(y[w+12]),Fn(l,d,0,0,L+(U=on(y[w+4])+(35468*y[w+12]>>16))),Fn(l,d,1,0,x+k),Fn(l,d,2,0,x-k),Fn(l,d,3,0,L-U),w++,d+=32}function _a(t,i,l,d){var m=t[i+0]+4,w=35468*t[i+4]>>16,y=on(t[i+4]),L=35468*t[i+1]>>16;oi(l,d,0,m+y,t=on(t[i+1]),L),oi(l,d,1,m+w,t,L),oi(l,d,2,m-w,t,L),oi(l,d,3,m-y,t,L)}function Fo(t,i,l,d,m){qi(t,i,l,d),m&&qi(t,i+16,l,d+4)}function Sa(t,i,l,d){yi(t,i+0,l,d,1),yi(t,i+32,l,d+128,1)}function Co(t,i,l,d){var m;for(t=t[i+0]+4,m=0;4>m;++m)for(i=0;4>i;++i)Fn(l,d,i,m,t)}function Pa(t,i,l,d){t[i+0]&&En(t,i+0,l,d),t[i+16]&&En(t,i+16,l,d+4),t[i+32]&&En(t,i+32,l,d+128),t[i+48]&&En(t,i+48,l,d+128+4)}function jo(t,i,l,d){var m,w=o(16);for(m=0;4>m;++m){var y=t[i+0+m]+t[i+12+m],L=t[i+4+m]+t[i+8+m],x=t[i+4+m]-t[i+8+m],k=t[i+0+m]-t[i+12+m];w[0+m]=y+L,w[8+m]=y-L,w[4+m]=k+x,w[12+m]=k-x}for(m=0;4>m;++m)y=(t=w[0+4*m]+3)+w[3+4*m],L=w[1+4*m]+w[2+4*m],x=w[1+4*m]-w[2+4*m],k=t-w[3+4*m],l[d+0]=y+L>>3,l[d+16]=k+x>>3,l[d+32]=y-L>>3,l[d+48]=k-x>>3,d+=64}function Ri(t,i,l){var d,m=i-32,w=pn,y=255-t[m-1];for(d=0;d<l;++d){var L,x=w,k=y+t[i-1];for(L=0;L<l;++L)t[i+L]=x[k+t[m+L]];i+=32}}function Oo(t,i){Ri(t,i,4)}function Mo(t,i){Ri(t,i,8)}function Bo(t,i){Ri(t,i,16)}function ar(t,i){var l;for(l=0;16>l;++l)a(t,i+32*l,t,i-32,16)}function si(t,i){var l;for(l=16;0<l;--l)s(t,i,t[i-1],16),i+=32}function ci(t,i,l){var d;for(d=0;16>d;++d)s(i,l+32*d,t,16)}function ka(t,i){var l,d=16;for(l=0;16>l;++l)d+=t[i-1+32*l]+t[i+l-32];ci(d>>5,t,i)}function Je(t,i){var l,d=8;for(l=0;16>l;++l)d+=t[i-1+32*l];ci(d>>4,t,i)}function Eo(t,i){var l,d=8;for(l=0;16>l;++l)d+=t[i+l-32];ci(d>>4,t,i)}function Ia(t,i){ci(128,t,i)}function Vt(t,i,l){return t+2*i+l+2>>2}function Do(t,i){var l,d=i-32;for(d=new Uint8Array([Vt(t[d-1],t[d+0],t[d+1]),Vt(t[d+0],t[d+1],t[d+2]),Vt(t[d+1],t[d+2],t[d+3]),Vt(t[d+2],t[d+3],t[d+4])]),l=0;4>l;++l)a(t,i+32*l,d,0,d.length)}function qo(t,i){var l=t[i-1],d=t[i-1+32],m=t[i-1+64],w=t[i-1+96];Lt(t,i+0,16843009*Vt(t[i-1-32],l,d)),Lt(t,i+32,16843009*Vt(l,d,m)),Lt(t,i+64,16843009*Vt(d,m,w)),Lt(t,i+96,16843009*Vt(m,w,w))}function Xn(t,i){var l,d=4;for(l=0;4>l;++l)d+=t[i+l-32]+t[i-1+32*l];for(d>>=3,l=0;4>l;++l)s(t,i+32*l,d,4)}function Fa(t,i){var l=t[i-1+0],d=t[i-1+32],m=t[i-1+64],w=t[i-1-32],y=t[i+0-32],L=t[i+1-32],x=t[i+2-32],k=t[i+3-32];t[i+0+96]=Vt(d,m,t[i-1+96]),t[i+1+96]=t[i+0+64]=Vt(l,d,m),t[i+2+96]=t[i+1+64]=t[i+0+32]=Vt(w,l,d),t[i+3+96]=t[i+2+64]=t[i+1+32]=t[i+0+0]=Vt(y,w,l),t[i+3+64]=t[i+2+32]=t[i+1+0]=Vt(L,y,w),t[i+3+32]=t[i+2+0]=Vt(x,L,y),t[i+3+0]=Vt(k,x,L)}function Ca(t,i){var l=t[i+1-32],d=t[i+2-32],m=t[i+3-32],w=t[i+4-32],y=t[i+5-32],L=t[i+6-32],x=t[i+7-32];t[i+0+0]=Vt(t[i+0-32],l,d),t[i+1+0]=t[i+0+32]=Vt(l,d,m),t[i+2+0]=t[i+1+32]=t[i+0+64]=Vt(d,m,w),t[i+3+0]=t[i+2+32]=t[i+1+64]=t[i+0+96]=Vt(m,w,y),t[i+3+32]=t[i+2+64]=t[i+1+96]=Vt(w,y,L),t[i+3+64]=t[i+2+96]=Vt(y,L,x),t[i+3+96]=Vt(L,x,x)}function ui(t,i){var l=t[i-1+0],d=t[i-1+32],m=t[i-1+64],w=t[i-1-32],y=t[i+0-32],L=t[i+1-32],x=t[i+2-32],k=t[i+3-32];t[i+0+0]=t[i+1+64]=w+y+1>>1,t[i+1+0]=t[i+2+64]=y+L+1>>1,t[i+2+0]=t[i+3+64]=L+x+1>>1,t[i+3+0]=x+k+1>>1,t[i+0+96]=Vt(m,d,l),t[i+0+64]=Vt(d,l,w),t[i+0+32]=t[i+1+96]=Vt(l,w,y),t[i+1+32]=t[i+2+96]=Vt(w,y,L),t[i+2+32]=t[i+3+96]=Vt(y,L,x),t[i+3+32]=Vt(L,x,k)}function Ti(t,i){var l=t[i+0-32],d=t[i+1-32],m=t[i+2-32],w=t[i+3-32],y=t[i+4-32],L=t[i+5-32],x=t[i+6-32],k=t[i+7-32];t[i+0+0]=l+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+y+1>>1,t[i+0+32]=Vt(l,d,m),t[i+1+32]=t[i+0+96]=Vt(d,m,w),t[i+2+32]=t[i+1+96]=Vt(m,w,y),t[i+3+32]=t[i+2+96]=Vt(w,y,L),t[i+3+64]=Vt(y,L,x),t[i+3+96]=Vt(L,x,k)}function Ro(t,i){var l=t[i-1+0],d=t[i-1+32],m=t[i-1+64],w=t[i-1+96];t[i+0+0]=l+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]=Vt(l,d,m),t[i+3+0]=t[i+1+32]=Vt(d,m,w),t[i+3+32]=t[i+1+64]=Vt(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 To(t,i){var l=t[i-1+0],d=t[i-1+32],m=t[i-1+64],w=t[i-1+96],y=t[i-1-32],L=t[i+0-32],x=t[i+1-32],k=t[i+2-32];t[i+0+0]=t[i+2+32]=l+y+1>>1,t[i+0+32]=t[i+2+64]=d+l+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]=Vt(L,x,k),t[i+2+0]=Vt(y,L,x),t[i+1+0]=t[i+3+32]=Vt(l,y,L),t[i+1+32]=t[i+3+64]=Vt(d,l,y),t[i+1+64]=t[i+3+96]=Vt(m,d,l),t[i+1+96]=Vt(w,m,d)}function zo(t,i){var l;for(l=0;8>l;++l)a(t,i+32*l,t,i-32,8)}function zi(t,i){var l;for(l=0;8>l;++l)s(t,i,t[i-1],8),i+=32}function zr(t,i,l){var d;for(d=0;8>d;++d)s(i,l+32*d,t,8)}function mr(t,i){var l,d=8;for(l=0;8>l;++l)d+=t[i+l-32]+t[i-1+32*l];zr(d>>4,t,i)}function Uo(t,i){var l,d=4;for(l=0;8>l;++l)d+=t[i+l-32];zr(d>>3,t,i)}function Ur(t,i){var l,d=4;for(l=0;8>l;++l)d+=t[i-1+32*l];zr(d>>3,t,i)}function Ui(t,i){zr(128,t,i)}function li(t,i,l){var d=t[i-l],m=t[i+0],w=3*(m-d)+$o[1020+t[i-2*l]-t[i+l]],y=za[112+(w+4>>3)];t[i-l]=pn[255+d+za[112+(w+3>>3)]],t[i+0]=pn[255+m-y]}function ja(t,i,l,d){var m=t[i+0],w=t[i+l];return An[255+t[i-2*l]-t[i-l]]>d||An[255+w-m]>d}function Oa(t,i,l,d){return 4*An[255+t[i-l]-t[i+0]]+An[255+t[i-2*l]-t[i+l]]<=d}function Ma(t,i,l,d,m){var w=t[i-3*l],y=t[i-2*l],L=t[i-l],x=t[i+0],k=t[i+l],U=t[i+2*l],$=t[i+3*l];return 4*An[255+L-x]+An[255+y-k]>d?0:An[255+t[i-4*l]-w]<=m&&An[255+w-y]<=m&&An[255+y-L]<=m&&An[255+$-U]<=m&&An[255+U-k]<=m&&An[255+k-x]<=m}function Ba(t,i,l,d){var m=2*d+1;for(d=0;16>d;++d)Oa(t,i+d,l,m)&&li(t,i+d,l)}function or(t,i,l,d){var m=2*d+1;for(d=0;16>d;++d)Oa(t,i+d*l,1,m)&&li(t,i+d*l,1)}function vr(t,i,l,d){var m;for(m=3;0<m;--m)Ba(t,i+=4*l,l,d)}function Ho(t,i,l,d){var m;for(m=3;0<m;--m)or(t,i+=4,l,d)}function br(t,i,l,d,m,w,y,L){for(w=2*w+1;0<m--;){if(Ma(t,i,l,w,y))if(ja(t,i,l,L))li(t,i,l);else{var x=t,k=i,U=l,$=x[k-2*U],K=x[k-U],G=x[k+0],vt=x[k+U],it=x[k+2*U],H=27*(pt=$o[1020+3*(G-K)+$o[1020+$-vt]])+63>>7,V=18*pt+63>>7,pt=9*pt+63>>7;x[k-3*U]=pn[255+x[k-3*U]+pt],x[k-2*U]=pn[255+$+V],x[k-U]=pn[255+K+H],x[k+0]=pn[255+G-H],x[k+U]=pn[255+vt-V],x[k+2*U]=pn[255+it-pt]}i+=d}}function Cn(t,i,l,d,m,w,y,L){for(w=2*w+1;0<m--;){if(Ma(t,i,l,w,y))if(ja(t,i,l,L))li(t,i,l);else{var x=t,k=i,U=l,$=x[k-U],K=x[k+0],G=x[k+U],vt=za[112+((it=3*(K-$))+4>>3)],it=za[112+(it+3>>3)],H=vt+1>>1;x[k-2*U]=pn[255+x[k-2*U]+H],x[k-U]=pn[255+$+it],x[k+0]=pn[255+K-vt],x[k+U]=pn[255+G-H]}i+=d}}function Hi(t,i,l,d,m,w){br(t,i,l,1,16,d,m,w)}function Hr(t,i,l,d,m,w){br(t,i,1,l,16,d,m,w)}function Wo(t,i,l,d,m,w){var y;for(y=3;0<y;--y)Cn(t,i+=4*l,l,1,16,d,m,w)}function hi(t,i,l,d,m,w){var y;for(y=3;0<y;--y)Cn(t,i+=4,1,l,16,d,m,w)}function Vo(t,i,l,d,m,w,y,L){br(t,i,m,1,8,w,y,L),br(l,d,m,1,8,w,y,L)}function Wi(t,i,l,d,m,w,y,L){br(t,i,1,m,8,w,y,L),br(l,d,1,m,8,w,y,L)}function Vi(t,i,l,d,m,w,y,L){Cn(t,i+4*m,m,1,8,w,y,L),Cn(l,d+4*m,m,1,8,w,y,L)}function Ea(t,i,l,d,m,w,y,L){Cn(t,i+4,1,m,8,w,y,L),Cn(l,d+4,1,m,8,w,y,L)}function fi(){this.ba=new _n,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new _e,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Gi(){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 Yi(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Da(){this.ua=0,this.Wa=new D,this.vb=new D,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new q,this.yc=new P}function Go(){this.xb=this.a=0,this.l=new ai,this.ca=new _n,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new A,this.Pb=0,this.wd=new A,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Da,this.ab=0,this.gc=u(4,Yi),this.Oc=0}function di(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ai,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Wr(t,i,l,d,m,w,y){for(t=t==null?0:t[i+0],i=0;i<y;++i)m[w+i]=t+l[d+i]&255,t=m[w+i]}function Ji(t,i,l,d,m,w,y){var L;if(t==null)Wr(null,null,l,d,m,w,y);else for(L=0;L<y;++L)m[w+L]=t[i+L]+l[d+L]&255}function wr(t,i,l,d,m,w,y){if(t==null)Wr(null,null,l,d,m,w,y);else{var L,x=t[i+0],k=x,U=x;for(L=0;L<y;++L)k=U+(x=t[i+L])-k,U=l[d+L]+(-256&k?0>k?0:255:k)&255,k=x,m[w+L]=U}}function Xi(t,i,l,d){var m=i.width,w=i.o;if(e(t!=null&&i!=null),0>l||0>=d||l+d>w)return null;if(!t.Cc){if(t.ga==null){var y;if(t.ga=new di,(y=t.ga==null)||(y=i.width*i.o,e(t.Gb.length==0),t.Gb=o(y),t.Uc=0,t.Gb==null?y=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,y=1),y=!y),!y){y=t.ga;var L=t.Fa,x=t.P,k=t.qc,U=t.mb,$=t.nb,K=x+1,G=k-1,vt=y.l;if(e(L!=null&&U!=null&&i!=null),Sr[0]=null,Sr[1]=Wr,Sr[2]=Ji,Sr[3]=wr,y.ca=U,y.tb=$,y.c=i.width,y.i=i.height,e(0<y.c&&0<y.i),1>=k)i=0;else if(y.$a=L[x+0]>>0&3,y.Z=L[x+0]>>2&3,y.Lc=L[x+0]>>4&3,x=L[x+0]>>6&3,0>y.$a||1<y.$a||4<=y.Z||1<y.Lc||x)i=0;else if(vt.put=Wn,vt.ac=Ve,vt.bc=Vn,vt.ma=y,vt.width=i.width,vt.height=i.height,vt.Da=i.Da,vt.v=i.v,vt.va=i.va,vt.j=i.j,vt.o=i.o,y.$a)t:{e(y.$a==1),i=bn();e:for(;;){if(i==null){i=0;break t}if(e(y!=null),y.mc=i,i.c=y.c,i.i=y.i,i.l=y.l,i.l.ma=y,i.l.width=y.c,i.l.height=y.i,i.a=0,Z(i.m,L,K,G),!Jn(y.c,y.i,1,i,null)||(i.ab==1&&i.gc[0].hc==3&&ir(i.s)?(y.ic=1,L=i.c*i.i,i.Ta=null,i.Ua=0,i.V=o(L),i.Ba=0,i.V==null?(i.a=1,i=0):i=1):(y.ic=0,i=Tr(i,y.c)),!i))break e;i=1;break t}y.mc=null,i=0}else i=G>=y.c*y.i;y=!i}if(y)return null;t.ga.Lc!=1?t.Ga=0:d=w-l}e(t.ga!=null),e(l+d<=w);t:{if(i=(L=t.ga).c,w=L.l.o,L.$a==0){if(K=t.rc,G=t.Vc,vt=t.Fa,x=t.P+1+l*i,k=t.mb,U=t.nb+l*i,e(x<=t.P+t.qc),L.Z!=0)for(e(Sr[L.Z]!=null),y=0;y<d;++y)Sr[L.Z](K,G,vt,x,k,U,i),K=k,G=U,U+=i,x+=i;else for(y=0;y<d;++y)a(k,U,vt,x,i),K=k,G=U,U+=i,x+=i;t.rc=K,t.Vc=G}else{if(e(L.mc!=null),i=l+d,e((y=L.mc)!=null),e(i<=y.i),y.C>=i)i=1;else if(L.ic||X(),L.ic){L=y.V,K=y.Ba,G=y.c;var it=y.i,H=(vt=1,x=y.$/G,k=y.$%G,U=y.m,$=y.s,y.$),V=G*it,pt=G*i,bt=$.wc,mt=H<pt?Me($,k,x):null;e(H<=V),e(i<=it),e(ir($));e:for(;;){for(;!U.h&&H<pt;){if(k&bt||(mt=Me($,k,x)),e(mt!=null),Y(U),256>(it=an(mt.G[0],mt.H[0],U)))L[K+H]=it,++H,++k>=G&&(k=0,++x<=i&&!(x%16)&&kn(y,x));else{if(!(280>it)){vt=0;break e}it=Sn(it-256,U);var Ot,_t=an(mt.G[4],mt.H[4],U);if(Y(U),!(H>=(_t=Gn(G,_t=Sn(_t,U)))&&V-H>=it)){vt=0;break e}for(Ot=0;Ot<it;++Ot)L[K+H+Ot]=L[K+H+Ot-_t];for(H+=it,k+=it;k>=G;)k-=G,++x<=i&&!(x%16)&&kn(y,x);H<pt&&k&bt&&(mt=Me($,k,x))}e(U.h==E(U))}kn(y,x>i?i:x);break e}!vt||U.h&&H<V?(vt=0,y.a=U.h?5:3):y.$=H,i=vt}else i=In(y,y.V,y.Ba,y.c,y.i,i,ti);if(!i){d=0;break t}}l+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+l*m}function c(t,i,l,d,m,w){for(;0<m--;){var y,L=t,x=i+(l?1:0),k=t,U=i+(l?0:3);for(y=0;y<d;++y){var $=k[U+4*y];$!=255&&($*=32897,L[x+4*y+0]=L[x+4*y+0]*$>>23,L[x+4*y+1]=L[x+4*y+1]*$>>23,L[x+4*y+2]=L[x+4*y+2]*$>>23)}i+=w}}function b(t,i,l,d,m){for(;0<d--;){var w;for(w=0;w<l;++w){var y=t[i+2*w+0],L=15&(k=t[i+2*w+1]),x=4369*L,k=(240&k|k>>4)*x>>16;t[i+2*w+0]=(240&y|y>>4)*x>>16&240|(15&y|y<<4)*x>>16>>4&15,t[i+2*w+1]=240&k|L}i+=m}}function C(t,i,l,d,m,w,y,L){var x,k,U=255;for(k=0;k<m;++k){for(x=0;x<d;++x){var $=t[i+x];w[y+4*x]=$,U&=$}i+=l,y+=L}return U!=255}function T(t,i,l,d,m){var w;for(w=0;w<m;++w)l[d+w]=t[i+w]>>8}function X(){xr=c,Ni=b,Ta=C,Vs=T}function st(t,i,l){R[t]=function(d,m,w,y,L,x,k,U,$,K,G,vt,it,H,V,pt,bt){var mt,Ot=bt-1>>1,_t=L[x+0]|k[U+0]<<16,Rt=$[K+0]|G[vt+0]<<16;e(d!=null);var St=3*_t+Rt+131074>>2;for(i(d[m+0],255&St,St>>16,it,H),w!=null&&(St=3*Rt+_t+131074>>2,i(w[y+0],255&St,St>>16,V,pt)),mt=1;mt<=Ot;++mt){var ce=L[x+mt]|k[U+mt]<<16,he=$[K+mt]|G[vt+mt]<<16,oe=_t+ce+Rt+he+524296,re=oe+2*(ce+Rt)>>3;St=re+_t>>1,_t=(oe=oe+2*(_t+he)>>3)+ce>>1,i(d[m+2*mt-1],255&St,St>>16,it,H+(2*mt-1)*l),i(d[m+2*mt-0],255&_t,_t>>16,it,H+(2*mt-0)*l),w!=null&&(St=oe+Rt>>1,_t=re+he>>1,i(w[y+2*mt-1],255&St,St>>16,V,pt+(2*mt-1)*l),i(w[y+2*mt+0],255&_t,_t>>16,V,pt+(2*mt+0)*l)),_t=ce,Rt=he}1&bt||(St=3*_t+Rt+131074>>2,i(d[m+bt-1],255&St,St>>16,it,H+(bt-1)*l),w!=null&&(St=3*Rt+_t+131074>>2,i(w[y+bt-1],255&St,St>>16,V,pt+(bt-1)*l)))}}function yt(){Nn[Ua]=Ou,Nn[Ha]=nc,Nn[Ks]=Mu,Nn[Wa]=rc,Nn[Va]=ic,Nn[Ko]=ac,Nn[Zs]=Bu,Nn[Zo]=nc,Nn[Qo]=rc,Nn[Ga]=ic,Nn[ts]=ac}function jt(t){return t&~Eu?0>t?0:255:t>>oc}function qt(t,i){return jt((19077*t>>8)+(26149*i>>8)-14234)}function $t(t,i,l){return jt((19077*t>>8)-(6419*i>>8)-(13320*l>>8)+8708)}function Qt(t,i){return jt((19077*t>>8)+(33050*i>>8)-17685)}function ie(t,i,l,d,m){d[m+0]=qt(t,l),d[m+1]=$t(t,i,l),d[m+2]=Qt(t,i)}function Le(t,i,l,d,m){d[m+0]=Qt(t,i),d[m+1]=$t(t,i,l),d[m+2]=qt(t,l)}function Se(t,i,l,d,m){var w=$t(t,i,l);i=w<<3&224|Qt(t,i)>>3,d[m+0]=248&qt(t,l)|w>>5,d[m+1]=i}function Be(t,i,l,d,m){var w=240&Qt(t,i)|15;d[m+0]=240&qt(t,l)|$t(t,i,l)>>4,d[m+1]=w}function Xe(t,i,l,d,m){d[m+0]=255,ie(t,i,l,d,m+1)}function Te(t,i,l,d,m){Le(t,i,l,d,m),d[m+3]=255}function jn(t,i,l,d,m){ie(t,i,l,d,m),d[m+3]=255}function dn(t,i){return 0>t?0:t>i?i:t}function sr(t,i,l){R[t]=function(d,m,w,y,L,x,k,U,$){for(var K=U+(-2&$)*l;U!=K;)i(d[m+0],w[y+0],L[x+0],k,U),i(d[m+1],w[y+0],L[x+0],k,U+l),m+=2,++y,++x,U+=2*l;1&$&&i(d[m+0],w[y+0],L[x+0],k,U)}}function qa(t,i,l){return l==0?t==0?i==0?6:5:i==0?4:0:l}function $i(t,i,l,d,m){switch(t>>>30){case 3:yi(i,l,d,m,0);break;case 2:ra(i,l,d,m);break;case 1:En(i,l,d,m)}}function Ki(t,i){var l,d,m=i.M,w=i.Nb,y=t.oc,L=t.pc+40,x=t.oc,k=t.pc+584,U=t.oc,$=t.pc+600;for(l=0;16>l;++l)y[L+32*l-1]=129;for(l=0;8>l;++l)x[k+32*l-1]=129,U[$+32*l-1]=129;for(0<m?y[L-1-32]=x[k-1-32]=U[$-1-32]=129:(s(y,L-32-1,127,21),s(x,k-32-1,127,9),s(U,$-32-1,127,9)),d=0;d<t.za;++d){var K=i.ya[i.aa+d];if(0<d){for(l=-1;16>l;++l)a(y,L+32*l-4,y,L+32*l+12,4);for(l=-1;8>l;++l)a(x,k+32*l-4,x,k+32*l+4,4),a(U,$+32*l-4,U,$+32*l+4,4)}var G=t.Gd,vt=t.Hd+d,it=K.ad,H=K.Hc;if(0<m&&(a(y,L-32,G[vt].y,0,16),a(x,k-32,G[vt].f,0,8),a(U,$-32,G[vt].ea,0,8)),K.Za){var V=y,pt=L-32+16;for(0<m&&(d>=t.za-1?s(V,pt,G[vt].y[15],4):a(V,pt,G[vt+1].y,0,4)),l=0;4>l;l++)V[pt+128+l]=V[pt+256+l]=V[pt+384+l]=V[pt+0+l];for(l=0;16>l;++l,H<<=2)V=y,pt=L+cc[l],Dn[K.Ob[l]](V,pt),$i(H,it,16*+l,V,pt)}else if(V=qa(d,m,K.Ob[0]),_r[V](y,L),H!=0)for(l=0;16>l;++l,H<<=2)$i(H,it,16*+l,y,L+cc[l]);for(l=K.Gc,V=qa(d,m,K.Dd),fr[V](x,k),fr[V](U,$),H=it,V=x,pt=k,255&(K=l>>0)&&(170&K?Nr(H,256,V,pt):ur(H,256,V,pt)),K=U,H=$,255&(l>>=8)&&(170&l?Nr(it,320,K,H):ur(it,320,K,H)),m<t.Ub-1&&(a(G[vt].y,0,y,L+480,16),a(G[vt].f,0,x,k+224,8),a(G[vt].ea,0,U,$+224,8)),l=8*w*t.B,G=t.sa,vt=t.ta+16*d+16*w*t.R,it=t.qa,K=t.ra+8*d+l,H=t.Ha,V=t.Ia+8*d+l,l=0;16>l;++l)a(G,vt+l*t.R,y,L+32*l,16);for(l=0;8>l;++l)a(it,K+l*t.B,x,k+32*l,8),a(H,V+l*t.B,U,$+32*l,8)}}function pi(t,i,l,d,m,w,y,L,x){var k=[0],U=[0],$=0,K=x!=null?x.kd:0,G=x!=null?x:new Gi;if(t==null||12>l)return 7;G.data=t,G.w=i,G.ha=l,i=[i],l=[l],G.gb=[G.gb];t:{var vt=i,it=l,H=G.gb;if(e(t!=null),e(it!=null),e(H!=null),H[0]=0,12<=it[0]&&!n(t,vt[0],"RIFF")){if(n(t,vt[0]+8,"WEBP")){H=3;break t}var V=Mt(t,vt[0]+4);if(12>V||4294967286<V){H=3;break t}if(K&&V>it[0]-8){H=7;break t}H[0]=V,vt[0]+=12,it[0]-=12}H=0}if(H!=0)return H;for(V=0<G.gb[0],l=l[0];;){t:{var pt=t;it=i,H=l;var bt=k,mt=U,Ot=vt=[0];if((St=$=[$])[0]=0,8>H[0])H=7;else{if(!n(pt,it[0],"VP8X")){if(Mt(pt,it[0]+4)!=10){H=3;break t}if(18>H[0]){H=7;break t}var _t=Mt(pt,it[0]+8),Rt=1+Ct(pt,it[0]+12);if(2147483648<=Rt*(pt=1+Ct(pt,it[0]+15))){H=3;break t}Ot!=null&&(Ot[0]=_t),bt!=null&&(bt[0]=Rt),mt!=null&&(mt[0]=pt),it[0]+=18,H[0]-=18,St[0]=1}H=0}}if($=$[0],vt=vt[0],H!=0)return H;if(it=!!(2&vt),!V&&$)return 3;if(w!=null&&(w[0]=!!(16&vt)),y!=null&&(y[0]=it),L!=null&&(L[0]=0),y=k[0],vt=U[0],$&&it&&x==null){H=0;break}if(4>l){H=7;break}if(V&&$||!V&&!$&&!n(t,i[0],"ALPH")){l=[l],G.na=[G.na],G.P=[G.P],G.Sa=[G.Sa];t:{_t=t,H=i,V=l;var St=G.gb;bt=G.na,mt=G.P,Ot=G.Sa,Rt=22,e(_t!=null),e(V!=null),pt=H[0];var ce=V[0];for(e(bt!=null),e(Ot!=null),bt[0]=null,mt[0]=null,Ot[0]=0;;){if(H[0]=pt,V[0]=ce,8>ce){H=7;break t}var he=Mt(_t,pt+4);if(4294967286<he){H=3;break t}var oe=8+he+1&-2;if(Rt+=oe,0<St&&Rt>St){H=3;break t}if(!n(_t,pt,"VP8 ")||!n(_t,pt,"VP8L")){H=0;break t}if(ce[0]<oe){H=7;break t}n(_t,pt,"ALPH")||(bt[0]=_t,mt[0]=pt+8,Ot[0]=he),pt+=oe,ce-=oe}}if(l=l[0],G.na=G.na[0],G.P=G.P[0],G.Sa=G.Sa[0],H!=0)break}l=[l],G.Ja=[G.Ja],G.xa=[G.xa];t:if(St=t,H=i,V=l,bt=G.gb[0],mt=G.Ja,Ot=G.xa,_t=H[0],pt=!n(St,_t,"VP8 "),Rt=!n(St,_t,"VP8L"),e(St!=null),e(V!=null),e(mt!=null),e(Ot!=null),8>V[0])H=7;else{if(pt||Rt){if(St=Mt(St,_t+4),12<=bt&&St>bt-12){H=3;break t}if(K&&St>V[0]-8){H=7;break t}mt[0]=St,H[0]+=8,V[0]-=8,Ot[0]=Rt}else Ot[0]=5<=V[0]&&St[_t+0]==47&&!(St[_t+4]>>5),mt[0]=V[0];H=0}if(l=l[0],G.Ja=G.Ja[0],G.xa=G.xa[0],i=i[0],H!=0)break;if(4294967286<G.Ja)return 3;if(L==null||it||(L[0]=G.xa?2:1),y=[y],vt=[vt],G.xa){if(5>l){H=7;break}L=y,K=vt,it=w,t==null||5>l?t=0:5<=l&&t[i+0]==47&&!(t[i+4]>>5)?(V=[0],St=[0],bt=[0],Z(mt=new A,t,i,l),Tt(mt,V,St,bt)?(L!=null&&(L[0]=V[0]),K!=null&&(K[0]=St[0]),it!=null&&(it[0]=bt[0]),t=1):t=0):t=0}else{if(10>l){H=7;break}L=vt,t==null||10>l||!Na(t,i+3,l-3)?t=0:(K=t[i+0]|t[i+1]<<8|t[i+2]<<16,it=16383&(t[i+7]<<8|t[i+6]),t=16383&(t[i+9]<<8|t[i+8]),1&K||3<(K>>1&7)||!(K>>4&1)||K>>5>=G.Ja||!it||!t?t=0:(y&&(y[0]=it),L&&(L[0]=t),t=1))}if(!t||(y=y[0],vt=vt[0],$&&(k[0]!=y||U[0]!=vt)))return 3;x!=null&&(x[0]=G,x.offset=i-x.w,e(4294967286>i-x.w),e(x.offset==x.ha-l));break}return H==0||H==7&&$&&x==null?(w!=null&&(w[0]|=G.na!=null&&0<G.na.length),d!=null&&(d[0]=y),m!=null&&(m[0]=vt),0):H}function Zi(t,i,l){var d=i.width,m=i.height,w=0,y=0,L=d,x=m;if(i.Da=t!=null&&0<t.Da,i.Da&&(L=t.cd,x=t.bd,w=t.v,y=t.j,11>l||(w&=-2,y&=-2),0>w||0>y||0>=L||0>=x||w+L>d||y+x>m))return 0;if(i.v=w,i.j=y,i.va=w+L,i.o=y+x,i.U=L,i.T=x,i.da=t!=null&&0<t.da,i.da){if(!Xt(L,x,l=[t.ib],w=[t.hb]))return 0;i.ib=l[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 Qi(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 gi(t,i,l,d){if(d==null||0>=t||0>=i)return 2;if(l!=null){if(l.Da){var m=l.cd,w=l.bd,y=-2&l.v,L=-2&l.j;if(0>y||0>L||0>=m||0>=w||y+m>t||L+w>i)return 2;t=m,i=w}if(l.da){if(!Xt(t,i,m=[l.ib],w=[l.hb]))return 2;t=m[0],i=w[0]}}d.width=t,d.height=i;t:{var x=d.width,k=d.height;if(t=d.S,0>=x||0>=k||!(t>=Ua&&13>t))t=2;else{if(0>=d.Rd&&d.sd==null){y=w=m=i=0;var U=(L=x*uc[t])*k;if(11>t||(w=(k+1)/2*(i=(x+1)/2),t==12&&(y=(m=x)*k)),(k=o(U+2*w+y))==null){t=1;break t}d.sd=k,11>t?((x=d.f.RGBA).eb=k,x.fb=0,x.A=L,x.size=U):((x=d.f.kb).y=k,x.O=0,x.fa=L,x.Fd=U,x.f=k,x.N=0+U,x.Ab=i,x.Cd=w,x.ea=k,x.W=0+U+w,x.Db=i,x.Ed=w,t==12&&(x.F=k,x.J=0+U+2*w),x.Tc=y,x.lb=m)}if(i=1,m=d.S,w=d.width,y=d.height,m>=Ua&&13>m)if(11>m)t=d.f.RGBA,i&=(L=Math.abs(t.A))*(y-1)+w<=t.size,i&=L>=w*uc[m],i&=t.eb!=null;else{t=d.f.kb,L=(w+1)/2,U=(y+1)/2,x=Math.abs(t.fa),k=Math.abs(t.Ab);var $=Math.abs(t.Db),K=Math.abs(t.lb),G=K*(y-1)+w;i&=x*(y-1)+w<=t.Fd,i&=k*(U-1)+L<=t.Cd,i=(i&=$*(U-1)+L<=t.Ed)&x>=w&k>=L&$>=L,i&=t.y!=null,i&=t.f!=null,i&=t.ea!=null,m==12&&(i&=K>=w,i&=G<=t.Tc,i&=t.F!=null)}else i=0;t=i?0:2}}return t!=0||l!=null&&l.fd&&(t=Qi(d)),t}var sn=64,mi=[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],vi=24,bi=32,ta=8,cn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];xt("Predictor0","PredictorAdd0"),R.Predictor0=function(){return 4278190080},R.Predictor1=function(t){return t},R.Predictor2=function(t,i,l){return i[l+0]},R.Predictor3=function(t,i,l){return i[l+1]},R.Predictor4=function(t,i,l){return i[l-1]},R.Predictor5=function(t,i,l){return Pt(Pt(t,i[l+1]),i[l+0])},R.Predictor6=function(t,i,l){return Pt(t,i[l-1])},R.Predictor7=function(t,i,l){return Pt(t,i[l+0])},R.Predictor8=function(t,i,l){return Pt(i[l-1],i[l+0])},R.Predictor9=function(t,i,l){return Pt(i[l+0],i[l+1])},R.Predictor10=function(t,i,l){return Pt(Pt(t,i[l-1]),Pt(i[l+0],i[l+1]))},R.Predictor11=function(t,i,l){var d=i[l+0];return 0>=Zt(d>>24&255,t>>24&255,(i=i[l-1])>>24&255)+Zt(d>>16&255,t>>16&255,i>>16&255)+Zt(d>>8&255,t>>8&255,i>>8&255)+Zt(255&d,255&t,255&i)?d:t},R.Predictor12=function(t,i,l){var d=i[l+0];return(Dt((t>>24&255)+(d>>24&255)-((i=i[l-1])>>24&255))<<24|Dt((t>>16&255)+(d>>16&255)-(i>>16&255))<<16|Dt((t>>8&255)+(d>>8&255)-(i>>8&255))<<8|Dt((255&t)+(255&d)-(255&i)))>>>0},R.Predictor13=function(t,i,l){var d=i[l-1];return(Gt((t=Pt(t,i[l+0]))>>24&255,d>>24&255)<<24|Gt(t>>16&255,d>>16&255)<<16|Gt(t>>8&255,d>>8&255)<<8|Gt(t>>0&255,d>>0&255))>>>0};var Yo=R.PredictorAdd0;R.PredictorAdd1=te,xt("Predictor2","PredictorAdd2"),xt("Predictor3","PredictorAdd3"),xt("Predictor4","PredictorAdd4"),xt("Predictor5","PredictorAdd5"),xt("Predictor6","PredictorAdd6"),xt("Predictor7","PredictorAdd7"),xt("Predictor8","PredictorAdd8"),xt("Predictor9","PredictorAdd9"),xt("Predictor10","PredictorAdd10"),xt("Predictor11","PredictorAdd11"),xt("Predictor12","PredictorAdd12"),xt("Predictor13","PredictorAdd13");var ea=R.PredictorAdd2;ee("ColorIndexInverseTransform","MapARGB","32b",function(t){return t>>8&255},function(t){return t}),ee("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(t){return t},function(t){return t>>8&255});var Ra,On=R.ColorIndexInverseTransform,na=R.MapARGB,Jo=R.VP8LColorIndexInverseTransformAlpha,Xo=R.MapAlpha,yr=R.VP8LPredictorsAdd=[];yr.length=16,(R.VP8LPredictors=[]).length=16,(R.VP8LPredictorsAdd_C=[]).length=16,(R.VP8LPredictors_C=[]).length=16;var wn,Mn,Ar,$n,cr,wi,Bn,yi,ra,Nr,En,ur,Vr,Ai,Gr,Lr,ia,yn,lr,we,ye,Fe,Re,hr,xr,Ni,Ta,Vs,Gs=o(511),Ys=o(2041),Js=o(225),Xs=o(767),$s=0,$o=Ys,za=Js,pn=Xs,An=Gs,Ua=0,Ha=1,Ks=2,Wa=3,Va=4,Ko=5,Zs=6,Zo=7,Qo=8,Ga=9,ts=10,wu=[2,3,7],yu=[3,3,11],Qs=[280,256,256,256,40],Au=[0,1,1,1,0],Nu=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Lu=[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],xu=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],_u=8,es=[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],ns=[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],aa=null,Su=[[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]],Pu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],tc=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],ku=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Iu=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Fu=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Cu=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],_r=[],Dn=[],fr=[],ju=1,ec=2,Sr=[],Nn=[];st("UpsampleRgbLinePair",ie,3),st("UpsampleBgrLinePair",Le,3),st("UpsampleRgbaLinePair",jn,4),st("UpsampleBgraLinePair",Te,4),st("UpsampleArgbLinePair",Xe,4),st("UpsampleRgba4444LinePair",Be,2),st("UpsampleRgb565LinePair",Se,2);var Ou=R.UpsampleRgbLinePair,Mu=R.UpsampleBgrLinePair,nc=R.UpsampleRgbaLinePair,rc=R.UpsampleBgraLinePair,ic=R.UpsampleArgbLinePair,ac=R.UpsampleRgba4444LinePair,Bu=R.UpsampleRgb565LinePair,Ya=16,Ja=1<<Ya-1,oa=-227,rs=482,oc=6,Eu=(256<<oc)-1,sc=0,Du=o(256),qu=o(256),Ru=o(256),Tu=o(256),zu=o(rs-oa),Uu=o(rs-oa);sr("YuvToRgbRow",ie,3),sr("YuvToBgrRow",Le,3),sr("YuvToRgbaRow",jn,4),sr("YuvToBgraRow",Te,4),sr("YuvToArgbRow",Xe,4),sr("YuvToRgba4444Row",Be,2),sr("YuvToRgb565Row",Se,2);var cc=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Xa=[0,2,8],Hu=[8,7,6,4,4,2,2,2,1,1,1,1],Wu=1;this.WebPDecodeRGBA=function(t,i,l,d,m){var w=Ha,y=new fi,L=new _n;y.ba=L,L.S=w,L.width=[L.width],L.height=[L.height];var x=L.width,k=L.height,U=new rr;if(U==null||t==null)var $=2;else e(U!=null),$=pi(t,i,l,U.width,U.height,U.Pd,U.Qd,U.format,null);if($!=0?x=0:(x!=null&&(x[0]=U.width[0]),k!=null&&(k[0]=U.height[0]),x=1),x){L.width=L.width[0],L.height=L.height[0],d!=null&&(d[0]=L.width),m!=null&&(m[0]=L.height);t:{if(d=new ai,(m=new Gi).data=t,m.w=i,m.ha=l,m.kd=1,i=[0],e(m!=null),((t=pi(m.data,m.w,m.ha,null,null,null,i,null,m))==0||t==7)&&i[0]&&(t=4),(i=t)==0){if(e(y!=null),d.data=m.data,d.w=m.w+m.offset,d.ha=m.ha-m.offset,d.put=Wn,d.ac=Ve,d.bc=Vn,d.ma=y,m.xa){if((t=bn())==null){y=1;break t}if(function(K,G){var vt=[0],it=[0],H=[0];e:for(;;){if(K==null)return 0;if(G==null)return K.a=2,0;if(K.l=G,K.a=0,Z(K.m,G.data,G.w,G.ha),!Tt(K.m,vt,it,H)){K.a=3;break e}if(K.xb=ec,G.width=vt[0],G.height=it[0],!Jn(vt[0],it[0],1,K,null))break e;return 1}return e(K.a!=0),0}(t,d)){if(d=(i=gi(d.width,d.height,y.Oa,y.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((l=d.l)!=null),e((m=l.ma)!=null),d.xb!=0){if(d.ca=m.ba,d.tb=m.tb,e(d.ca!=null),!Zi(m.Oa,l,Wa)){d.a=2;break n}if(!Tr(d,l.width)||l.da)break n;if((l.da||ue(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&&!Ut(d.s.vb,d.s.Wa.Xa)){d.a=1;break n}d.xb=0}if(!In(d,d.V,d.Ba,d.c,d.i,l.o,Qr))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 ko)==null){y=1;break t}if(t.Fa=m.na,t.P=m.P,t.qc=m.Sa,La(t,d)){if((i=gi(d.width,d.height,y.Oa,y.ba))==0){if(t.Aa=0,l=y.Oa,e((m=t)!=null),l!=null){if(0<(x=0>(x=l.Md)?0:100<x?255:255*x/100)){for(k=U=0;4>k;++k)12>($=m.pb[k]).lc&&($.ia=x*Hu[0>$.lc?0:$.lc]>>3),U|=$.ia;U&&(alert("todo:VP8InitRandom"),m.ia=1)}m.Ga=l.Id,100<m.Ga?m.Ga=100:0>m.Ga&&(m.Ga=0)}Io(t,d)||(i=t.a)}}else i=t.a}i==0&&y.Oa!=null&&y.Oa.fd&&(i=Qi(y.ba))}y=i}w=y!=0?null:11>w?L.f.RGBA.eb:L.f.kb.y}else w=null;return w};var uc=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function g(R,gt){for(var dt="",F=0;F<4;F++)dt+=String.fromCharCode(R[gt++]);return dt}function v(R,gt){return(R[gt+0]<<0|R[gt+1]<<8|R[gt+2]<<16)>>>0}function N(R,gt){return(R[gt+0]<<0|R[gt+1]<<8|R[gt+2]<<16|R[gt+3]<<24)>>>0}new f;var S=[0],p=[0],M=[],I=new f,B=r,_=function(R,gt){var dt={},F=0,P=!1,z=0,q=0;if(dt.frames=[],!function(j,E,W,Y){for(var Q=0;Q<Y;Q++)if(j[E+Q]!=W.charCodeAt(Q))return!0;return!1}(R,gt,"RIFF",4)){var at,nt;for(N(R,gt+=4),gt+=8;gt<R.length;){var lt=g(R,gt),Z=N(R,gt+=4);gt+=4;var ft=Z+(1&Z);switch(lt){case"VP8 ":case"VP8L":dt.frames[F]===void 0&&(dt.frames[F]={}),(A=dt.frames[F]).src_off=P?q:gt-8,A.src_size=z+Z+8,F++,P&&(P=!1,z=0,q=0);break;case"VP8X":(A=dt.header={}).feature_flags=R[gt];var ht=gt+4;A.canvas_width=1+v(R,ht),ht+=3,A.canvas_height=1+v(R,ht),ht+=3;break;case"ALPH":P=!0,z=ft+8,q=gt-8;break;case"ANIM":(A=dt.header).bgcolor=N(R,gt),ht=gt+4,A.loop_count=(at=R)[(nt=ht)+0]<<0|at[nt+1]<<8,ht+=2;break;case"ANMF":var kt,A;(A=dt.frames[F]={}).offset_x=2*v(R,gt),gt+=3,A.offset_y=2*v(R,gt),gt+=3,A.width=1+v(R,gt),gt+=3,A.height=1+v(R,gt),gt+=3,A.duration=v(R,gt),gt+=3,kt=R[gt++],A.dispose=1&kt,A.blend=kt>>1&1}lt!="ANMF"&&(gt+=ft)}return dt}}(B,0);_.response=B,_.rgbaoutput=!0,_.dataurl=!1;var O=_.header?_.header:null,J=_.frames?_.frames:null;if(O){O.loop_counter=O.loop_count,S=[O.canvas_height],p=[O.canvas_width];for(var ot=0;ot<J.length&&J[ot].blend!=0;ot++);}var ut=J[0],wt=I.WebPDecodeRGBA(B,ut.src_off,ut.src_size,p,S);ut.rgba=wt,ut.imgwidth=p[0],ut.imgheight=S[0];for(var tt=0;tt<p[0]*S[0]*4;tt++)M[tt]=wt[tt];return this.width=p,this.height=S,this.data=M,this}(function(r){var e=function(){return typeof Bs=="function"},n=function(S,p,M,I){var B=4,_=u;switch(I){case r.image_compression.FAST:B=1,_=o;break;case r.image_compression.MEDIUM:B=6,_=h;break;case r.image_compression.SLOW:B=9,_=f}S=a(S,p,M,_);var O=Bs(S,{level:B});return r.__addimage__.arrayBufferToBinaryString(O)},a=function(S,p,M,I){for(var B,_,O,J=S.length/p,ot=new Uint8Array(S.length+J),ut=v(),wt=0;wt<J;wt+=1){if(O=wt*p,B=S.subarray(O,O+p),I)ot.set(I(B,M,_),O+wt);else{for(var tt,R=ut.length,gt=[];tt<R;tt+=1)gt[tt]=ut[tt](B,M,_);var dt=N(gt.concat());ot.set(gt[dt],O+wt)}_=B}return ot},s=function(S){var p=Array.apply([],S);return p.unshift(0),p},o=function(S,p){var M,I=[],B=S.length;I[0]=1;for(var _=0;_<B;_+=1)M=S[_-p]||0,I[_+1]=S[_]-M+256&255;return I},u=function(S,p,M){var I,B=[],_=S.length;B[0]=2;for(var O=0;O<_;O+=1)I=M&&M[O]||0,B[O+1]=S[O]-I+256&255;return B},h=function(S,p,M){var I,B,_=[],O=S.length;_[0]=3;for(var J=0;J<O;J+=1)I=S[J-p]||0,B=M&&M[J]||0,_[J+1]=S[J]+256-(I+B>>>1)&255;return _},f=function(S,p,M){var I,B,_,O,J=[],ot=S.length;J[0]=4;for(var ut=0;ut<ot;ut+=1)I=S[ut-p]||0,B=M&&M[ut]||0,_=M&&M[ut-p]||0,O=g(I,B,_),J[ut+1]=S[ut]-O+256&255;return J},g=function(S,p,M){if(S===p&&p===M)return S;var I=Math.abs(p-M),B=Math.abs(S-M),_=Math.abs(S+p-M-M);return I<=B&&I<=_?S:B<=_?p:M},v=function(){return[s,o,u,h,f]},N=function(S){var p=S.map(function(M){return M.reduce(function(I,B){return I+Math.abs(B)},0)});return p.indexOf(Math.min.apply(null,p))};r.processPNG=function(S,p,M,I){var B,_,O,J,ot,ut,wt,tt,R,gt,dt,F,P,z,q,at=this.decode.FLATE_DECODE,nt="";if(this.__addimage__.isArrayBuffer(S)&&(S=new Uint8Array(S)),this.__addimage__.isArrayBufferView(S)){if(S=(O=new a1(S)).imgData,_=O.bits,B=O.colorSpace,ot=O.colors,[4,6].indexOf(O.colorType)!==-1){if(O.bits===8){R=(tt=O.pixelBitlength==32?new Uint32Array(O.decodePixels().buffer):O.pixelBitlength==16?new Uint16Array(O.decodePixels().buffer):new Uint8Array(O.decodePixels().buffer)).length,dt=new Uint8Array(R*O.colors),gt=new Uint8Array(R);var lt,Z=O.pixelBitlength-O.bits;for(z=0,q=0;z<R;z++){for(P=tt[z],lt=0;lt<Z;)dt[q++]=P>>>lt&255,lt+=O.bits;gt[z]=P>>>lt&255}}if(O.bits===16){R=(tt=new Uint32Array(O.decodePixels().buffer)).length,dt=new Uint8Array(R*(32/O.pixelBitlength)*O.colors),gt=new Uint8Array(R*(32/O.pixelBitlength)),F=O.colors>1,z=0,q=0;for(var ft=0;z<R;)P=tt[z++],dt[q++]=P>>>0&255,F&&(dt[q++]=P>>>16&255,P=tt[z++],dt[q++]=P>>>0&255),gt[ft++]=P>>>16&255;_=8}I!==r.image_compression.NONE&&e()?(S=n(dt,O.width*O.colors,O.colors,I),wt=n(gt,O.width,1,I)):(S=dt,wt=gt,at=void 0)}if(O.colorType===3&&(B=this.color_spaces.INDEXED,ut=O.palette,O.transparency.indexed)){var ht=O.transparency.indexed,kt=0;for(z=0,R=ht.length;z<R;++z)kt+=ht[z];if((kt/=255)===R-1&&ht.indexOf(0)!==-1)J=[ht.indexOf(0)];else if(kt!==R){for(tt=O.decodePixels(),gt=new Uint8Array(tt.length),z=0,R=tt.length;z<R;z++)gt[z]=ht[tt[z]];wt=n(gt,O.width,1)}}var A=function(j){var E;switch(j){case r.image_compression.FAST:E=11;break;case r.image_compression.MEDIUM:E=13;break;case r.image_compression.SLOW:E=14;break;default:E=12}return E}(I);return at===this.decode.FLATE_DECODE&&(nt="/Predictor "+A+" "),nt+="/Colors "+ot+" /BitsPerComponent "+_+" /Columns "+O.width,(this.__addimage__.isArrayBuffer(S)||this.__addimage__.isArrayBufferView(S))&&(S=this.__addimage__.arrayBufferToBinaryString(S)),(wt&&this.__addimage__.isArrayBuffer(wt)||this.__addimage__.isArrayBufferView(wt))&&(wt=this.__addimage__.arrayBufferToBinaryString(wt)),{alias:M,data:S,index:p,filter:at,decodeParameters:nt,transparency:J,palette:ut,sMask:wt,predictor:A,width:O.width,height:O.height,bitsPerComponent:_,colorSpace:B}}}})(zt.API),function(r){r.processGIF89A=function(e,n,a,s){var o=new o1(e),u=o.width,h=o.height,f=[];o.decodeAndBlitFrameRGBA(0,f);var g={data:f,width:u,height:h},v=new Ps(100).encode(g,100);return r.processJPEG.call(this,v,n,a,s)},r.processGIF87A=r.processGIF89A}(zt.API),Tn.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)},Tn.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){be.log("bit decode error:"+n)}},Tn.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),u=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];this.data[u+4*h]=f.blue,this.data[u+4*h+1]=f.green,this.data[u+4*h+2]=f.red,this.data[u+4*h+3]=255}n!==0&&(this.pos+=4-n)}},Tn.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),u=a*this.width*4+2*s*4,h=o>>4,f=15&o,g=this.palette[h];if(this.data[u]=g.blue,this.data[u+1]=g.green,this.data[u+2]=g.red,this.data[u+3]=255,2*s+1>=this.width)break;g=this.palette[f],this.data[u+4]=g.blue,this.data[u+4+1]=g.green,this.data[u+4+2]=g.red,this.data[u+4+3]=255}e!==0&&(this.pos+=4-e)}},Tn.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 u=this.palette[s];this.data[o]=u.red,this.data[o+1]=u.green,this.data[o+2]=u.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)}},Tn.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 u=(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]=u,this.data[v+3]=g}this.pos+=r}},Tn.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 u=this.datav.getUint16(this.pos,!0);this.pos+=2;var h=(u&e)/e*255|0,f=(u>>5&n)/n*255|0,g=(u>>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}},Tn.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),u=e*this.width*4+4*n;this.data[u]=o,this.data[u+1]=s,this.data[u+2]=a,this.data[u+3]=255}this.pos+=this.width%4}},Tn.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),u=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]=u}},Tn.prototype.getData=function(){return this.data},function(r){r.processBMP=function(e,n,a,s){var o=new Tn(e,!1),u=o.width,h=o.height,f={data:o.getData(),width:u,height:h},g=new Ps(100).encode(f,100);return r.processJPEG.call(this,g,n,a,s)}}(zt.API),Yc.prototype.getData=function(){return this.data},function(r){r.processWEBP=function(e,n,a,s){var o=new Yc(e),u=o.width,h=o.height,f={data:o.getData(),width:u,height:h},g=new Ps(100).encode(f,100);return r.processJPEG.call(this,g,n,a,s)}}(zt.API),zt.API.processRGBA=function(r,e,n){for(var a=r.data,s=a.length,o=new Uint8Array(s/4*3),u=new Uint8Array(s/4),h=0,f=0,g=0;g<s;g+=4){var v=a[g],N=a[g+1],S=a[g+2],p=a[g+3];o[h++]=v,o[h++]=N,o[h++]=S,u[f++]=p}var M=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(u),data:M,index:e,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:r.width,height:r.height}},zt.API.setLanguage=function(r){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[r]!==void 0&&(this.internal.languageSettings.languageCode=r,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},ki=zt.API,uo=ki.getCharWidthsArray=function(r,e){var n,a,s=(e=e||{}).font||this.internal.getFont(),o=e.fontSize||this.internal.getFontSize(),u=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,N=e.doKerning!==!1,S=0,p=r.length,M=0,I=h[0]||f,B=[];for(n=0;n<p;n++)a=r.charCodeAt(n),typeof s.metadata.widthOfString=="function"?B.push((s.metadata.widthOfGlyph(s.metadata.characterToGlyph(a))+u*(1e3/o)||0)/1e3):(S=N&&de(g[a])==="object"&&!isNaN(parseInt(g[a][M],10))?g[a][M]/v:0,B.push((h[a]||I)/f+S)),M=a;return B},Hc=ki.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 ki.processArabic&&(r=ki.processArabic(r)),typeof a.metadata.widthOfString=="function"?a.metadata.widthOfString(r,n,s)/n:uo.apply(this,arguments).reduce(function(o,u){return o+u},0)},Wc=function(r,e,n,a){for(var s=[],o=0,u=r.length,h=0;o!==u&&h+e[o]<n;)h+=e[o],o++;s.push(r.slice(0,o));var f=o;for(h=0;o!==u;)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},Vc=function(r,e,n){n||(n={});var a,s,o,u,h,f,g,v=[],N=[v],S=n.textIndent||0,p=0,M=0,I=r.split(" "),B=uo.apply(this,[" ",n])[0];if(f=n.lineIndent===-1?I[0].length+2:n.lineIndent||0){var _=Array(f).join(" "),O=[];I.map(function(ot){(ot=ot.split(/\s*\n/)).length>1?O=O.concat(ot.map(function(ut,wt){return(wt&&ut.length?`
`:"")+ut})):O.push(ot[0])}),I=O,f=Hc.apply(this,[_,n])}for(o=0,u=I.length;o<u;o++){var J=0;if(a=I[o],f&&a[0]==`
`&&(a=a.substr(1),J=1),S+p+(M=(s=uo.apply(this,[a,n])).reduce(function(ot,ut){return ot+ut},0))>e||J){if(M>e){for(h=Wc.apply(this,[a,s,e-(S+p),e]),v.push(h.shift()),v=[h.pop()];h.length;)N.push([h.shift()]);M=s.slice(a.length-(v[0]?v[0].length:0)).reduce(function(ot,ut){return ot+ut},0)}else v=[a];N.push(v),S=M+f,p=B}else v.push(a),S+=p+M,p=B}return g=f?function(ot,ut){return(ut?_:"")+ot.join(" ")}:function(ot){return ot.join(" ")},N.map(g)},ki.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 N=this.internal.getFont(v.fontName,v.fontStyle);return N.metadata.Unicode?{widths:N.metadata.Unicode.widths||{0:1},kerning:N.metadata.Unicode.kerning||{}}:{font:N.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);a=Array.isArray(r)?r:String(r).split(/\r?\n/);var u=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(Vc.apply(this,[a[h],u,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(N){return"0x"+parseInt(N,10).toString(16)},u=r.__fontmetrics__.compress=function(N){var S,p,M,I,B=["{"];for(var _ in N){if(S=N[_],isNaN(parseInt(_,10))?p="'"+_+"'":(_=parseInt(_,10),p=(p=o(_).slice(2)).slice(0,-1)+a[p.slice(-1)]),typeof S=="number")S<0?(M=o(S).slice(3),I="-"):(M=o(S).slice(2),I=""),M=I+M.slice(0,-1)+a[M.slice(-1)];else{if(de(S)!=="object")throw new Error("Don't know what to do with value type "+de(S)+".");M=u(S)}B.push(p+M)}return B.push("}"),B.join("")},h=r.__fontmetrics__.uncompress=function(N){if(typeof N!="string")throw new Error("Invalid argument passed to uncompress.");for(var S,p,M,I,B={},_=1,O=B,J=[],ot="",ut="",wt=N.length-1,tt=1;tt<wt;tt+=1)(I=N[tt])=="'"?S?(M=S.join(""),S=void 0):S=[]:S?S.push(I):I=="{"?(J.push([O,M]),O={},M=void 0):I=="}"?((p=J.pop())[0][p[1]]=O,M=void 0,O=p[0]):I=="-"?_=-1:M===void 0?n.hasOwnProperty(I)?(ot+=n[I],M=parseInt(ot,16)*_,_=1,ot=""):ot+=I:n.hasOwnProperty(I)?(ut+=n[I],O[M]=parseInt(ut,16)*_,_=1,M=void 0,ut=""):ut+=I;return B},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'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier: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'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":h("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats: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}fv{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'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};r.events.push(["addFont",function(N){var S=N.font,p=v.Unicode[S.postScriptName];p&&(S.metadata.Unicode={},S.metadata.Unicode.widths=p.widths,S.metadata.Unicode.kerning=p.kerning);var M=g.Unicode[S.postScriptName];M&&(S.metadata.Unicode.encoding=M,S.encoding=M.codePages[0])}])}(zt.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(u,h){h=/^\x00\x01\x00\x00/.test(h)?e(h):e(ga(h)),u.metadata=r.API.TTFFont.open(h),u.metadata.Unicode=u.metadata.Unicode||{encoding:{},kerning:{},widths:[]},u.metadata.glyIdsUsed=[0]})(s,a)}}])}(zt),function(r){function e(){return(Ht.canvg?Promise.resolve(Ht.canvg):Is(()=>import("./index.es.4beacb18.js"),["assets/index.es.4beacb18.js","assets/index.1ae0b595.js","assets/index.57888b81.css"])).catch(function(n){return Promise.reject(new Error("Could not load canvg: "+n))}).then(function(n){return n.default?n.default:n})}zt.API.addSvgAsImage=function(n,a,s,o,u,h,f,g){if(isNaN(a)||isNaN(s))throw be.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(o)||isNaN(u))throw be.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=u;var N=v.getContext("2d");N.fillStyle="#fff",N.fillRect(0,0,v.width,v.height);var S={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},p=this;return e().then(function(M){return M.fromString(N,n,S)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(M){return M.render(S)}).then(function(){p.addImage(v.toDataURL("image/jpeg",1),a,s,o,u,f,g)})}}(),zt.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},zt.API.viewerPreferences=function(r,e){var n;r=r||{},e=e||!1;var a,s,o,u={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(u),f=[],g=0,v=0,N=0;function S(M,I){var B,_=!1;for(B=0;B<M.length;B+=1)M[B]===I&&(_=!0);return _}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(u)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,r==="reset"||e===!0){var p=h.length;for(N=0;N<p;N+=1)n[h[N]].value=n[h[N]].defaultValue,n[h[N]].explicitSet=!1}if(de(r)==="object"){for(s in r)if(o=r[s],S(h,s)&&o!==void 0){if(n[s].type==="boolean"&&typeof o=="boolean")n[s].value=o;else if(n[s].type==="name"&&S(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 M,I=[];for(M in n)n[M].explicitSet===!0&&(n[M].type==="name"?I.push("/"+M+" /"+n[M].value):I.push("/"+M+" "+n[M].value));I.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+I.join(`
`)+`
>>`)}),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)),u=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),h=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),f=unescape(encodeURIComponent("</x:xmpmeta>")),g=o.length+u.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+u+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}}(zt.API),function(r){var e=r.API,n=e.pdfEscape16=function(o,u){for(var h,f=u.metadata.Unicode.widths,g=["","0","00","000","0000"],v=[""],N=0,S=o.length;N<S;++N){if(h=u.metadata.characterToGlyph(o.charCodeAt(N)),u.metadata.glyIdsUsed.push(h),u.metadata.toUnicode[h]=o.charCodeAt(N),f.indexOf(h)==-1&&(f.push(h),f.push([parseInt(u.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 u,h,f,g,v,N,S;for(v=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
  /Registry (Adobe)
  /Ordering (UCS)
  /Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,f=[],N=0,S=(h=Object.keys(o).sort(function(p,M){return p-M})).length;N<S;N++)u=h[N],f.length>=100&&(v+=`
`+f.length+` beginbfchar
`+f.join(`
`)+`
endbfchar`,f=[]),o[u]!==void 0&&o[u]!==null&&typeof o[u].toString=="function"&&(g=("0000"+o[u].toString(16)).slice(-4),u=("0000"+(+u).toString(16)).slice(-4),f.push("<"+u+"><"+g+">"));return f.length&&(v+=`
`+f.length+` beginbfchar
`+f.join(`
`)+`
endbfchar
`),v+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};e.events.push(["putFont",function(o){(function(u){var h=u.font,f=u.out,g=u.newObject,v=u.putStream;if(h.metadata instanceof r.API.TTFFont&&h.encoding==="Identity-H"){for(var N=h.metadata.Unicode.widths,S=h.metadata.subset.encode(h.metadata.glyIdsUsed,1),p="",M=0;M<S.length;M++)p+=String.fromCharCode(S[M]);var I=g();v({data:p,addLength1:!0,objectId:I}),f("endobj");var B=g();v({data:a(h.metadata.toUnicode),addLength1:!0,objectId:B}),f("endobj");var _=g();f("<<"),f("/Type /FontDescriptor"),f("/FontName /"+Fi(h.fontName)),f("/FontFile2 "+I+" 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(">>"),f("endobj");var O=g();f("<<"),f("/Type /Font"),f("/BaseFont /"+Fi(h.fontName)),f("/FontDescriptor "+_+" 0 R"),f("/W "+r.API.PDFObject.convert(N)),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 "+B+" 0 R"),f("/BaseFont /"+Fi(h.fontName)),f("/Encoding /"+h.encoding),f("/DescendantFonts ["+O+" 0 R]"),f(">>"),f("endobj"),h.isAlreadyPutted=!0}})(o)}]),e.events.push(["putFont",function(o){(function(u){var h=u.font,f=u.out,g=u.newObject,v=u.putStream;if(h.metadata instanceof r.API.TTFFont&&h.encoding==="WinAnsiEncoding"){for(var N=h.metadata.rawData,S="",p=0;p<N.length;p++)S+=String.fromCharCode(N[p]);var M=g();v({data:S,addLength1:!0,objectId:M}),f("endobj");var I=g();v({data:a(h.metadata.toUnicode),addLength1:!0,objectId:I}),f("endobj");var B=g();f("<<"),f("/Descent "+h.metadata.decender),f("/CapHeight "+h.metadata.capHeight),f("/StemV "+h.metadata.stemV),f("/Type /FontDescriptor"),f("/FontFile2 "+M+" 0 R"),f("/Flags 96"),f("/FontBBox "+r.API.PDFObject.convert(h.metadata.bbox)),f("/FontName /"+Fi(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 "+I+" 0 R/BaseFont/"+Fi(h.fontName)+"/FontDescriptor "+B+" 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 u,h=o.text||"",f=o.x,g=o.y,v=o.options||{},N=o.mutex||{},S=N.pdfEscape,p=N.activeFontKey,M=N.fonts,I=p,B="",_=0,O="",J=M[I].encoding;if(M[I].encoding!=="Identity-H")return{text:h,x:f,y:g,options:v,mutex:N};for(O=h,I=p,Array.isArray(h)&&(O=h[0]),_=0;_<O.length;_+=1)M[I].metadata.hasOwnProperty("cmap")&&(u=M[I].metadata.cmap.unicode.codeMap[O[_].charCodeAt(0)]),u||O[_].charCodeAt(0)<256&&M[I].metadata.hasOwnProperty("Unicode")?B+=O[_]:B+="";var ot="";return parseInt(I.slice(1))<14||J==="WinAnsiEncoding"?ot=S(B,I).split("").map(function(ut){return ut.charCodeAt(0).toString(16)}).join(""):J==="Identity-H"&&(ot=n(B,M[I])),N.isHex=!0,{text:ot,x:f,y:g,options:v,mutex:N}};e.events.push(["postProcessText",function(o){var u=o.text||"",h=[],f={text:u,x:o.x,y:o.y,options:o.options,mutex:o.mutex};if(Array.isArray(u)){var g=0;for(g=0;g<u.length;g+=1)Array.isArray(u[g])&&u[g].length===3?h.push([s(Object.assign({},f,{text:u[g][0]})).text,u[g][1],u[g][2]]):h.push(s(Object.assign({},f,{text:u[g]})).text);o.text=h}else o.text=s(Object.assign({},f,{text:u})).text}])}(zt),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}}(zt.API),function(r){r.__bidiEngine__=r.prototype.__bidiEngine__=function(a){var s,o,u,h,f,g,v,N=e,S=[[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]],M={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},I={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},B=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],_=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)$/),O=!1,J=0;this.__bidiEngine__={};var ot=function(F){var P=F.charCodeAt(),z=P>>8,q=I[z];return q!==void 0?N[256*q+(255&P)]:z===252||z===253?"AL":_.test(z)?"L":z===8?"R":"N"},ut=function(F){for(var P,z=0;z<F.length;z++){if((P=ot(F.charAt(z)))==="L")return!1;if(P==="R")return!0}return!1},wt=function(F,P,z,q){var at,nt,lt,Z,ft=P[q];switch(ft){case"L":case"R":O=!1;break;case"N":case"AN":break;case"EN":O&&(ft="AN");break;case"AL":O=!0,ft="R";break;case"WS":ft="N";break;case"CS":q<1||q+1>=P.length||(at=z[q-1])!=="EN"&&at!=="AN"||(nt=P[q+1])!=="EN"&&nt!=="AN"?ft="N":O&&(nt="AN"),ft=nt===at?nt:"N";break;case"ES":ft=(at=q>0?z[q-1]:"B")==="EN"&&q+1<P.length&&P[q+1]==="EN"?"EN":"N";break;case"ET":if(q>0&&z[q-1]==="EN"){ft="EN";break}if(O){ft="N";break}for(lt=q+1,Z=P.length;lt<Z&&P[lt]==="ET";)lt++;ft=lt<Z&&P[lt]==="EN"?"EN":"N";break;case"NSM":if(u&&!h){for(Z=P.length,lt=q+1;lt<Z&&P[lt]==="NSM";)lt++;if(lt<Z){var ht=F[q],kt=ht>=1425&&ht<=2303||ht===64286;if(at=P[lt],kt&&(at==="R"||at==="AL")){ft="R";break}}}ft=q<1||(at=P[q-1])==="B"?"N":z[q-1];break;case"B":O=!1,s=!0,ft=J;break;case"S":o=!0,ft="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":O=!1;break;case"BN":ft="N"}return ft},tt=function(F,P,z){var q=F.split("");return z&&R(q,z,{hiLevel:J}),q.reverse(),P&&P.reverse(),q.join("")},R=function(F,P,z){var q,at,nt,lt,Z,ft=-1,ht=F.length,kt=0,A=[],j=J?p:S,E=[];for(O=!1,s=!1,o=!1,at=0;at<ht;at++)E[at]=ot(F[at]);for(nt=0;nt<ht;nt++){if(Z=kt,A[nt]=wt(F,E,A,nt),q=240&(kt=j[Z][M[A[nt]]]),kt&=15,P[nt]=lt=j[kt][5],q>0)if(q===16){for(at=ft;at<nt;at++)P[at]=1;ft=-1}else ft=-1;if(j[kt][6])ft===-1&&(ft=nt);else if(ft>-1){for(at=ft;at<nt;at++)P[at]=lt;ft=-1}E[nt]==="B"&&(P[nt]=0),z.hiLevel|=lt}o&&function(W,Y,Q){for(var et=0;et<Q;et++)if(W[et]==="S"){Y[et]=J;for(var rt=et-1;rt>=0&&W[rt]==="WS";rt--)Y[rt]=J}}(E,P,ht)},gt=function(F,P,z,q,at){if(!(at.hiLevel<F)){if(F===1&&J===1&&!s)return P.reverse(),void(z&&z.reverse());for(var nt,lt,Z,ft,ht=P.length,kt=0;kt<ht;){if(q[kt]>=F){for(Z=kt+1;Z<ht&&q[Z]>=F;)Z++;for(ft=kt,lt=Z-1;ft<lt;ft++,lt--)nt=P[ft],P[ft]=P[lt],P[lt]=nt,z&&(nt=z[ft],z[ft]=z[lt],z[lt]=nt);kt=Z}kt++}}},dt=function(F,P,z){var q=F.split(""),at={hiLevel:J};return z||(z=[]),R(q,z,at),function(nt,lt,Z){if(Z.hiLevel!==0&&v)for(var ft,ht=0;ht<nt.length;ht++)lt[ht]===1&&(ft=B.indexOf(nt[ht]))>=0&&(nt[ht]=B[ft+1])}(q,z,at),gt(2,q,P,z,at),gt(1,q,P,z,at),q.join("")};return this.__bidiEngine__.doBidiReorder=function(F,P,z){if(function(at,nt){if(nt)for(var lt=0;lt<at.length;lt++)nt[lt]=lt;h===void 0&&(h=ut(at)),g===void 0&&(g=ut(at))}(F,P),u||!f||g)if(u&&f&&h^g)J=h?1:0,F=tt(F,P,z);else if(!u&&f&&g)J=h?1:0,F=dt(F,P,z),F=tt(F,P);else if(!u||h||f||g){if(u&&!f&&h^g)F=tt(F,P),h?(J=0,F=dt(F,P,z)):(J=1,F=dt(F,P,z),F=tt(F,P));else if(u&&h&&!f&&g)J=1,F=dt(F,P,z),F=tt(F,P);else if(!u&&!f&&h^g){var q=v;h?(J=1,F=dt(F,P,z),J=0,v=!1,F=dt(F,P,z),v=q):(J=0,F=dt(F,P,z),F=tt(F,P),J=1,v=!1,F=dt(F,P,z),v=q,F=tt(F,P))}}else J=0,F=dt(F,P,z);else J=h?1:0,F=dt(F,P,z);return F},this.__bidiEngine__.setOptions=function(F){F&&(u=F.isInputVisual,f=F.isOutputVisual,h=F.isInputRtl,g=F.isOutputRtl,v=F.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","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||{}),u=(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(u=[],h=0;h<s.length;h+=1)Object.prototype.toString.call(s[h])==="[object Array]"?u.push([n.doBidiReorder(s[h][0]),s[h][1],s[h][2]]):u.push([n.doBidiReorder(s[h])]);a.text=u}else a.text=n.doBidiReorder(s);n.setOptions({isInputVisual:!0})}])}(zt),zt.API.TTFFont=function(){function r(e){var n;if(this.rawData=e,n=this.contents=new Dr(e),this.contents.pos=4,n.readString(4)==="ttcf")throw new Error("TTCF not supported.");n.pos=0,this.parse(),this.subset=new A1(this),this.registerTTF()}return r.open=function(e){return new r(e)},r.prototype.parse=function(){return this.directory=new s1(this.contents),this.head=new u1(this),this.name=new p1(this),this.cmap=new mu(this),this.toUnicode={},this.hhea=new l1(this),this.maxp=new g1(this),this.hmtx=new m1(this),this.post=new f1(this),this.os2=new h1(this),this.loca=new y1(this),this.glyf=new v1(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 u,h,f,g;for(g=[],u=0,h=(f=this.bbox).length;u<h;u++)e=f[u],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))!=0&&(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,u,h;for(u=0,o=0,h=(e=""+e).length;0<=h?o<h:o>h;o=0<=h?++o:--o)s=e.charCodeAt(o),u+=this.widthOfGlyph(this.characterToGlyph(s))+a*(1e3/n)||0;return u*(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 Un,Dr=function(){function r(e){this.data=e!=null?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,u,h,f;return e=this.readByte(),n=this.readByte(),a=this.readByte(),s=this.readByte(),o=this.readByte(),u=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^u)+256*(255^h)+(255^f)+1):72057594037927940*e+281474976710656*n+1099511627776*a+4294967296*s+16777216*o+65536*u+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}(),s1=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,u,h,f,g,v,N,S,p,M,I;for(I in p=Object.keys(n).length,f=Math.log(2),N=16*Math.floor(Math.log(p)/f),u=Math.floor(N/f),v=16*p-N,(s=new Dr).writeInt(this.scalarType),s.writeShort(p),s.writeShort(N),s.writeShort(u),s.writeShort(v),o=16*p,g=s.pos+o,h=null,M=[],n)for(S=n[I],s.writeString(I),s.writeInt(r(S)),s.writeInt(g),s.writeInt(S.length),M=M.concat(S),I==="head"&&(h=g),g+=S.length;g%4;)M.push(0),g++;return s.write(M),a=2981146554-r(s.data),s.pos=h+8,s.writeUInt32(a),s.data},r=function(n){var a,s,o,u;for(n=vu.call(n);n.length%4;)n.push(0);for(o=new Dr(n),s=0,a=0,u=n.length;a<u;a=a+=4)s+=o.readUInt32();return 4294967295&s},e}(),c1={}.hasOwnProperty,nr=function(r,e){for(var n in e)c1.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};Un=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 u1=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return nr(e,Un),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 Dr).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}(),Jc=function(){function r(e,n){var a,s,o,u,h,f,g,v,N,S,p,M,I,B,_,O,J;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=n+e.readInt(),N=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(),S=p/2,e.pos+=6,o=function(){var ot,ut;for(ut=[],f=ot=0;0<=S?ot<S:ot>S;f=0<=S?++ot:--ot)ut.push(e.readUInt16());return ut}(),e.pos+=2,I=function(){var ot,ut;for(ut=[],f=ot=0;0<=S?ot<S:ot>S;f=0<=S?++ot:--ot)ut.push(e.readUInt16());return ut}(),g=function(){var ot,ut;for(ut=[],f=ot=0;0<=S?ot<S:ot>S;f=0<=S?++ot:--ot)ut.push(e.readUInt16());return ut}(),v=function(){var ot,ut;for(ut=[],f=ot=0;0<=S?ot<S:ot>S;f=0<=S?++ot:--ot)ut.push(e.readUInt16());return ut}(),s=(this.length-e.pos+this.offset)/2,h=function(){var ot,ut;for(ut=[],f=ot=0;0<=s?ot<s:ot>s;f=0<=s?++ot:--ot)ut.push(e.readUInt16());return ut}(),f=_=0,J=o.length;_<J;f=++_)for(B=o[f],a=O=M=I[f];M<=B?O<=B:O>=B;a=M<=B?++O:--O)v[f]===0?u=a+g[f]:(u=h[v[f]/2+(a-M)-(S-f)]||0)!==0&&(u+=g[f]),this.codeMap[a]=65535&u}e.pos=N}return r.encode=function(e,n){var a,s,o,u,h,f,g,v,N,S,p,M,I,B,_,O,J,ot,ut,wt,tt,R,gt,dt,F,P,z,q,at,nt,lt,Z,ft,ht,kt,A,j,E,W,Y,Q,et,rt,Lt,Nt,Ct;switch(q=new Dr,u=Object.keys(e).sort(function(Mt,Ut){return Mt-Ut}),n){case"macroman":for(I=0,B=function(){var Mt=[];for(M=0;M<256;++M)Mt.push(0);return Mt}(),O={0:0},o={},at=0,ft=u.length;at<ft;at++)O[rt=e[s=u[at]]]==null&&(O[rt]=++I),o[s]={old:e[s],new:O[e[s]]},B[s]=O[e[s]];return q.writeUInt16(1),q.writeUInt16(0),q.writeUInt32(12),q.writeUInt16(0),q.writeUInt16(262),q.writeUInt16(0),q.write(B),{charMap:o,subtable:q.data,maxGlyphID:I+1};case"unicode":for(P=[],N=[],J=0,O={},a={},_=g=null,nt=0,ht=u.length;nt<ht;nt++)O[ut=e[s=u[nt]]]==null&&(O[ut]=++J),a[s]={old:ut,new:O[ut]},h=O[ut]-s,_!=null&&h===g||(_&&N.push(_),P.push(s),g=h),_=s;for(_&&N.push(_),N.push(65535),P.push(65535),dt=2*(gt=P.length),R=2*Math.pow(Math.log(gt)/Math.LN2,2),S=Math.log(R/2)/Math.LN2,tt=2*gt-R,f=[],wt=[],p=[],M=lt=0,kt=P.length;lt<kt;M=++lt){if(F=P[M],v=N[M],F===65535){f.push(0),wt.push(0);break}if(F-(z=a[F].new)>=32768)for(f.push(0),wt.push(2*(p.length+gt-M)),s=Z=F;F<=v?Z<=v:Z>=v;s=F<=v?++Z:--Z)p.push(a[s].new);else f.push(z-F),wt.push(0)}for(q.writeUInt16(3),q.writeUInt16(1),q.writeUInt32(12),q.writeUInt16(4),q.writeUInt16(16+8*gt+2*p.length),q.writeUInt16(0),q.writeUInt16(dt),q.writeUInt16(R),q.writeUInt16(S),q.writeUInt16(tt),Q=0,A=N.length;Q<A;Q++)s=N[Q],q.writeUInt16(s);for(q.writeUInt16(0),et=0,j=P.length;et<j;et++)s=P[et],q.writeUInt16(s);for(Lt=0,E=f.length;Lt<E;Lt++)h=f[Lt],q.writeUInt16(h);for(Nt=0,W=wt.length;Nt<W;Nt++)ot=wt[Nt],q.writeUInt16(ot);for(Ct=0,Y=p.length;Ct<Y;Ct++)I=p[Ct],q.writeUInt16(I);return{charMap:a,subtable:q.data,maxGlyphID:J+1}}},r}(),mu=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return nr(e,Un),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 Jc(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=Jc.encode(n,a),(o=new Dr).writeUInt16(0),o.writeUInt16(1),s.table=o.data.concat(s.subtable),s},e}(),l1=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return nr(e,Un),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}(),h1=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return nr(e,Un),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}(),f1=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return nr(e,Un),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 u;for(s=n.readUInt16(),this.glyphNameIndex=[],u=0;0<=s?u<s:u>s;u=0<=s?++u:--u)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=[],u=h=0,f=this.file.maxp.numGlyphs;0<=f?h<f:h>f;u=0<=f?++h:--h)g.push(n.readUInt32());return g}.call(this)}},e}(),d1=function(r,e){this.raw=r,this.length=r.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},p1=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return nr(e,Un),e.prototype.tag="name",e.prototype.parse=function(n){var a,s,o,u,h,f,g,v,N,S,p;for(n.pos=this.offset,n.readShort(),a=n.readShort(),f=n.readShort(),s=[],u=0;0<=a?u<a:u>a;u=0<=a?++u:--u)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={},u=N=0,S=s.length;N<S;u=++N)o=s[u],n.pos=o.offset,v=n.readString(o.length),h=new d1(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}(),g1=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return nr(e,Un),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}(),m1=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return nr(e,Un),e.prototype.tag="hmtx",e.prototype.parse=function(n){var a,s,o,u,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,N;for(N=[],a=v=0;0<=o?v<o:v>o;a=0<=o?++v:--v)N.push(n.readInt16());return N}(),this.widths=function(){var v,N,S,p;for(p=[],v=0,N=(S=this.metrics).length;v<N;v++)u=S[v],p.push(u.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}(),vu=[].slice,v1=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return nr(e,Un),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(n){var a,s,o,u,h,f,g,v,N,S;return n in this.cache?this.cache[n]:(u=this.file.loca,a=this.file.contents,s=u.indexOf(n),(o=u.lengthOf(n))===0?this.cache[n]=null:(a.pos=this.offset+s,h=(f=new Dr(a.read(o))).readShort(),v=f.readShort(),S=f.readShort(),g=f.readShort(),N=f.readShort(),this.cache[n]=h===-1?new w1(f,v,S,g,N):new b1(f,h,v,S,g,N),this.cache[n]))},e.prototype.encode=function(n,a,s){var o,u,h,f,g;for(h=[],u=[],f=0,g=a.length;f<g;f++)o=n[a[f]],u.push(h.length),o&&(h=h.concat(o.encode(s)));return u.push(h.length),{table:h,offsets:u}},e}(),b1=function(){function r(e,n,a,s,o,u){this.raw=e,this.numberOfContours=n,this.xMin=a,this.yMin=s,this.xMax=o,this.yMax=u,this.compound=!1}return r.prototype.encode=function(){return this.raw.data},r}(),w1=function(){function r(e,n,a,s,o){var u,h;for(this.raw=e,this.xMin=n,this.yMin=a,this.xMax=s,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],u=this.raw;h=u.readShort(),this.glyphOffsets.push(u.pos),this.glyphIDs.push(u.readUInt16()),32&h;)u.pos+=1&h?4:2,128&h?u.pos+=8:64&h?u.pos+=4:8&h&&(u.pos+=2)}return r.prototype.encode=function(){var e,n,a;for(n=new Dr(vu.call(this.raw.data)),e=0,a=this.glyphIDs.length;e<a;++e)n.pos=this.glyphOffsets[e];return n.data},r}(),y1=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return nr(e,Un),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,u;for(u=[],s=0,o=this.length;s<o;s+=2)u.push(2*n.readUInt16());return u}.call(this):function(){var o,u;for(u=[],s=0,o=this.length;s<o;s+=4)u.push(n.readUInt32());return u}.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,u=0,h=0;h<s.length;++h)if(s[h]=o,u<a.length&&a[u]==h){++u,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),N=0;N<s.length;++N)v[4*N+3]=255&s[N],v[4*N+2]=(65280&s[N])>>8,v[4*N+1]=(16711680&s[N])>>16,v[4*N]=(4278190080&s[N])>>24;return v},e}(),A1=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,u,h,f;for(s={},u=0,h=e.length;u<h;u++)s[o=e[u]]=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,u,h,f,g,v,N,S,p,M,I,B,_;for(s in a=mu.encode(this.generateCmap(),"unicode"),u=this.glyphsFor(e),p={0:0},_=a.charMap)p[(f=_[s]).old]=f.new;for(M in S=a.maxGlyphID,u)M in p||(p[M]=S++);return v=function(O){var J,ot;for(J in ot={},O)ot[O[J]]=J;return ot}(p),N=Object.keys(v).sort(function(O,J){return O-J}),I=function(){var O,J,ot;for(ot=[],O=0,J=N.length;O<J;O++)h=N[O],ot.push(v[h]);return ot}(),o=this.font.glyf.encode(u,I,p),g=this.font.loca.encode(o.offsets,I),B={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&&(B["OS/2"]=this.font.os2.raw()),this.font.directory.encode(B)},r}();zt.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,u;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)u=n[s],o.push("/"+s+" "+e.convert(u));return o.push(">>"),o.join(`
`)}return""+n},e}();const N1={apartmentComment:"MISSING",area:"MISSING",averageWindowAge:"Alter",averageWindowCondition:"Zustand",ceilingHeight:"MISSING",centralHeating:"MISSING",heatDemand:"MISSING",heatingType:"MISSING",largeHeatingElements:"MISSING",largeWindows:"Fenster (gro\xDF)",mediumHeatingElements:"MISSING",mediumWindows:"Fenster (normal)",panelHeating:"MISSING",powerDemand:"MISSING",roofWindows:"MISSING",smallHeatingElements:"MISSING",smallWindows:"Fenster (klein)",windowComment:"MISSING",windowFrame:"Rahmen",windowGlazing:"Verglasung",workingHeatingInstallations:"MISSING"};function L1(r="report",e,n){if(!e)return;let a;const s=[];if(e.length>0){a=Object.keys(e[0].data).filter(h=>n.includes(h)).map(h=>({id:h,name:h,prompt:N1[h],width:65,align:"center",padding:0}));for(let h of e){const f=h.data,g=Object.keys(f);let v={};for(let N of g)n.includes(N)&&(v[N]=f[N]||"keine Daten");s.push(v)}const u=new zt({putOnlyUsedFonts:!0,orientation:"landscape"});u.table(5,5,s,a,{autoSize:!0}),u.save(`${Date.now()}_${r}.pdf`)}}const bu=r=>(Zc("data-v-ae3414cc"),r=r(),Qc(),r),x1={class:"apartment-list"},_1={key:0,class:"apartment-list__grid"},S1={class:"content"},P1=["disabled"],k1=bu(()=>ne("span",null,"Bericht speichern",-1)),I1=[k1],F1=["disabled"],C1=bu(()=>ne("span",null,"Wohneinheit anlegen",-1)),j1=[C1],O1={__name:"ApartmentList",emits:["onCreate"],setup(r){const e=wo(),n=Us();function a(){const s=e.ofBuilding;L1("ddp",s,["area","averageWindowAge","averageWindowCondition","largeWindows","mediumWindows","smallWindows","windowFrame","windowGlazing"])}return(s,o)=>(en(),Qn("div",x1,[vn(n).active&&vn(e).ofBuilding.length>0?(en(),Qn("div",_1,[(en(!0),Qn(Kc,null,al(vn(e).ofBuilding,u=>(en(),ma(xl,{key:u._id,data:u},null,8,["data"]))),128))])):(en(),ma(tu,{key:1})),ne("div",S1,[ne("button",{class:"button primary",type:"button",onClick:a,disabled:!vn(n).active},I1,8,P1),ne("button",{class:"button primary",type:"button",onClick:o[0]||(o[0]=u=>s.$emit("onCreate")),disabled:!vn(n).active},j1,8,F1)])]))}},M1=bo(O1,[["__scopeId","data-v-ae3414cc"]]);const Zr=r=>(Zc("data-v-7f4aac83"),r=r(),Qc(),r),B1={class:"form"},E1=["onSubmit"],D1={class:"form-content"},q1=Zr(()=>ne("label",{for:"apartment-name"},"Bezeichnung",-1)),R1=["disabled"],T1=Zr(()=>ne("label",{for:"apartment-user"},"Benutzername",-1)),z1={class:"aparment-setup-form__static primary"},U1=["disabled"],H1=Zr(()=>ne("label",{for:"apartment-pass"},"Passwort",-1)),W1=["disabled"],V1={key:0,class:"form-section"},G1={class:"aparment-setup-form__copy basic"},Y1=Zr(()=>ne("div",null,[ne("span",null,"Sie k\xF6nnen die Benutzerinformation in die Zwischenablage kopieren, um diese Informationen dann per Email zu \xFCbermitteln.")],-1)),J1={class:"aparment-setup-form__wrapper"},X1=["disabled"],$1=Zr(()=>ne("span",null,"In Zwischenablage kopieren",-1)),K1=[$1],Z1=["href"],Q1={class:"form-section"},th=["disabled"],eh=Zr(()=>ne("span",null,"Erstellen",-1)),nh=[eh],rh=["disabled"],ih=Zr(()=>ne("span",null,"Schlie\xDFen",-1)),ah=[ih],oh={__name:"ApartmentForm",emits:["closeModal"],setup(r){const e="http://10.0.0.135:3005";let n=null;const a=pa(!1),s=pa(null),o=pa(null),u=pa(!1),h=wo(),f=Us(),g=hl(),v=ol({apartmentName:null,password:null,username:null}),N=sl(()=>({apartmentName:{required:vs},password:{required:vs},username:{required:vs}})),S=cl(N,v);async function p(){var B;if("clipboard"in navigator)try{await navigator.clipboard.writeText(`Benutzername: ${(B=f.current)==null?void 0:B.prefix}_${v.username} Passwort: ${v.password} - Anmeldung unter ${e}`)}catch(_){console.error("ERROR:",_.name)}}function M(){var J;const B="3% Plus - Zugang eingerichtet",_="Ihr Verwalter",O=`
    Sehr geehrte Frau/Sehr geehrter Herr, %0D%0A%0D%0A

    anbei erhalten Sie die Logindaten f\xFCr das Tool zur Erfassung des energetischen Geb\xE4udezustands, in welchem ich das Geb\xE4ude (angegebene Adresse des Geb\xE4udes) bereits angelegt habe: %0D%0A%0D%0A

    Benutzername: ${(J=f.current)==null?void 0:J.prefix}_${v.username}%0D%0A
    Passwort: ${v.password} %0D%0A%0D%0A

    Bitte loggen Sie sich mit diesen Angaben unter folgendem Link ein: ${e} %0D%0A%0D%0A

    Mit freundlichen Gr\xFC\xDFen%0D%0A
    ${_}%0D%0A%0D%0A%0D%0A

    Wenn diese E-Mail nicht an Sie gerichtet ist, dann l\xF6schen Sie diese Nachricht bitte oder informieren den Absender \xFCber die falsche Zustellung.
  `;return`mailto:?subject=${B}&body=${O}`}async function I(){try{if(clearTimeout(n),s.value=null,!await S.value.$validate()){s.value=bs.INVALID_INPUT,o.value="warning",n=Pc(s);return}const _=await h.createApartment({buildingId:f.active,...v});_.success?(s.value=bs[_.message],o.value="success",u.value=!0,await f.fetchBuildings(),await h.fetchApartments(),await g.fetchUsers()):(s.value=bs[_.message],o.value="danger"),n=Pc(s)}catch(B){console.error("ERROR:",B.name)}}return Xc(()=>{"clipboard"in navigator&&(a.value=!0)}),ul(()=>{clearTimeout(n)}),(B,_)=>(en(),Qn("div",B1,[ne("form",{onSubmit:ll(I,["prevent"])},[ne("div",D1,[He(Sc,{value:"Wohneinheit"}),He(gs,null,{default:Mr(()=>[q1,ds(ne("input",{id:"apartment-name",type:"text","onUpdate:modelValue":_[0]||(_[0]=O=>v.apartmentName=O),disabled:u.value},null,8,R1),[[ps,v.apartmentName]])]),_:1}),He(Sc,{value:"Zugangsdaten"}),He(ms,{msg:"Legen Sie die Zugangsdaten f\xFCr die entsprechende Wohneinheit an.",type:"basic"}),He(gs,null,{default:Mr(()=>[T1,He(pl,{row:!0},{default:Mr(()=>{var O;return[ne("div",z1,[ne("span",null,ks((O=vn(f).current)==null?void 0:O.prefix),1)]),ds(ne("input",{id:"apartment-user",type:"text","onUpdate:modelValue":_[1]||(_[1]=J=>v.username=J),disabled:u.value},null,8,U1),[[ps,v.username]])]}),_:1}),He(ms,{msg:"Die Geb\xE4udekennung wird dem Nutzernamen angef\xFCgt.",type:"basic"})]),_:1}),He(gs,null,{default:Mr(()=>[H1,ds(ne("input",{id:"apartment-pass",type:"text","onUpdate:modelValue":_[2]||(_[2]=O=>v.password=O),disabled:u.value},null,8,W1),[[ps,v.password]])]),_:1})]),u.value?(en(),Qn("div",V1,[ne("div",G1,[Y1,ne("div",J1,[ne("button",{class:"button primary",type:"button",onClick:p,disabled:!a.value},K1,8,X1),ne("div",null,[ne("a",{class:"aparment-setup-form__button primary",href:M()},"Per Email senden",8,Z1)])])])])):Fs("",!0),ne("div",Q1,[s.value?(en(),ma(ms,{key:0,msg:s.value,type:o.value},null,8,["msg","type"])):Fs("",!0),u.value?(en(),Qn("button",{key:2,class:"button primary",type:"button",onClick:_[3]||(_[3]=O=>B.$emit("closeModal")),disabled:s.value},ah,8,rh)):(en(),Qn("button",{key:1,class:"button primary",type:"submit",disabled:s.value},nh,8,th))])],40,E1)]))}},sh=bo(oh,[["__scopeId","data-v-7f4aac83"]]);const ch={key:0,class:"apartment-summary"},uh={class:"content stretched"},lh={class:"content stretched"},hh={__name:"BuildingApartments",setup(r){const e=pa(!1),n=Us(),a=wo();function s(){e.value=!e.value}return(o,u)=>(en(),Qn(Kc,null,[He(dl,{label:"Ihre Wohneinheiten"},{default:Mr(()=>[He(kc,null,{default:Mr(()=>{var h,f,g,v,N;return[vn(n).active&&vn(a).count>0?(en(),Qn("div",ch,[ne("div",uh,[He(ha,{label:"Wohneinheiten",data:(h=vn(a).summary)==null?void 0:h.apartments},null,8,["data"]),He(ha,{label:"Fl\xE4che gesamt",data:(f=vn(a).summary)==null?void 0:f.area,unit:"m\xB2"},null,8,["data"]),He(ha,{label:"Fenster gesamt",data:(g=vn(a).summary)==null?void 0:g.windows},null,8,["data"])]),ne("div",lh,[He(ha,{label:"Heizk\xF6rper",data:(v=vn(a).summary)==null?void 0:v.heatingElements},null,8,["data"]),He(ha,{label:"Fl\xE4chenheizung",data:(N=vn(a).summary)==null?void 0:N.panelHeating,unit:"m\xB2"},null,8,["data"])])])):(en(),ma(tu,{key:1}))]}),_:1}),He(kc,{stretch:!0},{default:Mr(()=>[He(M1,{onOnCreate:u[0]||(u[0]=()=>e.value=!0)})]),_:1})]),_:1}),e.value?(en(),ma(fl,{key:0,label:"Wohneinheit anlegen",onCloseModal:s},{default:Mr(()=>[He(sh,{onCloseModal:s})]),_:1})):Fs("",!0)],64))}},bh=bo(hh,[["__scopeId","data-v-180e11d9"]]);export{bh as default};