revise 1.0.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/CHANGELOG.md +962 -0
  2. package/FONT-LICENSE-HAN-EXT-B.txt +91 -0
  3. package/FONT-LICENSE-KATEX.txt +95 -0
  4. package/FONT-LICENSE-LIBERATION.txt +102 -0
  5. package/FONT-LICENSE-NOTO-MULTILINGUAL.txt +93 -0
  6. package/FONT-LICENSE-NOTO-SANS-SC.txt +93 -0
  7. package/FONT-LICENSE-NOTO.txt +94 -0
  8. package/FONT-LICENSE-SOURCE-CODE-PRO.txt +94 -0
  9. package/FONT-LICENSE-SOURCE-SERIF-4.txt +93 -0
  10. package/LICENSE +41 -21
  11. package/README.md +39 -1
  12. package/THIRD-PARTY-NOTICES.md +3376 -0
  13. package/assets/historyMaterializeWorker-CoAX9ZAi.js +3 -0
  14. package/backend.d.ts +133 -0
  15. package/backend.js +1 -0
  16. package/chunks/AgentPageRenderer-C0n4EnuW.js +1 -0
  17. package/chunks/AgentPageRenderer-DURfmiu0.js +1 -0
  18. package/chunks/AttachmentDocumentImporter-DSic_6At.js +1 -0
  19. package/chunks/AttachmentDocumentImporter-dNMtkxrv.js +1 -0
  20. package/chunks/BidiText-B4Hzrjg9.js +1 -0
  21. package/chunks/ColorParserFull-BKH72fK8.js +1 -0
  22. package/chunks/DocumentStylesheet-byN5dtC6.js +1 -0
  23. package/chunks/DocxConverter-B7P52lw7.js +11 -0
  24. package/chunks/DocxConverter-COV6CjUM.js +11 -0
  25. package/chunks/DocxConverter-Cq_zCEJC.js +11 -0
  26. package/chunks/DocxGraft-CJ12C9WP.js +1 -0
  27. package/chunks/DocxGraft-CQpvFcYb.js +1 -0
  28. package/chunks/DocxGraft-DcmFuUkd.js +1 -0
  29. package/chunks/FileImporter-DVnYOJHp.js +1 -0
  30. package/chunks/FileImporter-q9mCch0J.js +1 -0
  31. package/chunks/HorizontalRuleOrnaments-gmUZ3R7Q.js +1 -0
  32. package/chunks/HtmlConverter-JvRlkQM3.js +61 -0
  33. package/chunks/ListNumbering-Qlu6AuRZ.js +1 -0
  34. package/chunks/MarkdownConverter-B-tPY7X3.js +17 -0
  35. package/chunks/MathRenderer-B0Y1h1JU.js +33 -0
  36. package/chunks/OdtConverter-Br81BSoJ.js +1 -0
  37. package/chunks/OdtConverter-CQjh0vlo.js +1 -0
  38. package/chunks/OdtConverter-DYHnR4E8.js +1 -0
  39. package/chunks/PdfConverter-D26rXumc.js +21 -0
  40. package/chunks/PdfConverter-DGZpUSVf.js +21 -0
  41. package/chunks/PdfConverter-DZzVP0-B.js +21 -0
  42. package/chunks/PdfImportService-CBD8TL1k.js +2 -0
  43. package/chunks/PdfImportService-D6uUKGMf.js +2 -0
  44. package/chunks/RtfConverter-BQGge3K-.js +14 -0
  45. package/chunks/RtfConverter-CMfZ4olw.js +14 -0
  46. package/chunks/RtfConverter-oIwzoqCD.js +14 -0
  47. package/chunks/TableBorders-BLkZYt1k.js +1 -0
  48. package/chunks/TableGrid-DVWaRZv0.js +1 -0
  49. package/chunks/TextFileDecoder--rsVs3NR.js +2 -0
  50. package/chunks/TxtConverter-C1lp6dBS.js +11 -0
  51. package/chunks/__vite-browser-external-l0sNRNKZ.js +0 -0
  52. package/chunks/_commonjsHelpers-DaMA6jEr.js +1 -0
  53. package/chunks/_revise-sdk-lazy-harfbuzz-CDWdjF9f.js +1 -0
  54. package/chunks/_revise-sdk-lazy-harfbuzz-X8gnYTZL.js +1 -0
  55. package/chunks/ar-kgSWdrXF.js +8 -0
  56. package/chunks/backend-Cq-khfdG.js +1 -0
  57. package/chunks/base64-CfDUyGi8.js +36 -0
  58. package/chunks/browser-module-6b2Fq-5C.js +3 -0
  59. package/chunks/browser-module-CFmqfGkE.js +3 -0
  60. package/chunks/browser-module-CkO57IPL.js +3 -0
  61. package/chunks/bundle.min-DRpfgV69.js +8 -0
  62. package/chunks/capture-DU3MC7tb.js +1 -0
  63. package/chunks/carrier-WgcRSu7a.js +1 -0
  64. package/chunks/de-C2QTHrqo.js +8 -0
  65. package/chunks/es-BKboUn4q.js +8 -0
  66. package/chunks/footnoteFlatten-CW-DUcgK.js +1 -0
  67. package/chunks/graftExport-CVg7PO2A.js +2 -0
  68. package/chunks/html2canvas.esm-CntiHiYW.js +5 -0
  69. package/chunks/index-BWdRWxoH.js +24 -0
  70. package/chunks/index-CLw_BlSL.js +353 -0
  71. package/chunks/index-F-kHIwWT.js +353 -0
  72. package/chunks/index.es-CI0QPo8w.js +5 -0
  73. package/chunks/index.es-DOqegDGr.js +5 -0
  74. package/chunks/index.es-tXDO0RMv.js +5 -0
  75. package/chunks/jspdf.es.min-CzYti8jo.js +77 -0
  76. package/chunks/jspdf.es.min-DU74zN8b.js +77 -0
  77. package/chunks/jspdf.es.min-ejWOGhkJ.js +77 -0
  78. package/chunks/jszip.min-CPW0h1Kx.js +2 -0
  79. package/chunks/katex-DWj8TvwO.js +261 -0
  80. package/chunks/pdf-BLWDCiFF.js +12 -0
  81. package/chunks/persistInlineDocumentImages-DQj2iaqg.js +1 -0
  82. package/chunks/pseudoLocale-CdBtPHRi.js +1 -0
  83. package/chunks/pseudoLocale-DEVWLkGC.js +1 -0
  84. package/chunks/purify.es-BwLardii.js +2 -0
  85. package/chunks/serverDocumentSession-DZrYbdpk.js +42 -0
  86. package/chunks/tree-sitter-D6zWWUMP.js +4 -0
  87. package/chunks/wasmInline.generated-CBYFkdSM.js +1 -0
  88. package/chunks/web-tree-sitter-BXGZGnNj.js +1 -0
  89. package/full.js +1 -0
  90. package/index.d.ts +929 -0
  91. package/index.js +1 -0
  92. package/package.json +93 -26
  93. package/root.d.ts +5 -0
  94. package/root.js +2 -0
  95. package/serverToolContract.d.ts +373 -0
  96. package/serverToolInputs.generated.d.ts +229 -0
  97. package/style.css +1 -0
  98. package/.npmignore +0 -4
  99. package/.travis.yml +0 -16
  100. package/revise.js +0 -16
  101. package/t/cover +0 -18
  102. package/t/revise/comparator.t.js +0 -31
  103. package/t/revise/extractor.t.js +0 -29
  104. package/t/test +0 -20
@@ -0,0 +1,77 @@
1
+ function he(n){"@babel/helpers - typeof";return he=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},he(n)}var Ke=Uint8Array,gr=Uint16Array,os=Int32Array,co=new Ke([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]),ho=new Ke([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]),ss=new Ke([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),eu=function(n,e){for(var r=new gr(31),a=0;a<31;++a)r[a]=e+=1<<n[a-1];for(var u=new os(r[30]),a=1;a<30;++a)for(var o=r[a];o<r[a+1];++o)u[o]=o-r[a]<<5|a;return{b:r,r:u}},ru=eu(co,2),nu=ru.b,us=ru.r;nu[28]=258,us[258]=28;for(var iu=eu(ho,0),_c=iu.b,au=iu.r,cs=new gr(32768),we=0;we<32768;++we){var kn=(we&43690)>>1|(we&21845)<<1;kn=(kn&52428)>>2|(kn&13107)<<2,kn=(kn&61680)>>4|(kn&3855)<<4,cs[we]=((kn&65280)>>8|(kn&255)<<8)>>1}for(var $r=function(n,e,r){for(var a=n.length,u=0,o=new gr(e);u<a;++u)n[u]&&++o[n[u]-1];var h=new gr(e);for(u=1;u<e;++u)h[u]=h[u-1]+o[u-1]<<1;var l;if(r){l=new gr(1<<e);var f=15-e;for(u=0;u<a;++u)if(n[u])for(var g=u<<4|n[u],y=e-n[u],w=h[n[u]-1]++<<y,S=w|(1<<y)-1;w<=S;++w)l[cs[w]>>f]=g}else for(l=new gr(a),u=0;u<a;++u)n[u]&&(l[u]=cs[h[n[u]-1]++]>>15-n[u]);return l},Fn=new Ke(288),we=0;we<144;++we)Fn[we]=8;for(var we=144;we<256;++we)Fn[we]=9;for(var we=256;we<280;++we)Fn[we]=7;for(var we=280;we<288;++we)Fn[we]=8;for(var ha=new Ke(32),we=0;we<32;++we)ha[we]=5;var Pc=$r(Fn,9,0),kc=$r(Fn,9,1),Fc=$r(ha,5,0),Cc=$r(ha,5,1),hs=function(n){for(var e=n[0],r=1;r<n.length;++r)n[r]>e&&(e=n[r]);return e},qr=function(n,e,r){var a=e/8|0;return(n[a]|n[a+1]<<8)>>(e&7)&r},ls=function(n,e){var r=e/8|0;return(n[r]|n[r+1]<<8|n[r+2]<<16)>>(e&7)},fs=function(n){return(n+7)/8|0},ou=function(n,e,r){return(r==null||r>n.length)&&(r=n.length),new Ke(n.subarray(e,r))},jc=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Dr=function(n,e,r){var a=new Error(e||jc[n]);if(a.code=n,Error.captureStackTrace&&Error.captureStackTrace(a,Dr),!r)throw a;return a},Oc=function(n,e,r,a){var u=n.length,o=0;if(!u||e.f&&!e.l)return r||new Ke(0);var h=!r,l=h||e.i!=2,f=e.i;h&&(r=new Ke(u*3));var g=function(Nt){var Ft=r.length;if(Nt>Ft){var _t=new Ke(Math.max(Ft*2,Nt));_t.set(r),r=_t}},y=e.f||0,w=e.p||0,S=e.b||0,d=e.l,I=e.d,F=e.m,D=e.n,_=u*8;do{if(!d){y=qr(n,w,1);var E=qr(n,w+1,3);if(w+=3,E)if(E==1)d=kc,I=Cc,F=9,D=5;else if(E==2){var J=qr(n,w,31)+257,st=qr(n,w+10,15)+4,ht=J+qr(n,w+5,31)+1;w+=14;for(var yt=new Ke(ht),tt=new Ke(19),T=0;T<st;++T)tt[ss[T]]=qr(n,w+T*3,7);w+=st*3;for(var nt=hs(tt),dt=(1<<nt)-1,P=$r(tt,nt,1),T=0;T<ht;){var k=P[qr(n,w,dt)];w+=k&15;var z=k>>4;if(z<16)yt[T++]=z;else{var B=0,at=0;for(z==16?(at=3+qr(n,w,3),w+=2,B=yt[T-1]):z==17?(at=3+qr(n,w,7),w+=3):z==18&&(at=11+qr(n,w,127),w+=7);at--;)yt[T++]=B}}var it=yt.subarray(0,J),ut=yt.subarray(J);F=hs(it),D=hs(ut),d=$r(it,F,1),I=$r(ut,D,1)}else Dr(1);else{var z=fs(w)+4,Z=n[z-4]|n[z-3]<<8,pt=z+Z;if(pt>u){f&&Dr(0);break}l&&g(S+Z),r.set(n.subarray(z,pt),S),e.b=S+=Z,e.p=w=pt*8,e.f=y;continue}if(w>_){f&&Dr(0);break}}l&&g(S+131072);for(var ft=(1<<F)-1,Ot=(1<<D)-1,N=w;;N=w){var B=d[ls(n,w)&ft],j=B>>4;if(w+=B&15,w>_){f&&Dr(0);break}if(B||Dr(2),j<256)r[S++]=j;else if(j==256){N=w,d=null;break}else{var M=j-254;if(j>264){var T=j-257,U=co[T];M=qr(n,w,(1<<U)-1)+nu[T],w+=U}var H=I[ls(n,w)&Ot],Q=H>>4;H||Dr(3),w+=H&15;var ut=_c[Q];if(Q>3){var U=ho[Q];ut+=ls(n,w)&(1<<U)-1,w+=U}if(w>_){f&&Dr(0);break}l&&g(S+131072);var et=S+M;if(S<ut){var rt=o-ut,Lt=Math.min(ut,et);for(rt+S<0&&Dr(3);S<Lt;++S)r[S]=a[rt+S]}for(;S<et;++S)r[S]=r[S-ut]}}e.l=d,e.p=N,e.b=S,e.f=y,d&&(y=1,e.m=F,e.d=I,e.n=D)}while(!y);return S!=r.length&&h?ou(r,0,S):r.subarray(0,S)},pn=function(n,e,r){r<<=e&7;var a=e/8|0;n[a]|=r,n[a+1]|=r>>8},la=function(n,e,r){r<<=e&7;var a=e/8|0;n[a]|=r,n[a+1]|=r>>8,n[a+2]|=r>>16},ps=function(n,e){for(var r=[],a=0;a<n.length;++a)n[a]&&r.push({s:a,f:n[a]});var u=r.length,o=r.slice();if(!u)return{t:hu,l:0};if(u==1){var h=new Ke(r[0].s+1);return h[r[0].s]=1,{t:h,l:1}}r.sort(function(ht,yt){return ht.f-yt.f}),r.push({s:-1,f:25001});var l=r[0],f=r[1],g=0,y=1,w=2;for(r[0]={s:-1,f:l.f+f.f,l,r:f};y!=u-1;)l=r[r[g].f<r[w].f?g++:w++],f=r[g!=y&&r[g].f<r[w].f?g++:w++],r[y++]={s:-1,f:l.f+f.f,l,r:f};for(var S=o[0].s,a=1;a<u;++a)o[a].s>S&&(S=o[a].s);var d=new gr(S+1),I=ds(r[y-1],d,0);if(I>e){var a=0,F=0,D=I-e,_=1<<D;for(o.sort(function(yt,tt){return d[tt.s]-d[yt.s]||yt.f-tt.f});a<u;++a){var E=o[a].s;if(d[E]>e)F+=_-(1<<I-d[E]),d[E]=e;else break}for(F>>=D;F>0;){var J=o[a].s;d[J]<e?F-=1<<e-d[J]++-1:++a}for(;a>=0&&F;--a){var st=o[a].s;d[st]==e&&(--d[st],++F)}I=e}return{t:new Ke(d),l:I}},ds=function(n,e,r){return n.s==-1?Math.max(ds(n.l,e,r+1),ds(n.r,e,r+1)):e[n.s]=r},su=function(n){for(var e=n.length;e&&!n[--e];);for(var r=new gr(++e),a=0,u=n[0],o=1,h=function(f){r[a++]=f},l=1;l<=e;++l)if(n[l]==u&&l!=e)++o;else{if(!u&&o>2){for(;o>138;o-=138)h(32754);o>2&&(h(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(h(u),--o;o>6;o-=6)h(8304);o>2&&(h(o-3<<5|8208),o=0)}for(;o--;)h(u);o=1,u=n[l]}return{c:r.subarray(0,a),n:e}},fa=function(n,e){for(var r=0,a=0;a<e.length;++a)r+=n[a]*e[a];return r},uu=function(n,e,r){var a=r.length,u=fs(e+2);n[u]=a&255,n[u+1]=a>>8,n[u+2]=n[u]^255,n[u+3]=n[u+1]^255;for(var o=0;o<a;++o)n[u+o+4]=r[o];return(u+4+a)*8},cu=function(n,e,r,a,u,o,h,l,f,g,y){pn(e,y++,r),++u[256];for(var w=ps(u,15),S=w.t,d=w.l,I=ps(o,15),F=I.t,D=I.l,_=su(S),E=_.c,J=_.n,st=su(F),ht=st.c,yt=st.n,tt=new gr(19),T=0;T<E.length;++T)++tt[E[T]&31];for(var T=0;T<ht.length;++T)++tt[ht[T]&31];for(var nt=ps(tt,7),dt=nt.t,P=nt.l,k=19;k>4&&!dt[ss[k-1]];--k);var z=g+5<<3,B=fa(u,Fn)+fa(o,ha)+h,at=fa(u,S)+fa(o,F)+h+14+3*k+fa(tt,dt)+2*tt[16]+3*tt[17]+7*tt[18];if(f>=0&&z<=B&&z<=at)return uu(e,y,n.subarray(f,f+g));var it,ut,Z,pt;if(pn(e,y,1+(at<B)),y+=2,at<B){it=$r(S,d,0),ut=S,Z=$r(F,D,0),pt=F;var ft=$r(dt,P,0);pn(e,y,J-257),pn(e,y+5,yt-1),pn(e,y+10,k-4),y+=14;for(var T=0;T<k;++T)pn(e,y+3*T,dt[ss[T]]);y+=3*k;for(var Ot=[E,ht],N=0;N<2;++N)for(var j=Ot[N],T=0;T<j.length;++T){var M=j[T]&31;pn(e,y,ft[M]),y+=dt[M],M>15&&(pn(e,y,j[T]>>5&127),y+=j[T]>>12)}}else it=Pc,ut=Fn,Z=Fc,pt=ha;for(var T=0;T<l;++T){var U=a[T];if(U>255){var M=U>>18&31;la(e,y,it[M+257]),y+=ut[M+257],M>7&&(pn(e,y,U>>23&31),y+=co[M]);var H=U&31;la(e,y,Z[H]),y+=pt[H],H>3&&(la(e,y,U>>5&8191),y+=ho[H])}else la(e,y,it[U]),y+=ut[U]}return la(e,y,it[256]),y+ut[256]},Ic=new os([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),hu=new Ke(0),Ec=function(n,e,r,a,u,o){var h=o.z||n.length,l=new Ke(a+h+5*(1+Math.ceil(h/7e3))+u),f=l.subarray(a,l.length-u),g=o.l,y=(o.r||0)&7;if(e){y&&(f[0]=o.r>>3);for(var w=Ic[e-1],S=w>>13,d=w&8191,I=(1<<r)-1,F=o.p||new gr(32768),D=o.h||new gr(I+1),_=Math.ceil(r/3),E=2*_,J=function(Ut){return(n[Ut]^n[Ut+1]<<_^n[Ut+2]<<E)&I},st=new os(25e3),ht=new gr(288),yt=new gr(32),tt=0,T=0,nt=o.i||0,dt=0,P=o.w||0,k=0;nt+2<h;++nt){var z=J(nt),B=nt&32767,at=D[z];if(F[B]=at,D[z]=B,P<=nt){var it=h-nt;if((tt>7e3||dt>24576)&&(it>423||!g)){y=cu(n,f,0,st,ht,yt,T,dt,k,nt-k,y),dt=tt=T=0,k=nt;for(var ut=0;ut<286;++ut)ht[ut]=0;for(var ut=0;ut<30;++ut)yt[ut]=0}var Z=2,pt=0,ft=d,Ot=B-at&32767;if(it>2&&z==J(nt-Ot))for(var N=Math.min(S,it)-1,j=Math.min(32767,nt),M=Math.min(258,it);Ot<=j&&--ft&&B!=at;){if(n[nt+Z]==n[nt+Z-Ot]){for(var U=0;U<M&&n[nt+U]==n[nt+U-Ot];++U);if(U>Z){if(Z=U,pt=Ot,U>N)break;for(var H=Math.min(Ot,U-2),Q=0,ut=0;ut<H;++ut){var et=nt-Ot+ut&32767,rt=F[et],Lt=et-rt&32767;Lt>Q&&(Q=Lt,at=et)}}}B=at,at=F[B],Ot+=B-at&32767}if(pt){st[dt++]=268435456|us[Z]<<18|au[pt];var Nt=us[Z]&31,Ft=au[pt]&31;T+=co[Nt]+ho[Ft],++ht[257+Nt],++yt[Ft],P=nt+Z,++tt}else st[dt++]=n[nt],++ht[n[nt]]}}for(nt=Math.max(nt,P);nt<h;++nt)st[dt++]=n[nt],++ht[n[nt]];y=cu(n,f,g,st,ht,yt,T,dt,k,nt-k,y),g||(o.r=y&7|f[y/8|0]<<3,y-=7,o.h=D,o.p=F,o.i=nt,o.w=P)}else{for(var nt=o.w||0;nt<h+g;nt+=65535){var _t=nt+65535;_t>=h&&(f[y/8|0]=g,_t=h),y=uu(f,y+1,n.subarray(nt,_t))}o.i=h}return ou(l,0,a+fs(y)+u)},lu=function(){var n=1,e=0;return{p:function(r){for(var a=n,u=e,o=r.length|0,h=0;h!=o;){for(var l=Math.min(h+2655,o);h<l;++h)u+=a+=r[h];a=(a&65535)+15*(a>>16),u=(u&65535)+15*(u>>16)}n=a,e=u},d:function(){return n%=65521,e%=65521,(n&255)<<24|(n&65280)<<8|(e&255)<<8|e>>8}}},Mc=function(n,e,r,a,u){if(!u&&(u={l:1},e.dictionary)){var o=e.dictionary.subarray(-32768),h=new Ke(o.length+n.length);h.set(o),h.set(n,o.length),n=h,u.w=o.length}return Ec(n,e.level==null?6:e.level,e.mem==null?u.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+e.mem,r,a,u)},fu=function(n,e,r){for(;r;++e)n[e]=r,r>>>=8},qc=function(n,e){var r=e.level,a=r==0?0:r<6?1:r==9?3:2;if(n[0]=120,n[1]=a<<6|(e.dictionary&&32),n[1]|=31-(n[0]<<8|n[1])%31,e.dictionary){var u=lu();u.p(e.dictionary),fu(n,2,u.d())}},Dc=function(n,e){return((n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31)&&Dr(6,"invalid zlib data"),(n[1]>>5&1)==1&&Dr(6,"invalid zlib data: "+(n[1]&32?"need":"unexpected")+" dictionary"),(n[1]>>3&4)+2};function gs(n,e){e||(e={});var r=lu();r.p(n);var a=Mc(n,e,e.dictionary?6:2,4);return qc(a,e),fu(a,a.length-4,r.d()),a}function Bc(n,e){return Oc(n.subarray(Dc(n),-4),{i:2},e,e)}var Tc=typeof TextDecoder<"u"&&new TextDecoder,Rc=0;try{Tc.decode(hu,{stream:!0}),Rc=1}catch{}var Wt=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function ms(){Wt.console&&typeof Wt.console.log=="function"&&Wt.console.log.apply(Wt.console,arguments)}var ve={log:ms,warn:function(n){Wt.console&&(typeof Wt.console.warn=="function"?Wt.console.warn.apply(Wt.console,arguments):ms.call(null,arguments))},error:function(n){Wt.console&&(typeof Wt.console.error=="function"?Wt.console.error.apply(Wt.console,arguments):ms(n))}};function vs(n,e,r){var a=new XMLHttpRequest;a.open("GET",n),a.responseType="blob",a.onload=function(){Jn(a.response,e,r)},a.onerror=function(){ve.error("could not download file")},a.send()}function pu(n){var e=new XMLHttpRequest;e.open("HEAD",n,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function lo(n){try{n.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),n.dispatchEvent(e)}}var pa,bs,Jn=Wt.saveAs||((typeof window>"u"?"undefined":he(window))!=="object"||window!==Wt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(n,e,r){var a=Wt.URL||Wt.webkitURL,u=document.createElement("a");e=e||n.name||"download",u.download=e,u.rel="noopener",typeof n=="string"?(u.href=n,u.origin!==location.origin?pu(u.href)?vs(n,e,r):lo(u,u.target="_blank"):lo(u)):(u.href=a.createObjectURL(n),setTimeout(function(){a.revokeObjectURL(u.href)},4e4),setTimeout(function(){lo(u)},0))}:"msSaveOrOpenBlob"in navigator?function(n,e,r){if(e=e||n.name||"download",typeof n=="string")if(pu(n))vs(n,e,r);else{var a=document.createElement("a");a.href=n,a.target="_blank",setTimeout(function(){lo(a)})}else navigator.msSaveOrOpenBlob(function(u,o){return o===void 0?o={autoBom:!1}:he(o)!=="object"&&(ve.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(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u}(n,r),e)}:function(n,e,r,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),typeof n=="string")return vs(n,e,r);var u=n.type==="application/octet-stream",o=/constructor/i.test(Wt.HTMLElement)||Wt.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||u&&o)&&(typeof FileReader>"u"?"undefined":he(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var y=l.result;y=h?y:y.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=y:location=y,a=null},l.readAsDataURL(n)}else{var f=Wt.URL||Wt.webkitURL,g=f.createObjectURL(n);a?a.location=g:location.href=g,a=null,setTimeout(function(){f.revokeObjectURL(g)},4e4)}});function du(n){var e;n=n||"",this.ok=!1,n.charAt(0)=="#"&&(n=n.substr(1,6)),n={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"}[n=(n=n.replace(/ /g,"")).toLowerCase()]||n;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],a=0;a<r.length;a++){var u=r[a].re,o=r[a].process,h=u.exec(n);h&&(e=o(h),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 l=this.r.toString(16),f=this.g.toString(16),g=this.b.toString(16);return l.length==1&&(l="0"+l),f.length==1&&(f="0"+f),g.length==1&&(g="0"+g),"#"+l+f+g}}function ys(n,e){var r=n[0],a=n[1],u=n[2],o=n[3];r=$e(r,a,u,o,e[0],7,-680876936),o=$e(o,r,a,u,e[1],12,-389564586),u=$e(u,o,r,a,e[2],17,606105819),a=$e(a,u,o,r,e[3],22,-1044525330),r=$e(r,a,u,o,e[4],7,-176418897),o=$e(o,r,a,u,e[5],12,1200080426),u=$e(u,o,r,a,e[6],17,-1473231341),a=$e(a,u,o,r,e[7],22,-45705983),r=$e(r,a,u,o,e[8],7,1770035416),o=$e(o,r,a,u,e[9],12,-1958414417),u=$e(u,o,r,a,e[10],17,-42063),a=$e(a,u,o,r,e[11],22,-1990404162),r=$e(r,a,u,o,e[12],7,1804603682),o=$e(o,r,a,u,e[13],12,-40341101),u=$e(u,o,r,a,e[14],17,-1502002290),r=Ze(r,a=$e(a,u,o,r,e[15],22,1236535329),u,o,e[1],5,-165796510),o=Ze(o,r,a,u,e[6],9,-1069501632),u=Ze(u,o,r,a,e[11],14,643717713),a=Ze(a,u,o,r,e[0],20,-373897302),r=Ze(r,a,u,o,e[5],5,-701558691),o=Ze(o,r,a,u,e[10],9,38016083),u=Ze(u,o,r,a,e[15],14,-660478335),a=Ze(a,u,o,r,e[4],20,-405537848),r=Ze(r,a,u,o,e[9],5,568446438),o=Ze(o,r,a,u,e[14],9,-1019803690),u=Ze(u,o,r,a,e[3],14,-187363961),a=Ze(a,u,o,r,e[8],20,1163531501),r=Ze(r,a,u,o,e[13],5,-1444681467),o=Ze(o,r,a,u,e[2],9,-51403784),u=Ze(u,o,r,a,e[7],14,1735328473),r=Qe(r,a=Ze(a,u,o,r,e[12],20,-1926607734),u,o,e[5],4,-378558),o=Qe(o,r,a,u,e[8],11,-2022574463),u=Qe(u,o,r,a,e[11],16,1839030562),a=Qe(a,u,o,r,e[14],23,-35309556),r=Qe(r,a,u,o,e[1],4,-1530992060),o=Qe(o,r,a,u,e[4],11,1272893353),u=Qe(u,o,r,a,e[7],16,-155497632),a=Qe(a,u,o,r,e[10],23,-1094730640),r=Qe(r,a,u,o,e[13],4,681279174),o=Qe(o,r,a,u,e[0],11,-358537222),u=Qe(u,o,r,a,e[3],16,-722521979),a=Qe(a,u,o,r,e[6],23,76029189),r=Qe(r,a,u,o,e[9],4,-640364487),o=Qe(o,r,a,u,e[12],11,-421815835),u=Qe(u,o,r,a,e[15],16,530742520),r=tr(r,a=Qe(a,u,o,r,e[2],23,-995338651),u,o,e[0],6,-198630844),o=tr(o,r,a,u,e[7],10,1126891415),u=tr(u,o,r,a,e[14],15,-1416354905),a=tr(a,u,o,r,e[5],21,-57434055),r=tr(r,a,u,o,e[12],6,1700485571),o=tr(o,r,a,u,e[3],10,-1894986606),u=tr(u,o,r,a,e[10],15,-1051523),a=tr(a,u,o,r,e[1],21,-2054922799),r=tr(r,a,u,o,e[8],6,1873313359),o=tr(o,r,a,u,e[15],10,-30611744),u=tr(u,o,r,a,e[6],15,-1560198380),a=tr(a,u,o,r,e[13],21,1309151649),r=tr(r,a,u,o,e[4],6,-145523070),o=tr(o,r,a,u,e[11],10,-1120210379),u=tr(u,o,r,a,e[2],15,718787259),a=tr(a,u,o,r,e[9],21,-343485551),n[0]=Cn(r,n[0]),n[1]=Cn(a,n[1]),n[2]=Cn(u,n[2]),n[3]=Cn(o,n[3])}function fo(n,e,r,a,u,o){return e=Cn(Cn(e,n),Cn(a,o)),Cn(e<<u|e>>>32-u,r)}function $e(n,e,r,a,u,o,h){return fo(e&r|~e&a,n,e,u,o,h)}function Ze(n,e,r,a,u,o,h){return fo(e&a|r&~a,n,e,u,o,h)}function Qe(n,e,r,a,u,o,h){return fo(e^r^a,n,e,u,o,h)}function tr(n,e,r,a,u,o,h){return fo(r^(e|~a),n,e,u,o,h)}function gu(n){var e,r=n.length,a=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=n.length;e+=64)ys(a,zc(n.substring(e-64,e)));n=n.substring(e-64);var u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<n.length;e++)u[e>>2]|=n.charCodeAt(e)<<(e%4<<3);if(u[e>>2]|=128<<(e%4<<3),e>55)for(ys(a,u),e=0;e<16;e++)u[e]=0;return u[14]=8*r,ys(a,u),a}function zc(n){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=n.charCodeAt(e)+(n.charCodeAt(e+1)<<8)+(n.charCodeAt(e+2)<<16)+(n.charCodeAt(e+3)<<24);return r}pa=Wt.atob.bind(Wt),bs=Wt.btoa.bind(Wt);var mu="0123456789abcdef".split("");function Uc(n){for(var e="",r=0;r<4;r++)e+=mu[n>>8*r+4&15]+mu[n>>8*r&15];return e}function Wc(n){return String.fromCharCode((255&n)>>0,(65280&n)>>8,(16711680&n)>>16,(4278190080&n)>>24)}function ws(n){return gu(n).map(Wc).join("")}var Yc=function(n){for(var e=0;e<n.length;e++)n[e]=Uc(n[e]);return n.join("")}(gu("hello"))!="5d41402abc4b2a76b9719d911017c592";function Cn(n,e){if(Yc){var r=(65535&n)+(65535&e);return(n>>16)+(e>>16)+(r>>16)<<16|65535&r}return n+e&4294967295}function As(n,e){var r,a,u,o;if(n!==r){for(var h=(u=n,o=1+(256/n.length>>0),new Array(o+1).join(u)),l=[],f=0;f<256;f++)l[f]=f;var g=0;for(f=0;f<256;f++){var y=l[f];g=(g+y+h.charCodeAt(f))%256,l[f]=l[g],l[g]=y}r=n,a=l}else l=a;var w=e.length,S=0,d=0,I="";for(f=0;f<w;f++)d=(d+(y=l[S=(S+1)%256]))%256,l[S]=l[d],l[d]=y,h=l[(l[S]+l[d])%256],I+=String.fromCharCode(e.charCodeAt(f)^h);return I}var vu={print:4,modify:8,copy:16,"annot-forms":32};function Ci(n,e,r,a){this.v=1,this.r=2;var u=192;n.forEach(function(l){if(vu.perm!==void 0)throw new Error("Invalid permission: "+l);u+=vu[l]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var o=(e+this.padding).substr(0,32),h=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,h),this.P=-(1+(255^u)),this.encryptionKey=ws(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=As(this.encryptionKey,this.padding)}function ji(n){if(/[^\u0000-\u00ff]/.test(n))throw new Error("Invalid PDF Name Object: "+n+", Only accept ASCII characters.");for(var e="",r=n.length,a=0;a<r;a++){var u=n.charCodeAt(a);u<33||u===35||u===37||u===40||u===41||u===47||u===60||u===62||u===91||u===93||u===123||u===125||u>126?e+="#"+("0"+u.toString(16)).slice(-2):e+=n[a]}return e}function bu(n){if(he(n)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(r,a,u){if(u=u||!1,typeof r!="string"||typeof a!="function"||typeof u!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(r)||(e[r]={});var o=Math.random().toString(35);return e[r][o]=[a,!!u],o},this.unsubscribe=function(r){for(var a in e)if(e[a][r])return delete e[a][r],Object.keys(e[a]).length===0&&delete e[a],!0;return!1},this.publish=function(r){if(e.hasOwnProperty(r)){var a=Array.prototype.slice.call(arguments,1),u=[];for(var o in e[r]){var h=e[r][o];try{h[0].apply(n,a)}catch(l){Wt.console&&ve.error("jsPDF PubSub Error",l.message,l)}h[1]&&u.push(o)}u.length&&u.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function da(n){if(!(this instanceof da))return new da(n);var e="opacity,stroke-opacity".split(",");for(var r in n)n.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=n[r]);this.id="",this.objectNumber=-1}function yu(n,e){this.gState=n,this.matrix=e,this.id="",this.objectNumber=-1}function jn(n,e,r,a,u){if(!(this instanceof jn))return new jn(n,e,r,a,u);this.type=n==="axial"?2:3,this.coords=e,this.colors=r,yu.call(this,a,u)}function Vn(n,e,r,a,u){if(!(this instanceof Vn))return new Vn(n,e,r,a,u);this.boundingBox=n,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,yu.call(this,a,u)}function Rt(n){var e,r=typeof arguments[0]=="string"?arguments[0]:"p",a=arguments[1],u=arguments[2],o=arguments[3],h=[],l=1,f=16,g="S",y=null;he(n=n||{})==="object"&&(r=n.orientation,a=n.unit||a,u=n.format||u,o=n.compress||n.compressPdf||o,(y=n.encryption||null)!==null&&(y.userPassword=y.userPassword||"",y.ownerPassword=y.ownerPassword||"",y.userPermissions=y.userPermissions||[]),l=typeof n.userUnit=="number"?Math.abs(n.userUnit):1,n.precision!==void 0&&(e=n.precision),n.floatPrecision!==void 0&&(f=n.floatPrecision),g=n.defaultPathOperation||"S"),h=n.filters||(o===!0?["FlateEncode"]:h),a=a||"mm",r=(""+(r||"P")).toLowerCase();var w=n.putOnlyUsedFonts||!1,S={},d={internal:{},__private__:{}};d.__private__.PubSub=bu;var I="1.3",F=d.__private__.getPdfVersion=function(){return I};d.__private__.setPdfVersion=function(s){I=s};var D={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};d.__private__.getPageFormats=function(){return D};var _=d.__private__.getPageFormat=function(s){return D[s]};u=u||"a4";var E={COMPAT:"compat",ADVANCED:"advanced"},J=E.COMPAT;function st(){this.saveGraphicsState(),q(new zt(jt,0,0,-jt,0,mn()*jt).toString()+" cm"),this.setFontSize(this.getFontSize()/jt),g="n",J=E.ADVANCED}function ht(){this.restoreGraphicsState(),g="S",J=E.COMPAT}var yt=d.__private__.combineFontStyleAndFontWeight=function(s,v){if(s=="bold"&&v=="normal"||s=="bold"&&v==400||s=="normal"&&v=="italic"||s=="bold"&&v=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return v&&(s=v==400||v==="normal"?s==="italic"?"italic":"normal":v!=700&&v!=="bold"||s!=="normal"?(v==700?"bold":v)+""+s:"bold"),s};d.advancedAPI=function(s){var v=J===E.COMPAT;return v&&st.call(this),typeof s!="function"||(s(this),v&&ht.call(this)),this},d.compatAPI=function(s){var v=J===E.ADVANCED;return v&&ht.call(this),typeof s!="function"||(s(this),v&&st.call(this)),this},d.isAdvancedAPI=function(){return J===E.ADVANCED};var tt,T=function(s){if(J!==E.ADVANCED)throw new Error(s+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},nt=d.roundToPrecision=d.__private__.roundToPrecision=function(s,v){var O=e||v;if(isNaN(s)||isNaN(O))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return s.toFixed(O).replace(/0+$/,"")};tt=d.hpf=d.__private__.hpf=typeof f=="number"?function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.hpf");return nt(s,f)}:f==="smart"?function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.hpf");return nt(s,s>-1&&s<1?16:5)}:function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.hpf");return nt(s,16)};var dt=d.f2=d.__private__.f2=function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.f2");return nt(s,2)},P=d.__private__.f3=function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.f3");return nt(s,3)},k=d.scale=d.__private__.scale=function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.scale");return J===E.COMPAT?s*jt:J===E.ADVANCED?s:void 0},z=function(s){return J===E.COMPAT?mn()-s:J===E.ADVANCED?s:void 0},B=function(s){return k(z(s))};d.__private__.setPrecision=d.setPrecision=function(s){typeof parseInt(s,10)=="number"&&(e=parseInt(s,10))};var at,it="00000000000000000000000000000000",ut=d.__private__.getFileId=function(){return it},Z=d.__private__.setFileId=function(s){return it=s!==void 0&&/^[a-fA-F0-9]{32}$/.test(s)?s.toUpperCase():it.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),y!==null&&(Je=new Ci(y.userPermissions,y.userPassword,y.ownerPassword,it)),it};d.setFileId=function(s){return Z(s),this},d.getFileId=function(){return ut()};var pt=d.__private__.convertDateToPDFDate=function(s){var v=s.getTimezoneOffset(),O=v<0?"+":"-",R=Math.floor(Math.abs(v/60)),V=Math.abs(v%60),ct=[O,M(R),"'",M(V),"'"].join("");return["D:",s.getFullYear(),M(s.getMonth()+1),M(s.getDate()),M(s.getHours()),M(s.getMinutes()),M(s.getSeconds()),ct].join("")},ft=d.__private__.convertPDFDateToDate=function(s){var v=parseInt(s.substr(2,4),10),O=parseInt(s.substr(6,2),10)-1,R=parseInt(s.substr(8,2),10),V=parseInt(s.substr(10,2),10),ct=parseInt(s.substr(12,2),10),wt=parseInt(s.substr(14,2),10);return new Date(v,O,R,V,ct,wt,0)},Ot=d.__private__.setCreationDate=function(s){var v;if(s===void 0&&(s=new Date),s instanceof Date)v=pt(s);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(s))throw new Error("Invalid argument passed to jsPDF.setCreationDate");v=s}return at=v},N=d.__private__.getCreationDate=function(s){var v=at;return s==="jsDate"&&(v=ft(at)),v};d.setCreationDate=function(s){return Ot(s),this},d.getCreationDate=function(s){return N(s)};var j,M=d.__private__.padd2=function(s){return("0"+parseInt(s)).slice(-2)},U=d.__private__.padd2Hex=function(s){return("00"+(s=s.toString())).substr(s.length)},H=0,Q=[],et=[],rt=0,Lt=[],Nt=[],Ft=!1,_t=et,Ut=function(){H=0,rt=0,et=[],Q=[],Lt=[],rn=Ee(),kr=Ee()};d.__private__.setCustomOutputDestination=function(s){Ft=!0,_t=s};var lt=function(s){Ft||(_t=s)};d.__private__.resetCustomOutputDestination=function(){Ft=!1,_t=et};var q=d.__private__.out=function(s){return s=s.toString(),rt+=s.length+1,_t.push(s),_t},Kt=d.__private__.write=function(s){return q(arguments.length===1?s.toString():Array.prototype.join.call(arguments," "))},qt=d.__private__.getArrayBuffer=function(s){for(var v=s.length,O=new ArrayBuffer(v),R=new Uint8Array(O);v--;)R[v]=s.charCodeAt(v);return O},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]];d.__private__.getStandardFonts=function(){return At};var xt=n.fontSize||16;d.__private__.setFontSize=d.setFontSize=function(s){return xt=J===E.ADVANCED?s/jt:s,this};var Ct,kt=d.__private__.getFontSize=d.getFontSize=function(){return J===E.COMPAT?xt:xt*jt},Dt=n.R2L||!1;d.__private__.setR2L=d.setR2L=function(s){return Dt=s,this},d.__private__.getR2L=d.getR2L=function(){return Dt};var Gt,Qt=d.__private__.setZoomMode=function(s){var v=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(s))Ct=s;else if(isNaN(s)){if(v.indexOf(s)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+s+'" is not recognized.');Ct=s}else Ct=parseInt(s,10)};d.__private__.getZoomMode=function(){return Ct};var te,ie=d.__private__.setPageMode=function(s){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(s)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+s+'" is not recognized.');Gt=s};d.__private__.getPageMode=function(){return Gt};var pe=d.__private__.setLayoutMode=function(s){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(s)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+s+'" is not recognized.');te=s};d.__private__.getLayoutMode=function(){return te},d.__private__.setDisplayMode=d.setDisplayMode=function(s,v,O){return Qt(s),pe(v),ie(O),this};var Yt={title:"",subject:"",author:"",keywords:"",creator:""};d.__private__.getDocumentProperty=function(s){if(Object.keys(Yt).indexOf(s)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Yt[s]},d.__private__.getDocumentProperties=function(){return Yt},d.__private__.setDocumentProperties=d.setProperties=d.setDocumentProperties=function(s){for(var v in Yt)Yt.hasOwnProperty(v)&&s[v]&&(Yt[v]=s[v]);return this},d.__private__.setDocumentProperty=function(s,v){if(Object.keys(Yt).indexOf(s)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Yt[s]=v};var ee,jt,He,oe,Sr,ge={},Ae={},zr=[],ue={},Mn={},Le={},_r={},en=null,xe=0,Ht=[],ce=new bu(d),qn=n.hotfixes||[],Ye={},Ur={},Wr=[],zt=function s(v,O,R,V,ct,wt){if(!(this instanceof s))return new s(v,O,R,V,ct,wt);isNaN(v)&&(v=1),isNaN(O)&&(O=0),isNaN(R)&&(R=0),isNaN(V)&&(V=1),isNaN(ct)&&(ct=0),isNaN(wt)&&(wt=0),this._matrix=[v,O,R,V,ct,wt]};Object.defineProperty(zt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(s){this._matrix[0]=s}}),Object.defineProperty(zt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(s){this._matrix[1]=s}}),Object.defineProperty(zt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(s){this._matrix[2]=s}}),Object.defineProperty(zt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(s){this._matrix[3]=s}}),Object.defineProperty(zt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(s){this._matrix[4]=s}}),Object.defineProperty(zt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(s){this._matrix[5]=s}}),Object.defineProperty(zt.prototype,"a",{get:function(){return this._matrix[0]},set:function(s){this._matrix[0]=s}}),Object.defineProperty(zt.prototype,"b",{get:function(){return this._matrix[1]},set:function(s){this._matrix[1]=s}}),Object.defineProperty(zt.prototype,"c",{get:function(){return this._matrix[2]},set:function(s){this._matrix[2]=s}}),Object.defineProperty(zt.prototype,"d",{get:function(){return this._matrix[3]},set:function(s){this._matrix[3]=s}}),Object.defineProperty(zt.prototype,"e",{get:function(){return this._matrix[4]},set:function(s){this._matrix[4]=s}}),Object.defineProperty(zt.prototype,"f",{get:function(){return this._matrix[5]},set:function(s){this._matrix[5]=s}}),Object.defineProperty(zt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(zt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(zt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(zt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),zt.prototype.join=function(s){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(tt).join(s)},zt.prototype.multiply=function(s){var v=s.sx*this.sx+s.shy*this.shx,O=s.sx*this.shy+s.shy*this.sy,R=s.shx*this.sx+s.sy*this.shx,V=s.shx*this.shy+s.sy*this.sy,ct=s.tx*this.sx+s.ty*this.shx+this.tx,wt=s.tx*this.shy+s.ty*this.sy+this.ty;return new zt(v,O,R,V,ct,wt)},zt.prototype.decompose=function(){var s=this.sx,v=this.shy,O=this.shx,R=this.sy,V=this.tx,ct=this.ty,wt=Math.sqrt(s*s+v*v),It=(s/=wt)*O+(v/=wt)*R;O-=s*It,R-=v*It;var Bt=Math.sqrt(O*O+R*R);return It/=Bt,s*(R/=Bt)<v*(O/=Bt)&&(s=-s,v=-v,It=-It,wt=-wt),{scale:new zt(wt,0,0,Bt,0,0),translate:new zt(1,0,0,1,V,ct),rotate:new zt(s,v,-v,s,0,0),skew:new zt(1,0,It,1,0,0)}},zt.prototype.toString=function(s){return this.join(" ")},zt.prototype.inversed=function(){var s=this.sx,v=this.shy,O=this.shx,R=this.sy,V=this.tx,ct=this.ty,wt=1/(s*R-v*O),It=R*wt,Bt=-v*wt,$t=-O*wt,Jt=s*wt;return new zt(It,Bt,$t,Jt,-It*V-$t*ct,-Bt*V-Jt*ct)},zt.prototype.applyToPoint=function(s){var v=s.x*this.sx+s.y*this.shx+this.tx,O=s.x*this.shy+s.y*this.sy+this.ty;return new di(v,O)},zt.prototype.applyToRectangle=function(s){var v=this.applyToPoint(s),O=this.applyToPoint(new di(s.x+s.w,s.y+s.h));return new Yi(v.x,v.y,O.x-v.x,O.y-v.y)},zt.prototype.clone=function(){var s=this.sx,v=this.shy,O=this.shx,R=this.sy,V=this.tx,ct=this.ty;return new zt(s,v,O,R,V,ct)},d.Matrix=zt;var Pr=d.matrixMult=function(s,v){return v.multiply(s)},Yr=new zt(1,0,0,1,0,0);d.unitMatrix=d.identityMatrix=Yr;var ir=function(s,v){if(!Mn[s]){var O=(v instanceof jn?"Sh":"P")+(Object.keys(ue).length+1).toString(10);v.id=O,Mn[s]=O,ue[O]=v,ce.publish("addPattern",v)}};d.ShadingPattern=jn,d.TilingPattern=Vn,d.addShadingPattern=function(s,v){return T("addShadingPattern()"),ir(s,v),this},d.beginTilingPattern=function(s){T("beginTilingPattern()"),Da(s.boundingBox[0],s.boundingBox[1],s.boundingBox[2]-s.boundingBox[0],s.boundingBox[3]-s.boundingBox[1],s.matrix)},d.endTilingPattern=function(s,v){T("endTilingPattern()"),v.stream=Nt[j].join(`
2
+ `),ir(s,v),ce.publish("endTilingPattern",v),Wr.pop().restore()};var Be=d.__private__.newObject=function(){var s=Ee();return lr(s,!0),s},Ee=d.__private__.newObjectDeferred=function(){return H++,Q[H]=function(){return rt},H},lr=function(s,v){return v=typeof v=="boolean"&&v,Q[s]=rt,v&&q(s+" 0 obj"),s},ei=d.__private__.newAdditionalObject=function(){var s={objId:Ee(),content:""};return Lt.push(s),s},rn=Ee(),kr=Ee(),Fr=d.__private__.decodeColorString=function(s){var v=s.split(" ");if(v.length!==2||v[1]!=="g"&&v[1]!=="G")v.length===5&&(v[4]==="k"||v[4]==="K")&&(v=[(1-v[0])*(1-v[3]),(1-v[1])*(1-v[3]),(1-v[2])*(1-v[3]),"r"]);else{var O=parseFloat(v[0]);v=[O,O,O,"r"]}for(var R="#",V=0;V<3;V++)R+=("0"+Math.floor(255*parseFloat(v[V])).toString(16)).slice(-2);return R},Cr=d.__private__.encodeColorString=function(s){var v;typeof s=="string"&&(s={ch1:s});var O=s.ch1,R=s.ch2,V=s.ch3,ct=s.ch4,wt=s.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof O=="string"&&O.charAt(0)!=="#"){var It=new du(O);if(It.ok)O=It.toHex();else if(!/^\d*\.?\d*$/.test(O))throw new Error('Invalid color "'+O+'" passed to jsPDF.encodeColorString.')}if(typeof O=="string"&&/^#[0-9A-Fa-f]{3}$/.test(O)&&(O="#"+O[1]+O[1]+O[2]+O[2]+O[3]+O[3]),typeof O=="string"&&/^#[0-9A-Fa-f]{6}$/.test(O)){var Bt=parseInt(O.substr(1),16);O=Bt>>16&255,R=Bt>>8&255,V=255&Bt}if(R===void 0||ct===void 0&&O===R&&R===V)if(typeof O=="string")v=O+" "+wt[0];else switch(s.precision){case 2:v=dt(O/255)+" "+wt[0];break;case 3:default:v=P(O/255)+" "+wt[0]}else if(ct===void 0||he(ct)==="object"){if(ct&&!isNaN(ct.a)&&ct.a===0)return v=["1.","1.","1.",wt[1]].join(" ");if(typeof O=="string")v=[O,R,V,wt[1]].join(" ");else switch(s.precision){case 2:v=[dt(O/255),dt(R/255),dt(V/255),wt[1]].join(" ");break;default:case 3:v=[P(O/255),P(R/255),P(V/255),wt[1]].join(" ")}}else if(typeof O=="string")v=[O,R,V,ct,wt[2]].join(" ");else switch(s.precision){case 2:v=[dt(O),dt(R),dt(V),dt(ct),wt[2]].join(" ");break;case 3:default:v=[P(O),P(R),P(V),P(ct),wt[2]].join(" ")}return v},Xr=d.__private__.getFilters=function(){return h},mr=d.__private__.putStream=function(s){var v=(s=s||{}).data||"",O=s.filters||Xr(),R=s.alreadyAppliedFilters||[],V=s.addLength1||!1,ct=v.length,wt=s.objectId,It=function(Ve){return Ve};if(y!==null&&wt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");y!==null&&(It=Je.encryptor(wt,0));var Bt={};O===!0&&(O=["FlateEncode"]);var $t=s.additionalKeyValues||[],Jt=(Bt=Rt.API.processDataByFilters!==void 0?Rt.API.processDataByFilters(v,O):{data:v,reverseChain:[]}).reverseChain+(Array.isArray(R)?R.join(" "):R.toString());if(Bt.data.length!==0&&($t.push({key:"Length",value:Bt.data.length}),V===!0&&$t.push({key:"Length1",value:ct})),Jt.length!=0)if(Jt.split("/").length-1==1)$t.push({key:"Filter",value:Jt});else{$t.push({key:"Filter",value:"["+Jt+"]"});for(var ne=0;ne<$t.length;ne+=1)if($t[ne].key==="DecodeParms"){for(var Ne=[],ke=0;ke<Bt.reverseChain.split("/").length-1;ke+=1)Ne.push("null");Ne.push($t[ne].value),$t[ne].value="["+Ne.join(" ")+"]"}}q("<<");for(var Me=0;Me<$t.length;Me++)q("/"+$t[Me].key+" "+$t[Me].value);q(">>"),Bt.data.length!==0&&(q("stream"),q(It(Bt.data)),q("endstream"))},Gr=d.__private__.putPage=function(s){var v=s.number,O=s.data,R=s.objId,V=s.contentsObjId;lr(R,!0),q("<</Type /Page"),q("/Parent "+s.rootDictionaryObjId+" 0 R"),q("/Resources "+s.resourceDictionaryObjId+" 0 R"),q("/MediaBox ["+parseFloat(tt(s.mediaBox.bottomLeftX))+" "+parseFloat(tt(s.mediaBox.bottomLeftY))+" "+tt(s.mediaBox.topRightX)+" "+tt(s.mediaBox.topRightY)+"]"),s.cropBox!==null&&q("/CropBox ["+tt(s.cropBox.bottomLeftX)+" "+tt(s.cropBox.bottomLeftY)+" "+tt(s.cropBox.topRightX)+" "+tt(s.cropBox.topRightY)+"]"),s.bleedBox!==null&&q("/BleedBox ["+tt(s.bleedBox.bottomLeftX)+" "+tt(s.bleedBox.bottomLeftY)+" "+tt(s.bleedBox.topRightX)+" "+tt(s.bleedBox.topRightY)+"]"),s.trimBox!==null&&q("/TrimBox ["+tt(s.trimBox.bottomLeftX)+" "+tt(s.trimBox.bottomLeftY)+" "+tt(s.trimBox.topRightX)+" "+tt(s.trimBox.topRightY)+"]"),s.artBox!==null&&q("/ArtBox ["+tt(s.artBox.bottomLeftX)+" "+tt(s.artBox.bottomLeftY)+" "+tt(s.artBox.topRightX)+" "+tt(s.artBox.topRightY)+"]"),typeof s.userUnit=="number"&&s.userUnit!==1&&q("/UserUnit "+s.userUnit),ce.publish("putPage",{objId:R,pageContext:Ht[v],pageNumber:v,page:O}),q("/Contents "+V+" 0 R"),q(">>"),q("endobj");var ct=O.join(`
3
+ `);return J===E.ADVANCED&&(ct+=`
4
+ Q`),lr(V,!0),mr({data:ct,filters:Xr(),objectId:V}),q("endobj"),R},Dn=d.__private__.putPages=function(){var s,v,O=[];for(s=1;s<=xe;s++)Ht[s].objId=Ee(),Ht[s].contentsObjId=Ee();for(s=1;s<=xe;s++)O.push(Gr({number:s,data:Nt[s],objId:Ht[s].objId,contentsObjId:Ht[s].contentsObjId,mediaBox:Ht[s].mediaBox,cropBox:Ht[s].cropBox,bleedBox:Ht[s].bleedBox,trimBox:Ht[s].trimBox,artBox:Ht[s].artBox,userUnit:Ht[s].userUnit,rootDictionaryObjId:rn,resourceDictionaryObjId:kr}));lr(rn,!0),q("<</Type /Pages");var R="/Kids [";for(v=0;v<xe;v++)R+=O[v]+" 0 R ";q(R+"]"),q("/Count "+xe),q(">>"),q("endobj"),ce.publish("postPutPages")},ri=function(s){ce.publish("putFont",{font:s,out:q,newObject:Be,putStream:mr}),s.isAlreadyPutted!==!0&&(s.objectNumber=Be(),q("<<"),q("/Type /Font"),q("/BaseFont /"+ji(s.postScriptName)),q("/Subtype /Type1"),typeof s.encoding=="string"&&q("/Encoding /"+s.encoding),q("/FirstChar 32"),q("/LastChar 255"),q(">>"),q("endobj"))},ni=function(){for(var s in ge)ge.hasOwnProperty(s)&&(w===!1||w===!0&&S.hasOwnProperty(s))&&ri(ge[s])},ii=function(s){s.objectNumber=Be();var v=[];v.push({key:"Type",value:"/XObject"}),v.push({key:"Subtype",value:"/Form"}),v.push({key:"BBox",value:"["+[tt(s.x),tt(s.y),tt(s.x+s.width),tt(s.y+s.height)].join(" ")+"]"}),v.push({key:"Matrix",value:"["+s.matrix.toString()+"]"});var O=s.pages[1].join(`
5
+ `);mr({data:O,additionalKeyValues:v,objectId:s.objectNumber}),q("endobj")},ai=function(){for(var s in Ye)Ye.hasOwnProperty(s)&&ii(Ye[s])},ya=function(s,v){var O,R=[],V=1/(v-1);for(O=0;O<1;O+=V)R.push(O);if(R.push(1),s[0].offset!=0){var ct={offset:0,color:s[0].color};s.unshift(ct)}if(s[s.length-1].offset!=1){var wt={offset:1,color:s[s.length-1].color};s.push(wt)}for(var It="",Bt=0,$t=0;$t<R.length;$t++){for(O=R[$t];O>s[Bt+1].offset;)Bt++;var Jt=s[Bt].offset,ne=(O-Jt)/(s[Bt+1].offset-Jt),Ne=s[Bt].color,ke=s[Bt+1].color;It+=U(Math.round((1-ne)*Ne[0]+ne*ke[0]).toString(16))+U(Math.round((1-ne)*Ne[1]+ne*ke[1]).toString(16))+U(Math.round((1-ne)*Ne[2]+ne*ke[2]).toString(16))}return It.trim()},bo=function(s,v){v||(v=21);var O=Be(),R=ya(s.colors,v),V=[];V.push({key:"FunctionType",value:"0"}),V.push({key:"Domain",value:"[0.0 1.0]"}),V.push({key:"Size",value:"["+v+"]"}),V.push({key:"BitsPerSample",value:"8"}),V.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),V.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),mr({data:R,additionalKeyValues:V,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:O}),q("endobj"),s.objectNumber=Be(),q("<< /ShadingType "+s.type),q("/ColorSpace /DeviceRGB");var ct="/Coords ["+tt(parseFloat(s.coords[0]))+" "+tt(parseFloat(s.coords[1]))+" ";s.type===2?ct+=tt(parseFloat(s.coords[2]))+" "+tt(parseFloat(s.coords[3])):ct+=tt(parseFloat(s.coords[2]))+" "+tt(parseFloat(s.coords[3]))+" "+tt(parseFloat(s.coords[4]))+" "+tt(parseFloat(s.coords[5])),q(ct+="]"),s.matrix&&q("/Matrix ["+s.matrix.toString()+"]"),q("/Function "+O+" 0 R"),q("/Extend [true true]"),q(">>"),q("endobj")},yo=function(s,v){var O=Ee(),R=Be();v.push({resourcesOid:O,objectOid:R}),s.objectNumber=R;var V=[];V.push({key:"Type",value:"/Pattern"}),V.push({key:"PatternType",value:"1"}),V.push({key:"PaintType",value:"1"}),V.push({key:"TilingType",value:"1"}),V.push({key:"BBox",value:"["+s.boundingBox.map(tt).join(" ")+"]"}),V.push({key:"XStep",value:tt(s.xStep)}),V.push({key:"YStep",value:tt(s.yStep)}),V.push({key:"Resources",value:O+" 0 R"}),s.matrix&&V.push({key:"Matrix",value:"["+s.matrix.toString()+"]"}),mr({data:s.stream,additionalKeyValues:V,objectId:s.objectNumber}),q("endobj")},oi=function(s){var v;for(v in ue)ue.hasOwnProperty(v)&&(ue[v]instanceof jn?bo(ue[v]):ue[v]instanceof Vn&&yo(ue[v],s))},wa=function(s){for(var v in s.objectNumber=Be(),q("<<"),s)switch(v){case"opacity":q("/ca "+dt(s[v]));break;case"stroke-opacity":q("/CA "+dt(s[v]))}q(">>"),q("endobj")},wo=function(){var s;for(s in Le)Le.hasOwnProperty(s)&&wa(Le[s])},Ei=function(){for(var s in q("/XObject <<"),Ye)Ye.hasOwnProperty(s)&&Ye[s].objectNumber>=0&&q("/"+s+" "+Ye[s].objectNumber+" 0 R");ce.publish("putXobjectDict"),q(">>")},Ao=function(){Je.oid=Be(),q("<<"),q("/Filter /Standard"),q("/V "+Je.v),q("/R "+Je.r),q("/U <"+Je.toHexString(Je.U)+">"),q("/O <"+Je.toHexString(Je.O)+">"),q("/P "+Je.P),q(">>"),q("endobj")},Aa=function(){for(var s in q("/Font <<"),ge)ge.hasOwnProperty(s)&&(w===!1||w===!0&&S.hasOwnProperty(s))&&q("/"+s+" "+ge[s].objectNumber+" 0 R");q(">>")},No=function(){if(Object.keys(ue).length>0){for(var s in q("/Shading <<"),ue)ue.hasOwnProperty(s)&&ue[s]instanceof jn&&ue[s].objectNumber>=0&&q("/"+s+" "+ue[s].objectNumber+" 0 R");ce.publish("putShadingPatternDict"),q(">>")}},si=function(s){if(Object.keys(ue).length>0){for(var v in q("/Pattern <<"),ue)ue.hasOwnProperty(v)&&ue[v]instanceof d.TilingPattern&&ue[v].objectNumber>=0&&ue[v].objectNumber<s&&q("/"+v+" "+ue[v].objectNumber+" 0 R");ce.publish("putTilingPatternDict"),q(">>")}},Lo=function(){if(Object.keys(Le).length>0){var s;for(s in q("/ExtGState <<"),Le)Le.hasOwnProperty(s)&&Le[s].objectNumber>=0&&q("/"+s+" "+Le[s].objectNumber+" 0 R");ce.publish("putGStateDict"),q(">>")}},Pe=function(s){lr(s.resourcesOid,!0),q("<<"),q("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Aa(),No(),si(s.objectOid),Lo(),Ei(),q(">>"),q("endobj")},Na=function(){var s=[];ni(),wo(),ai(),oi(s),ce.publish("putResources"),s.forEach(Pe),Pe({resourcesOid:kr,objectOid:Number.MAX_SAFE_INTEGER}),ce.publish("postPutResources")},La=function(){ce.publish("putAdditionalObjects");for(var s=0;s<Lt.length;s++){var v=Lt[s];lr(v.objId,!0),q(v.content),q("endobj")}ce.publish("postPutAdditionalObjects")},xa=function(s){Ae[s.fontName]=Ae[s.fontName]||{},Ae[s.fontName][s.fontStyle]=s.id},Mi=function(s,v,O,R,V){var ct={id:"F"+(Object.keys(ge).length+1).toString(10),postScriptName:s,fontName:v,fontStyle:O,encoding:R,isStandardFont:V||!1,metadata:{}};return ce.publish("addFont",{font:ct,instance:this}),ge[ct.id]=ct,xa(ct),ct.id},xo=function(s){for(var v=0,O=At.length;v<O;v++){var R=Mi.call(this,s[v][0],s[v][1],s[v][2],At[v][3],!0);w===!1&&(S[R]=!0);var V=s[v][0].split("-");xa({id:R,fontName:V[0],fontStyle:V[1]||""})}ce.publish("addFonts",{fonts:ge,dictionary:Ae})},jr=function(s){return s.foo=function(){try{return s.apply(this,arguments)}catch(R){var v=R.stack||"";~v.indexOf(" at ")&&(v=v.split(" at ")[1]);var O="Error in function "+v.split(`
6
+ `)[0].split("<")[0]+": "+R.message;if(!Wt.console)throw new Error(O);Wt.console.error(O,R),Wt.alert&&alert(O)}},s.foo.bar=s,s.foo},ui=function(s,v){var O,R,V,ct,wt,It,Bt,$t,Jt;if(V=(v=v||{}).sourceEncoding||"Unicode",wt=v.outputEncoding,(v.autoencode||wt)&&ge[ee].metadata&&ge[ee].metadata[V]&&ge[ee].metadata[V].encoding&&(ct=ge[ee].metadata[V].encoding,!wt&&ge[ee].encoding&&(wt=ge[ee].encoding),!wt&&ct.codePages&&(wt=ct.codePages[0]),typeof wt=="string"&&(wt=ct[wt]),wt)){for(Bt=!1,It=[],O=0,R=s.length;O<R;O++)($t=wt[s.charCodeAt(O)])?It.push(String.fromCharCode($t)):It.push(s[O]),It[O].charCodeAt(0)>>8&&(Bt=!0);s=It.join("")}for(O=s.length;Bt===void 0&&O!==0;)s.charCodeAt(O-1)>>8&&(Bt=!0),O--;if(!Bt)return s;for(It=v.noBOM?[]:[254,255],O=0,R=s.length;O<R;O++){if((Jt=($t=s.charCodeAt(O))>>8)>>8)throw new Error("Character at position "+O+" of string '"+s+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");It.push(Jt),It.push($t-(Jt<<8))}return String.fromCharCode.apply(void 0,It)},ar=d.__private__.pdfEscape=d.pdfEscape=function(s,v){return ui(s,v).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},qi=d.__private__.beginPage=function(s){Nt[++xe]=[],Ht[xe]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(s[0]),topRightY:Number(s[1])}},_a(xe),lt(Nt[j])},Sa=function(s,v){var O,R,V;switch(r=v||r,typeof s=="string"&&(O=_(s.toLowerCase()),Array.isArray(O)&&(R=O[0],V=O[1])),Array.isArray(s)&&(R=s[0]*jt,V=s[1]*jt),isNaN(R)&&(R=u[0],V=u[1]),(R>14400||V>14400)&&(ve.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),R=Math.min(14400,R),V=Math.min(14400,V)),u=[R,V],r.substr(0,1)){case"l":V>R&&(u=[V,R]);break;case"p":R>V&&(u=[V,R])}qi(u),Oa(Ri),q(Or),Ui!==0&&q(Ui+" J"),Wi!==0&&q(Wi+" j"),ce.publish("addPage",{pageNumber:xe})},So=function(s){s>0&&s<=xe&&(Nt.splice(s,1),Ht.splice(s,1),xe--,j>xe&&(j=xe),this.setPage(j))},_a=function(s){s>0&&s<=xe&&(j=s)},_o=d.__private__.getNumberOfPages=d.getNumberOfPages=function(){return Nt.length-1},Pa=function(s,v,O){var R,V=void 0;return O=O||{},s=s!==void 0?s:ge[ee].fontName,v=v!==void 0?v:ge[ee].fontStyle,R=s.toLowerCase(),Ae[R]!==void 0&&Ae[R][v]!==void 0?V=Ae[R][v]:Ae[s]!==void 0&&Ae[s][v]!==void 0?V=Ae[s][v]:O.disableWarning===!1&&ve.warn("Unable to look up font label for font '"+s+"', '"+v+"'. Refer to getFontList() for available fonts."),V||O.noFallback||(V=Ae.times[v])==null&&(V=Ae.times.normal),V},Po=d.__private__.putInfo=function(){var s=Be(),v=function(R){return R};for(var O in y!==null&&(v=Je.encryptor(s,0)),q("<<"),q("/Producer ("+ar(v("jsPDF "+Rt.version))+")"),Yt)Yt.hasOwnProperty(O)&&Yt[O]&&q("/"+O.substr(0,1).toUpperCase()+O.substr(1)+" ("+ar(v(Yt[O]))+")");q("/CreationDate ("+ar(v(at))+")"),q(">>"),q("endobj")},Di=d.__private__.putCatalog=function(s){var v=(s=s||{}).rootDictionaryObjId||rn;switch(Be(),q("<<"),q("/Type /Catalog"),q("/Pages "+v+" 0 R"),Ct||(Ct="fullwidth"),Ct){case"fullwidth":q("/OpenAction [3 0 R /FitH null]");break;case"fullheight":q("/OpenAction [3 0 R /FitV null]");break;case"fullpage":q("/OpenAction [3 0 R /Fit]");break;case"original":q("/OpenAction [3 0 R /XYZ null null 1]");break;default:var O=""+Ct;O.substr(O.length-1)==="%"&&(Ct=parseInt(Ct)/100),typeof Ct=="number"&&q("/OpenAction [3 0 R /XYZ null null "+dt(Ct)+"]")}switch(te||(te="continuous"),te){case"continuous":q("/PageLayout /OneColumn");break;case"single":q("/PageLayout /SinglePage");break;case"two":case"twoleft":q("/PageLayout /TwoColumnLeft");break;case"tworight":q("/PageLayout /TwoColumnRight")}Gt&&q("/PageMode /"+Gt),ce.publish("putCatalog"),q(">>"),q("endobj")},ko=d.__private__.putTrailer=function(){q("trailer"),q("<<"),q("/Size "+(H+1)),q("/Root "+H+" 0 R"),q("/Info "+(H-1)+" 0 R"),y!==null&&q("/Encrypt "+Je.oid+" 0 R"),q("/ID [ <"+it+"> <"+it+"> ]"),q(">>")},Fo=d.__private__.putHeader=function(){q("%PDF-"+I),q("%ºß¬à")},Co=d.__private__.putXRef=function(){var s="0000000000";q("xref"),q("0 "+(H+1)),q("0000000000 65535 f ");for(var v=1;v<=H;v++)typeof Q[v]=="function"?q((s+Q[v]()).slice(-10)+" 00000 n "):Q[v]!==void 0?q((s+Q[v]).slice(-10)+" 00000 n "):q("0000000000 00000 n ")},nn=d.__private__.buildDocument=function(){Ut(),lt(et),ce.publish("buildDocument"),Fo(),Dn(),La(),Na(),y!==null&&Ao(),Po(),Di();var s=rt;return Co(),ko(),q("startxref"),q(""+s),q("%%EOF"),lt(Nt[j]),et.join(`
7
+ `)},ci=d.__private__.getBlob=function(s){return new Blob([qt(s)],{type:"application/pdf"})},hi=d.output=d.__private__.output=jr(function(s,v){switch(typeof(v=v||{})=="string"?v={filename:v}:v.filename=v.filename||"generated.pdf",s){case void 0:return nn();case"save":d.save(v.filename);break;case"arraybuffer":return qt(nn());case"blob":return ci(nn());case"bloburi":case"bloburl":if(Wt.URL!==void 0&&typeof Wt.URL.createObjectURL=="function")return Wt.URL&&Wt.URL.createObjectURL(ci(nn()))||void 0;ve.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var O="",R=nn();try{O=bs(R)}catch{O=bs(unescape(encodeURIComponent(R)))}return"data:application/pdf;filename="+v.filename+";base64,"+O;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Wt)==="[object Window]"){var V="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ct=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';v.pdfObjectUrl&&(V=v.pdfObjectUrl,ct="");var wt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+V+'"'+ct+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(v)+");<\/script></body></html>",It=Wt.open();return It!==null&&It.document.write(wt),It}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Wt)==="[object Window]"){var Bt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(v.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+v.filename+'" width="500px" height="400px" /></body></html>',$t=Wt.open();if($t!==null){$t.document.write(Bt);var Jt=this;$t.document.documentElement.querySelector("#pdfViewer").onload=function(){$t.document.title=v.filename,$t.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Jt.output("bloburl"))}}return $t}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Wt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ne='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",v)+'"></iframe></body></html>',Ne=Wt.open();if(Ne!==null&&(Ne.document.write(ne),Ne.document.title=v.filename),Ne||typeof safari>"u")return Ne;break;case"datauri":case"dataurl":return Wt.document.location.href=this.output("datauristring",v);default:return null}}),ka=function(s){return Array.isArray(qn)===!0&&qn.indexOf(s)>-1};switch(a){case"pt":jt=1;break;case"mm":jt=72/25.4;break;case"cm":jt=72/2.54;break;case"in":jt=72;break;case"px":jt=ka("px_scaling")==1?.75:96/72;break;case"pc":case"em":jt=12;break;case"ex":jt=6;break;default:if(typeof a!="number")throw new Error("Invalid unit: "+a);jt=a}var Je=null;Ot(),Z();var jo=function(s){return y!==null?Je.encryptor(s,0):function(v){return v}},Fa=d.__private__.getPageInfo=d.getPageInfo=function(s){if(isNaN(s)||s%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ht[s].objId,pageNumber:s,pageContext:Ht[s]}},Xt=d.__private__.getPageInfoByObjId=function(s){if(isNaN(s)||s%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var v in Ht)if(Ht[v].objId===s)break;return Fa(v)},Oo=d.__private__.getCurrentPageInfo=d.getCurrentPageInfo=function(){return{objId:Ht[j].objId,pageNumber:j,pageContext:Ht[j]}};d.addPage=function(){return Sa.apply(this,arguments),this},d.setPage=function(){return _a.apply(this,arguments),lt.call(this,Nt[j]),this},d.insertPage=function(s){return this.addPage(),this.movePage(j,s),this},d.movePage=function(s,v){var O,R;if(s>v){O=Nt[s],R=Ht[s];for(var V=s;V>v;V--)Nt[V]=Nt[V-1],Ht[V]=Ht[V-1];Nt[v]=O,Ht[v]=R,this.setPage(v)}else if(s<v){O=Nt[s],R=Ht[s];for(var ct=s;ct<v;ct++)Nt[ct]=Nt[ct+1],Ht[ct]=Ht[ct+1];Nt[v]=O,Ht[v]=R,this.setPage(v)}return this},d.deletePage=function(){return So.apply(this,arguments),this},d.__private__.text=d.text=function(s,v,O,R,V){var ct,wt,It,Bt,$t,Jt,ne,Ne,ke,Me=(R=R||{}).scope||this;if(typeof s=="number"&&typeof v=="number"&&(typeof O=="string"||Array.isArray(O))){var Ve=O;O=v,v=s,s=Ve}if(arguments[3]instanceof zt?(T("The transform parameter of text() with a Matrix value"),ke=V):(It=arguments[4],Bt=arguments[5],he(ne=arguments[3])==="object"&&ne!==null||(typeof It=="string"&&(Bt=It,It=null),typeof ne=="string"&&(Bt=ne,ne=null),typeof ne=="number"&&(It=ne,ne=null),R={flags:ne,angle:It,align:Bt})),isNaN(v)||isNaN(O)||s==null)throw new Error("Invalid arguments passed to jsPDF.text");if(s.length===0)return Me;var ze="",Ir=!1,vr=typeof R.lineHeightFactor=="number"?R.lineHeightFactor:Tn,Vr=Me.internal.scaleFactor;function Ba(be){return be=be.split(" ").join(Array(R.TabLen||9).join(" ")),ar(be,ne)}function Ji(be){for(var ye,Ce=be.concat(),Te=[],cn=Ce.length;cn--;)typeof(ye=Ce.shift())=="string"?Te.push(ye):Array.isArray(be)&&(ye.length===1||ye[1]===void 0&&ye[2]===void 0)?Te.push(ye[0]):Te.push([ye[0],ye[1],ye[2]]);return Te}function Vi(be,ye){var Ce;if(typeof be=="string")Ce=ye(be)[0];else if(Array.isArray(be)){for(var Te,cn,na=be.concat(),Si=[],Wa=na.length;Wa--;)typeof(Te=na.shift())=="string"?Si.push(ye(Te)[0]):Array.isArray(Te)&&typeof Te[0]=="string"&&(cn=ye(Te[0],Te[1],Te[2]),Si.push([cn[0],cn[1],cn[2]]));Ce=Si}return Ce}var mi=!1,Ki=!0;if(typeof s=="string")mi=!0;else if(Array.isArray(s)){var $i=s.concat();wt=[];for(var vi,Xe=$i.length;Xe--;)(typeof(vi=$i.shift())!="string"||Array.isArray(vi)&&typeof vi[0]!="string")&&(Ki=!1);mi=Ki}if(mi===!1)throw new Error('Type of text must be string or Array. "'+s+'" is not recognized.');typeof s=="string"&&(s=s.match(/[\r?\n]/)?s.split(/\r\n|\r|\n/g):[s]);var bi=xt/Me.internal.scaleFactor,yi=bi*(vr-1);switch(R.baseline){case"bottom":O-=yi;break;case"top":O+=bi-yi;break;case"hanging":O+=bi-2*yi;break;case"middle":O+=bi/2-yi}if((Jt=R.maxWidth||0)>0&&(typeof s=="string"?s=Me.splitTextToSize(s,Jt):Object.prototype.toString.call(s)==="[object Array]"&&(s=s.reduce(function(be,ye){return be.concat(Me.splitTextToSize(ye,Jt))},[]))),ct={text:s,x:v,y:O,options:R,mutex:{pdfEscape:ar,activeFontKey:ee,fonts:ge,activeFontSize:xt}},ce.publish("preProcessText",ct),s=ct.text,It=(R=ct.options).angle,!(ke instanceof zt)&&It&&typeof It=="number"){It*=Math.PI/180,R.rotationDirection===0&&(It=-It),J===E.ADVANCED&&(It=-It);var wi=Math.cos(It),Zi=Math.sin(It);ke=new zt(wi,Zi,-Zi,wi,0,0)}else It&&It instanceof zt&&(ke=It);J!==E.ADVANCED||ke||(ke=Yr),($t=R.charSpace||pi)!==void 0&&(ze+=tt(k($t))+` Tc
8
+ `,this.setCharSpace(this.getCharSpace()||0)),(Ne=R.horizontalScale)!==void 0&&(ze+=tt(100*Ne)+` Tz
9
+ `),R.lang;var or=-1,Uo=R.renderingMode!==void 0?R.renderingMode:R.stroke,Qi=Me.internal.getCurrentPageInfo().pageContext;switch(Uo){case 0:case!1:case"fill":or=0;break;case 1:case!0:case"stroke":or=1;break;case 2:case"fillThenStroke":or=2;break;case 3:case"invisible":or=3;break;case 4:case"fillAndAddForClipping":or=4;break;case 5:case"strokeAndAddPathForClipping":or=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":or=6;break;case 7:case"addToPathForClipping":or=7}var Ta=Qi.usedRenderingMode!==void 0?Qi.usedRenderingMode:-1;or!==-1?ze+=or+` Tr
10
+ `:Ta!==-1&&(ze+=`0 Tr
11
+ `),or!==-1&&(Qi.usedRenderingMode=or),Bt=R.align||"left";var br,Ai=xt*vr,Ra=Me.internal.pageSize.getWidth(),za=ge[ee];$t=R.charSpace||pi,Jt=R.maxWidth||0,ne=Object.assign({autoencode:!0,noBOM:!0},R.flags);var vn=[],Un=function(be){return Me.getStringUnitWidth(be,{font:za,charSpace:$t,fontSize:xt,doKerning:!1})*xt/Vr};if(Object.prototype.toString.call(s)==="[object Array]"){var sr;wt=Ji(s),Bt!=="left"&&(br=wt.map(Un));var er,bn=0;if(Bt==="right"){v-=br[0],s=[],Xe=wt.length;for(var on=0;on<Xe;on++)on===0?(er=Jr(v),sr=an(O)):(er=k(bn-br[on]),sr=-Ai),s.push([wt[on],er,sr]),bn=br[on]}else if(Bt==="center"){v-=br[0]/2,s=[],Xe=wt.length;for(var sn=0;sn<Xe;sn++)sn===0?(er=Jr(v),sr=an(O)):(er=k((bn-br[sn])/2),sr=-Ai),s.push([wt[sn],er,sr]),bn=br[sn]}else if(Bt==="left"){s=[],Xe=wt.length;for(var Ni=0;Ni<Xe;Ni++)s.push(wt[Ni])}else if(Bt==="justify"&&za.encoding==="Identity-H"){s=[],Xe=wt.length,Jt=Jt!==0?Jt:Ra;for(var un=0,Fe=0;Fe<Xe;Fe++)if(sr=Fe===0?an(O):-Ai,er=Fe===0?Jr(v):un,Fe<Xe-1){var ta=k((Jt-br[Fe])/(wt[Fe].split(" ").length-1)),rr=wt[Fe].split(" ");s.push([rr[0]+" ",er,sr]),un=0;for(var yr=1;yr<rr.length;yr++){var Li=(Un(rr[yr-1]+" "+rr[yr])-Un(rr[yr]))*Vr+ta;yr==rr.length-1?s.push([rr[yr],Li,0]):s.push([rr[yr]+" ",Li,0]),un-=Li}}else s.push([wt[Fe],er,sr]);s.push(["",un,0])}else{if(Bt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(s=[],Xe=wt.length,Jt=Jt!==0?Jt:Ra,Fe=0;Fe<Xe;Fe++)sr=Fe===0?an(O):-Ai,er=Fe===0?Jr(v):0,Fe<Xe-1?vn.push(tt(k((Jt-br[Fe])/(wt[Fe].split(" ").length-1)))):vn.push(0),s.push([wt[Fe],er,sr])}}var Ua=typeof R.R2L=="boolean"?R.R2L:Dt;Ua===!0&&(s=Vi(s,function(be,ye,Ce){return[be.split("").reverse().join(""),ye,Ce]})),ct={text:s,x:v,y:O,options:R,mutex:{pdfEscape:ar,activeFontKey:ee,fonts:ge,activeFontSize:xt}},ce.publish("postProcessText",ct),s=ct.text,Ir=ct.mutex.isHex||!1;var ea=ge[ee].encoding;ea!=="WinAnsiEncoding"&&ea!=="StandardEncoding"||(s=Vi(s,function(be,ye,Ce){return[Ba(be),ye,Ce]})),wt=Ji(s),s=[];for(var Wn,Yn,yn,Xn=0,xi=1,Gn=Array.isArray(wt[0])?xi:Xn,wn="",ra=function(be,ye,Ce){var Te="";return Ce instanceof zt?(Ce=typeof R.angle=="number"?Pr(Ce,new zt(1,0,0,1,be,ye)):Pr(new zt(1,0,0,1,be,ye),Ce),J===E.ADVANCED&&(Ce=Pr(new zt(1,0,0,-1,0,0),Ce)),Te=Ce.join(" ")+` Tm
12
+ `):Te=tt(be)+" "+tt(ye)+` Td
13
+ `,Te},wr=0;wr<wt.length;wr++){switch(wn="",Gn){case xi:yn=(Ir?"<":"(")+wt[wr][0]+(Ir?">":")"),Wn=parseFloat(wt[wr][1]),Yn=parseFloat(wt[wr][2]);break;case Xn:yn=(Ir?"<":"(")+wt[wr]+(Ir?">":")"),Wn=Jr(v),Yn=an(O)}vn!==void 0&&vn[wr]!==void 0&&(wn=vn[wr]+` Tw
14
+ `),wr===0?s.push(wn+ra(Wn,Yn,ke)+yn):Gn===Xn?s.push(wn+yn):Gn===xi&&s.push(wn+ra(Wn,Yn,ke)+yn)}s=Gn===Xn?s.join(` Tj
15
+ T* `):s.join(` Tj
16
+ `),s+=` Tj
17
+ `;var Ar=`BT
18
+ /`;return Ar+=ee+" "+xt+` Tf
19
+ `,Ar+=tt(xt*vr)+` TL
20
+ `,Ar+=Rn+`
21
+ `,Ar+=ze,Ar+=s,q(Ar+="ET"),S[ee]=!0,Me};var Io=d.__private__.clip=d.clip=function(s){return q(s==="evenodd"?"W*":"W"),this};d.clipEvenOdd=function(){return Io("evenodd")},d.__private__.discardPath=d.discardPath=function(){return q("n"),this};var Hr=d.__private__.isValidStyle=function(s){var v=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(s)!==-1&&(v=!0),v};d.__private__.setDefaultPathOperation=d.setDefaultPathOperation=function(s){return Hr(s)&&(g=s),this};var Ca=d.__private__.getStyle=d.getStyle=function(s){var v=g;switch(s){case"D":case"S":v="S";break;case"F":v="f";break;case"FD":case"DF":v="B";break;case"f":case"f*":case"B":case"B*":v=s}return v},ja=d.close=function(){return q("h"),this};d.stroke=function(){return q("S"),this},d.fill=function(s){return li("f",s),this},d.fillEvenOdd=function(s){return li("f*",s),this},d.fillStroke=function(s){return li("B",s),this},d.fillStrokeEvenOdd=function(s){return li("B*",s),this};var li=function(s,v){he(v)==="object"?Mo(v,s):q(s)},Bi=function(s){s===null||J===E.ADVANCED&&s===void 0||(s=Ca(s),q(s))};function Eo(s,v,O,R,V){var ct=new Vn(v||this.boundingBox,O||this.xStep,R||this.yStep,this.gState,V||this.matrix);ct.stream=this.stream;var wt=s+"$$"+this.cloneIndex+++"$$";return ir(wt,ct),ct}var Mo=function(s,v){var O=Mn[s.key],R=ue[O];if(R instanceof jn)q("q"),q(qo(v)),R.gState&&d.setGState(R.gState),q(s.matrix.toString()+" cm"),q("/"+O+" sh"),q("Q");else if(R instanceof Vn){var V=new zt(1,0,0,-1,0,mn());s.matrix&&(V=V.multiply(s.matrix||Yr),O=Eo.call(R,s.key,s.boundingBox,s.xStep,s.yStep,V).id),q("q"),q("/Pattern cs"),q("/"+O+" scn"),R.gState&&d.setGState(R.gState),q(v),q("Q")}},qo=function(s){switch(s){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"}},Ti=d.moveTo=function(s,v){return q(tt(k(s))+" "+tt(B(v))+" m"),this},Bn=d.lineTo=function(s,v){return q(tt(k(s))+" "+tt(B(v))+" l"),this},dn=d.curveTo=function(s,v,O,R,V,ct){return q([tt(k(s)),tt(B(v)),tt(k(O)),tt(B(R)),tt(k(V)),tt(B(ct)),"c"].join(" ")),this};d.__private__.line=d.line=function(s,v,O,R,V){if(isNaN(s)||isNaN(v)||isNaN(O)||isNaN(R)||!Hr(V))throw new Error("Invalid arguments passed to jsPDF.line");return J===E.COMPAT?this.lines([[O-s,R-v]],s,v,[1,1],V||"S"):this.lines([[O-s,R-v]],s,v,[1,1]).stroke()},d.__private__.lines=d.lines=function(s,v,O,R,V,ct){var wt,It,Bt,$t,Jt,ne,Ne,ke,Me,Ve,ze,Ir;if(typeof s=="number"&&(Ir=O,O=v,v=s,s=Ir),R=R||[1,1],ct=ct||!1,isNaN(v)||isNaN(O)||!Array.isArray(s)||!Array.isArray(R)||!Hr(V)||typeof ct!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Ti(v,O),wt=R[0],It=R[1],$t=s.length,Ve=v,ze=O,Bt=0;Bt<$t;Bt++)(Jt=s[Bt]).length===2?(Ve=Jt[0]*wt+Ve,ze=Jt[1]*It+ze,Bn(Ve,ze)):(ne=Jt[0]*wt+Ve,Ne=Jt[1]*It+ze,ke=Jt[2]*wt+Ve,Me=Jt[3]*It+ze,Ve=Jt[4]*wt+Ve,ze=Jt[5]*It+ze,dn(ne,Ne,ke,Me,Ve,ze));return ct&&ja(),Bi(V),this},d.path=function(s){for(var v=0;v<s.length;v++){var O=s[v],R=O.c;switch(O.op){case"m":Ti(R[0],R[1]);break;case"l":Bn(R[0],R[1]);break;case"c":dn.apply(this,R);break;case"h":ja()}}return this},d.__private__.rect=d.rect=function(s,v,O,R,V){if(isNaN(s)||isNaN(v)||isNaN(O)||isNaN(R)||!Hr(V))throw new Error("Invalid arguments passed to jsPDF.rect");return J===E.COMPAT&&(R=-R),q([tt(k(s)),tt(B(v)),tt(k(O)),tt(k(R)),"re"].join(" ")),Bi(V),this},d.__private__.triangle=d.triangle=function(s,v,O,R,V,ct,wt){if(isNaN(s)||isNaN(v)||isNaN(O)||isNaN(R)||isNaN(V)||isNaN(ct)||!Hr(wt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[O-s,R-v],[V-O,ct-R],[s-V,v-ct]],s,v,[1,1],wt,!0),this},d.__private__.roundedRect=d.roundedRect=function(s,v,O,R,V,ct,wt){if(isNaN(s)||isNaN(v)||isNaN(O)||isNaN(R)||isNaN(V)||isNaN(ct)||!Hr(wt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var It=4/3*(Math.SQRT2-1);return V=Math.min(V,.5*O),ct=Math.min(ct,.5*R),this.lines([[O-2*V,0],[V*It,0,V,ct-ct*It,V,ct],[0,R-2*ct],[0,ct*It,-V*It,ct,-V,ct],[2*V-O,0],[-V*It,0,-V,-ct*It,-V,-ct],[0,2*ct-R],[0,-ct*It,V*It,-ct,V,-ct]],s+V,v,[1,1],wt,!0),this},d.__private__.ellipse=d.ellipse=function(s,v,O,R,V){if(isNaN(s)||isNaN(v)||isNaN(O)||isNaN(R)||!Hr(V))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ct=4/3*(Math.SQRT2-1)*O,wt=4/3*(Math.SQRT2-1)*R;return Ti(s+O,v),dn(s+O,v-wt,s+ct,v-R,s,v-R),dn(s-ct,v-R,s-O,v-wt,s-O,v),dn(s-O,v+wt,s-ct,v+R,s,v+R),dn(s+ct,v+R,s+O,v+wt,s+O,v),Bi(V),this},d.__private__.circle=d.circle=function(s,v,O,R){if(isNaN(s)||isNaN(v)||isNaN(O)||!Hr(R))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(s,v,O,O,R)},d.setFont=function(s,v,O){return O&&(v=yt(v,O)),ee=Pa(s,v,{disableWarning:!1}),this};var Do=d.__private__.getFont=d.getFont=function(){return ge[Pa.apply(d,arguments)]};d.__private__.getFontList=d.getFontList=function(){var s,v,O={};for(s in Ae)if(Ae.hasOwnProperty(s))for(v in O[s]=[],Ae[s])Ae[s].hasOwnProperty(v)&&O[s].push(v);return O},d.addFont=function(s,v,O,R,V){var ct=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ct.indexOf(arguments[3])!==-1?V=arguments[3]:arguments[3]&&ct.indexOf(arguments[3])==-1&&(O=yt(O,R)),V=V||"Identity-H",Mi.call(this,s,v,O,V)};var Tn,Ri=n.lineWidth||.200025,fi=d.__private__.getLineWidth=d.getLineWidth=function(){return Ri},Oa=d.__private__.setLineWidth=d.setLineWidth=function(s){return Ri=s,q(tt(k(s))+" w"),this};d.__private__.setLineDash=Rt.API.setLineDash=Rt.API.setLineDashPattern=function(s,v){if(s=s||[],v=v||0,isNaN(v)||!Array.isArray(s))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return s=s.map(function(O){return tt(k(O))}).join(" "),v=tt(k(v)),q("["+s+"] "+v+" d"),this};var Ia=d.__private__.getLineHeight=d.getLineHeight=function(){return xt*Tn};d.__private__.getLineHeight=d.getLineHeight=function(){return xt*Tn};var Ea=d.__private__.setLineHeightFactor=d.setLineHeightFactor=function(s){return typeof(s=s||1.15)=="number"&&(Tn=s),this},Ma=d.__private__.getLineHeightFactor=d.getLineHeightFactor=function(){return Tn};Ea(n.lineHeight);var Jr=d.__private__.getHorizontalCoordinate=function(s){return k(s)},an=d.__private__.getVerticalCoordinate=function(s){return J===E.ADVANCED?s:Ht[j].mediaBox.topRightY-Ht[j].mediaBox.bottomLeftY-k(s)},Bo=d.__private__.getHorizontalCoordinateString=d.getHorizontalCoordinateString=function(s){return tt(Jr(s))},gn=d.__private__.getVerticalCoordinateString=d.getVerticalCoordinateString=function(s){return tt(an(s))},Or=n.strokeColor||"0 G";d.__private__.getStrokeColor=d.getDrawColor=function(){return Fr(Or)},d.__private__.setStrokeColor=d.setDrawColor=function(s,v,O,R){return Or=Cr({ch1:s,ch2:v,ch3:O,ch4:R,pdfColorType:"draw",precision:2}),q(Or),this};var zi=n.fillColor||"0 g";d.__private__.getFillColor=d.getFillColor=function(){return Fr(zi)},d.__private__.setFillColor=d.setFillColor=function(s,v,O,R){return zi=Cr({ch1:s,ch2:v,ch3:O,ch4:R,pdfColorType:"fill",precision:2}),q(zi),this};var Rn=n.textColor||"0 g",To=d.__private__.getTextColor=d.getTextColor=function(){return Fr(Rn)};d.__private__.setTextColor=d.setTextColor=function(s,v,O,R){return Rn=Cr({ch1:s,ch2:v,ch3:O,ch4:R,pdfColorType:"text",precision:3}),this};var pi=n.charSpace,Ro=d.__private__.getCharSpace=d.getCharSpace=function(){return parseFloat(pi||0)};d.__private__.setCharSpace=d.setCharSpace=function(s){if(isNaN(s))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return pi=s,this};var Ui=0;d.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},d.__private__.setLineCap=d.setLineCap=function(s){var v=d.CapJoinStyles[s];if(v===void 0)throw new Error("Line cap style of '"+s+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ui=v,q(v+" J"),this};var Wi=0;d.__private__.setLineJoin=d.setLineJoin=function(s){var v=d.CapJoinStyles[s];if(v===void 0)throw new Error("Line join style of '"+s+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Wi=v,q(v+" j"),this},d.__private__.setLineMiterLimit=d.__private__.setMiterLimit=d.setLineMiterLimit=d.setMiterLimit=function(s){if(s=s||0,isNaN(s))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return q(tt(k(s))+" M"),this},d.GState=da,d.setGState=function(s){(s=typeof s=="string"?Le[_r[s]]:qa(null,s)).equals(en)||(q("/"+s.id+" gs"),en=s)};var qa=function(s,v){if(!s||!_r[s]){var O=!1;for(var R in Le)if(Le.hasOwnProperty(R)&&Le[R].equals(v)){O=!0;break}if(O)v=Le[R];else{var V="GS"+(Object.keys(Le).length+1).toString(10);Le[V]=v,v.id=V}return s&&(_r[s]=v.id),ce.publish("addGState",v),v}};d.addGState=function(s,v){return qa(s,v),this},d.saveGraphicsState=function(){return q("q"),zr.push({key:ee,size:xt,color:Rn}),this},d.restoreGraphicsState=function(){q("Q");var s=zr.pop();return ee=s.key,xt=s.size,Rn=s.color,en=null,this},d.setCurrentTransformationMatrix=function(s){return q(s.toString()+" cm"),this},d.comment=function(s){return q("#"+s),this};var di=function(s,v){var O=s||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return O},set:function(ct){isNaN(ct)||(O=parseFloat(ct))}});var R=v||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return R},set:function(ct){isNaN(ct)||(R=parseFloat(ct))}});var V="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return V},set:function(ct){V=ct.toString()}}),this},Yi=function(s,v,O,R){di.call(this,s,v),this.type="rect";var V=O||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return V},set:function(wt){isNaN(wt)||(V=parseFloat(wt))}});var ct=R||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ct},set:function(wt){isNaN(wt)||(ct=parseFloat(wt))}}),this},Xi=function(){this.page=xe,this.currentPage=j,this.pages=Nt.slice(0),this.pagesContext=Ht.slice(0),this.x=He,this.y=oe,this.matrix=Sr,this.width=zn(j),this.height=mn(j),this.outputDestination=_t,this.id="",this.objectNumber=-1};Xi.prototype.restore=function(){xe=this.page,j=this.currentPage,Ht=this.pagesContext,Nt=this.pages,He=this.x,oe=this.y,Sr=this.matrix,Gi(j,this.width),Hi(j,this.height),_t=this.outputDestination};var Da=function(s,v,O,R,V){Wr.push(new Xi),xe=j=0,Nt=[],He=s,oe=v,Sr=V,qi([O,R])},zo=function(s){if(Ur[s])Wr.pop().restore();else{var v=new Xi,O="Xo"+(Object.keys(Ye).length+1).toString(10);v.id=O,Ur[s]=O,Ye[O]=v,ce.publish("addFormObject",v),Wr.pop().restore()}};for(var gi in d.beginFormObject=function(s,v,O,R,V){return Da(s,v,O,R,V),this},d.endFormObject=function(s){return zo(s),this},d.doFormObject=function(s,v){var O=Ye[Ur[s]];return q("q"),q(v.toString()+" cm"),q("/"+O.id+" Do"),q("Q"),this},d.getFormObject=function(s){var v=Ye[Ur[s]];return{x:v.x,y:v.y,width:v.width,height:v.height,matrix:v.matrix}},d.save=function(s,v){return s=s||"generated.pdf",(v=v||{}).returnPromise=v.returnPromise||!1,v.returnPromise===!1?(Jn(ci(nn()),s),typeof Jn.unload=="function"&&Wt.setTimeout&&setTimeout(Jn.unload,911),this):new Promise(function(O,R){try{var V=Jn(ci(nn()),s);typeof Jn.unload=="function"&&Wt.setTimeout&&setTimeout(Jn.unload,911),O(V)}catch(ct){R(ct.message)}})},Rt.API)Rt.API.hasOwnProperty(gi)&&(gi==="events"&&Rt.API.events.length?function(s,v){var O,R,V;for(V=v.length-1;V!==-1;V--)O=v[V][0],R=v[V][1],s.subscribe.apply(s,[O].concat(typeof R=="function"?[R]:R))}(ce,Rt.API.events):d[gi]=Rt.API[gi]);var zn=d.getPageWidth=function(s){return(Ht[s=s||j].mediaBox.topRightX-Ht[s].mediaBox.bottomLeftX)/jt},Gi=d.setPageWidth=function(s,v){Ht[s].mediaBox.topRightX=v*jt+Ht[s].mediaBox.bottomLeftX},mn=d.getPageHeight=function(s){return(Ht[s=s||j].mediaBox.topRightY-Ht[s].mediaBox.bottomLeftY)/jt},Hi=d.setPageHeight=function(s,v){Ht[s].mediaBox.topRightY=v*jt+Ht[s].mediaBox.bottomLeftY};return d.internal={pdfEscape:ar,getStyle:Ca,getFont:Do,getFontSize:kt,getCharSpace:Ro,getTextColor:To,getLineHeight:Ia,getLineHeightFactor:Ma,getLineWidth:fi,write:Kt,getHorizontalCoordinate:Jr,getVerticalCoordinate:an,getCoordinateString:Bo,getVerticalCoordinateString:gn,collections:{},newObject:Be,newAdditionalObject:ei,newObjectDeferred:Ee,newObjectDeferredBegin:lr,getFilters:Xr,putStream:mr,events:ce,scaleFactor:jt,pageSize:{getWidth:function(){return zn(j)},setWidth:function(s){Gi(j,s)},getHeight:function(){return mn(j)},setHeight:function(s){Hi(j,s)}},encryptionOptions:y,encryption:Je,getEncryptor:jo,output:hi,getNumberOfPages:_o,pages:Nt,out:q,f2:dt,f3:P,getPageInfo:Fa,getPageInfoByObjId:Xt,getCurrentPageInfo:Oo,getPDFVersion:F,Point:di,Rectangle:Yi,Matrix:zt,hasHotfix:ka},Object.defineProperty(d.internal.pageSize,"width",{get:function(){return zn(j)},set:function(s){Gi(j,s)},enumerable:!0,configurable:!0}),Object.defineProperty(d.internal.pageSize,"height",{get:function(){return mn(j)},set:function(s){Hi(j,s)},enumerable:!0,configurable:!0}),xo.call(d,At),ee="F1",Sa(u,r),ce.publish("initialized"),d}Ci.prototype.lsbFirstWord=function(n){return String.fromCharCode(n>>0&255,n>>8&255,n>>16&255,n>>24&255)},Ci.prototype.toHexString=function(n){return n.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Ci.prototype.hexToBytes=function(n){for(var e=[],r=0;r<n.length;r+=2)e.push(String.fromCharCode(parseInt(n.substr(r,2),16)));return e.join("")},Ci.prototype.processOwnerPassword=function(n,e){return As(ws(e).substr(0,5),n)},Ci.prototype.encryptor=function(n,e){var r=ws(this.encryptionKey+String.fromCharCode(255&n,n>>8&255,n>>16&255,255&e,e>>8&255)).substr(0,10);return function(a){return As(r,a)}},da.prototype.equals=function(n){var e,r="id,objectNumber,equals";if(!n||he(n)!==he(this))return!1;var a=0;for(e in this)if(!(r.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!n.hasOwnProperty(e)||this[e]!==n[e])return!1;a++}for(e in n)n.hasOwnProperty(e)&&r.indexOf(e)<0&&a--;return a===0},Rt.API={events:[]},Rt.version="3.0.1";var _e=Rt.API,Ns=1,Kn=function(n){return n.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Oi=function(n){return n.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Vt=function(n){return n.toFixed(2)},On=function(n){return n.toFixed(5)};_e.__acroform__={};var hr=function(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n},wu=function(n){return n*Ns},Zr=function(n){var e=new Nu,r=Mt.internal.getHeight(n)||0,a=Mt.internal.getWidth(n)||0;return e.BBox=[0,0,Number(Vt(a)),Number(Vt(r))],e},Xc=_e.__acroform__.setBit=function(n,e){if(n=n||0,e=e||0,isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return n|=1<<e},Gc=_e.__acroform__.clearBit=function(n,e){if(n=n||0,e=e||0,isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return n&=~(1<<e)},Hc=_e.__acroform__.getBit=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(n&1<<e)==0?0:1},je=_e.__acroform__.getBitForPdf=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Hc(n,e-1)},Oe=_e.__acroform__.setBitForPdf=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Xc(n,e-1)},Ie=_e.__acroform__.clearBitForPdf=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Gc(n,e-1)},Jc=_e.__acroform__.calculateCoordinates=function(n,e){var r=e.internal.getHorizontalCoordinate,a=e.internal.getVerticalCoordinate,u=n[0],o=n[1],h=n[2],l=n[3],f={};return f.lowerLeft_X=r(u)||0,f.lowerLeft_Y=a(o+l)||0,f.upperRight_X=r(u+h)||0,f.upperRight_Y=a(o)||0,[Number(Vt(f.lowerLeft_X)),Number(Vt(f.lowerLeft_Y)),Number(Vt(f.upperRight_X)),Number(Vt(f.upperRight_Y))]},Vc=function(n){if(n.appearanceStreamContent)return n.appearanceStreamContent;if(n.V||n.DV){var e=[],r=n._V||n.DV,a=Ls(n,r),u=n.scope.internal.getFont(n.fontName,n.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(n.scope.__private__.encodeColorString(n.color)),e.push("/"+u+" "+Vt(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=Zr(n);return o.scope=n.scope,o.stream=e.join(`
22
+ `),o}},Ls=function(n,e){var r=n.fontSize===0?n.maxFontSize:n.fontSize,a={text:"",fontSize:""},u=(e=(e=e.substr(0,1)=="("?e.substr(1):e).substr(e.length-1)==")"?e.substr(0,e.length-1):e).split(" ");u=n.multiline?u.map(function(P){return P.split(`
23
+ `)}):u.map(function(P){return[P]});var o=r,h=Mt.internal.getHeight(n)||0;h=h<0?-h:h;var l=Mt.internal.getWidth(n)||0;l=l<0?-l:l;var f=function(P,k,z){if(P+1<u.length){var B=k+" "+u[P+1][0];return po(B,n,z).width<=l-4}return!1};o++;t:for(;o>0;){e="",o--;var g,y,w=po("3",n,o).height,S=n.multiline?h-o:(h-w)/2,d=S+=2,I=0,F=0,D=0;if(o<=0){e=`(...) Tj
24
+ `,e+="% Width of Text: "+po(e,n,o=12).width+", FieldWidth:"+l+`
25
+ `;break}for(var _="",E=0,J=0;J<u.length;J++)if(u.hasOwnProperty(J)){var st=!1;if(u[J].length!==1&&D!==u[J].length-1){if((w+2)*(E+2)+2>h)continue t;_+=u[J][D],st=!0,F=J,J--}else{_=(_+=u[J][D]+" ").substr(_.length-1)==" "?_.substr(0,_.length-1):_;var ht=parseInt(J),yt=f(ht,_,o),tt=J>=u.length-1;if(yt&&!tt){_+=" ",D=0;continue}if(yt||tt){if(tt)F=ht;else if(n.multiline&&(w+2)*(E+2)+2>h)continue t}else{if(!n.multiline||(w+2)*(E+2)+2>h)continue t;F=ht}}for(var T="",nt=I;nt<=F;nt++){var dt=u[nt];if(n.multiline){if(nt===F){T+=dt[D]+" ",D=(D+1)%dt.length;continue}if(nt===I){T+=dt[dt.length-1]+" ";continue}}T+=dt[0]+" "}switch(T=T.substr(T.length-1)==" "?T.substr(0,T.length-1):T,y=po(T,n,o).width,n.textAlign){case"right":g=l-y-2;break;case"center":g=(l-y)/2;break;case"left":default:g=2}e+=Vt(g)+" "+Vt(d)+` Td
26
+ `,e+="("+Kn(T)+`) Tj
27
+ `,e+=-Vt(g)+` 0 Td
28
+ `,d=-(o+2),y=0,I=st?F:F+1,E++,_=""}break}return a.text=e,a.fontSize=o,a},po=function(n,e,r){var a=e.scope.internal.getFont(e.fontName,e.fontStyle),u=e.scope.getStringUnitWidth(n,{font:a,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:e.scope.getStringUnitWidth("3",{font:a,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:u}},Kc={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},$c=function(n,e){var r={type:"reference",object:n};e.internal.getPageInfo(n.page).pageContext.annotations.find(function(a){return a.type===r.type&&a.object===r.object})===void 0&&e.internal.getPageInfo(n.page).pageContext.annotations.push(r)},Zc=function(n,e){for(var r in n)if(n.hasOwnProperty(r)){var a=r,u=n[r];e.internal.newObjectDeferredBegin(u.objId,!0),he(u)==="object"&&typeof u.putStream=="function"&&u.putStream(),delete n[a]}},Qc=function(n,e){if(e.scope=n,n.internal!==void 0&&(n.internal.acroformPlugin===void 0||n.internal.acroformPlugin.isInitialized===!1)){if(Br.FieldNum=0,n.internal.acroformPlugin=JSON.parse(JSON.stringify(Kc)),n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ns=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new Lu,n.internal.acroformPlugin.acroFormDictionaryRoot.scope=n,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",function(){(function(r){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0})(n)}),n.internal.events.subscribe("buildDocument",function(){(function(r){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var a=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var u in a)if(a.hasOwnProperty(u)){var o=a[u];o.objId=void 0,o.hasAnnotation&&$c(o,r)}})(n)}),n.internal.events.subscribe("putCatalog",function(){(function(r){if(r.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(n)}),n.internal.events.subscribe("postPutPages",function(r){(function(a,u){var o=!a;for(var h in a||(u.internal.newObjectDeferredBegin(u.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),u.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),a=a||u.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(a.hasOwnProperty(h)){var l=a[h],f=[],g=l.Rect;if(l.Rect&&(l.Rect=Jc(l.Rect,u)),u.internal.newObjectDeferredBegin(l.objId,!0),l.DA=Mt.createDefaultAppearanceStream(l),he(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(f=l.getKeyValueListForStream()),l.Rect=g,l.hasAppearanceStream&&!l.appearanceStreamContent){var y=Vc(l);f.push({key:"AP",value:"<</N "+y+">>"}),u.internal.acroformPlugin.xForms.push(y)}if(l.appearanceStreamContent){var w="";for(var S in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(S)){var d=l.appearanceStreamContent[S];if(w+="/"+S+" ",w+="<<",Object.keys(d).length>=1||Array.isArray(d)){for(var h in d)if(d.hasOwnProperty(h)){var I=d[h];typeof I=="function"&&(I=I.call(u,l)),w+="/"+h+" "+I+" ",u.internal.acroformPlugin.xForms.indexOf(I)>=0||u.internal.acroformPlugin.xForms.push(I)}}else typeof(I=d)=="function"&&(I=I.call(u,l)),w+="/"+h+" "+I,u.internal.acroformPlugin.xForms.indexOf(I)>=0||u.internal.acroformPlugin.xForms.push(I);w+=">>"}f.push({key:"AP",value:`<<
29
+ `+w+">>"})}u.internal.putStream({additionalKeyValues:f,objectId:l.objId}),u.internal.out("endobj")}o&&Zc(u.internal.acroformPlugin.xForms,u)})(r,n)}),n.internal.acroformPlugin.isInitialized=!0}},Au=_e.__acroform__.arrayToPdfArray=function(n,e,r){var a=function(h){return h};if(Array.isArray(n)){for(var u="[",o=0;o<n.length;o++)switch(o!==0&&(u+=" "),he(n[o])){case"boolean":case"number":case"object":u+=n[o].toString();break;case"string":n[o].substr(0,1)!=="/"?(e!==void 0&&r&&(a=r.internal.getEncryptor(e)),u+="("+Kn(a(n[o].toString()))+")"):u+=n[o].toString()}return u+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},xs=function(n,e,r){var a=function(u){return u};return e!==void 0&&r&&(a=r.internal.getEncryptor(e)),(n=n||"").toString(),n="("+Kn(a(n))+")"},Qr=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(n){this._objId=n}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Qr.prototype.toString=function(){return this.objId+" 0 R"},Qr.prototype.putStream=function(){var n=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:n,objectId:this.objId}),this.scope.internal.out("endobj")},Qr.prototype.getKeyValueListForStream=function(){var n=[],e=Object.getOwnPropertyNames(this).filter(function(o){return o!="content"&&o!="appearanceStreamContent"&&o!="scope"&&o!="objId"&&o.substring(0,1)!="_"});for(var r in e)if(Object.getOwnPropertyDescriptor(this,e[r]).configurable===!1){var a=e[r],u=this[a];u&&(Array.isArray(u)?n.push({key:a,value:Au(u,this.objId,this.scope)}):u instanceof Qr?(u.scope=this.scope,n.push({key:a,value:u.objId+" 0 R"})):typeof u!="function"&&n.push({key:a,value:u}))}return n};var Nu=function(){Qr.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 n,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(r){n=r.trim()},get:function(){return n||null}})};hr(Nu,Qr);var Lu=function(){Qr.call(this);var n,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(n){var r=function(a){return a};return this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),"("+Kn(r(n))+")"}},set:function(r){n=r}})};hr(Lu,Qr);var Br=function n(){Qr.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!!je(e,3)},set:function(_){_?this.F=Oe(e,3):this.F=Ie(e,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(_){if(isNaN(_))throw new Error('Invalid value "'+_+'" for attribute Ff supplied.');r=_}});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 u="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return u},set:function(_){switch(_){case"/Btn":case"/Tx":case"/Ch":case"/Sig":u=_;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 go)return;o="FieldObject"+n.FieldNum++}var _=function(E){return E};return this.scope&&(_=this.scope.internal.getEncryptor(this.objId)),"("+Kn(_(o))+")"},set:function(_){o=_.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(_){o=_}});var h="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return h},set:function(_){h=_}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(_){l=_}});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/Ns:g},set:function(_){g=_}});var y="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return y},set:function(_){y=_}});var w="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!w||this instanceof go||this instanceof In))return xs(w,this.objId,this.scope)},set:function(_){_=_.toString(),w=_}});var S=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(S)return this instanceof Re?S:xs(S,this.objId,this.scope)},set:function(_){_=_.toString(),S=this instanceof Re?_:_.substr(0,1)==="("?Oi(_.substr(1,_.length-2)):Oi(_)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Re?Oi(S.substr(1,S.length-1)):S},set:function(_){_=_.toString(),S=this instanceof Re?"/"+_:_}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(_){this.V=_}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof Re?d:xs(d,this.objId,this.scope)},set:function(_){_=_.toString(),d=this instanceof Re?_:_.substr(0,1)==="("?Oi(_.substr(1,_.length-2)):Oi(_)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Re?Oi(d.substr(1,d.length-1)):d},set:function(_){_=_.toString(),d=this instanceof Re?"/"+_:_}}),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 I,F=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return F},set:function(_){_=!!_,F=_}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(I)return I},set:function(_){I=_}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,1)},set:function(_){_?this.Ff=Oe(this.Ff,1):this.Ff=Ie(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,2)},set:function(_){_?this.Ff=Oe(this.Ff,2):this.Ff=Ie(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,3)},set:function(_){_?this.Ff=Oe(this.Ff,3):this.Ff=Ie(this.Ff,3)}});var D=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(D!==null)return D},set:function(_){if([0,1,2].indexOf(_)===-1)throw new Error('Invalid value "'+_+'" for attribute Q supplied.');D=_}}),Object.defineProperty(this,"textAlign",{get:function(){var _;switch(D){case 0:default:_="left";break;case 1:_="center";break;case 2:_="right"}return _},configurable:!0,enumerable:!0,set:function(_){switch(_){case"right":case 2:D=2;break;case"center":case 1:D=1;break;case"left":case 0:default:D=0}}})};hr(Br,Qr);var $n=function(){Br.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var n=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return n},set:function(r){n=r}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return n},set:function(r){n=r}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Au(e,this.objId,this.scope)},set:function(r){var a,u;u=[],typeof(a=r)=="string"&&(u=function(o,h,l){l||(l=1);for(var f,g=[];f=h.exec(o);)g.push(f[l]);return g}(a,/\((.*?)\)/g)),e=u}}),this.getOptions=function(){return e},this.setOptions=function(r){e=r,this.sort&&e.sort()},this.addOption=function(r){r=(r=r||"").toString(),e.push(r),this.sort&&e.sort()},this.removeOption=function(r,a){for(a=a||!1,r=(r=r||"").toString();e.indexOf(r)!==-1&&(e.splice(e.indexOf(r),1),a!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,18)},set:function(r){r?this.Ff=Oe(this.Ff,18):this.Ff=Ie(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,19)},set:function(r){this.combo===!0&&(r?this.Ff=Oe(this.Ff,19):this.Ff=Ie(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,20)},set:function(r){r?(this.Ff=Oe(this.Ff,20),e.sort()):this.Ff=Ie(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,22)},set:function(r){r?this.Ff=Oe(this.Ff,22):this.Ff=Ie(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,23)},set:function(r){r?this.Ff=Oe(this.Ff,23):this.Ff=Ie(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,27)},set:function(r){r?this.Ff=Oe(this.Ff,27):this.Ff=Ie(this.Ff,27)}}),this.hasAppearanceStream=!1};hr($n,Br);var Zn=function(){$n.call(this),this.fontName="helvetica",this.combo=!1};hr(Zn,$n);var Qn=function(){Zn.call(this),this.combo=!0};hr(Qn,Zn);var ga=function(){Qn.call(this),this.edit=!0};hr(ga,Qn);var Re=function(){Br.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,15)},set:function(r){r?this.Ff=Oe(this.Ff,15):this.Ff=Ie(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,16)},set:function(r){r?this.Ff=Oe(this.Ff,16):this.Ff=Ie(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,17)},set:function(r){r?this.Ff=Oe(this.Ff,17):this.Ff=Ie(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,26)},set:function(r){r?this.Ff=Oe(this.Ff,26):this.Ff=Ie(this.Ff,26)}});var n,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(o){return o};if(this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var a,u=[];for(a in u.push("<<"),e)u.push("/"+a+" ("+Kn(r(e[a]))+")");return u.push(">>"),u.join(`
30
+ `)}},set:function(r){he(r)==="object"&&(e=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(r){typeof r=="string"&&(e.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(r){n=r}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(r){n="/"+r}})};hr(Re,Br);var ma=function(){Re.call(this),this.pushButton=!0};hr(ma,Re);var ti=function(){Re.call(this),this.radio=!0,this.pushButton=!1;var n=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return n},set:function(e){n=e!==void 0?e:[]}})};hr(ti,Re);var go=function(){var n,e;Br.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return n},set:function(u){n=u}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(u){e=u}});var r,a={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var u=function(l){return l};this.scope&&(u=this.scope.internal.getEncryptor(this.objId));var o,h=[];for(o in h.push("<<"),a)h.push("/"+o+" ("+Kn(u(a[o]))+")");return h.push(">>"),h.join(`
31
+ `)},set:function(u){he(u)==="object"&&(a=u)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return a.CA||""},set:function(u){typeof u=="string"&&(a.CA=u)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(u){r=u}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(u){r="/"+u}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Mt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};hr(go,Br),ti.prototype.setAppearance=function(n){if(!("createAppearanceStream"in n)||!("getCA"in n))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var r=this.Kids[e];r.appearanceStreamContent=n.createAppearanceStream(r.optionName),r.caption=n.getCA()}},ti.prototype.createOption=function(n){var e=new go;return e.Parent=this,e.optionName=n,this.Kids.push(e),t1.call(this.scope,e),e};var va=function(){Re.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Mt.CheckBox.createAppearanceStream()};hr(va,Re);var In=function(){Br.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,13)},set:function(e){e?this.Ff=Oe(this.Ff,13):this.Ff=Ie(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,21)},set:function(e){e?this.Ff=Oe(this.Ff,21):this.Ff=Ie(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,23)},set:function(e){e?this.Ff=Oe(this.Ff,23):this.Ff=Ie(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,24)},set:function(e){e?this.Ff=Oe(this.Ff,24):this.Ff=Ie(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,25)},set:function(e){e?this.Ff=Oe(this.Ff,25):this.Ff=Ie(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,26)},set:function(e){e?this.Ff=Oe(this.Ff,26):this.Ff=Ie(this.Ff,26)}});var n=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return n},set:function(e){Number.isInteger(e)&&(n=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};hr(In,Br);var ba=function(){In.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!je(this.Ff,14)},set:function(n){n?this.Ff=Oe(this.Ff,14):this.Ff=Ie(this.Ff,14)}}),this.password=!0};hr(ba,In);var Mt={CheckBox:{createAppearanceStream:function(){return{N:{On:Mt.CheckBox.YesNormal},D:{On:Mt.CheckBox.YesPushDown,Off:Mt.CheckBox.OffPushDown}}},YesPushDown:function(n){var e=Zr(n);e.scope=n.scope;var r=[],a=n.scope.internal.getFont(n.fontName,n.fontStyle).id,u=n.scope.__private__.encodeColorString(n.color),o=Ls(n,n.caption);return r.push("0.749023 g"),r.push("0 0 "+Vt(Mt.internal.getWidth(n))+" "+Vt(Mt.internal.getHeight(n))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+a+" "+Vt(o.fontSize)+" Tf "+u),r.push("BT"),r.push(o.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join(`
32
+ `),e},YesNormal:function(n){var e=Zr(n);e.scope=n.scope;var r=n.scope.internal.getFont(n.fontName,n.fontStyle).id,a=n.scope.__private__.encodeColorString(n.color),u=[],o=Mt.internal.getHeight(n),h=Mt.internal.getWidth(n),l=Ls(n,n.caption);return u.push("1 g"),u.push("0 0 "+Vt(h)+" "+Vt(o)+" re"),u.push("f"),u.push("q"),u.push("0 0 1 rg"),u.push("0 0 "+Vt(h-1)+" "+Vt(o-1)+" re"),u.push("W"),u.push("n"),u.push("0 g"),u.push("BT"),u.push("/"+r+" "+Vt(l.fontSize)+" Tf "+a),u.push(l.text),u.push("ET"),u.push("Q"),e.stream=u.join(`
33
+ `),e},OffPushDown:function(n){var e=Zr(n);e.scope=n.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+Vt(Mt.internal.getWidth(n))+" "+Vt(Mt.internal.getHeight(n))+" re"),r.push("f"),e.stream=r.join(`
34
+ `),e}},RadioButton:{Circle:{createAppearanceStream:function(n){var e={D:{Off:Mt.RadioButton.Circle.OffPushDown},N:{}};return e.N[n]=Mt.RadioButton.Circle.YesNormal,e.D[n]=Mt.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(n){var e=Zr(n);e.scope=n.scope;var r=[],a=Mt.internal.getWidth(n)<=Mt.internal.getHeight(n)?Mt.internal.getWidth(n)/4:Mt.internal.getHeight(n)/4;a=Number((.9*a).toFixed(5));var u=Mt.internal.Bezier_C,o=Number((a*u).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+On(Mt.internal.getWidth(n)/2)+" "+On(Mt.internal.getHeight(n)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),r.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),r.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),r.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join(`
35
+ `),e},YesPushDown:function(n){var e=Zr(n);e.scope=n.scope;var r=[],a=Mt.internal.getWidth(n)<=Mt.internal.getHeight(n)?Mt.internal.getWidth(n)/4:Mt.internal.getHeight(n)/4;a=Number((.9*a).toFixed(5));var u=Number((2*a).toFixed(5)),o=Number((u*Mt.internal.Bezier_C).toFixed(5)),h=Number((a*Mt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+On(Mt.internal.getWidth(n)/2)+" "+On(Mt.internal.getHeight(n)/2)+" cm"),r.push(u+" 0 m"),r.push(u+" "+o+" "+o+" "+u+" 0 "+u+" c"),r.push("-"+o+" "+u+" -"+u+" "+o+" -"+u+" 0 c"),r.push("-"+u+" -"+o+" -"+o+" -"+u+" 0 -"+u+" c"),r.push(o+" -"+u+" "+u+" -"+o+" "+u+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+On(Mt.internal.getWidth(n)/2)+" "+On(Mt.internal.getHeight(n)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+h+" "+h+" "+a+" 0 "+a+" c"),r.push("-"+h+" "+a+" -"+a+" "+h+" -"+a+" 0 c"),r.push("-"+a+" -"+h+" -"+h+" -"+a+" 0 -"+a+" c"),r.push(h+" -"+a+" "+a+" -"+h+" "+a+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join(`
36
+ `),e},OffPushDown:function(n){var e=Zr(n);e.scope=n.scope;var r=[],a=Mt.internal.getWidth(n)<=Mt.internal.getHeight(n)?Mt.internal.getWidth(n)/4:Mt.internal.getHeight(n)/4;a=Number((.9*a).toFixed(5));var u=Number((2*a).toFixed(5)),o=Number((u*Mt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+On(Mt.internal.getWidth(n)/2)+" "+On(Mt.internal.getHeight(n)/2)+" cm"),r.push(u+" 0 m"),r.push(u+" "+o+" "+o+" "+u+" 0 "+u+" c"),r.push("-"+o+" "+u+" -"+u+" "+o+" -"+u+" 0 c"),r.push("-"+u+" -"+o+" -"+o+" -"+u+" 0 -"+u+" c"),r.push(o+" -"+u+" "+u+" -"+o+" "+u+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join(`
37
+ `),e}},Cross:{createAppearanceStream:function(n){var e={D:{Off:Mt.RadioButton.Cross.OffPushDown},N:{}};return e.N[n]=Mt.RadioButton.Cross.YesNormal,e.D[n]=Mt.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(n){var e=Zr(n);e.scope=n.scope;var r=[],a=Mt.internal.calculateCross(n);return r.push("q"),r.push("1 1 "+Vt(Mt.internal.getWidth(n)-2)+" "+Vt(Mt.internal.getHeight(n)-2)+" re"),r.push("W"),r.push("n"),r.push(Vt(a.x1.x)+" "+Vt(a.x1.y)+" m"),r.push(Vt(a.x2.x)+" "+Vt(a.x2.y)+" l"),r.push(Vt(a.x4.x)+" "+Vt(a.x4.y)+" m"),r.push(Vt(a.x3.x)+" "+Vt(a.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join(`
38
+ `),e},YesPushDown:function(n){var e=Zr(n);e.scope=n.scope;var r=Mt.internal.calculateCross(n),a=[];return a.push("0.749023 g"),a.push("0 0 "+Vt(Mt.internal.getWidth(n))+" "+Vt(Mt.internal.getHeight(n))+" re"),a.push("f"),a.push("q"),a.push("1 1 "+Vt(Mt.internal.getWidth(n)-2)+" "+Vt(Mt.internal.getHeight(n)-2)+" re"),a.push("W"),a.push("n"),a.push(Vt(r.x1.x)+" "+Vt(r.x1.y)+" m"),a.push(Vt(r.x2.x)+" "+Vt(r.x2.y)+" l"),a.push(Vt(r.x4.x)+" "+Vt(r.x4.y)+" m"),a.push(Vt(r.x3.x)+" "+Vt(r.x3.y)+" l"),a.push("s"),a.push("Q"),e.stream=a.join(`
39
+ `),e},OffPushDown:function(n){var e=Zr(n);e.scope=n.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+Vt(Mt.internal.getWidth(n))+" "+Vt(Mt.internal.getHeight(n))+" re"),r.push("f"),e.stream=r.join(`
40
+ `),e}}},createDefaultAppearanceStream:function(n){var e=n.scope.internal.getFont(n.fontName,n.fontStyle).id,r=n.scope.__private__.encodeColorString(n.color);return"/"+e+" "+n.fontSize+" Tf "+r}};Mt.internal={Bezier_C:.551915024494,calculateCross:function(n){var e=Mt.internal.getWidth(n),r=Mt.internal.getHeight(n),a=Math.min(e,r);return{x1:{x:(e-a)/2,y:(r-a)/2+a},x2:{x:(e-a)/2+a,y:(r-a)/2},x3:{x:(e-a)/2,y:(r-a)/2},x4:{x:(e-a)/2+a,y:(r-a)/2+a}}}},Mt.internal.getWidth=function(n){var e=0;return he(n)==="object"&&(e=wu(n.Rect[2])),e},Mt.internal.getHeight=function(n){var e=0;return he(n)==="object"&&(e=wu(n.Rect[3])),e};var t1=_e.addField=function(n){if(Qc(this,n),!(n instanceof Br))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=n).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),n.page=n.scope.internal.getCurrentPageInfo().pageNumber,this};_e.AcroFormChoiceField=$n,_e.AcroFormListBox=Zn,_e.AcroFormComboBox=Qn,_e.AcroFormEditBox=ga,_e.AcroFormButton=Re,_e.AcroFormPushButton=ma,_e.AcroFormRadioButton=ti,_e.AcroFormCheckBox=va,_e.AcroFormTextField=In,_e.AcroFormPasswordField=ba,_e.AcroFormAppearance=Mt,_e.AcroForm={ChoiceField:$n,ListBox:Zn,ComboBox:Qn,EditBox:ga,Button:Re,PushButton:ma,RadioButton:ti,CheckBox:va,TextField:In,PasswordField:ba,Appearance:Mt},Rt.AcroForm={ChoiceField:$n,ListBox:Zn,ComboBox:Qn,EditBox:ga,Button:Re,PushButton:ma,RadioButton:ti,CheckBox:va,TextField:In,PasswordField:ba,Appearance:Mt},Rt.AcroForm;function xu(n){return n.reduce(function(e,r,a){return e[r]=a,e},{})}(function(n){n.__addimage__={};var e="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},a=n.__addimage__.getImageFileTypeByImageData=function(P,k){var z,B,at,it,ut,Z=e;if((k=k||e)==="RGBA"||P.data!==void 0&&P.data instanceof Uint8ClampedArray&&"height"in P&&"width"in P)return"RGBA";if(yt(P))for(ut in r)for(at=r[ut],z=0;z<at.length;z+=1){for(it=!0,B=0;B<at[z].length;B+=1)if(at[z][B]!==void 0&&at[z][B]!==P[B]){it=!1;break}if(it===!0){Z=ut;break}}else for(ut in r)for(at=r[ut],z=0;z<at.length;z+=1){for(it=!0,B=0;B<at[z].length;B+=1)if(at[z][B]!==void 0&&at[z][B]!==P.charCodeAt(B)){it=!1;break}if(it===!0){Z=ut;break}}return Z===e&&k!==e&&(Z=k),Z},u=function P(k){for(var z=this.internal.write,B=this.internal.putStream,at=(0,this.internal.getFilters)();at.indexOf("FlateEncode")!==-1;)at.splice(at.indexOf("FlateEncode"),1);k.objectId=this.internal.newObject();var it=[];if(it.push({key:"Type",value:"/XObject"}),it.push({key:"Subtype",value:"/Image"}),it.push({key:"Width",value:k.width}),it.push({key:"Height",value:k.height}),k.colorSpace===D.INDEXED?it.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(k.palette.length/3-1)+" "+("sMask"in k&&k.sMask!==void 0?k.objectId+2:k.objectId+1)+" 0 R]"}):(it.push({key:"ColorSpace",value:"/"+k.colorSpace}),k.colorSpace===D.DEVICE_CMYK&&it.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),it.push({key:"BitsPerComponent",value:k.bitsPerComponent}),"decodeParameters"in k&&k.decodeParameters!==void 0&&it.push({key:"DecodeParms",value:"<<"+k.decodeParameters+">>"}),"transparency"in k&&Array.isArray(k.transparency)){for(var ut="",Z=0,pt=k.transparency.length;Z<pt;Z++)ut+=k.transparency[Z]+" "+k.transparency[Z]+" ";it.push({key:"Mask",value:"["+ut+"]"})}k.sMask!==void 0&&it.push({key:"SMask",value:k.objectId+1+" 0 R"});var ft=k.filter!==void 0?["/"+k.filter]:void 0;if(B({data:k.data,additionalKeyValues:it,alreadyAppliedFilters:ft,objectId:k.objectId}),z("endobj"),"sMask"in k&&k.sMask!==void 0){var Ot="/Predictor "+k.predictor+" /Colors 1 /BitsPerComponent "+k.bitsPerComponent+" /Columns "+k.width,N={width:k.width,height:k.height,colorSpace:"DeviceGray",bitsPerComponent:k.bitsPerComponent,decodeParameters:Ot,data:k.sMask};"filter"in k&&(N.filter=k.filter),P.call(this,N)}if(k.colorSpace===D.INDEXED){var j=this.internal.newObject();B({data:T(new Uint8Array(k.palette)),objectId:j}),z("endobj")}},o=function(){var P=this.internal.collections.addImage_images;for(var k in P)u.call(this,P[k])},h=function(){var P,k=this.internal.collections.addImage_images,z=this.internal.write;for(var B in k)z("/I"+(P=k[B]).index,P.objectId,"0","R")},l=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",h))},f=function(){var P=this.internal.collections.addImage_images;return l.call(this),P},g=function(){return Object.keys(this.internal.collections.addImage_images).length},y=function(P){return typeof n["process"+P.toUpperCase()]=="function"},w=function(P){return he(P)==="object"&&P.nodeType===1},S=function(P,k){if(P.nodeName==="IMG"&&P.hasAttribute("src")){var z=""+P.getAttribute("src");if(z.indexOf("data:image/")===0)return pa(unescape(z).split("base64,").pop());var B=n.loadFile(z,!0);if(B!==void 0)return B}if(P.nodeName==="CANVAS"){if(P.width===0||P.height===0)throw new Error("Given canvas must have data. Canvas width: "+P.width+", height: "+P.height);var at;switch(k){case"PNG":at="image/png";break;case"WEBP":at="image/webp";break;case"JPEG":case"JPG":default:at="image/jpeg"}return pa(P.toDataURL(at,1).split("base64,").pop())}},d=function(P){var k=this.internal.collections.addImage_images;if(k){for(var z in k)if(P===k[z].alias)return k[z]}},I=function(P,k,z){return P||k||(P=-96,k=-96),P<0&&(P=-1*z.width*72/P/this.internal.scaleFactor),k<0&&(k=-1*z.height*72/k/this.internal.scaleFactor),P===0&&(P=k*z.width/z.height),k===0&&(k=P*z.height/z.width),[P,k]},F=function(P,k,z,B,at,it){var ut=I.call(this,z,B,at),Z=this.internal.getCoordinateString,pt=this.internal.getVerticalCoordinateString,ft=f.call(this);if(z=ut[0],B=ut[1],ft[at.index]=at,it){it*=Math.PI/180;var Ot=Math.cos(it),N=Math.sin(it),j=function(U){return U.toFixed(4)},M=[j(Ot),j(N),j(-1*N),j(Ot),0,0,"cm"]}this.internal.write("q"),it?(this.internal.write([1,"0","0",1,Z(P),pt(k+B),"cm"].join(" ")),this.internal.write(M.join(" ")),this.internal.write([Z(z),"0","0",Z(B),"0","0","cm"].join(" "))):this.internal.write([Z(z),"0","0",Z(B),Z(P),pt(k+B),"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")},D=n.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"};n.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 _=n.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},E=n.__addimage__.sHashCode=function(P){var k,z,B=0;if(typeof P=="string")for(z=P.length,k=0;k<z;k++)B=(B<<5)-B+P.charCodeAt(k),B|=0;else if(yt(P))for(z=P.byteLength/2,k=0;k<z;k++)B=(B<<5)-B+P[k],B|=0;return B},J=n.__addimage__.validateStringAsBase64=function(P){(P=P||"").toString().trim();var k=!0;return P.length===0&&(k=!1),P.length%4!=0&&(k=!1),/^[A-Za-z0-9+/]+$/.test(P.substr(0,P.length-2))===!1&&(k=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(P.substr(-2))===!1&&(k=!1),k},st=n.__addimage__.extractImageFromDataUrl=function(P){if(P==null||!(P=P.trim()).startsWith("data:"))return null;var k=P.indexOf(",");return k<0?null:P.substring(0,k).trim().endsWith("base64")?P.substring(k+1):null},ht=n.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};n.__addimage__.isArrayBuffer=function(P){return ht()&&P instanceof ArrayBuffer};var yt=n.__addimage__.isArrayBufferView=function(P){return ht()&&typeof Uint32Array<"u"&&(P instanceof Int8Array||P instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&P instanceof Uint8ClampedArray||P instanceof Int16Array||P instanceof Uint16Array||P instanceof Int32Array||P instanceof Uint32Array||P instanceof Float32Array||P instanceof Float64Array)},tt=n.__addimage__.binaryStringToUint8Array=function(P){for(var k=P.length,z=new Uint8Array(k),B=0;B<k;B++)z[B]=P.charCodeAt(B);return z},T=n.__addimage__.arrayBufferToBinaryString=function(P){for(var k="",z=yt(P)?P:new Uint8Array(P),B=0;B<z.length;B+=8192)k+=String.fromCharCode.apply(null,z.subarray(B,B+8192));return k};n.addImage=function(){var P,k,z,B,at,it,ut,Z,pt;if(typeof arguments[1]=="number"?(k=e,z=arguments[1],B=arguments[2],at=arguments[3],it=arguments[4],ut=arguments[5],Z=arguments[6],pt=arguments[7]):(k=arguments[1],z=arguments[2],B=arguments[3],at=arguments[4],it=arguments[5],ut=arguments[6],Z=arguments[7],pt=arguments[8]),he(P=arguments[0])==="object"&&!w(P)&&"imageData"in P){var ft=P;P=ft.imageData,k=ft.format||k||e,z=ft.x||z||0,B=ft.y||B||0,at=ft.w||ft.width||at,it=ft.h||ft.height||it,ut=ft.alias||ut,Z=ft.compression||Z,pt=ft.rotation||ft.angle||pt}var Ot=this.internal.getFilters();if(Z===void 0&&Ot.indexOf("FlateEncode")!==-1&&(Z="SLOW"),isNaN(z)||isNaN(B))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var N=nt.call(this,P,k,ut,Z);return F.call(this,z,B,at,it,N,pt),this};var nt=function(P,k,z,B){var at,it,ut;if(typeof P=="string"&&a(P)===e){P=unescape(P);var Z=dt(P,!1);(Z!==""||(Z=n.loadFile(P,!0))!==void 0)&&(P=Z)}if(w(P)&&(P=S(P,k)),k=a(P,k),!y(k))throw new Error("addImage does not support files of type '"+k+"', please ensure that a plugin for '"+k+"' support is added.");if(((ut=z)==null||ut.length===0)&&(z=function(pt){return typeof pt=="string"||yt(pt)?E(pt):yt(pt.data)?E(pt.data):null}(P)),(at=d.call(this,z))||(ht()&&(P instanceof Uint8Array||k==="RGBA"||(it=P,P=tt(P))),at=this["process"+k.toUpperCase()](P,g.call(this),z,function(pt){return pt&&typeof pt=="string"&&(pt=pt.toUpperCase()),pt in n.image_compression?pt:_.NONE}(B),it)),!at)throw new Error("An unknown error occurred whilst processing the image.");return at},dt=n.__addimage__.convertBase64ToBinaryString=function(P,k){k=typeof k!="boolean"||k;var z,B="";if(typeof P=="string"){var at;z=(at=st(P))!==null&&at!==void 0?at:P;try{B=pa(z)}catch(it){if(k)throw J(z)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+it.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return B};n.getImageProperties=function(P){var k,z,B="";if(w(P)&&(P=S(P)),typeof P=="string"&&a(P)===e&&((B=dt(P,!1))===""&&(B=n.loadFile(P)||""),P=B),z=a(P),!y(z))throw new Error("addImage does not support files of type '"+z+"', please ensure that a plugin for '"+z+"' support is added.");if(!ht()||P instanceof Uint8Array||(P=tt(P)),!(k=this["process"+z.toUpperCase()](P)))throw new Error("An unknown error occurred whilst processing the image");return k.fileType=z,k}})(Rt.API),function(n){var e=function(r){if(r!==void 0&&r!="")return!0};Rt.API.events.push(["addPage",function(r){this.internal.getPageInfo(r.pageNumber).pageContext.annotations=[]}]),n.events.push(["putPage",function(r){for(var a,u,o,h=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,f=this.internal.getPageInfoByObjId(r.objId),g=r.pageContext.annotations,y=!1,w=0;w<g.length&&!y;w++)switch((a=g[w]).type){case"link":(e(a.options.url)||e(a.options.pageNumber))&&(y=!0);break;case"reference":case"text":case"freetext":y=!0}if(y!=0){this.internal.write("/Annots [");for(var S=0;S<g.length;S++){a=g[S];var d=this.internal.pdfEscape,I=this.internal.getEncryptor(r.objId);switch(a.type){case"reference":this.internal.write(" "+a.object.objId+" 0 R ");break;case"text":var F=this.internal.newAdditionalObject(),D=this.internal.newAdditionalObject(),_=this.internal.getEncryptor(F.objId),E=a.title||"Note";o="<</Type /Annot /Subtype /Text "+(u="/Rect ["+h(a.bounds.x)+" "+l(a.bounds.y+a.bounds.h)+" "+h(a.bounds.x+a.bounds.w)+" "+l(a.bounds.y)+"] ")+"/Contents ("+d(_(a.contents))+")",o+=" /Popup "+D.objId+" 0 R",o+=" /P "+f.objId+" 0 R",o+=" /T ("+d(_(E))+") >>",F.content=o;var J=F.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(u="/Rect ["+h(a.bounds.x+30)+" "+l(a.bounds.y+a.bounds.h)+" "+h(a.bounds.x+a.bounds.w+30)+" "+l(a.bounds.y)+"] ")+" /Parent "+J,a.open&&(o+=" /Open true"),o+=" >>",D.content=o,this.internal.write(F.objId,"0 R",D.objId,"0 R");break;case"freetext":u="/Rect ["+h(a.bounds.x)+" "+l(a.bounds.y)+" "+h(a.bounds.x+a.bounds.w)+" "+l(a.bounds.y+a.bounds.h)+"] ";var st=a.color||"#000000";o="<</Type /Annot /Subtype /FreeText "+u+"/Contents ("+d(I(a.contents))+")",o+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+st+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(a.options.name){var ht=this.annotations._nameMap[a.options.name];a.options.pageNumber=ht.page,a.options.top=ht.y}else a.options.top||(a.options.top=0);if(u="/Rect ["+a.finalBounds.x+" "+a.finalBounds.y+" "+a.finalBounds.w+" "+a.finalBounds.h+"] ",o="",a.options.url)o="<</Type /Annot /Subtype /Link "+u+"/Border [0 0 0] /A <</S /URI /URI ("+d(I(a.options.url))+") >>";else if(a.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+u+"/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 yt=l(a.options.top);a.options.left=a.options.left||0,a.options.zoom===void 0&&(a.options.zoom=0),o+=" /XYZ "+a.options.left+" "+yt+" "+a.options.zoom+"]"}o!=""&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),n.createAnnotation=function(r){var a=this.internal.getCurrentPageInfo();switch(r.type){case"link":this.link(r.bounds.x,r.bounds.y,r.bounds.w,r.bounds.h,r);break;case"text":case"freetext":a.pageContext.annotations.push(r)}},n.link=function(r,a,u,o,h){var l=this.internal.getCurrentPageInfo(),f=this.internal.getCoordinateString,g=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:f(r),y:g(a),w:f(r+u),h:g(a+o)},options:h,type:"link"})},n.textWithLink=function(r,a,u,o){var h,l,f=this.getTextWidth(r),g=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){l=o.maxWidth;var y=this.splitTextToSize(r,l).length;h=Math.ceil(g*y)}else l=f,h=g;return this.text(r,a,u,o),u+=.2*g,o.align==="center"&&(a-=f/2),o.align==="right"&&(a-=f),this.link(a,u-g,l,h,o),f},n.getTextWidth=function(r){var a=this.internal.getFontSize();return this.getStringUnitWidth(r)*a/this.internal.scaleFactor}}(Rt.API),function(n){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]},r={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},u=[1570,1571,1573,1575];n.__arabicParser__={};var o=n.__arabicParser__.isInArabicSubstitutionA=function(F){return e[F.charCodeAt(0)]!==void 0},h=n.__arabicParser__.isArabicLetter=function(F){return typeof F=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(F)},l=n.__arabicParser__.isArabicEndLetter=function(F){return h(F)&&o(F)&&e[F.charCodeAt(0)].length<=2},f=n.__arabicParser__.isArabicAlfLetter=function(F){return h(F)&&u.indexOf(F.charCodeAt(0))>=0};n.__arabicParser__.arabicLetterHasIsolatedForm=function(F){return h(F)&&o(F)&&e[F.charCodeAt(0)].length>=1};var g=n.__arabicParser__.arabicLetterHasFinalForm=function(F){return h(F)&&o(F)&&e[F.charCodeAt(0)].length>=2};n.__arabicParser__.arabicLetterHasInitialForm=function(F){return h(F)&&o(F)&&e[F.charCodeAt(0)].length>=3};var y=n.__arabicParser__.arabicLetterHasMedialForm=function(F){return h(F)&&o(F)&&e[F.charCodeAt(0)].length==4},w=n.__arabicParser__.resolveLigatures=function(F){var D=0,_=r,E="",J=0;for(D=0;D<F.length;D+=1)_[F.charCodeAt(D)]!==void 0?(J++,typeof(_=_[F.charCodeAt(D)])=="number"&&(E+=String.fromCharCode(_),_=r,J=0),D===F.length-1&&(_=r,E+=F.charAt(D-(J-1)),D-=J-1,J=0)):(_=r,E+=F.charAt(D-J),D-=J,J=0);return E};n.__arabicParser__.isArabicDiacritic=function(F){return F!==void 0&&a[F.charCodeAt(0)]!==void 0};var S=n.__arabicParser__.getCorrectForm=function(F,D,_){return h(F)?o(F)===!1?-1:!g(F)||!h(D)&&!h(_)||!h(_)&&l(D)||l(F)&&!h(D)||l(F)&&f(D)||l(F)&&l(D)?0:y(F)&&h(D)&&!l(D)&&h(_)&&g(_)?3:l(F)||!h(_)?1:2:-1},d=function(F){var D=0,_=0,E=0,J="",st="",ht="",yt=(F=F||"").split("\\s+"),tt=[];for(D=0;D<yt.length;D+=1){for(tt.push(""),_=0;_<yt[D].length;_+=1)J=yt[D][_],st=yt[D][_-1],ht=yt[D][_+1],h(J)?(E=S(J,st,ht),tt[D]+=E!==-1?String.fromCharCode(e[J.charCodeAt(0)][E]):J):tt[D]+=J;tt[D]=w(tt[D])}return tt.join(" ")},I=n.__arabicParser__.processArabic=n.processArabic=function(){var F,D=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,_=[];if(Array.isArray(D)){var E=0;for(_=[],E=0;E<D.length;E+=1)Array.isArray(D[E])?_.push([d(D[E][0]),D[E][1],D[E][2]]):_.push([d(D[E])]);F=_}else F=d(D);return typeof arguments[0]=="string"?F:(arguments[0].text=F,arguments[0])};n.events.push(["preProcessText",I])}(Rt.API),Rt.API.autoPrint=function(n){var e;switch((n=n||{}).variant=n.variant||"non-conform",n.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(n){var e=function(){var r=void 0;Object.defineProperty(this,"pdf",{get:function(){return r},set:function(l){r=l}});var a=150;Object.defineProperty(this,"width",{get:function(){return a},set:function(l){a=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=a+1)}});var u=300;Object.defineProperty(this,"height",{get:function(){return u},set:function(l){u=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=u+1)}});var o=[];Object.defineProperty(this,"childNodes",{get:function(){return o},set:function(l){o=l}});var h={};Object.defineProperty(this,"style",{get:function(){return h},set:function(l){h=l}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(r,a){var u;if((r=r||"2d")!=="2d")return null;for(u in a)this.pdf.context2d.hasOwnProperty(u)&&(this.pdf.context2d[u]=a[u]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},n.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(Rt.API),function(n){var e={left:0,top:0,bottom:0,right:0},r=!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(),u.call(this))},u=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(F){f=F}});var g=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return g},set:function(F){g=F}});var y=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return y},set:function(F){y=F}});var w=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return w},set:function(F){w=F}});var S=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return S},set:function(F){S=F}});var d=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return d},set:function(F){d=F}});var I=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return I},set:function(F){I=F}}),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]},n.setHeaderFunction=function(f){return a.call(this),this.internal.__cell__.headerFunction=typeof f=="function"?f:void 0,this},n.getTextDimensions=function(f,g){a.call(this);var y=(g=g||{}).fontSize||this.getFontSize(),w=g.font||this.getFont(),S=g.scaleFactor||this.internal.scaleFactor,d=0,I=0,F=0,D=this;if(!Array.isArray(f)&&typeof f!="string"){if(typeof f!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");f=String(f)}var _=g.maxWidth;_>0?typeof f=="string"?f=this.splitTextToSize(f,_):Object.prototype.toString.call(f)==="[object Array]"&&(f=f.reduce(function(J,st){return J.concat(D.splitTextToSize(st,_))},[])):f=Array.isArray(f)?f:[f];for(var E=0;E<f.length;E++)d<(F=this.getStringUnitWidth(f[E],{font:w})*y)&&(d=F);return d!==0&&(I=f.length),{w:d/=S,h:Math.max((I*y*this.getLineHeightFactor()-y*(this.getLineHeightFactor()-1))/S,0)}},n.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 h=n.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,y=this.internal.__cell__.padding,w=this.internal.__cell__.margins||e,S=this.internal.__cell__.tableHeaderRow,d=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+w.bottom>this.getPageHeight()?(this.cellAddPage(),f.y=w.top,d&&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,r===!0?"FD":void 0),f.align==="right"?this.text(f.text,f.x+f.width-y,f.y+y,{align:"right",baseline:"top"}):f.align==="center"?this.text(f.text,f.x+f.width/2,f.y+y,{align:"center",baseline:"top",maxWidth:f.width-y-y}):this.text(f.text,f.x+y,f.y+y,{align:"left",baseline:"top",maxWidth:f.width-y-y})),this.internal.__cell__.lastCell=f,this};n.table=function(f,g,y,w,S){if(a.call(this),!y)throw new Error("No data for PDF table.");var d,I,F,D,_=[],E=[],J=[],st={},ht={},yt=[],tt=[],T=(S=S||{}).autoSize||!1,nt=S.printHeaders!==!1,dt=S.css&&S.css["font-size"]!==void 0?16*S.css["font-size"]:S.fontSize||12,P=S.margins||Object.assign({width:this.getPageWidth()},e),k=typeof S.padding=="number"?S.padding:3,z=S.headerBackgroundColor||"#c8c8c8",B=S.headerTextColor||"#000";if(u.call(this),this.internal.__cell__.printHeaders=nt,this.internal.__cell__.margins=P,this.internal.__cell__.table_font_size=dt,this.internal.__cell__.padding=k,this.internal.__cell__.headerBackgroundColor=z,this.internal.__cell__.headerTextColor=B,this.setFontSize(dt),w==null)E=_=Object.keys(y[0]),J=_.map(function(){return"left"});else if(Array.isArray(w)&&he(w[0])==="object")for(_=w.map(function(ft){return ft.name}),E=w.map(function(ft){return ft.prompt||ft.name||""}),J=w.map(function(ft){return ft.align||"left"}),d=0;d<w.length;d+=1)ht[w[d].name]=w[d].width*(19.049976/25.4);else Array.isArray(w)&&typeof w[0]=="string"&&(E=_=w,J=_.map(function(){return"left"}));if(T||Array.isArray(w)&&typeof w[0]=="string")for(d=0;d<_.length;d+=1){for(st[D=_[d]]=y.map(function(ft){return ft[D]}),this.setFont(void 0,"bold"),yt.push(this.getTextDimensions(E[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),I=st[D],this.setFont(void 0,"normal"),F=0;F<I.length;F+=1)yt.push(this.getTextDimensions(I[F],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);ht[D]=Math.max.apply(null,yt)+k+k,yt=[]}if(nt){var at={};for(d=0;d<_.length;d+=1)at[_[d]]={},at[_[d]].text=E[d],at[_[d]].align=J[d];var it=l.call(this,at,ht);tt=_.map(function(ft){return new o(f,g,ht[ft],it,at[ft].text,void 0,at[ft].align)}),this.setTableHeaderRow(tt),this.printHeaderRow(1,!1)}var ut=w.reduce(function(ft,Ot){return ft[Ot.name]=Ot.align,ft},{});for(d=0;d<y.length;d+=1){"rowStart"in S&&S.rowStart instanceof Function&&S.rowStart({row:d,data:y[d]},this);var Z=l.call(this,y[d],ht);for(F=0;F<_.length;F+=1){var pt=y[d][_[F]];"cellStart"in S&&S.cellStart instanceof Function&&S.cellStart({row:d,col:F,data:pt},this),h.call(this,new o(f,g,ht[_[F]],Z,pt,d+2,ut[_[F]]))}}return this.internal.__cell__.table_x=f,this.internal.__cell__.table_y=g,this};var l=function(f,g){var y=this.internal.__cell__.padding,w=this.internal.__cell__.table_font_size,S=this.internal.scaleFactor;return Object.keys(f).map(function(d){var I=f[d];return this.splitTextToSize(I.hasOwnProperty("text")?I.text:I,g[d]-y-y)},this).map(function(d){return this.getLineHeightFactor()*d.length*w/S+y+y},this).reduce(function(d,I){return Math.max(d,I)},0)};n.setTableHeaderRow=function(f){a.call(this),this.internal.__cell__.tableHeaderRow=f},n.printHeaderRow=function(f,g){if(a.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var y;if(r=!0,typeof this.internal.__cell__.headerFunction=="function"){var w=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(w[0],w[1],w[2],w[3],void 0,-1)}this.setFont(void 0,"bold");for(var S=[],d=0;d<this.internal.__cell__.tableHeaderRow.length;d+=1){y=this.internal.__cell__.tableHeaderRow[d].clone(),g&&(y.y=this.internal.__cell__.margins.top||0,S.push(y)),y.lineNumber=f;var I=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),h.call(this,y),this.setTextColor(I)}S.length>0&&this.setTableHeaderRow(S),this.setFont(void 0,"normal"),r=!1}}(Rt.API);var Su={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},_u=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ss=xu(_u),Pu=[100,200,300,400,500,600,700,800,900],e1=xu(Pu);function _s(n){var e=n.family.replace(/"|'/g,"").toLowerCase(),r=function(o){return Su[o=o||"normal"]?o:"normal"}(n.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}}(n.weight),u=function(o){return typeof Ss[o=o||"normal"]=="number"?o:"normal"}(n.stretch);return{family:e,style:r,weight:a,stretch:u,src:n.src||[],ref:n.ref||{name:e,style:[u,r,a].join(" ")}}}function ku(n,e,r,a){var u;for(u=r;u>=0&&u<e.length;u+=a)if(n[e[u]])return n[e[u]];for(u=r;u>=0&&u<e.length;u-=a)if(n[e[u]])return n[e[u]]}var r1={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Fu={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Cu(n){return[n.stretch,n.style,n.weight,n.family].join(" ")}function n1(n,e,r){for(var a=(r=r||{}).defaultFontFamily||"times",u=Object.assign({},r1,r.genericFontFamilies||{}),o=null,h=null,l=0;l<e.length;++l)if(u[(o=_s(e[l])).family]&&(o.family=u[o.family]),n.hasOwnProperty(o.family)){h=n[o.family];break}if(!(h=h||n[a]))throw new Error("Could not find a font-family for the rule '"+Cu(o)+"' and default family '"+a+"'.");if(h=function(f,g){if(g[f])return g[f];var y=Ss[f],w=y<=Ss.normal?-1:1,S=ku(g,_u,y,w);if(!S)throw new Error("Could not find a matching font-stretch value for "+f);return S}(o.stretch,h),h=function(f,g){if(g[f])return g[f];for(var y=Su[f],w=0;w<y.length;++w)if(g[y[w]])return g[y[w]];throw new Error("Could not find a matching font-style for "+f)}(o.style,h),!(h=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 y=e1[f],w=ku(g,Pu,y,f<400?-1:1);if(!w)throw new Error("Could not find a matching font-weight for value "+f);return w}(o.weight,h)))throw new Error("Failed to resolve a font for the rule '"+Cu(o)+"'.");return h}function ju(n){return n.trimLeft()}function i1(n,e){for(var r=0;r<n.length;){if(n.charAt(r)===e)return[n.substring(0,r),n.substring(r+1)];r+=1}return null}function a1(n){var e=n.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],n.substring(e[0].length)]}var mo,Ou,Iu,Eu=["times"];(function(n){var e,r,a,u,o,h,l,f,g,y=function(N){return N=N||{},this.isStrokeTransparent=N.isStrokeTransparent||!1,this.strokeOpacity=N.strokeOpacity||1,this.strokeStyle=N.strokeStyle||"#000000",this.fillStyle=N.fillStyle||"#000000",this.isFillTransparent=N.isFillTransparent||!1,this.fillOpacity=N.fillOpacity||1,this.font=N.font||"10px sans-serif",this.textBaseline=N.textBaseline||"alphabetic",this.textAlign=N.textAlign||"left",this.lineWidth=N.lineWidth||1,this.lineJoin=N.lineJoin||"miter",this.lineCap=N.lineCap||"butt",this.path=N.path||[],this.transform=N.transform!==void 0?N.transform.clone():new f,this.globalCompositeOperation=N.globalCompositeOperation||"normal",this.globalAlpha=N.globalAlpha||1,this.clip_path=N.clip_path||[],this.currentPoint=N.currentPoint||new h,this.miterLimit=N.miterLimit||10,this.lastPoint=N.lastPoint||new h,this.lineDashOffset=N.lineDashOffset||0,this.lineDash=N.lineDash||[],this.margin=N.margin||[0,0,0,0],this.prevPageLastElemOffset=N.prevPageLastElemOffset||0,this.ignoreClearRect=typeof N.ignoreClearRect!="boolean"||N.ignoreClearRect,this};n.events.push(["initialized",function(){this.context2d=new w(this),e=this.internal.f2,r=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,u=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,h=this.internal.Point,l=this.internal.Rectangle,f=this.internal.Matrix,g=new y}]);var w=function(N){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var j=N;Object.defineProperty(this,"pdf",{get:function(){return j}});var M=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return M},set:function(lt){M=!!lt}});var U=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return U},set:function(lt){U=!!lt}});var H=0;Object.defineProperty(this,"posX",{get:function(){return H},set:function(lt){isNaN(lt)||(H=lt)}});var Q=0;Object.defineProperty(this,"posY",{get:function(){return Q},set:function(lt){isNaN(lt)||(Q=lt)}}),Object.defineProperty(this,"margin",{get:function(){return g.margin},set:function(lt){var q;typeof lt=="number"?q=[lt,lt,lt,lt]:((q=new Array(4))[0]=lt[0],q[1]=lt.length>=2?lt[1]:q[0],q[2]=lt.length>=3?lt[2]:q[0],q[3]=lt.length>=4?lt[3]:q[1]),g.margin=q}});var et=!1;Object.defineProperty(this,"autoPaging",{get:function(){return et},set:function(lt){et=lt}});var rt=0;Object.defineProperty(this,"lastBreak",{get:function(){return rt},set:function(lt){rt=lt}});var Lt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Lt},set:function(lt){Lt=lt}}),Object.defineProperty(this,"ctx",{get:function(){return g},set:function(lt){lt instanceof y&&(g=lt)}}),Object.defineProperty(this,"path",{get:function(){return g.path},set:function(lt){g.path=lt}});var Nt=[];Object.defineProperty(this,"ctxStack",{get:function(){return Nt},set:function(lt){Nt=lt}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(lt){var q;q=S(lt),this.ctx.fillStyle=q.style,this.ctx.isFillTransparent=q.a===0,this.ctx.fillOpacity=q.a,this.pdf.setFillColor(q.r,q.g,q.b,{a:q.a}),this.pdf.setTextColor(q.r,q.g,q.b,{a:q.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(lt){var q=S(lt);this.ctx.strokeStyle=q.style,this.ctx.isStrokeTransparent=q.a===0,this.ctx.strokeOpacity=q.a,q.a===0?this.pdf.setDrawColor(255,255,255):(q.a,this.pdf.setDrawColor(q.r,q.g,q.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(lt){["butt","round","square"].indexOf(lt)!==-1&&(this.ctx.lineCap=lt,this.pdf.setLineCap(lt))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(lt){isNaN(lt)||(this.ctx.lineWidth=lt,this.pdf.setLineWidth(lt))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(lt){["bevel","round","miter"].indexOf(lt)!==-1&&(this.ctx.lineJoin=lt,this.pdf.setLineJoin(lt))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(lt){isNaN(lt)||(this.ctx.miterLimit=lt,this.pdf.setMiterLimit(lt))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(lt){this.ctx.textBaseline=lt}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(lt){["right","end","center","left","start"].indexOf(lt)!==-1&&(this.ctx.textAlign=lt)}});var Ft=null;function _t(lt,q){if(Ft===null){var Kt=function(qt){var At=[];return Object.keys(qt).forEach(function(xt){qt[xt].forEach(function(Ct){var kt=null;switch(Ct){case"bold":kt={family:xt,weight:"bold"};break;case"italic":kt={family:xt,style:"italic"};break;case"bolditalic":kt={family:xt,weight:"bold",style:"italic"};break;case"":case"normal":kt={family:xt}}kt!==null&&(kt.ref={name:xt,style:Ct},At.push(kt))})}),At}(lt.getFontList());Ft=function(qt){for(var At={},xt=0;xt<qt.length;++xt){var Ct=_s(qt[xt]),kt=Ct.family,Dt=Ct.stretch,Gt=Ct.style,Qt=Ct.weight;At[kt]=At[kt]||{},At[kt][Dt]=At[kt][Dt]||{},At[kt][Dt][Gt]=At[kt][Dt][Gt]||{},At[kt][Dt][Gt][Qt]=Ct}return At}(Kt.concat(q))}return Ft}var Ut=null;Object.defineProperty(this,"fontFaces",{get:function(){return Ut},set:function(lt){Ft=null,Ut=lt}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(lt){var q;if(this.ctx.font=lt,(q=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(lt))!==null){var Kt=q[1];q[2];var qt=q[3],At=q[4];q[5];var xt=q[6],Ct=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(At)[2];At=Math.floor(Ct==="px"?parseFloat(At)*this.pdf.internal.scaleFactor:Ct==="em"?parseFloat(At)*this.pdf.getFontSize():parseFloat(At)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(At);var kt=function(Yt){var ee,jt,He=[],oe=Yt.trim();if(oe==="")return Eu;if(oe in Fu)return[Fu[oe]];for(;oe!=="";){switch(jt=null,ee=(oe=ju(oe)).charAt(0)){case'"':case"'":jt=i1(oe.substring(1),ee);break;default:jt=a1(oe)}if(jt===null||(He.push(jt[0]),(oe=ju(jt[1]))!==""&&oe.charAt(0)!==","))return Eu;oe=oe.replace(/^,/,"")}return He}(xt);if(this.fontFaces){var Dt=n1(_t(this.pdf,this.fontFaces),kt.map(function(Yt){return{family:Yt,stretch:"normal",weight:qt,style:Kt}}));this.pdf.setFont(Dt.ref.name,Dt.ref.style)}else{var Gt="";(qt==="bold"||parseInt(qt,10)>=700||Kt==="bold")&&(Gt="bold"),Kt==="italic"&&(Gt+="italic"),Gt.length===0&&(Gt="normal");for(var Qt="",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"},ie=0;ie<kt.length;ie++){if(this.pdf.internal.getFont(kt[ie],Gt,{noFallback:!0,disableWarning:!0})!==void 0){Qt=kt[ie];break}if(Gt==="bolditalic"&&this.pdf.internal.getFont(kt[ie],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Qt=kt[ie],Gt="bold";else if(this.pdf.internal.getFont(kt[ie],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Qt=kt[ie],Gt="normal";break}}if(Qt===""){for(var pe=0;pe<kt.length;pe++)if(te[kt[pe]]){Qt=te[kt[pe]];break}}Qt=Qt===""?"Times":Qt,this.pdf.setFont(Qt,Gt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(lt){this.ctx.globalCompositeOperation=lt}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(lt){this.ctx.globalAlpha=lt}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(lt){this.ctx.lineDashOffset=lt,Ot.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(lt){this.ctx.lineDash=lt,Ot.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(lt){this.ctx.ignoreClearRect=!!lt}})};w.prototype.setLineDash=function(N){this.lineDash=N},w.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},w.prototype.fill=function(){st.call(this,"fill",!1)},w.prototype.stroke=function(){st.call(this,"stroke",!1)},w.prototype.beginPath=function(){this.path=[{type:"begin"}]},w.prototype.moveTo=function(N,j){if(isNaN(N)||isNaN(j))throw ve.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var M=this.ctx.transform.applyToPoint(new h(N,j));this.path.push({type:"mt",x:M.x,y:M.y}),this.ctx.lastPoint=new h(N,j)},w.prototype.closePath=function(){var N=new h(0,0),j=0;for(j=this.path.length-1;j!==-1;j--)if(this.path[j].type==="begin"&&he(this.path[j+1])==="object"&&typeof this.path[j+1].x=="number"){N=new h(this.path[j+1].x,this.path[j+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new h(N.x,N.y)},w.prototype.lineTo=function(N,j){if(isNaN(N)||isNaN(j))throw ve.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var M=this.ctx.transform.applyToPoint(new h(N,j));this.path.push({type:"lt",x:M.x,y:M.y}),this.ctx.lastPoint=new h(M.x,M.y)},w.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),st.call(this,null,!0)},w.prototype.quadraticCurveTo=function(N,j,M,U){if(isNaN(M)||isNaN(U)||isNaN(N)||isNaN(j))throw ve.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var H=this.ctx.transform.applyToPoint(new h(M,U)),Q=this.ctx.transform.applyToPoint(new h(N,j));this.path.push({type:"qct",x1:Q.x,y1:Q.y,x:H.x,y:H.y}),this.ctx.lastPoint=new h(H.x,H.y)},w.prototype.bezierCurveTo=function(N,j,M,U,H,Q){if(isNaN(H)||isNaN(Q)||isNaN(N)||isNaN(j)||isNaN(M)||isNaN(U))throw ve.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var et=this.ctx.transform.applyToPoint(new h(H,Q)),rt=this.ctx.transform.applyToPoint(new h(N,j)),Lt=this.ctx.transform.applyToPoint(new h(M,U));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 h(et.x,et.y)},w.prototype.arc=function(N,j,M,U,H,Q){if(isNaN(N)||isNaN(j)||isNaN(M)||isNaN(U)||isNaN(H))throw ve.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Q=!!Q,!this.ctx.transform.isIdentity){var et=this.ctx.transform.applyToPoint(new h(N,j));N=et.x,j=et.y;var rt=this.ctx.transform.applyToPoint(new h(0,M)),Lt=this.ctx.transform.applyToPoint(new h(0,0));M=Math.sqrt(Math.pow(rt.x-Lt.x,2)+Math.pow(rt.y-Lt.y,2))}Math.abs(H-U)>=2*Math.PI&&(U=0,H=2*Math.PI),this.path.push({type:"arc",x:N,y:j,radius:M,startAngle:U,endAngle:H,counterclockwise:Q})},w.prototype.arcTo=function(N,j,M,U,H){throw new Error("arcTo not implemented.")},w.prototype.rect=function(N,j,M,U){if(isNaN(N)||isNaN(j)||isNaN(M)||isNaN(U))throw ve.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(N,j),this.lineTo(N+M,j),this.lineTo(N+M,j+U),this.lineTo(N,j+U),this.lineTo(N,j),this.lineTo(N+M,j),this.lineTo(N,j)},w.prototype.fillRect=function(N,j,M,U){if(isNaN(N)||isNaN(j)||isNaN(M)||isNaN(U))throw ve.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!d.call(this)){var H={};this.lineCap!=="butt"&&(H.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(H.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(N,j,M,U),this.fill(),H.hasOwnProperty("lineCap")&&(this.lineCap=H.lineCap),H.hasOwnProperty("lineJoin")&&(this.lineJoin=H.lineJoin)}},w.prototype.strokeRect=function(N,j,M,U){if(isNaN(N)||isNaN(j)||isNaN(M)||isNaN(U))throw ve.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");I.call(this)||(this.beginPath(),this.rect(N,j,M,U),this.stroke())},w.prototype.clearRect=function(N,j,M,U){if(isNaN(N)||isNaN(j)||isNaN(M)||isNaN(U))throw ve.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(N,j,M,U))},w.prototype.save=function(N){N=typeof N!="boolean"||N;for(var j=this.pdf.internal.getCurrentPageInfo().pageNumber,M=0;M<this.pdf.internal.getNumberOfPages();M++)this.pdf.setPage(M+1),this.pdf.internal.out("q");if(this.pdf.setPage(j),N){this.ctx.fontSize=this.pdf.internal.getFontSize();var U=new y(this.ctx);this.ctxStack.push(this.ctx),this.ctx=U}},w.prototype.restore=function(N){N=typeof N!="boolean"||N;for(var j=this.pdf.internal.getCurrentPageInfo().pageNumber,M=0;M<this.pdf.internal.getNumberOfPages();M++)this.pdf.setPage(M+1),this.pdf.internal.out("Q");this.pdf.setPage(j),N&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},w.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var S=function(N){var j,M,U,H;if(N.isCanvasGradient===!0&&(N=N.getColor()),!N)return{r:0,g:0,b:0,a:0,style:N};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(N))j=0,M=0,U=0,H=0;else{var Q=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(N);if(Q!==null)j=parseInt(Q[1]),M=parseInt(Q[2]),U=parseInt(Q[3]),H=1;else if((Q=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(N))!==null)j=parseInt(Q[1]),M=parseInt(Q[2]),U=parseInt(Q[3]),H=parseFloat(Q[4]);else{if(H=1,typeof N=="string"&&N.charAt(0)!=="#"){var et=new du(N);N=et.ok?et.toHex():"#000000"}N.length===4?(j=N.substring(1,2),j+=j,M=N.substring(2,3),M+=M,U=N.substring(3,4),U+=U):(j=N.substring(1,3),M=N.substring(3,5),U=N.substring(5,7)),j=parseInt(j,16),M=parseInt(M,16),U=parseInt(U,16)}}return{r:j,g:M,b:U,a:H,style:N}},d=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},I=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};w.prototype.fillText=function(N,j,M,U){if(isNaN(j)||isNaN(M)||typeof N!="string")throw ve.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(U=isNaN(U)?void 0:U,!d.call(this)){var H=Z(this.ctx.transform.rotation),Q=this.ctx.transform.scaleX;k.call(this,{text:N,x:j,y:M,scale:Q,angle:H,align:this.textAlign,maxWidth:U})}},w.prototype.strokeText=function(N,j,M,U){if(isNaN(j)||isNaN(M)||typeof N!="string")throw ve.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!I.call(this)){U=isNaN(U)?void 0:U;var H=Z(this.ctx.transform.rotation),Q=this.ctx.transform.scaleX;k.call(this,{text:N,x:j,y:M,scale:Q,renderingMode:"stroke",angle:H,align:this.textAlign,maxWidth:U})}},w.prototype.measureText=function(N){if(typeof N!="string")throw ve.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var j=this.pdf,M=this.pdf.internal.scaleFactor,U=j.internal.getFontSize(),H=j.getStringUnitWidth(N)*U/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:H*=Math.round(96*M/72*1e4)/1e4})},w.prototype.scale=function(N,j){if(isNaN(N)||isNaN(j))throw ve.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var M=new f(N,0,0,j,0,0);this.ctx.transform=this.ctx.transform.multiply(M)},w.prototype.rotate=function(N){if(isNaN(N))throw ve.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var j=new f(Math.cos(N),Math.sin(N),-Math.sin(N),Math.cos(N),0,0);this.ctx.transform=this.ctx.transform.multiply(j)},w.prototype.translate=function(N,j){if(isNaN(N)||isNaN(j))throw ve.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var M=new f(1,0,0,1,N,j);this.ctx.transform=this.ctx.transform.multiply(M)},w.prototype.transform=function(N,j,M,U,H,Q){if(isNaN(N)||isNaN(j)||isNaN(M)||isNaN(U)||isNaN(H)||isNaN(Q))throw ve.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var et=new f(N,j,M,U,H,Q);this.ctx.transform=this.ctx.transform.multiply(et)},w.prototype.setTransform=function(N,j,M,U,H,Q){N=isNaN(N)?1:N,j=isNaN(j)?0:j,M=isNaN(M)?0:M,U=isNaN(U)?1:U,H=isNaN(H)?0:H,Q=isNaN(Q)?0:Q,this.ctx.transform=new f(N,j,M,U,H,Q)};var F=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};w.prototype.drawImage=function(N,j,M,U,H,Q,et,rt,Lt){var Nt=this.pdf.getImageProperties(N),Ft=1,_t=1,Ut=1,lt=1;U!==void 0&&rt!==void 0&&(Ut=rt/U,lt=Lt/H,Ft=Nt.width/U*rt/U,_t=Nt.height/H*Lt/H),Q===void 0&&(Q=j,et=M,j=0,M=0),U!==void 0&&rt===void 0&&(rt=U,Lt=H),U===void 0&&rt===void 0&&(rt=Nt.width,Lt=Nt.height);for(var q,Kt=this.ctx.transform.decompose(),qt=Z(Kt.rotate.shx),At=new f,xt=(At=(At=(At=At.multiply(Kt.translate)).multiply(Kt.skew)).multiply(Kt.scale)).applyToRectangle(new l(Q-j*Ut,et-M*lt,U*Ft,H*_t)),Ct=D.call(this,xt),kt=[],Dt=0;Dt<Ct.length;Dt+=1)kt.indexOf(Ct[Dt])===-1&&kt.push(Ct[Dt]);if(J(kt),this.autoPaging)for(var Gt=kt[0],Qt=kt[kt.length-1],te=Gt;te<Qt+1;te++){this.pdf.setPage(te);var ie=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],pe=te===1?this.posY+this.margin[0]:this.margin[0],Yt=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],jt=te===1?0:Yt+(te-2)*ee;if(this.ctx.clip_path.length!==0){var He=this.path;q=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=E(q,this.posX+this.margin[3],-jt+pe+this.ctx.prevPageLastElemOffset),ht.call(this,"fill",!0),this.path=He}var oe=JSON.parse(JSON.stringify(xt));oe=E([oe],this.posX+this.margin[3],-jt+pe+this.ctx.prevPageLastElemOffset)[0];var Sr=(te>Gt||te<Qt)&&F.call(this);Sr&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ie,ee,null).clip().discardPath()),this.pdf.addImage(N,"JPEG",oe.x,oe.y,oe.w,oe.h,null,null,qt),Sr&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(N,"JPEG",xt.x,xt.y,xt.w,xt.h,null,null,qt)};var D=function(N,j,M){var U=[];j=j||this.pdf.internal.pageSize.width,M=M||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var H=this.posY+this.ctx.prevPageLastElemOffset;switch(N.type){default:case"mt":case"lt":U.push(Math.floor((N.y+H)/M)+1);break;case"arc":U.push(Math.floor((N.y+H-N.radius)/M)+1),U.push(Math.floor((N.y+H+N.radius)/M)+1);break;case"qct":var Q=pt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,N.x1,N.y1,N.x,N.y);U.push(Math.floor((Q.y+H)/M)+1),U.push(Math.floor((Q.y+Q.h+H)/M)+1);break;case"bct":var et=ft(this.ctx.lastPoint.x,this.ctx.lastPoint.y,N.x1,N.y1,N.x2,N.y2,N.x,N.y);U.push(Math.floor((et.y+H)/M)+1),U.push(Math.floor((et.y+et.h+H)/M)+1);break;case"rect":U.push(Math.floor((N.y+H)/M)+1),U.push(Math.floor((N.y+N.h+H)/M)+1)}for(var rt=0;rt<U.length;rt+=1)for(;this.pdf.internal.getNumberOfPages()<U[rt];)_.call(this);return U},_=function(){var N=this.fillStyle,j=this.strokeStyle,M=this.font,U=this.lineCap,H=this.lineWidth,Q=this.lineJoin;this.pdf.addPage(),this.fillStyle=N,this.strokeStyle=j,this.font=M,this.lineCap=U,this.lineWidth=H,this.lineJoin=Q},E=function(N,j,M){for(var U=0;U<N.length;U++)switch(N[U].type){case"bct":N[U].x2+=j,N[U].y2+=M;case"qct":N[U].x1+=j,N[U].y1+=M;case"mt":case"lt":case"arc":default:N[U].x+=j,N[U].y+=M}return N},J=function(N){return N.sort(function(j,M){return j-M})},st=function(N,j){for(var M,U,H=this.fillStyle,Q=this.strokeStyle,et=this.lineCap,rt=this.lineWidth,Lt=Math.abs(rt*this.ctx.transform.scaleX),Nt=this.lineJoin,Ft=JSON.parse(JSON.stringify(this.path)),_t=JSON.parse(JSON.stringify(this.path)),Ut=[],lt=0;lt<_t.length;lt++)if(_t[lt].x!==void 0)for(var q=D.call(this,_t[lt]),Kt=0;Kt<q.length;Kt+=1)Ut.indexOf(q[Kt])===-1&&Ut.push(q[Kt]);for(var qt=0;qt<Ut.length;qt++)for(;this.pdf.internal.getNumberOfPages()<Ut[qt];)_.call(this);if(J(Ut),this.autoPaging)for(var At=Ut[0],xt=Ut[Ut.length-1],Ct=At;Ct<xt+1;Ct++){this.pdf.setPage(Ct),this.fillStyle=H,this.strokeStyle=Q,this.lineCap=et,this.lineWidth=Lt,this.lineJoin=Nt;var kt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Dt=Ct===1?this.posY+this.margin[0]:this.margin[0],Gt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Qt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],te=Ct===1?0:Gt+(Ct-2)*Qt;if(this.ctx.clip_path.length!==0){var ie=this.path;M=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=E(M,this.posX+this.margin[3],-te+Dt+this.ctx.prevPageLastElemOffset),ht.call(this,N,!0),this.path=ie}if(U=JSON.parse(JSON.stringify(Ft)),this.path=E(U,this.posX+this.margin[3],-te+Dt+this.ctx.prevPageLastElemOffset),j===!1||Ct===0){var pe=(Ct>At||Ct<xt)&&F.call(this);pe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],kt,Qt,null).clip().discardPath()),ht.call(this,N,j),pe&&this.pdf.restoreGraphicsState()}this.lineWidth=rt}else this.lineWidth=Lt,ht.call(this,N,j),this.lineWidth=rt;this.path=Ft},ht=function(N,j){if((N!=="stroke"||j||!I.call(this))&&(N==="stroke"||j||!d.call(this))){for(var M,U,H=[],Q=this.path,et=0;et<Q.length;et++){var rt=Q[et];switch(rt.type){case"begin":H.push({begin:!0});break;case"close":H.push({close:!0});break;case"mt":H.push({start:rt,deltas:[],abs:[]});break;case"lt":var Lt=H.length;if(Q[et-1]&&!isNaN(Q[et-1].x)&&(M=[rt.x-Q[et-1].x,rt.y-Q[et-1].y],Lt>0)){for(;Lt>=0;Lt--)if(H[Lt-1].close!==!0&&H[Lt-1].begin!==!0){H[Lt-1].deltas.push(M),H[Lt-1].abs.push(rt);break}}break;case"bct":M=[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],H[H.length-1].deltas.push(M);break;case"qct":var Nt=Q[et-1].x+2/3*(rt.x1-Q[et-1].x),Ft=Q[et-1].y+2/3*(rt.y1-Q[et-1].y),_t=rt.x+2/3*(rt.x1-rt.x),Ut=rt.y+2/3*(rt.y1-rt.y),lt=rt.x,q=rt.y;M=[Nt-Q[et-1].x,Ft-Q[et-1].y,_t-Q[et-1].x,Ut-Q[et-1].y,lt-Q[et-1].x,q-Q[et-1].y],H[H.length-1].deltas.push(M);break;case"arc":H.push({deltas:[],abs:[],arc:!0}),Array.isArray(H[H.length-1].abs)&&H[H.length-1].abs.push(rt)}}U=j?null:N==="stroke"?"stroke":"fill";for(var Kt=!1,qt=0;qt<H.length;qt++)if(H[qt].arc)for(var At=H[qt].abs,xt=0;xt<At.length;xt++){var Ct=At[xt];Ct.type==="arc"?T.call(this,Ct.x,Ct.y,Ct.radius,Ct.startAngle,Ct.endAngle,Ct.counterclockwise,void 0,j,!Kt):z.call(this,Ct.x,Ct.y),Kt=!0}else if(H[qt].close===!0)this.pdf.internal.out("h"),Kt=!1;else if(H[qt].begin!==!0){var kt=H[qt].start.x,Dt=H[qt].start.y;B.call(this,H[qt].deltas,kt,Dt),Kt=!0}U&&nt.call(this,U),j&&dt.call(this)}},yt=function(N){var j=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,M=j*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return N-M;case"top":return N+j-M;case"hanging":return N+j-2*M;case"middle":return N+j/2-M;case"ideographic":return N;case"alphabetic":default:return N}},tt=function(N){return N+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};w.prototype.createLinearGradient=function(){var N=function(){};return N.colorStops=[],N.addColorStop=function(j,M){this.colorStops.push([j,M])},N.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},N.isCanvasGradient=!0,N},w.prototype.createPattern=function(){return this.createLinearGradient()},w.prototype.createRadialGradient=function(){return this.createLinearGradient()};var T=function(N,j,M,U,H,Q,et,rt,Lt){for(var Nt=it.call(this,M,U,H,Q),Ft=0;Ft<Nt.length;Ft++){var _t=Nt[Ft];Ft===0&&(Lt?P.call(this,_t.x1+N,_t.y1+j):z.call(this,_t.x1+N,_t.y1+j)),at.call(this,N,j,_t.x2,_t.y2,_t.x3,_t.y3,_t.x4,_t.y4)}rt?dt.call(this):nt.call(this,et)},nt=function(N){switch(N){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},dt=function(){this.pdf.clip(),this.pdf.discardPath()},P=function(N,j){this.pdf.internal.out(r(N)+" "+a(j)+" m")},k=function(N){var j;switch(N.align){case"right":case"end":j="right";break;case"center":j="center";break;case"left":case"start":default:j="left"}var M=this.pdf.getTextDimensions(N.text),U=yt.call(this,N.y),H=tt.call(this,U)-M.h,Q=this.ctx.transform.applyToPoint(new h(N.x,U)),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,Ft,_t=this.ctx.transform.applyToRectangle(new l(N.x,U,M.w,M.h)),Ut=rt.applyToRectangle(new l(N.x,H,M.w,M.h)),lt=D.call(this,Ut),q=[],Kt=0;Kt<lt.length;Kt+=1)q.indexOf(lt[Kt])===-1&&q.push(lt[Kt]);if(J(q),this.autoPaging)for(var qt=q[0],At=q[q.length-1],xt=qt;xt<At+1;xt++){this.pdf.setPage(xt);var Ct=xt===1?this.posY+this.margin[0]:this.margin[0],kt=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],Qt=this.pdf.internal.pageSize.width-this.margin[1],te=Qt-this.margin[3],ie=xt===1?0:kt+(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=E(Lt,this.posX+this.margin[3],-1*ie+Ct),ht.call(this,"fill",!0),this.path=pe}var Yt=E([JSON.parse(JSON.stringify(Ut))],this.posX+this.margin[3],-ie+Ct+this.ctx.prevPageLastElemOffset)[0];N.scale>=.01&&(Nt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Nt*N.scale),Ft=this.lineWidth,this.lineWidth=Ft*N.scale);var ee=this.autoPaging!=="text";if(ee||Yt.y+Yt.h<=Dt){if(ee||Yt.y>=Ct&&Yt.x<=Qt){var jt=ee?N.text:this.pdf.splitTextToSize(N.text,N.maxWidth||Qt-Yt.x)[0],He=E([JSON.parse(JSON.stringify(_t))],this.posX+this.margin[3],-ie+Ct+this.ctx.prevPageLastElemOffset)[0],oe=ee&&(xt>qt||xt<At)&&F.call(this);oe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],te,Gt,null).clip().discardPath()),this.pdf.text(jt,He.x,He.y,{angle:N.angle,align:j,renderingMode:N.renderingMode}),oe&&this.pdf.restoreGraphicsState()}}else Yt.y<Dt&&(this.ctx.prevPageLastElemOffset+=Dt-Yt.y);N.scale>=.01&&(this.pdf.setFontSize(Nt),this.lineWidth=Ft)}else N.scale>=.01&&(Nt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Nt*N.scale),Ft=this.lineWidth,this.lineWidth=Ft*N.scale),this.pdf.text(N.text,Q.x+this.posX,Q.y+this.posY,{angle:N.angle,align:j,renderingMode:N.renderingMode,maxWidth:N.maxWidth}),N.scale>=.01&&(this.pdf.setFontSize(Nt),this.lineWidth=Ft)},z=function(N,j,M,U){M=M||0,U=U||0,this.pdf.internal.out(r(N+M)+" "+a(j+U)+" l")},B=function(N,j,M){return this.pdf.lines(N,j,M,null,null)},at=function(N,j,M,U,H,Q,et,rt){this.pdf.internal.out([e(u(M+N)),e(o(U+j)),e(u(H+N)),e(o(Q+j)),e(u(et+N)),e(o(rt+j)),"c"].join(" "))},it=function(N,j,M,U){for(var H=2*Math.PI,Q=Math.PI/2;j>M;)j-=H;var et=Math.abs(M-j);et<H&&U&&(et=H-et);for(var rt=[],Lt=U?-1:1,Nt=j;et>1e-5;){var Ft=Nt+Lt*Math.min(et,Q);rt.push(ut.call(this,N,Nt,Ft)),et-=Math.abs(Ft-Nt),Nt=Ft}return rt},ut=function(N,j,M){var U=(M-j)/2,H=N*Math.cos(U),Q=N*Math.sin(U),et=H,rt=-Q,Lt=et*et+rt*rt,Nt=Lt+et*H+rt*Q,Ft=4/3*(Math.sqrt(2*Lt*Nt)-Nt)/(et*Q-rt*H),_t=et-Ft*rt,Ut=rt+Ft*et,lt=_t,q=-Ut,Kt=U+j,qt=Math.cos(Kt),At=Math.sin(Kt);return{x1:N*Math.cos(j),y1:N*Math.sin(j),x2:_t*qt-Ut*At,y2:_t*At+Ut*qt,x3:lt*qt-q*At,y3:lt*At+q*qt,x4:N*Math.cos(M),y4:N*Math.sin(M)}},Z=function(N){return 180*N/Math.PI},pt=function(N,j,M,U,H,Q){var et=N+.5*(M-N),rt=j+.5*(U-j),Lt=H+.5*(M-H),Nt=Q+.5*(U-Q),Ft=Math.min(N,H,et,Lt),_t=Math.max(N,H,et,Lt),Ut=Math.min(j,Q,rt,Nt),lt=Math.max(j,Q,rt,Nt);return new l(Ft,Ut,_t-Ft,lt-Ut)},ft=function(N,j,M,U,H,Q,et,rt){var Lt,Nt,Ft,_t,Ut,lt,q,Kt,qt,At,xt,Ct,kt,Dt,Gt=M-N,Qt=U-j,te=H-M,ie=Q-U,pe=et-H,Yt=rt-Q;for(Nt=0;Nt<41;Nt++)qt=(q=(Ft=N+(Lt=Nt/40)*Gt)+Lt*((Ut=M+Lt*te)-Ft))+Lt*(Ut+Lt*(H+Lt*pe-Ut)-q),At=(Kt=(_t=j+Lt*Qt)+Lt*((lt=U+Lt*ie)-_t))+Lt*(lt+Lt*(Q+Lt*Yt-lt)-Kt),Nt==0?(xt=qt,Ct=At,kt=qt,Dt=At):(xt=Math.min(xt,qt),Ct=Math.min(Ct,At),kt=Math.max(kt,qt),Dt=Math.max(Dt,At));return new l(Math.round(xt),Math.round(Ct),Math.round(kt-xt),Math.round(Dt-Ct))},Ot=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var N,j,M=(N=this.ctx.lineDash,j=this.ctx.lineDashOffset,JSON.stringify({lineDash:N,lineDashOffset:j}));this.prevLineDash!==M&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=M)}}})(Rt.API),function(n){var e=function(o){var h,l,f,g,y,w,S,d,I,F;for(l=[],f=0,g=(o+=h="\0\0\0\0".slice(o.length%4||4)).length;g>f;f+=4)(y=(o.charCodeAt(f)<<24)+(o.charCodeAt(f+1)<<16)+(o.charCodeAt(f+2)<<8)+o.charCodeAt(f+3))!==0?(w=(y=((y=((y=((y=(y-(F=y%85))/85)-(I=y%85))/85)-(d=y%85))/85)-(S=y%85))/85)%85,l.push(w+33,S+33,d+33,I+33,F+33)):l.push(122);return function(D,_){for(var E=_;E>0;E--)D.pop()}(l,h.length),String.fromCharCode.apply(String,l)+"~>"},r=function(o){var h,l,f,g,y,w=String,S="length",d=255,I="charCodeAt",F="slice",D="replace";for(o[F](-2),o=o[F](0,-2)[D](/\s/g,"")[D]("z","!!!!!"),f=[],g=0,y=(o+=h="uuuuu"[F](o[S]%5||5))[S];y>g;g+=5)l=52200625*(o[I](g)-33)+614125*(o[I](g+1)-33)+7225*(o[I](g+2)-33)+85*(o[I](g+3)-33)+(o[I](g+4)-33),f.push(d&l>>24,d&l>>16,d&l>>8,d&l);return function(_,E){for(var J=E;J>0;J--)_.pop()}(f,h[S]),w.fromCharCode.apply(w,f)},a=function(o){var h=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"),h.test(o)===!1)return"";for(var l="",f=0;f<o.length;f+=2)l+=String.fromCharCode("0x"+(o[f]+o[f+1]));return l},u=function(o){for(var h=new Uint8Array(o.length),l=o.length;l--;)h[l]=o.charCodeAt(l);return o=(h=gs(h)).reduce(function(f,g){return f+String.fromCharCode(g)},"")};n.processDataByFilters=function(o,h){var l=0,f=o||"",g=[];for(typeof(h=h||[])=="string"&&(h=[h]),l=0;l<h.length;l+=1)switch(h[l]){case"ASCII85Decode":case"/ASCII85Decode":f=r(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(y){return("0"+y.charCodeAt().toString(16)).slice(-2)}).join("")+">",g.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":f=u(f),g.push("/FlateDecode");break;default:throw new Error('The filter: "'+h[l]+'" is not implemented')}return{data:f,reverseChain:g.reverse().join(" ")}}}(Rt.API),function(n){n.loadFile=function(e,r,a){return function(u,o,h){o=o!==!1,h=typeof h=="function"?h:function(){};var l=void 0;try{l=function(f,g,y){var w=new XMLHttpRequest,S=0,d=function(I){var F=I.length,D=[],_=String.fromCharCode;for(S=0;S<F;S+=1)D.push(_(255&I.charCodeAt(S)));return D.join("")};if(w.open("GET",f,!g),w.overrideMimeType("text/plain; charset=x-user-defined"),g===!1&&(w.onload=function(){w.status===200?y(d(this.responseText)):y(void 0)}),w.send(null),g&&w.status===200)return d(w.responseText)}(u,o,h)}catch{}return l}(e,r,a)},n.loadImageFile=n.loadFile}(Rt.API),function(n){function e(){return(Wt.html2canvas?Promise.resolve(Wt.html2canvas):import("./html2canvas.esm-CntiHiYW.js")).catch(function(h){return Promise.reject(new Error("Could not load html2canvas: "+h))}).then(function(h){return h.default?h.default:h})}function r(){return(Wt.DOMPurify?Promise.resolve(Wt.DOMPurify):import("./purify.es-BwLardii.js")).catch(function(h){return Promise.reject(new Error("Could not load dompurify: "+h))}).then(function(h){return h.default?h.default:h})}var a=function(h){var l=he(h);return l==="undefined"?"undefined":l==="string"||h instanceof String?"string":l==="number"||h instanceof Number?"number":l==="function"||h instanceof Function?"function":h&&h.constructor===Array?"array":h&&h.nodeType===1?"element":l==="object"?"object":"unknown"},u=function(h,l){var f=document.createElement(h);for(var g in l.className&&(f.className=l.className),l.innerHTML&&l.dompurify&&(f.innerHTML=l.dompurify.sanitize(l.innerHTML)),l.style)f.style[g]=l.style[g];return f},o=function h(l){var f=Object.assign(h.convert(Promise.resolve()),JSON.parse(JSON.stringify(h.template))),g=h.convert(Promise.resolve(),f);return g=(g=g.setProgress(1,h,1,[h])).set(l)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(h,l){return h.__proto__=l||o.prototype,h},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(h,l){return this.then(function(){switch(l=l||function(f){switch(a(f)){case"string":return"string";case"element":return f.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(h)){case"string":return this.then(r).then(function(f){return this.set({src:u("div",{innerHTML:h,dompurify:f})})});case"element":return this.set({src:h});case"canvas":return this.set({canvas:h});case"img":return this.set({img:h});default:return this.error("Unknown source type.")}})},o.prototype.to=function(h){switch(h){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 h={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},l=function f(g,y){for(var w=g.nodeType===3?document.createTextNode(g.nodeValue):g.cloneNode(!1),S=g.firstChild;S;S=S.nextSibling)y!==!0&&S.nodeType===1&&S.nodeName==="SCRIPT"||w.appendChild(f(S,y));return g.nodeType===1&&(g.nodeName==="CANVAS"?(w.width=g.width,w.height=g.height,w.getContext("2d").drawImage(g,0,0)):g.nodeName!=="TEXTAREA"&&g.nodeName!=="SELECT"||(w.value=g.value),w.addEventListener("load",function(){w.scrollTop=g.scrollTop,w.scrollLeft=g.scrollLeft},!0)),w}(this.prop.src,this.opt.html2canvas.javascriptEnabled);l.tagName==="BODY"&&(h.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=u("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=u("div",{className:"html2pdf__container",style:h}),this.prop.container.appendChild(l),this.prop.container.firstChild.appendChild(u("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 h=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(h).then(e).then(function(l){var f=Object.assign({},this.opt.html2canvas);return delete f.onrendered,l(this.prop.container,f)}).then(function(l){(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},o.prototype.toContext2d=function(){var h=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(h).then(e).then(function(l){var f=this.opt.jsPDF,g=this.opt.fontFaces,y=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,w=Object.assign({async:!0,allowTaint:!0,scale:y,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 w.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 d=g[S],I=d.src.find(function(F){return F.format==="truetype"});I&&f.addFont(I.url,d.ref.name,d.ref.style)}return w.windowHeight=w.windowHeight||0,w.windowHeight=w.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):w.windowHeight,f.context2d.save(!0),l(this.prop.container,w)}).then(function(l){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var h=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=h})},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(h,l,f){return(f=f||"pdf").toLowerCase()==="img"||f.toLowerCase()==="image"?this.outputImg(h,l):this.outputPdf(h,l)},o.prototype.outputPdf=function(h,l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(h,l)})},o.prototype.outputImg=function(h){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(h){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 "'+h+'" is not supported.'}})},o.prototype.save=function(h){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(h?{filename:h}: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(h){if(a(h)!=="object")return this;var l=Object.keys(h||{}).map(function(f){if(f in o.template.prop)return function(){this.prop[f]=h[f]};switch(f){case"margin":return this.setMargin.bind(this,h.margin);case"jsPDF":return function(){return this.opt.jsPDF=h.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,h.pageSize);default:return function(){this.opt[f]=h[f]}}},this);return this.then(function(){return this.thenList(l)})},o.prototype.get=function(h,l){return this.then(function(){var f=h in o.template.prop?this.prop[h]:this.opt[h];return l?l(f):f})},o.prototype.setMargin=function(h){return this.then(function(){switch(a(h)){case"number":h=[h,h,h,h];case"array":if(h.length===2&&(h=[h[0],h[1],h[0],h[1]]),h.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=h}).then(this.setPageSize)},o.prototype.setPageSize=function(h){function l(f,g){return Math.floor(f*g/72*96)}return this.then(function(){(h=h||Rt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(h.inner={width:h.width-this.opt.margin[1]-this.opt.margin[3],height:h.height-this.opt.margin[0]-this.opt.margin[2]},h.inner.px={width:l(h.inner.width,h.k),height:l(h.inner.height,h.k)},h.inner.ratio=h.inner.height/h.inner.width),this.prop.pageSize=h})},o.prototype.setProgress=function(h,l,f,g){return h!=null&&(this.progress.val=h),l!=null&&(this.progress.state=l),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(h,l,f,g){return this.setProgress(h?this.progress.val+h:null,l||null,f?this.progress.n+f:null,g?this.progress.stack.concat(g):null)},o.prototype.then=function(h,l){var f=this;return this.thenCore(h,l,function(g,y){return f.updateProgress(null,null,1,[g]),Promise.prototype.then.call(this,function(w){return f.updateProgress(null,g),w}).then(g,y).then(function(w){return f.updateProgress(1),w})})},o.prototype.thenCore=function(h,l,f){f=f||Promise.prototype.then,h&&(h=h.bind(this)),l&&(l=l.bind(this));var g=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:o.convert(Object.assign({},this),Promise.prototype),y=f.call(g,h,l);return o.convert(y,this.__proto__)},o.prototype.thenExternal=function(h,l){return Promise.prototype.then.call(this,h,l)},o.prototype.thenList=function(h){var l=this;return h.forEach(function(f){l=l.thenCore(f)}),l},o.prototype.catch=function(h){h&&(h=h.bind(this));var l=Promise.prototype.catch.call(this,h);return o.convert(l,this)},o.prototype.catchExternal=function(h){return Promise.prototype.catch.call(this,h)},o.prototype.error=function(h){return this.then(function(){throw new Error(h)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,Rt.getPageSize=function(h,l,f){if(he(h)==="object"){var g=h;h=g.orientation,l=g.unit||l,f=g.format||f}l=l||"mm",f=f||"a4",h=(""+(h||"P")).toLowerCase();var y,w=(""+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(l){case"pt":y=1;break;case"mm":y=72/25.4;break;case"cm":y=72/2.54;break;case"in":y=72;break;case"px":y=.75;break;case"pc":case"em":y=12;break;case"ex":y=6;break;default:throw"Invalid unit: "+l}var d,I=0,F=0;if(S.hasOwnProperty(w))I=S[w][1]/y,F=S[w][0]/y;else try{I=f[1],F=f[0]}catch{throw new Error("Invalid format: "+f)}if(h==="p"||h==="portrait")h="p",F>I&&(d=F,F=I,I=d);else{if(h!=="l"&&h!=="landscape")throw"Invalid orientation: "+h;h="l",I>F&&(d=F,F=I,I=d)}return{width:F,height:I,unit:l,k:y,orientation:h}},n.html=function(h,l){(l=l||{}).callback=l.callback||function(){},l.html2canvas=l.html2canvas||{},l.html2canvas.canvas=l.html2canvas.canvas||this.canvas,l.jsPDF=l.jsPDF||this,l.fontFaces=l.fontFaces?l.fontFaces.map(_s):null;var f=new o(l);return l.worker?f:f.from(h).doCallback()}}(Rt.API),Rt.API.addJS=function(n){return Iu=n,this.internal.events.subscribe("postPutResources",function(){mo=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(mo+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Ou=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Iu+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){mo!==void 0&&Ou!==void 0&&this.internal.out("/Names <</JavaScript "+mo+" 0 R>>")}),this},function(n){var e;n.events.push(["postPutResources",function(){var r=this,a=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var u=r.outline.render().split(/\r\n/),o=0;o<u.length;o++){var h=u[o],l=a.exec(h);if(l!=null){var f=l[1];r.internal.newObjectDeferredBegin(f,!1)}r.internal.write(h)}if(this.outline.createNamedDestinations){var g=this.internal.pages.length,y=[];for(o=0;o<g;o++){var w=r.internal.newObject();y.push(w);var S=r.internal.getPageInfo(o+1);r.internal.write("<< /D["+S.objId+" 0 R /XYZ null null null]>> endobj")}var d=r.internal.newObject();for(r.internal.write("<< /Names [ "),o=0;o<y.length;o++)r.internal.write("(page_"+(o+1)+")"+y[o]+" 0 R");r.internal.write(" ] >>","endobj"),e=r.internal.newObject(),r.internal.write("<< /Dests "+d+" 0 R"),r.internal.write(">>","endobj")}}]),n.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"))}]),n.events.push(["initialized",function(){var r=this;r.outline={createNamedDestinations:!1,root:{children:[]}},r.outline.add=function(a,u,o){var h={title:u,options:o,children:[]};return a==null&&(a=this.root),a.children.push(h),h},r.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=r,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},r.outline.genIds_r=function(a){a.id=r.internal.newObjectDeferred();for(var u=0;u<a.children.length;u++)this.genIds_r(a.children[u])},r.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()},r.outline.renderItems=function(a){for(var u=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<a.children.length;o++){var h=a.children[o];this.objStart(h),this.line("/Title "+this.makeString(h.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])),h.children.length>0&&(this.line("/First "+this.makeRef(h.children[0])),this.line("/Last "+this.makeRef(h.children[h.children.length-1])));var l=this.count=this.count_r({count:0},h);if(l>0&&this.line("/Count "+l),h.options&&h.options.pageNumber){var f=r.internal.getPageInfo(h.options.pageNumber);this.line("/Dest ["+f.objId+" 0 R /XYZ 0 "+u(0)+" 0]")}this.objEnd()}for(var g=0;g<a.children.length;g++)this.renderItems(a.children[g])},r.outline.line=function(a){this.ctx.val+=a+`\r
41
+ `},r.outline.makeRef=function(a){return a.id+" 0 R"},r.outline.makeString=function(a){return"("+r.internal.pdfEscape(a)+")"},r.outline.objStart=function(a){this.ctx.val+=`\r
42
+ `+a.id+` 0 obj\r
43
+ <<\r
44
+ `},r.outline.objEnd=function(){this.ctx.val+=`>> \r
45
+ endobj\r
46
+ `},r.outline.count_r=function(a,u){for(var o=0;o<u.children.length;o++)a.count++,this.count_r(a,u.children[o]);return a.count}}])}(Rt.API),function(n){var e=[192,193,194,195,196,197,198,199];n.processJPEG=function(r,a,u,o,h,l){var f,g=this.decode.DCT_DECODE,y=null;if(typeof r=="string"||this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r)){switch(r=h||r,r=this.__addimage__.isArrayBuffer(r)?new Uint8Array(r):r,(f=function(w){for(var S,d=256*w.charCodeAt(4)+w.charCodeAt(5),I=w.length,F={width:0,height:0,numcomponents:1},D=4;D<I;D+=2){if(D+=d,e.indexOf(w.charCodeAt(D+1))!==-1){S=256*w.charCodeAt(D+5)+w.charCodeAt(D+6),F={width:256*w.charCodeAt(D+7)+w.charCodeAt(D+8),height:S,numcomponents:w.charCodeAt(D+9)};break}d=256*w.charCodeAt(D+2)+w.charCodeAt(D+3)}return F}(r=this.__addimage__.isArrayBufferView(r)?this.__addimage__.arrayBufferToBinaryString(r):r)).numcomponents){case 1:l=this.color_spaces.DEVICE_GRAY;break;case 4:l=this.color_spaces.DEVICE_CMYK;break;case 3:l=this.color_spaces.DEVICE_RGB}y={data:r,width:f.width,height:f.height,colorSpace:l,bitsPerComponent:8,filter:g,index:a,alias:u}}return y}}(Rt.API);var Ii,vo,Mu,qu,Du,o1=function(){var n,e,r;function a(o){var h,l,f,g,y,w,S,d,I,F,D,_,E,J;for(this.data=o,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},w=null;;){switch(h=this.readUInt32(),I=function(){var st,ht;for(ht=[],st=0;st<4;++st)ht.push(String.fromCharCode(this.data[this.pos++]));return ht}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(h);break;case"fcTL":w&&this.animation.frames.push(w),this.pos+=4,w={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},y=this.readUInt16(),g=this.readUInt16()||100,w.delay=1e3*y/g,w.disposeOp=this.data[this.pos++],w.blendOp=this.data[this.pos++],w.data=[];break;case"IDAT":case"fdAT":for(I==="fdAT"&&(this.pos+=4,h-=4),o=w?.data||this.imgData,_=0;0<=h?_<h:_>h;0<=h?++_:--_)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(h),this.transparency.indexed.length>f)throw new Error("More transparent colors than palette size");if((F=f-this.transparency.indexed.length)>0)for(E=0;0<=F?E<F:E>F;0<=F?++E:--E)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(h)[0];break;case 2:this.transparency.rgb=this.read(h)}break;case"tEXt":S=(D=this.read(h)).indexOf(0),d=String.fromCharCode.apply(String,D.slice(0,S)),this.text[d]=String.fromCharCode.apply(String,D.slice(S+1));break;case"IEND":return w&&this.animation.frames.push(w),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,l=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*l,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=h}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}a.prototype.read=function(o){var h,l;for(l=[],h=0;0<=o?h<o:h>o;0<=o?++h:--h)l.push(this.data[this.pos++]);return l},a.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},a.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},a.prototype.decodePixels=function(o){var h=this.pixelBitlength/8,l=new Uint8Array(this.width*this.height*h),f=0,g=this;if(o==null&&(o=this.imgData),o.length===0)return new Uint8Array(0);function y(w,S,d,I){var F,D,_,E,J,st,ht,yt,tt,T,nt,dt,P,k,z,B,at,it,ut,Z,pt,ft=Math.ceil((g.width-w)/d),Ot=Math.ceil((g.height-S)/I),N=g.width==ft&&g.height==Ot;for(k=h*ft,dt=N?l:new Uint8Array(k*Ot),st=o.length,P=0,D=0;P<Ot&&f<st;){switch(o[f++]){case 0:for(E=at=0;at<k;E=at+=1)dt[D++]=o[f++];break;case 1:for(E=it=0;it<k;E=it+=1)F=o[f++],J=E<h?0:dt[D-h],dt[D++]=(F+J)%256;break;case 2:for(E=ut=0;ut<k;E=ut+=1)F=o[f++],_=(E-E%h)/h,z=P&&dt[(P-1)*k+_*h+E%h],dt[D++]=(z+F)%256;break;case 3:for(E=Z=0;Z<k;E=Z+=1)F=o[f++],_=(E-E%h)/h,J=E<h?0:dt[D-h],z=P&&dt[(P-1)*k+_*h+E%h],dt[D++]=(F+Math.floor((J+z)/2))%256;break;case 4:for(E=pt=0;pt<k;E=pt+=1)F=o[f++],_=(E-E%h)/h,J=E<h?0:dt[D-h],P===0?z=B=0:(z=dt[(P-1)*k+_*h+E%h],B=_&&dt[(P-1)*k+(_-1)*h+E%h]),ht=J+z-B,yt=Math.abs(ht-J),T=Math.abs(ht-z),nt=Math.abs(ht-B),tt=yt<=T&&yt<=nt?J:T<=nt?z:B,dt[D++]=(F+tt)%256;break;default:throw new Error("Invalid filter algorithm: "+o[f-1])}if(!N){var j=((S+P*I)*g.width+w)*h,M=P*k;for(E=0;E<ft;E+=1){for(var U=0;U<h;U+=1)l[j++]=dt[M++];j+=(d-1)*h}}P++}}return o=Bc(o),g.interlaceMethod==1?(y(0,0,8,8),y(4,0,8,8),y(0,4,4,8),y(2,0,4,4),y(0,2,2,4),y(1,0,2,2),y(0,1,1,2)):y(0,0,1,1),l},a.prototype.decodePalette=function(){var o,h,l,f,g,y,w,S,d;for(l=this.palette,y=this.transparency.indexed||[],g=new Uint8Array((y.length||0)+l.length),f=0,o=0,h=w=0,S=l.length;w<S;h=w+=3)g[f++]=l[h],g[f++]=l[h+1],g[f++]=l[h+2],g[f++]=(d=y[o++])!=null?d:255;return g},a.prototype.copyToImageData=function(o,h){var l,f,g,y,w,S,d,I,F,D,_;if(f=this.colors,F=null,l=this.hasAlphaChannel,this.palette.length&&(F=(_=this._decodedPalette)!=null?_:this._decodedPalette=this.decodePalette(),f=4,l=!0),I=(g=o.data||o).length,w=F||h,y=S=0,f===1)for(;y<I;)d=F?4*h[y/4]:S,D=w[d++],g[y++]=D,g[y++]=D,g[y++]=D,g[y++]=l?w[d++]:255,S=d;else for(;y<I;)d=F?4*h[y/4]:S,g[y++]=w[d++],g[y++]=w[d++],g[y++]=w[d++],g[y++]=l?w[d++]:255,S=d},a.prototype.decode=function(){var o;return o=new Uint8Array(this.width*this.height*4),this.copyToImageData(o,this.decodePixels()),o};var u=function(){if(Object.prototype.toString.call(Wt)==="[object Window]"){try{e=Wt.document.createElement("canvas"),r=e.getContext("2d")}catch{return!1}return!0}return!1};return u(),n=function(o){var h;if(u()===!0)return r.width=o.width,r.height=o.height,r.clearRect(0,0,o.width,o.height),r.putImageData(o,0,0),(h=new Image).src=e.toDataURL(),h;throw new Error("This method requires a Browser with Canvas-capability.")},a.prototype.decodeFrames=function(o){var h,l,f,g,y,w,S,d;if(this.animation){for(d=[],l=y=0,w=(S=this.animation.frames).length;y<w;l=++y)h=S[l],f=o.createImageData(h.width,h.height),g=this.decodePixels(new Uint8Array(h.data)),this.copyToImageData(f,g),h.imageData=f,d.push(h.image=n(f));return d}},a.prototype.renderFrame=function(o,h){var l,f,g;return l=(f=this.animation.frames)[h],g=f[h-1],h===0&&o.clearRect(0,0,this.width,this.height),g?.disposeOp===1?o.clearRect(g.xOffset,g.yOffset,g.width,g.height):g?.disposeOp===2&&o.putImageData(g.imageData,g.xOffset,g.yOffset),l.blendOp===0&&o.clearRect(l.xOffset,l.yOffset,l.width,l.height),o.drawImage(l.image,l.xOffset,l.yOffset)},a.prototype.animate=function(o){var h,l,f,g,y,w,S=this;return l=0,w=this.animation,g=w.numFrames,f=w.frames,y=w.numPlays,(h=function(){var d,I;if(d=l++%g,I=f[d],S.renderFrame(o,d),g>1&&l/g<y)return S.animation._timeout=setTimeout(h,I.delay)})()},a.prototype.stopAnimation=function(){var o;return clearTimeout((o=this.animation)!=null?o._timeout:void 0)},a.prototype.render=function(o){var h,l;return o._png&&o._png.stopAnimation(),o._png=this,o.width=this.width,o.height=this.height,h=o.getContext("2d"),this.animation?(this.decodeFrames(h),this.animate(h)):(l=h.createImageData(this.width,this.height),this.copyToImageData(l,this.decodePixels()),h.putImageData(l,0,0))},a}();function s1(n){var e=0;if(n[e++]!==71||n[e++]!==73||n[e++]!==70||n[e++]!==56||(n[e++]+1&253)!=56||n[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var r=n[e++]|n[e++]<<8,a=n[e++]|n[e++]<<8,u=n[e++],o=u>>7,h=1<<(7&u)+1;n[e++],n[e++];var l=null,f=null;o&&(l=e,f=h,e+=3*h);var g=!0,y=[],w=0,S=null,d=0,I=null;for(this.width=r,this.height=a;g&&e<n.length;)switch(n[e++]){case 33:switch(n[e++]){case 255:if(n[e]!==11||n[e+1]==78&&n[e+2]==69&&n[e+3]==84&&n[e+4]==83&&n[e+5]==67&&n[e+6]==65&&n[e+7]==80&&n[e+8]==69&&n[e+9]==50&&n[e+10]==46&&n[e+11]==48&&n[e+12]==3&&n[e+13]==1&&n[e+16]==0)e+=14,I=n[e++]|n[e++]<<8,e++;else for(e+=12;;){if(!((P=n[e++])>=0))throw Error("Invalid block size");if(P===0)break;e+=P}break;case 249:if(n[e++]!==4||n[e+4]!==0)throw new Error("Invalid graphics extension block.");var F=n[e++];w=n[e++]|n[e++]<<8,S=n[e++],(1&F)==0&&(S=null),d=F>>2&7,e++;break;case 254:for(;;){if(!((P=n[e++])>=0))throw Error("Invalid block size");if(P===0)break;e+=P}break;default:throw new Error("Unknown graphic control label: 0x"+n[e-1].toString(16))}break;case 44:var D=n[e++]|n[e++]<<8,_=n[e++]|n[e++]<<8,E=n[e++]|n[e++]<<8,J=n[e++]|n[e++]<<8,st=n[e++],ht=st>>6&1,yt=1<<(7&st)+1,tt=l,T=f,nt=!1;st>>7&&(nt=!0,tt=e,T=yt,e+=3*yt);var dt=e;for(e++;;){var P;if(!((P=n[e++])>=0))throw Error("Invalid block size");if(P===0)break;e+=P}y.push({x:D,y:_,width:E,height:J,has_local_palette:nt,palette_offset:tt,palette_size:T,data_offset:dt,data_length:e-dt,transparent_index:S,interlaced:!!ht,delay:w,disposal:d});break;case 59:g=!1;break;default:throw new Error("Unknown gif block: 0x"+n[e-1].toString(16))}this.numFrames=function(){return y.length},this.loopCount=function(){return I},this.frameInfo=function(k){if(k<0||k>=y.length)throw new Error("Frame index out of range.");return y[k]},this.decodeAndBlitFrameBGRA=function(k,z){var B=this.frameInfo(k),at=B.width*B.height,it=new Uint8Array(at);Bu(n,B.data_offset,it,at);var ut=B.palette_offset,Z=B.transparent_index;Z===null&&(Z=256);var pt=B.width,ft=r-pt,Ot=pt,N=4*(B.y*r+B.x),j=4*((B.y+B.height)*r+B.x),M=N,U=4*ft;B.interlaced===!0&&(U+=4*r*7);for(var H=8,Q=0,et=it.length;Q<et;++Q){var rt=it[Q];if(Ot===0&&(Ot=pt,(M+=U)>=j&&(U=4*ft+4*r*(H-1),M=N+(pt+ft)*(H<<1),H>>=1)),rt===Z)M+=4;else{var Lt=n[ut+3*rt],Nt=n[ut+3*rt+1],Ft=n[ut+3*rt+2];z[M++]=Ft,z[M++]=Nt,z[M++]=Lt,z[M++]=255}--Ot}},this.decodeAndBlitFrameRGBA=function(k,z){var B=this.frameInfo(k),at=B.width*B.height,it=new Uint8Array(at);Bu(n,B.data_offset,it,at);var ut=B.palette_offset,Z=B.transparent_index;Z===null&&(Z=256);var pt=B.width,ft=r-pt,Ot=pt,N=4*(B.y*r+B.x),j=4*((B.y+B.height)*r+B.x),M=N,U=4*ft;B.interlaced===!0&&(U+=4*r*7);for(var H=8,Q=0,et=it.length;Q<et;++Q){var rt=it[Q];if(Ot===0&&(Ot=pt,(M+=U)>=j&&(U=4*ft+4*r*(H-1),M=N+(pt+ft)*(H<<1),H>>=1)),rt===Z)M+=4;else{var Lt=n[ut+3*rt],Nt=n[ut+3*rt+1],Ft=n[ut+3*rt+2];z[M++]=Lt,z[M++]=Nt,z[M++]=Ft,z[M++]=255}--Ot}}}function Bu(n,e,r,a){for(var u=n[e++],o=1<<u,h=o+1,l=h+1,f=u+1,g=(1<<f)-1,y=0,w=0,S=0,d=n[e++],I=new Int32Array(4096),F=null;;){for(;y<16&&d!==0;)w|=n[e++]<<y,y+=8,d===1?d=n[e++]:--d;if(y<f)break;var D=w&g;if(w>>=f,y-=f,D!==o){if(D===h)break;for(var _=D<l?D:F,E=0,J=_;J>o;)J=I[J]>>8,++E;var st=J;if(S+E+(_!==D?1:0)>a)return void ve.log("Warning, gif stream longer than expected.");r[S++]=st;var ht=S+=E;for(_!==D&&(r[S++]=st),J=_;E--;)J=I[J],r[--ht]=255&J,J>>=8;F!==null&&l<4096&&(I[l++]=F<<8|st,l>=g+1&&f<12&&(++f,g=g<<1|1)),F=D}else l=h+1,g=(1<<(f=u+1))-1,F=null}return S!==a&&ve.log("Warning, gif stream shorter than expected."),r}function Ps(n){var e,r,a,u,o,h=Math.floor,l=new Array(64),f=new Array(64),g=new Array(64),y=new Array(64),w=new Array(65535),S=new Array(65535),d=new Array(64),I=new Array(64),F=[],D=0,_=7,E=new Array(64),J=new Array(64),st=new Array(64),ht=new Array(256),yt=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],T=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],nt=[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],P=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],k=[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],B=[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 it(N,j){for(var M=0,U=0,H=new Array,Q=1;Q<=16;Q++){for(var et=1;et<=N[Q];et++)H[j[U]]=[],H[j[U]][0]=M,H[j[U]][1]=Q,U++,M++;M*=2}return H}function ut(N){for(var j=N[0],M=N[1]-1;M>=0;)j&1<<M&&(D|=1<<_),M--,--_<0&&(D==255?(Z(255),Z(0)):Z(D),_=7,D=0)}function Z(N){F.push(N)}function pt(N){Z(N>>8&255),Z(255&N)}function ft(N,j,M,U,H){for(var Q,et=H[0],rt=H[240],Lt=function(At,xt){var Ct,kt,Dt,Gt,Qt,te,ie,pe,Yt,ee,jt=0;for(Yt=0;Yt<8;++Yt){Ct=At[jt],kt=At[jt+1],Dt=At[jt+2],Gt=At[jt+3],Qt=At[jt+4],te=At[jt+5],ie=At[jt+6];var He=Ct+(pe=At[jt+7]),oe=Ct-pe,Sr=kt+ie,ge=kt-ie,Ae=Dt+te,zr=Dt-te,ue=Gt+Qt,Mn=Gt-Qt,Le=He+ue,_r=He-ue,en=Sr+Ae,xe=Sr-Ae;At[jt]=Le+en,At[jt+4]=Le-en;var Ht=.707106781*(xe+_r);At[jt+2]=_r+Ht,At[jt+6]=_r-Ht;var ce=.382683433*((Le=Mn+zr)-(xe=ge+oe)),qn=.5411961*Le+ce,Ye=1.306562965*xe+ce,Ur=.707106781*(en=zr+ge),Wr=oe+Ur,zt=oe-Ur;At[jt+5]=zt+qn,At[jt+3]=zt-qn,At[jt+1]=Wr+Ye,At[jt+7]=Wr-Ye,jt+=8}for(jt=0,Yt=0;Yt<8;++Yt){Ct=At[jt],kt=At[jt+8],Dt=At[jt+16],Gt=At[jt+24],Qt=At[jt+32],te=At[jt+40],ie=At[jt+48];var Pr=Ct+(pe=At[jt+56]),Yr=Ct-pe,ir=kt+ie,Be=kt-ie,Ee=Dt+te,lr=Dt-te,ei=Gt+Qt,rn=Gt-Qt,kr=Pr+ei,Fr=Pr-ei,Cr=ir+Ee,Xr=ir-Ee;At[jt]=kr+Cr,At[jt+32]=kr-Cr;var mr=.707106781*(Xr+Fr);At[jt+16]=Fr+mr,At[jt+48]=Fr-mr;var Gr=.382683433*((kr=rn+lr)-(Xr=Be+Yr)),Dn=.5411961*kr+Gr,ri=1.306562965*Xr+Gr,ni=.707106781*(Cr=lr+Be),ii=Yr+ni,ai=Yr-ni;At[jt+40]=ai+Dn,At[jt+24]=ai-Dn,At[jt+8]=ii+ri,At[jt+56]=ii-ri,jt++}for(Yt=0;Yt<64;++Yt)ee=At[Yt]*xt[Yt],d[Yt]=ee>0?ee+.5|0:ee-.5|0;return d}(N,j),Nt=0;Nt<64;++Nt)I[tt[Nt]]=Lt[Nt];var Ft=I[0]-M;M=I[0],Ft==0?ut(U[0]):(ut(U[S[Q=32767+Ft]]),ut(w[Q]));for(var _t=63;_t>0&&I[_t]==0;)_t--;if(_t==0)return ut(et),M;for(var Ut,lt=1;lt<=_t;){for(var q=lt;I[lt]==0&&lt<=_t;)++lt;var Kt=lt-q;if(Kt>=16){Ut=Kt>>4;for(var qt=1;qt<=Ut;++qt)ut(rt);Kt&=15}Q=32767+I[lt],ut(H[(Kt<<4)+S[Q]]),ut(w[Q]),lt++}return _t!=63&&ut(et),M}function Ot(N){N=Math.min(Math.max(N,1),100),o!=N&&(function(j){for(var M=[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],U=0;U<64;U++){var H=h((M[U]*j+50)/100);H=Math.min(Math.max(H,1),255),l[tt[U]]=H}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=h((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,Ft=0;Ft<8;Ft++)for(var _t=0;_t<8;_t++)g[Nt]=1/(l[tt[Nt]]*Lt[Ft]*Lt[_t]*8),y[Nt]=1/(f[tt[Nt]]*Lt[Ft]*Lt[_t]*8),Nt++}(N<50?Math.floor(5e3/N):Math.floor(200-2*N)),o=N)}this.encode=function(N,j){j&&Ot(j),F=new Array,D=0,_=7,pt(65496),pt(65504),pt(16),Z(74),Z(70),Z(73),Z(70),Z(0),Z(1),Z(1),Z(0),pt(1),pt(1),Z(0),Z(0),function(){pt(65499),pt(132),Z(0);for(var kt=0;kt<64;kt++)Z(l[kt]);Z(1);for(var Dt=0;Dt<64;Dt++)Z(f[Dt])}(),function(kt,Dt){pt(65472),pt(17),Z(8),pt(Dt),pt(kt),Z(3),Z(1),Z(17),Z(0),Z(2),Z(17),Z(1),Z(3),Z(17),Z(1)}(N.width,N.height),function(){pt(65476),pt(418),Z(0);for(var kt=0;kt<16;kt++)Z(T[kt+1]);for(var Dt=0;Dt<=11;Dt++)Z(nt[Dt]);Z(16);for(var Gt=0;Gt<16;Gt++)Z(dt[Gt+1]);for(var Qt=0;Qt<=161;Qt++)Z(P[Qt]);Z(1);for(var te=0;te<16;te++)Z(k[te+1]);for(var ie=0;ie<=11;ie++)Z(z[ie]);Z(17);for(var pe=0;pe<16;pe++)Z(B[pe+1]);for(var Yt=0;Yt<=161;Yt++)Z(at[Yt])}(),pt(65498),pt(12),Z(3),Z(1),Z(0),Z(2),Z(17),Z(3),Z(17),Z(0),Z(63),Z(0);var M=0,U=0,H=0;D=0,_=7,this.encode.displayName="_encode_";for(var Q,et,rt,Lt,Nt,Ft,_t,Ut,lt,q=N.data,Kt=N.width,qt=N.height,At=4*Kt,xt=0;xt<qt;){for(Q=0;Q<At;){for(Nt=At*xt+Q,_t=-1,Ut=0,lt=0;lt<64;lt++)Ft=Nt+(Ut=lt>>3)*At+(_t=4*(7&lt)),xt+Ut>=qt&&(Ft-=At*(xt+1+Ut-qt)),Q+_t>=At&&(Ft-=Q+_t-At+4),et=q[Ft++],rt=q[Ft++],Lt=q[Ft++],E[lt]=(yt[et]+yt[rt+256>>0]+yt[Lt+512>>0]>>16)-128,J[lt]=(yt[et+768>>0]+yt[rt+1024>>0]+yt[Lt+1280>>0]>>16)-128,st[lt]=(yt[et+1280>>0]+yt[rt+1536>>0]+yt[Lt+1792>>0]>>16)-128;M=ft(E,g,M,e,a),U=ft(J,y,U,r,u),H=ft(st,y,H,r,u),Q+=32}xt+=8}if(_>=0){var Ct=[];Ct[1]=_+1,Ct[0]=(1<<_+1)-1,ut(Ct)}return pt(65497),new Uint8Array(F)},n=n||50,function(){for(var N=String.fromCharCode,j=0;j<256;j++)ht[j]=N(j)}(),e=it(T,nt),r=it(k,z),a=it(dt,P),u=it(B,at),function(){for(var N=1,j=2,M=1;M<=15;M++){for(var U=N;U<j;U++)S[32767+U]=M,w[32767+U]=[],w[32767+U][1]=M,w[32767+U][0]=U;for(var H=-(j-1);H<=-N;H++)S[32767+H]=M,w[32767+H]=[],w[32767+H][1]=M,w[32767+H][0]=j-1+H;N<<=1,j<<=1}}(),function(){for(var N=0;N<256;N++)yt[N]=19595*N,yt[N+256>>0]=38470*N,yt[N+512>>0]=7471*N+32768,yt[N+768>>0]=-11059*N,yt[N+1024>>0]=-21709*N,yt[N+1280>>0]=32768*N+8421375,yt[N+1536>>0]=-27439*N,yt[N+1792>>0]=-5329*N}(),Ot(n)}function Tr(n,e){if(this.pos=0,this.buffer=n,this.datav=new DataView(n.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 Tu(n){function e(T){if(!T)throw Error("assert :P")}function r(T,nt,dt){for(var P=0;4>P;P++)if(T[nt+P]!=dt.charCodeAt(P))return!0;return!1}function a(T,nt,dt,P,k){for(var z=0;z<k;z++)T[nt+z]=dt[P+z]}function u(T,nt,dt,P){for(var k=0;k<P;k++)T[nt+k]=dt}function o(T){return new Int32Array(T)}function h(T,nt){for(var dt=[],P=0;P<T;P++)dt.push(new nt);return dt}function l(T,nt){var dt=[];return function P(k,z,B){for(var at=B[z],it=0;it<at&&(k.push(B.length>z+1?[]:new nt),!(B.length<z+1));it++)P(k[it],z+1,B)}(dt,0,T),dt}var f=function(){var T=this;function nt(t,i){for(var c=1<<i-1>>>0;t&c;)c>>>=1;return c?(t&c-1)+c:t}function dt(t,i,c,p,m){e(!(p%c));do t[i+(p-=c)]=m;while(0<p)}function P(t,i,c,p,m){if(e(2328>=m),512>=m)var b=o(512);else if((b=o(m))==null)return 0;return function(A,L,x,C,W,K){var $,G,vt=L,ot=1<<x,Y=o(16),X=o(16);for(e(W!=0),e(C!=null),e(A!=null),e(0<x),G=0;G<W;++G){if(15<C[G])return 0;++Y[C[G]]}if(Y[0]==W)return 0;for(X[1]=0,$=1;15>$;++$){if(Y[$]>1<<$)return 0;X[$+1]=X[$]+Y[$]}for(G=0;G<W;++G)$=C[G],0<C[G]&&(K[X[$]++]=G);if(X[15]==1)return(C=new k).g=0,C.value=K[0],dt(A,vt,1,ot,C),ot;var gt,bt=-1,mt=ot-1,Et=0,St=1,Tt=1,Pt=1<<x;for(G=0,$=1,W=2;$<=x;++$,W<<=1){if(St+=Tt<<=1,0>(Tt-=Y[$]))return 0;for(;0<Y[$];--Y[$])(C=new k).g=$,C.value=K[G++],dt(A,vt+Et,W,Pt,C),Et=nt(Et,$)}for($=x+1,W=2;15>=$;++$,W<<=1){if(St+=Tt<<=1,0>(Tt-=Y[$]))return 0;for(;0<Y[$];--Y[$]){if(C=new k,(Et&mt)!=bt){for(vt+=Pt,gt=1<<(bt=$)-x;15>bt&&!(0>=(gt-=Y[bt]));)++bt,gt<<=1;ot+=Pt=1<<(gt=bt-x),A[L+(bt=Et&mt)].g=gt+x,A[L+bt].value=vt-L-bt}C.g=$-x,C.value=K[G++],dt(A,vt+(Et>>x),W,Pt,C),Et=nt(Et,$)}}return St!=2*X[15]-1?0:ot}(t,i,c,p,m,b)}function k(){this.value=this.g=0}function z(){this.value=this.g=0}function B(){this.G=h(5,k),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=h(Xe,z)}function at(t,i,c,p){e(t!=null),e(i!=null),e(2147483648>p),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=i,t.pa=c,t.Jd=i,t.Yc=c+p,t.Zc=4<=p?c+p-4+1:c,Q(t)}function it(t,i){for(var c=0;0<i--;)c|=rt(t,128)<<i;return c}function ut(t,i){var c=it(t,i);return et(t)?-c:c}function Z(t,i,c,p){var m,b=0;for(e(t!=null),e(i!=null),e(4294967288>p),t.Sb=p,t.Ra=0,t.u=0,t.h=0,4<p&&(p=4),m=0;m<p;++m)b+=i[c+m]<<8*m;t.Ra=b,t.bb=p,t.oa=i,t.pa=c}function pt(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<wi-8>>>0,++t.bb,t.u-=8;M(t)&&(t.h=1,t.u=0)}function ft(t,i){if(e(0<=i),!t.h&&i<=yi){var c=j(t)&bi[i];return t.u+=i,pt(t),c}return t.h=1,t.u=0}function Ot(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function N(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function j(t){return t.Ra>>>(t.u&wi-1)>>>0}function M(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>wi}function U(t,i){t.u=i,t.h=M(t)}function H(t){t.u>=Zi&&(e(t.u>=Zi),pt(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 it(t,1)}function rt(t,i){var c=t.Ca;0>t.b&&Q(t);var p=t.b,m=c*i>>>8,b=(t.I>>>p>m)+0;for(b?(c-=m,t.I-=m+1<<p>>>0):c=m+1,p=c,m=0;256<=p;)m+=8,p>>=8;return p=7^m+or[p],t.b-=p,t.Ca=(c<<p)-1,b}function Lt(t,i,c){t[i+0]=c>>24&255,t[i+1]=c>>16&255,t[i+2]=c>>8&255,t[i+3]=c>>0&255}function Nt(t,i){return t[i+0]<<0|t[i+1]<<8}function Ft(t,i){return Nt(t,i)|t[i+2]<<16}function _t(t,i){return Nt(t,i)|Nt(t,i+2)<<16}function Ut(t,i){var c=1<<i;return e(t!=null),e(0<i),t.X=o(c),t.X==null?0:(t.Mb=32-i,t.Xa=i,1)}function lt(t,i){e(t!=null),e(i!=null),e(t.Xa==i.Xa),a(i.X,0,t.X,0,1<<i.Xa)}function q(){this.X=[],this.Xa=this.Mb=0}function Kt(t,i,c,p){e(c!=null),e(p!=null);var m=c[0],b=p[0];return m==0&&(m=(t*b+i/2)/i),b==0&&(b=(i*m+t/2)/t),0>=m||0>=b?0:(c[0]=m,p[0]=b,1)}function qt(t,i){return t+(1<<i)-1>>>i}function At(t,i){return((4278255360&t)+(4278255360&i)>>>0&4278255360)+((16711935&t)+(16711935&i)>>>0&16711935)>>>0}function xt(t,i){T[i]=function(c,p,m,b,A,L,x){var C;for(C=0;C<A;++C){var W=T[t](L[x+C-1],m,b+C);L[x+C]=At(c[p+C],W)}}}function Ct(){this.ud=this.hd=this.jd=0}function kt(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 Qt(t,i,c){return Math.abs(i-c)-Math.abs(t-c)}function te(t,i,c,p,m,b,A){for(p=b[A-1],c=0;c<m;++c)b[A+c]=p=At(t[i+c],p)}function ie(t,i,c,p,m){var b;for(b=0;b<c;++b){var A=t[i+b],L=A>>8&255,x=16711935&(x=(x=16711935&A)+((L<<16)+L));p[m+b]=(4278255360&A)+x>>>0}}function pe(t,i){i.jd=t>>0&255,i.hd=t>>8&255,i.ud=t>>16&255}function Yt(t,i,c,p,m,b){var A;for(A=0;A<p;++A){var L=i[c+A],x=L>>>8,C=L,W=255&(W=(W=L>>>16)+((t.jd<<24>>24)*(x<<24>>24)>>>5));C=255&(C=(C=C+((t.hd<<24>>24)*(x<<24>>24)>>>5))+((t.ud<<24>>24)*(W<<24>>24)>>>5)),m[b+A]=(4278255360&L)+(W<<16)+C}}function ee(t,i,c,p,m){T[i]=function(b,A,L,x,C,W,K,$,G){for(x=K;x<$;++x)for(K=0;K<G;++K)C[W++]=m(L[p(b[A++])])},T[t]=function(b,A,L,x,C,W,K){var $=8>>b.b,G=b.Ea,vt=b.K[0],ot=b.w;if(8>$)for(b=(1<<b.b)-1,ot=(1<<$)-1;A<L;++A){var Y,X=0;for(Y=0;Y<G;++Y)Y&b||(X=p(x[C++])),W[K++]=m(vt[X&ot]),X>>=$}else T["VP8LMapColor"+c](x,C,vt,ot,W,K,A,L,G)}}function jt(t,i,c,p,m){for(c=i+c;i<c;){var b=t[i++];p[m++]=b>>16&255,p[m++]=b>>8&255,p[m++]=b>>0&255}}function He(t,i,c,p,m){for(c=i+c;i<c;){var b=t[i++];p[m++]=b>>16&255,p[m++]=b>>8&255,p[m++]=b>>0&255,p[m++]=b>>24&255}}function oe(t,i,c,p,m){for(c=i+c;i<c;){var b=(A=t[i++])>>16&240|A>>12&15,A=A>>0&240|A>>28&15;p[m++]=b,p[m++]=A}}function Sr(t,i,c,p,m){for(c=i+c;i<c;){var b=(A=t[i++])>>16&248|A>>13&7,A=A>>5&224|A>>3&31;p[m++]=b,p[m++]=A}}function ge(t,i,c,p,m){for(c=i+c;i<c;){var b=t[i++];p[m++]=b>>0&255,p[m++]=b>>8&255,p[m++]=b>>16&255}}function Ae(t,i,c,p,m,b){if(b==0)for(c=i+c;i<c;)Lt(p,((b=t[i++])[0]>>24|b[1]>>8&65280|b[2]<<8&16711680|b[3]<<24)>>>0),m+=32;else a(p,m,t,i,c)}function zr(t,i){T[i][0]=T[t+"0"],T[i][1]=T[t+"1"],T[i][2]=T[t+"2"],T[i][3]=T[t+"3"],T[i][4]=T[t+"4"],T[i][5]=T[t+"5"],T[i][6]=T[t+"6"],T[i][7]=T[t+"7"],T[i][8]=T[t+"8"],T[i][9]=T[t+"9"],T[i][10]=T[t+"10"],T[i][11]=T[t+"11"],T[i][12]=T[t+"12"],T[i][13]=T[t+"13"],T[i][14]=T[t+"0"],T[i][15]=T[t+"0"]}function ue(t){return t==Xo||t==Go||t==Va||t==Ho}function Mn(){this.eb=[],this.size=this.A=this.fb=0}function Le(){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 _r(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Mn,this.f.kb=new Le,this.sd=null}function en(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function xe(){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 Ht(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function ce(t,i){var c=t.T,p=i.ba.f.RGBA,m=p.eb,b=p.fb+t.ka*p.A,A=Lr[i.ba.S],L=t.y,x=t.O,C=t.f,W=t.N,K=t.ea,$=t.W,G=i.cc,vt=i.dc,ot=i.Mc,Y=i.Nc,X=t.ka,gt=t.ka+t.T,bt=t.U,mt=bt+1>>1;for(X==0?A(L,x,null,null,C,W,K,$,C,W,K,$,m,b,null,null,bt):(A(i.ec,i.fc,L,x,G,vt,ot,Y,C,W,K,$,m,b-p.A,m,b,bt),++c);X+2<gt;X+=2)G=C,vt=W,ot=K,Y=$,W+=t.Rc,$+=t.Rc,b+=2*p.A,A(L,(x+=2*t.fa)-t.fa,L,x,G,vt,ot,Y,C,W,K,$,m,b-p.A,m,b,bt);return x+=t.fa,t.j+gt<t.o?(a(i.ec,i.fc,L,x,bt),a(i.cc,i.dc,C,W,mt),a(i.Mc,i.Nc,K,$,mt),c--):1&gt||A(L,x,null,null,C,W,K,$,C,W,K,$,m,b+p.A,null,null,bt),c}function qn(t,i,c){var p=t.F,m=[t.J];if(p!=null){var b=t.U,A=i.ba.S,L=A==Ja||A==Va;i=i.ba.f.RGBA;var x=[0],C=t.ka;x[0]=t.T,t.Kb&&(C==0?--x[0]:(--C,m[0]-=t.width),t.j+t.ka+t.T==t.o&&(x[0]=t.o-t.j-C));var W=i.eb;C=i.fb+C*i.A,t=ye(p,m[0],t.width,b,x,W,C+(L?0:3),i.A),e(c==x),t&&ue(A)&&Ar(W,C,L,b,x,i.A)}return 0}function Ye(t){var i=t.ma,c=i.ba.S,p=11>c,m=c==Ga||c==Ha||c==Ja||c==Yo||c==12||ue(c);if(i.memory=null,i.Ib=null,i.Jb=null,i.Nd=null,!Ki(i.Oa,t,m?11:12))return 0;if(m&&ue(c)&&wt(),t.da)alert("todo:use_scaling");else{if(p){if(i.Ib=Ht,t.Kb){if(c=t.U+1>>1,i.memory=o(t.U+2*c),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+c,i.Ib=ce,wt()}}else alert("todo:EmitYUV");m&&(i.Jb=qn,p&&V())}if(p&&!Ds){for(t=0;256>t;++t)sc[t]=89858*(t-128)+$a>>Ka,hc[t]=-22014*(t-128)+$a,cc[t]=-45773*(t-128),uc[t]=113618*(t-128)+$a>>Ka;for(t=aa;t<Ko;++t)i=76283*(t-16)+$a>>Ka,lc[t-aa]=vr(i,255),fc[t-aa]=vr(i+8>>4,15);Ds=1}return 1}function Ur(t){var i=t.ma,c=t.U,p=t.T;return e(!(1&t.ka)),0>=c||0>=p?0:(c=i.Ib(t,i),i.Jb!=null&&i.Jb(t,i,c),i.Dc+=c,1)}function Wr(t){t.ma.memory=null}function zt(t,i,c,p){return ft(t,8)!=47?0:(i[0]=ft(t,14)+1,c[0]=ft(t,14)+1,p[0]=ft(t,1),ft(t,3)!=0?0:!t.h)}function Pr(t,i){if(4>t)return t+1;var c=t-2>>1;return(2+(1&t)<<c)+ft(i,c)+1}function Yr(t,i){return 120<i?i-120:1<=(c=((c=Hu[i-1])>>4)*t+(8-(15&c)))?c:1;var c}function ir(t,i,c){var p=j(c),m=t[i+=255&p].g-8;return 0<m&&(U(c,c.u+8),p=j(c),i+=t[i].value,i+=p&(1<<m)-1),U(c,c.u+t[i].g),t[i].value}function Be(t,i,c){return c.g+=t.g,c.value+=t.value<<i>>>0,e(8>=c.g),t.g}function Ee(t,i,c){var p=t.xc;return e((i=p==0?0:t.vc[t.md*(c>>p)+(i>>p)])<t.Wb),t.Ya[i]}function lr(t,i,c,p){var m=t.ab,b=t.c*i,A=t.C;i=A+i;var L=c,x=p;for(p=t.Ta,c=t.Ua;0<m--;){var C=t.gc[m],W=A,K=i,$=L,G=x,vt=(x=p,L=c,C.Ea);switch(e(W<K),e(K<=C.nc),C.hc){case 2:Ta($,G,(K-W)*vt,x,L);break;case 0:var ot=W,Y=K,X=x,gt=L,bt=(Pt=C).Ea;ot==0&&(Uo($,G,null,null,1,X,gt),te($,G+1,0,0,bt-1,X,gt+1),G+=bt,gt+=bt,++ot);for(var mt=1<<Pt.b,Et=mt-1,St=qt(bt,Pt.b),Tt=Pt.K,Pt=Pt.w+(ot>>Pt.b)*St;ot<Y;){var se=Tt,le=Pt,ae=1;for(Qi($,G,X,gt-bt,1,X,gt);ae<bt;){var re=(ae&~Et)+mt;re>bt&&(re=bt),(0,vn[se[le++]>>8&15])($,G+ +ae,X,gt+ae-bt,re-ae,X,gt+ae),ae=re}G+=bt,gt+=bt,++ot&Et||(Pt+=St)}K!=C.nc&&a(x,L-vt,x,L+(K-W-1)*vt,vt);break;case 1:for(vt=$,Y=G,bt=($=C.Ea)-(gt=$&~(X=(G=1<<C.b)-1)),ot=qt($,C.b),mt=C.K,C=C.w+(W>>C.b)*ot;W<K;){for(Et=mt,St=C,Tt=new Ct,Pt=Y+gt,se=Y+$;Y<Pt;)pe(Et[St++],Tt),Un(Tt,vt,Y,G,x,L),Y+=G,L+=G;Y<se&&(pe(Et[St++],Tt),Un(Tt,vt,Y,bt,x,L),Y+=bt,L+=bt),++W&X||(C+=ot)}break;case 3:if($==x&&G==L&&0<C.b){for(Y=x,$=vt=L+(K-W)*vt-(gt=(K-W)*qt(C.Ea,C.b)),G=x,X=L,ot=[],gt=(bt=gt)-1;0<=gt;--gt)ot[gt]=G[X+gt];for(gt=bt-1;0<=gt;--gt)Y[$+gt]=ot[gt];br(C,W,K,x,vt,x,L)}else br(C,W,K,$,G,x,L)}L=p,x=c}x!=c&&a(p,c,L,x,b)}function ei(t,i){var c=t.V,p=t.Ba+t.c*t.C,m=i-t.C;if(e(i<=t.l.o),e(16>=m),0<m){var b=t.l,A=t.Ta,L=t.Ua,x=b.width;if(lr(t,m,c,p),m=L=[L],e((c=t.C)<(p=i)),e(b.v<b.va),p>b.o&&(p=b.o),c<b.j){var C=b.j-c;c=b.j,m[0]+=C*x}if(c>=p?c=0:(m[0]+=4*b.v,b.ka=c-b.j,b.U=b.va-b.v,b.T=p-c,c=1),c){if(L=L[0],11>(c=t.ca).S){var W=c.f.RGBA,K=(p=c.S,m=b.U,b=b.T,C=W.eb,W.A),$=b;for(W=W.fb+t.Ma*W.A;0<$--;){var G=A,vt=L,ot=m,Y=C,X=W;switch(p){case Xa:sr(G,vt,ot,Y,X);break;case Ga:er(G,vt,ot,Y,X);break;case Xo:er(G,vt,ot,Y,X),Ar(Y,X,0,ot,1,0);break;case ks:sn(G,vt,ot,Y,X);break;case Ha:Ae(G,vt,ot,Y,X,1);break;case Go:Ae(G,vt,ot,Y,X,1),Ar(Y,X,0,ot,1,0);break;case Ja:Ae(G,vt,ot,Y,X,0);break;case Va:Ae(G,vt,ot,Y,X,0),Ar(Y,X,1,ot,1,0);break;case Yo:bn(G,vt,ot,Y,X);break;case Ho:bn(G,vt,ot,Y,X),be(Y,X,ot,1,0);break;case Fs:on(G,vt,ot,Y,X);break;default:e(0)}L+=x,W+=K}t.Ma+=b}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=c.height)}}t.C=i,e(t.C<=t.i)}function rn(t){var i;if(0<t.ua)return 0;for(i=0;i<t.Wb;++i){var c=t.Ya[i].G,p=t.Ya[i].H;if(0<c[1][p[1]+0].g||0<c[2][p[2]+0].g||0<c[3][p[3]+0].g)return 0}return 1}function kr(t,i,c,p,m,b){if(t.Z!=0){var A=t.qd,L=t.rd;for(e(Nn[t.Z]!=null);i<c;++i)Nn[t.Z](A,L,p,m,p,m,b),A=p,L=m,m+=b;t.qd=A,t.rd=L}}function Fr(t,i){var c=t.l.ma,p=c.Z==0||c.Z==1?t.l.j:t.C;if(p=t.C<p?p:t.C,e(i<=t.l.o),i>p){var m=t.l.width,b=c.ca,A=c.tb+m*p,L=t.V,x=t.Ba+t.c*p,C=t.gc;e(t.ab==1),e(C[0].hc==3),Ra(C[0],p,i,L,x,b,A),kr(c,p,i,b,A,m)}t.C=t.Ma=i}function Cr(t,i,c,p,m,b,A){var L=t.$/p,x=t.$%p,C=t.m,W=t.s,K=c+t.$,$=K;m=c+p*m;var G=c+p*b,vt=280+W.ua,ot=t.Pb?L:16777216,Y=0<W.ua?W.Wa:null,X=W.wc,gt=K<G?Ee(W,x,L):null;e(t.C<b),e(G<=m);var bt=!1;t:for(;;){for(;bt||K<G;){var mt=0;if(L>=ot){var Et=K-c;e((ot=t).Pb),ot.wd=ot.m,ot.xd=Et,0<ot.s.ua&&lt(ot.s.Wa,ot.s.vb),ot=L+Vu}if(x&X||(gt=Ee(W,x,L)),e(gt!=null),gt.Qb&&(i[K]=gt.qb,bt=!0),!bt)if(H(C),gt.jc){mt=C,Et=i;var St=K,Tt=gt.pd[j(mt)&Xe-1];e(gt.jc),256>Tt.g?(U(mt,mt.u+Tt.g),Et[St]=Tt.value,mt=0):(U(mt,mt.u+Tt.g-256),e(256<=Tt.value),mt=Tt.value),mt==0&&(bt=!0)}else mt=ir(gt.G[0],gt.H[0],C);if(C.h)break;if(bt||256>mt){if(!bt)if(gt.nd)i[K]=(gt.qb|mt<<8)>>>0;else{if(H(C),bt=ir(gt.G[1],gt.H[1],C),H(C),Et=ir(gt.G[2],gt.H[2],C),St=ir(gt.G[3],gt.H[3],C),C.h)break;i[K]=(St<<24|bt<<16|mt<<8|Et)>>>0}if(bt=!1,++K,++x>=p&&(x=0,++L,A!=null&&L<=b&&!(L%16)&&A(t,L),Y!=null))for(;$<K;)mt=i[$++],Y.X[(506832829*mt&4294967295)>>>Y.Mb]=mt}else if(280>mt){if(mt=Pr(mt-256,C),Et=ir(gt.G[4],gt.H[4],C),H(C),Et=Yr(p,Et=Pr(Et,C)),C.h)break;if(K-c<Et||m-K<mt)break t;for(St=0;St<mt;++St)i[K+St]=i[K+St-Et];for(K+=mt,x+=mt;x>=p;)x-=p,++L,A!=null&&L<=b&&!(L%16)&&A(t,L);if(e(K<=m),x&X&&(gt=Ee(W,x,L)),Y!=null)for(;$<K;)mt=i[$++],Y.X[(506832829*mt&4294967295)>>>Y.Mb]=mt}else{if(!(mt<vt))break t;for(bt=mt-280,e(Y!=null);$<K;)mt=i[$++],Y.X[(506832829*mt&4294967295)>>>Y.Mb]=mt;mt=K,e(!(bt>>>(Et=Y).Xa)),i[mt]=Et.X[bt],bt=!0}bt||e(C.h==M(C))}if(t.Pb&&C.h&&K<m)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&lt(t.s.vb,t.s.Wa);else{if(C.h)break t;A?.(t,L>b?b:L),t.a=0,t.$=K-c}return 1}return t.a=3,0}function Xr(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 mr(){var t=new zo;return t==null?null:(t.a=0,t.xb=Os,zr("Predictor","VP8LPredictors"),zr("Predictor","VP8LPredictors_C"),zr("PredictorAdd","VP8LPredictorsAdd"),zr("PredictorAdd","VP8LPredictorsAdd_C"),Ta=ie,Un=Yt,sr=jt,er=He,bn=oe,on=Sr,sn=ge,T.VP8LMapColor32b=Ai,T.VP8LMapColor8b=za,t)}function Gr(t,i,c,p,m){var b=1,A=[t],L=[i],x=p.m,C=p.s,W=null,K=0;t:for(;;){if(c)for(;b&&ft(x,1);){var $=A,G=L,vt=p,ot=1,Y=vt.m,X=vt.gc[vt.ab],gt=ft(Y,2);if(vt.Oc&1<<gt)b=0;else{switch(vt.Oc|=1<<gt,X.hc=gt,X.Ea=$[0],X.nc=G[0],X.K=[null],++vt.ab,e(4>=vt.ab),gt){case 0:case 1:X.b=ft(Y,3)+2,ot=Gr(qt(X.Ea,X.b),qt(X.nc,X.b),0,vt,X.K),X.K=X.K[0];break;case 3:var bt,mt=ft(Y,8)+1,Et=16<mt?0:4<mt?1:2<mt?2:3;if($[0]=qt(X.Ea,Et),X.b=Et,bt=ot=Gr(mt,1,0,vt,X.K)){var St,Tt=mt,Pt=X,se=1<<(8>>Pt.b),le=o(se);if(le==null)bt=0;else{var ae=Pt.K[0],re=Pt.w;for(le[0]=Pt.K[0][0],St=1;St<1*Tt;++St)le[St]=At(ae[re+St],le[St-1]);for(;St<4*se;++St)le[St]=0;Pt.K[0]=null,Pt.K[0]=le,bt=1}}ot=bt;break;case 2:break;default:e(0)}b=ot}}if(A=A[0],L=L[0],b&&ft(x,1)&&!(b=1<=(K=ft(x,4))&&11>=K)){p.a=3;break t}var me;if(me=b)e:{var de,Zt,qe,ur=p,De=A,cr=L,fe=K,pr=c,dr=ur.m,Ue=ur.s,Ge=[null],nr=1,xr=0,Kr=Ju[fe];r:for(;;){if(pr&&ft(dr,1)){var We=ft(dr,3)+2,ln=qt(De,We),Hn=qt(cr,We),_i=ln*Hn;if(!Gr(ln,Hn,0,ur,Ge))break r;for(Ge=Ge[0],Ue.xc=We,de=0;de<_i;++de){var Ln=Ge[de]>>8&65535;Ge[de]=Ln,Ln>=nr&&(nr=Ln+1)}}if(dr.h)break r;for(Zt=0;5>Zt;++Zt){var Se=Cs[Zt];!Zt&&0<fe&&(Se+=1<<fe),xr<Se&&(xr=Se)}var $o=h(nr*Kr,k),Rs=nr,zs=h(Rs,B);if(zs==null)var Qa=null;else e(65536>=Rs),Qa=zs;var oa=o(xr);if(Qa==null||oa==null||$o==null){ur.a=1;break r}var to=$o;for(de=qe=0;de<nr;++de){var Mr=Qa[de],Pi=Mr.G,ki=Mr.H,Us=0,eo=1,Ws=0;for(Zt=0;5>Zt;++Zt){Se=Cs[Zt],Pi[Zt]=to,ki[Zt]=qe,!Zt&&0<fe&&(Se+=1<<fe);i:{var ro,Zo=Se,no=ur,sa=oa,gc=to,mc=qe,Qo=0,xn=no.m,vc=ft(xn,1);if(u(sa,0,0,Zo),vc){var bc=ft(xn,1)+1,yc=ft(xn,1),Ys=ft(xn,yc==0?1:8);sa[Ys]=1,bc==2&&(sa[Ys=ft(xn,8)]=1);var io=1}else{var Xs=o(19),Gs=ft(xn,4)+4;if(19<Gs){no.a=3;var ao=0;break i}for(ro=0;ro<Gs;++ro)Xs[Gu[ro]]=ft(xn,3);var ts=void 0,ua=void 0,Hs=no,wc=Xs,oo=Zo,Js=sa,es=0,Sn=Hs.m,Vs=8,Ks=h(128,k);n:for(;P(Ks,0,7,wc,19);){if(ft(Sn,1)){var Ac=2+2*ft(Sn,3);if((ts=2+ft(Sn,Ac))>oo)break n}else ts=oo;for(ua=0;ua<oo&&ts--;){H(Sn);var $s=Ks[0+(127&j(Sn))];U(Sn,Sn.u+$s.g);var Fi=$s.value;if(16>Fi)Js[ua++]=Fi,Fi!=0&&(Vs=Fi);else{var Nc=Fi==16,Zs=Fi-16,Lc=Yu[Zs],Qs=ft(Sn,Wu[Zs])+Lc;if(ua+Qs>oo)break n;for(var xc=Nc?Vs:0;0<Qs--;)Js[ua++]=xc}}es=1;break n}es||(Hs.a=3),io=es}(io=io&&!xn.h)&&(Qo=P(gc,mc,8,sa,Zo)),io&&Qo!=0?ao=Qo:(no.a=3,ao=0)}if(ao==0)break r;if(eo&&Xu[Zt]==1&&(eo=to[qe].g==0),Us+=to[qe].g,qe+=ao,3>=Zt){var ca,rs=oa[0];for(ca=1;ca<Se;++ca)oa[ca]>rs&&(rs=oa[ca]);Ws+=rs}}if(Mr.nd=eo,Mr.Qb=0,eo&&(Mr.qb=(Pi[3][ki[3]+0].value<<24|Pi[1][ki[1]+0].value<<16|Pi[2][ki[2]+0].value)>>>0,Us==0&&256>Pi[0][ki[0]+0].value&&(Mr.Qb=1,Mr.qb+=Pi[0][ki[0]+0].value<<8)),Mr.jc=!Mr.Qb&&6>Ws,Mr.jc){var so,fn=Mr;for(so=0;so<Xe;++so){var _n=so,Pn=fn.pd[_n],uo=fn.G[0][fn.H[0]+_n];256<=uo.value?(Pn.g=uo.g+256,Pn.value=uo.value):(Pn.g=0,Pn.value=0,_n>>=Be(uo,8,Pn),_n>>=Be(fn.G[1][fn.H[1]+_n],16,Pn),_n>>=Be(fn.G[2][fn.H[2]+_n],0,Pn),Be(fn.G[3][fn.H[3]+_n],24,Pn))}}}Ue.vc=Ge,Ue.Wb=nr,Ue.Ya=Qa,Ue.yc=$o,me=1;break e}me=0}if(!(b=me)){p.a=3;break t}if(0<K){if(C.ua=1<<K,!Ut(C.Wa,K)){p.a=1,b=0;break t}}else C.ua=0;var ns=p,tu=A,Sc=L,is=ns.s,as=is.xc;if(ns.c=tu,ns.i=Sc,is.md=qt(tu,as),is.wc=as==0?-1:(1<<as)-1,c){p.xb=rc;break t}if((W=o(A*L))==null){p.a=1,b=0;break t}b=(b=Cr(p,W,0,A,L,L,null))&&!x.h;break t}return b?(m!=null?m[0]=W:(e(W==null),e(c)),p.$=0,c||Xr(C)):Xr(C),b}function Dn(t,i){var c=t.c*t.i,p=c+i+16*i;return e(t.c<=i),t.V=o(p),t.V==null?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+c+i,1)}function ri(t,i){var c=t.C,p=i-c,m=t.V,b=t.Ba+t.c*c;for(e(i<=t.l.o);0<p;){var A=16<p?16:p,L=t.l.ma,x=t.l.width,C=x*A,W=L.ca,K=L.tb+x*c,$=t.Ta,G=t.Ua;lr(t,A,m,b),Ce($,G,W,K,C),kr(L,c,c+A,W,K,x),p-=A,m+=A*t.c,c+=A}e(c==i),t.C=t.Ma=i}function ni(){this.ub=this.yd=this.td=this.Rb=0}function ii(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ai(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function ya(){this.Yb=function(){var t=[];return function i(c,p,m){for(var b=m[p],A=0;A<b&&(c.push(m.length>p+1?[]:0),!(m.length<p+1));A++)i(c[A],p+1,m)}(t,0,[3,11]),t}()}function bo(){this.jb=o(3),this.Wc=l([4,8],ya),this.Xc=l([4,17],ya)}function yo(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function oi(){this.ld=this.La=this.dd=this.tc=0}function wa(){this.Na=this.la=0}function wo(){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 Ao(){this.uc=this.M=this.Nb=0,this.wa=Array(new oi),this.Y=0,this.ya=Array(new Ei),this.aa=0,this.l=new si}function Aa(){this.y=o(16),this.f=o(8),this.ea=o(8)}function No(){this.cb=this.a=0,this.sc="",this.m=new Ot,this.Od=new ni,this.Kc=new ii,this.ed=new yo,this.Qa=new ai,this.Ic=this.$c=this.Aa=0,this.D=new Ao,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=h(8,Ot),this.ia=0,this.pb=h(4,wo),this.Pa=new bo,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 wa),this.sb=0,this.wa=Array(new oi),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=l([4,2],oi),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 si(){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 Lo(){var t=new No;return t!=null&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,ia||(ia=xa)),t}function Pe(t,i,c){return t.a==0&&(t.a=i,t.sc=c,t.cb=0),0}function Na(t,i,c){return 3<=c&&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 Pe(t,2,"null VP8Io passed to VP8GetHeaders()");var c=i.data,p=i.w,m=i.ha;if(4>m)return Pe(t,7,"Truncated header.");var b=c[p+0]|c[p+1]<<8|c[p+2]<<16,A=t.Od;if(A.Rb=!(1&b),A.td=b>>1&7,A.yd=b>>4&1,A.ub=b>>5,3<A.td)return Pe(t,3,"Incorrect keyframe parameters.");if(!A.yd)return Pe(t,4,"Frame not displayable.");p+=3,m-=3;var L=t.Kc;if(A.Rb){if(7>m)return Pe(t,7,"cannot parse picture header");if(!Na(c,p,m))return Pe(t,3,"Bad code word");L.c=16383&(c[p+4]<<8|c[p+3]),L.Td=c[p+4]>>6,L.i=16383&(c[p+6]<<8|c[p+5]),L.Ud=c[p+6]>>6,p+=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,u((b=t.Pa).jb,0,255,b.jb.length),e((b=t.Qa)!=null),b.Cb=0,b.Bb=0,b.Fb=1,u(b.Zb,0,0,b.Zb.length),u(b.Lb,0,0,b.Lb)}if(A.ub>m)return Pe(t,7,"bad partition length");at(b=t.m,c,p,A.ub),p+=A.ub,m-=A.ub,A.Rb&&(L.Ld=et(b),L.Kd=et(b)),L=t.Qa;var x,C=t.Pa;if(e(b!=null),e(L!=null),L.Cb=et(b),L.Cb){if(L.Bb=et(b),et(b)){for(L.Fb=et(b),x=0;4>x;++x)L.Zb[x]=et(b)?ut(b,7):0;for(x=0;4>x;++x)L.Lb[x]=et(b)?ut(b,6):0}if(L.Bb)for(x=0;3>x;++x)C.jb[x]=et(b)?it(b,8):255}else L.Bb=0;if(b.Ka)return Pe(t,3,"cannot parse segment header");if((L=t.ed).zd=et(b),L.Tb=it(b,6),L.wb=it(b,3),L.Pc=et(b),L.Pc&&et(b)){for(C=0;4>C;++C)et(b)&&(L.vd[C]=ut(b,6));for(C=0;4>C;++C)et(b)&&(L.od[C]=ut(b,6))}if(t.L=L.Tb==0?0:L.zd?1:2,b.Ka)return Pe(t,3,"cannot parse filter header");var W=m;if(m=x=p,p=x+W,L=W,t.Xb=(1<<it(t.m,2))-1,W<3*(C=t.Xb))c=7;else{for(x+=3*C,L-=3*C,W=0;W<C;++W){var K=c[m+0]|c[m+1]<<8|c[m+2]<<16;K>L&&(K=L),at(t.Jc[+W],c,x,K),x+=K,L-=K,m+=3}at(t.Jc[+C],c,x,L),c=x<p?0:5}if(c!=0)return Pe(t,c,"cannot parse partitions");for(c=it(x=t.m,7),m=et(x)?ut(x,4):0,p=et(x)?ut(x,4):0,L=et(x)?ut(x,4):0,C=et(x)?ut(x,4):0,x=et(x)?ut(x,4):0,W=t.Qa,K=0;4>K;++K){if(W.Cb){var $=W.Zb[K];W.Fb||($+=c)}else{if(0<K){t.pb[K]=t.pb[0];continue}$=c}var G=t.pb[K];G.Sc[0]=Jo[vr($+m,127)],G.Sc[1]=Vo[vr($+0,127)],G.Eb[0]=2*Jo[vr($+p,127)],G.Eb[1]=101581*Vo[vr($+L,127)]>>16,8>G.Eb[1]&&(G.Eb[1]=8),G.Qc[0]=Jo[vr($+C,117)],G.Qc[1]=Vo[vr($+x,127)],G.lc=$+x}if(!A.Rb)return Pe(t,4,"Not a key frame.");for(et(b),A=t.Pa,c=0;4>c;++c){for(m=0;8>m;++m)for(p=0;3>p;++p)for(L=0;11>L;++L)C=rt(b,tc[c][m][p][L])?it(b,8):Zu[c][m][p][L],A.Wc[c][m].Yb[p][L]=C;for(m=0;17>m;++m)A.Xc[c][m]=A.Wc[c][ec[m]]}return t.kc=et(b),t.kc&&(t.Bd=it(b,8)),t.cb=1}function xa(t,i,c,p,m,b,A){var L=i[m].Yb[c];for(c=0;16>m;++m){if(!rt(t,L[c+0]))return m;for(;!rt(t,L[c+1]);)if(L=i[++m].Yb[0],c=0,m==16)return 16;var x=i[m+1].Yb;if(rt(t,L[c+2])){var C=t,W=0;if(rt(C,($=L)[(K=c)+3]))if(rt(C,$[K+6])){for(L=0,K=2*(W=rt(C,$[K+8]))+($=rt(C,$[K+9+W])),W=0,$=Ku[K];$[L];++L)W+=W+rt(C,$[L]);W+=3+(8<<K)}else rt(C,$[K+7])?(W=7+2*rt(C,165),W+=rt(C,145)):W=5+rt(C,159);else W=rt(C,$[K+4])?3+rt(C,$[K+5]):2;L=x[2]}else W=1,L=x[1];x=A+$u[m],0>(C=t).b&&Q(C);var K,$=C.b,G=(K=C.Ca>>1)-(C.I>>$)>>31;--C.b,C.Ca+=G,C.Ca|=1,C.I-=(K+1&G)<<$,b[x]=((W^G)-G)*p[(0<m)+0]}return 16}function Mi(t){var i=t.rb[t.sb-1];i.la=0,i.Na=0,u(t.zc,0,0,t.zc.length),t.ja=0}function xo(t,i){if(t==null)return 0;if(i==null)return Pe(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 c=Za[t.L];if(t.L==2?(t.yb=0,t.zb=0):(t.yb=i.v-c>>4,t.zb=i.j-c>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=i.o+15+c>>4,t.Hb=i.va+15+c>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var p=t.ed;for(c=0;4>c;++c){var m;if(t.Qa.Cb){var b=t.Qa.Lb[c];t.Qa.Fb||(b+=p.Tb)}else b=p.Tb;for(m=0;1>=m;++m){var A=t.gd[c][m],L=b;if(p.Pc&&(L+=p.vd[0],m&&(L+=p.od[0])),0<(L=0>L?0:63<L?63:L)){var x=L;0<p.wb&&(x=4<p.wb?x>>2:x>>1)>9-p.wb&&(x=9-p.wb),1>x&&(x=1),A.dd=x,A.tc=2*L+x,A.ld=40<=L?2:15<=L?1:0}else A.tc=0;A.La=m}}}c=0}else Pe(t,6,"Frame setup failed"),c=t.a;if(c=c==0){if(c){t.$c=0,0<t.Aa||(t.Ic=dc);t:{c=t.Ic,p=4*(x=t.za);var C=32*x,W=x+1,K=0<t.L?x*(0<t.Aa?2:1):0,$=(t.Aa==2?2:1)*x;if((A=p+832+(m=3*(16*c+Za[t.L])/2*C)+(b=t.Fa!=null&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=A)c=0;else{if(A>t.Vb){if(t.Vb=0,t.Ec=o(A),t.Fc=0,t.Ec==null){c=Pe(t,1,"no memory during frame initialization.");break t}t.Vb=A}A=t.Ec,L=t.Fc,t.Ac=A,t.Bc=L,L+=p,t.Gd=h(C,Aa),t.Hd=0,t.rb=h(W+1,wa),t.sb=1,t.wa=K?h(K,oi):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=A,t.pc=L,L+=832,t.ya=h($,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=(C=Za[t.L])*t.R,C=C/2*t.B,t.sa=A,t.ta=L+x,t.qa=t.sa,t.ra=t.ta+16*c*t.R+C,t.Ha=t.qa,t.Ia=t.ra+8*c*t.B+C,t.$c=0,L+=m,t.mb=b?A:null,t.nb=b?L:null,e(L+b<=t.Fc+t.Vb),Mi(t),u(t.Ac,t.Bc,0,p),c=1}}if(c){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,!Wa){for(c=-255;255>=c;++c)Te[255+c]=0>c?-c:c;for(c=-1020;1020>=c;++c)cn[1020+c]=-128>c?-128:127<c?127:c;for(c=-112;112>=c;++c)na[112+c]=-16>c?-16:15<c?15:c;for(c=-255;510>=c;++c)Si[255+c]=0>c?0:255<c?255:c;Wa=1}Ni=Po,un=So,ta=_a,rr=_o,yr=Pa,Fe=Sa,Li=zi,Ua=Rn,ea=Ro,Wn=Ui,Yn=To,yn=pi,Xn=Wi,xi=qa,Gn=Ma,wn=Jr,ra=an,wr=Bo,Er[0]=Hr,Er[1]=ko,Er[2]=Oo,Er[3]=Io,Er[4]=Ca,Er[5]=li,Er[6]=ja,Er[7]=Bi,Er[8]=Mo,Er[9]=Eo,An[0]=ka,An[1]=Co,An[2]=nn,An[3]=ci,An[4]=Je,An[5]=jo,An[6]=Fa,hn[0]=dn,hn[1]=Fo,hn[2]=qo,hn[3]=Ti,hn[4]=Tn,hn[5]=Do,hn[6]=Ri,c=1}else c=0}c&&(c=function(G,vt){for(G.M=0;G.M<G.Va;++G.M){var ot,Y=G.Jc[G.M&G.Xb],X=G.m,gt=G;for(ot=0;ot<gt.za;++ot){var bt=X,mt=gt,Et=mt.Ac,St=mt.Bc+4*ot,Tt=mt.zc,Pt=mt.ya[mt.aa+ot];if(mt.Qa.Bb?Pt.$b=rt(bt,mt.Pa.jb[0])?2+rt(bt,mt.Pa.jb[2]):rt(bt,mt.Pa.jb[1]):Pt.$b=0,mt.kc&&(Pt.Ad=rt(bt,mt.Bd)),Pt.Za=!rt(bt,145)+0,Pt.Za){var se=Pt.Ob,le=0;for(mt=0;4>mt;++mt){var ae,re=Tt[0+mt];for(ae=0;4>ae;++ae){re=Qu[Et[St+ae]][re];for(var me=js[rt(bt,re[0])];0<me;)me=js[2*me+rt(bt,re[me])];re=-me,Et[St+ae]=re}a(se,le,Et,St,4),le+=4,Tt[0+mt]=re}}else re=rt(bt,156)?rt(bt,128)?1:3:rt(bt,163)?2:0,Pt.Ob[0]=re,u(Et,St,re,4),u(Tt,0,re,4);Pt.Dd=rt(bt,142)?rt(bt,114)?rt(bt,183)?1:3:2:0}if(gt.m.Ka)return Pe(G,7,"Premature end-of-partition0 encountered.");for(;G.ja<G.za;++G.ja){if(gt=Y,bt=(X=G).rb[X.sb-1],Et=X.rb[X.sb+X.ja],ot=X.ya[X.aa+X.ja],St=X.kc?ot.Ad:0)bt.la=Et.la=0,ot.Za||(bt.Na=Et.Na=0),ot.Hc=0,ot.Gc=0,ot.ia=0;else{var de,Zt;if(bt=Et,Et=gt,St=X.Pa.Xc,Tt=X.ya[X.aa+X.ja],Pt=X.pb[Tt.$b],mt=Tt.ad,se=0,le=X.rb[X.sb-1],re=ae=0,u(mt,se,0,384),Tt.Za)var qe=0,ur=St[3];else{me=o(16);var De=bt.Na+le.Na;if(De=ia(Et,St[1],De,Pt.Eb,0,me,0),bt.Na=le.Na=(0<De)+0,1<De)Ni(me,0,mt,se);else{var cr=me[0]+3>>3;for(me=0;256>me;me+=16)mt[se+me]=cr}qe=1,ur=St[0]}var fe=15&bt.la,pr=15&le.la;for(me=0;4>me;++me){var dr=1&pr;for(cr=Zt=0;4>cr;++cr)fe=fe>>1|(dr=(De=ia(Et,ur,De=dr+(1&fe),Pt.Sc,qe,mt,se))>qe)<<7,Zt=Zt<<2|(3<De?3:1<De?2:mt[se+0]!=0),se+=16;fe>>=4,pr=pr>>1|dr<<7,ae=(ae<<8|Zt)>>>0}for(ur=fe,qe=pr>>4,de=0;4>de;de+=2){for(Zt=0,fe=bt.la>>4+de,pr=le.la>>4+de,me=0;2>me;++me){for(dr=1&pr,cr=0;2>cr;++cr)De=dr+(1&fe),fe=fe>>1|(dr=0<(De=ia(Et,St[2],De,Pt.Qc,0,mt,se)))<<3,Zt=Zt<<2|(3<De?3:1<De?2:mt[se+0]!=0),se+=16;fe>>=2,pr=pr>>1|dr<<5}re|=Zt<<4*de,ur|=fe<<4<<de,qe|=(240&pr)<<de}bt.la=ur,le.la=qe,Tt.Hc=ae,Tt.Gc=re,Tt.ia=43690&re?0:Pt.ia,St=!(ae|re)}if(0<X.L&&(X.wa[X.Y+X.ja]=X.gd[ot.$b][ot.Za],X.wa[X.Y+X.ja].La|=!St),gt.Ka)return Pe(G,7,"Premature end-of-file encountered.")}if(Mi(G),X=vt,gt=1,ot=(Y=G).D,bt=0<Y.L&&Y.M>=Y.zb&&Y.M<=Y.Va,Y.Aa==0)t:{if(ot.M=Y.M,ot.uc=bt,Vi(Y,ot),gt=1,ot=(Zt=Y.D).Nb,bt=(re=Za[Y.L])*Y.R,Et=re/2*Y.B,me=16*ot*Y.R,cr=8*ot*Y.B,St=Y.sa,Tt=Y.ta-bt+me,Pt=Y.qa,mt=Y.ra-Et+cr,se=Y.Ha,le=Y.Ia-Et+cr,pr=(fe=Zt.M)==0,ae=fe>=Y.Va-1,Y.Aa==2&&Vi(Y,Zt),Zt.uc)for(dr=(De=Y).D.M,e(De.D.uc),Zt=De.yb;Zt<De.Hb;++Zt){qe=Zt,ur=dr;var Ue=(Ge=(Se=De).D).Nb;de=Se.R;var Ge=Ge.wa[Ge.Y+qe],nr=Se.sa,xr=Se.ta+16*Ue*de+16*qe,Kr=Ge.dd,We=Ge.tc;if(We!=0)if(e(3<=We),Se.L==1)0<qe&&wn(nr,xr,de,We+4),Ge.La&&wr(nr,xr,de,We),0<ur&&Gn(nr,xr,de,We+4),Ge.La&&ra(nr,xr,de,We);else{var ln=Se.B,Hn=Se.qa,_i=Se.ra+8*Ue*ln+8*qe,Ln=Se.Ha,Se=Se.Ia+8*Ue*ln+8*qe;Ue=Ge.ld,0<qe&&(Ua(nr,xr,de,We+4,Kr,Ue),Wn(Hn,_i,Ln,Se,ln,We+4,Kr,Ue)),Ge.La&&(yn(nr,xr,de,We,Kr,Ue),xi(Hn,_i,Ln,Se,ln,We,Kr,Ue)),0<ur&&(Li(nr,xr,de,We+4,Kr,Ue),ea(Hn,_i,Ln,Se,ln,We+4,Kr,Ue)),Ge.La&&(Yn(nr,xr,de,We,Kr,Ue),Xn(Hn,_i,Ln,Se,ln,We,Kr,Ue))}}if(Y.ia&&alert("todo:DitherRow"),X.put!=null){if(Zt=16*fe,fe=16*(fe+1),pr?(X.y=Y.sa,X.O=Y.ta+me,X.f=Y.qa,X.N=Y.ra+cr,X.ea=Y.Ha,X.W=Y.Ia+cr):(Zt-=re,X.y=St,X.O=Tt,X.f=Pt,X.N=mt,X.ea=se,X.W=le),ae||(fe-=re),fe>X.o&&(fe=X.o),X.F=null,X.J=null,Y.Fa!=null&&0<Y.Fa.length&&Zt<fe&&(X.J=Hi(Y,X,Zt,fe-Zt),X.F=Y.mb,X.F==null&&X.F.length==0)){gt=Pe(Y,3,"Could not decode alpha data.");break t}Zt<X.j&&(re=X.j-Zt,Zt=X.j,e(!(1&re)),X.O+=Y.R*re,X.N+=Y.B*(re>>1),X.W+=Y.B*(re>>1),X.F!=null&&(X.J+=X.width*re)),Zt<fe&&(X.O+=X.v,X.N+=X.v>>1,X.W+=X.v>>1,X.F!=null&&(X.J+=X.v),X.ka=Zt-X.j,X.U=X.va-X.v,X.T=fe-Zt,gt=X.put(X))}ot+1!=Y.Ic||ae||(a(Y.sa,Y.ta-bt,St,Tt+16*Y.R,bt),a(Y.qa,Y.ra-Et,Pt,mt+8*Y.B,Et),a(Y.Ha,Y.Ia-Et,se,le+8*Y.B,Et))}if(!gt)return Pe(G,6,"Output aborted.")}return 1}(t,i)),i.bc!=null&&i.bc(i),c&=1}return c?(t.cb=0,c):0}function jr(t,i,c,p,m){m=t[i+c+32*p]+(m>>3),t[i+c+32*p]=-256&m?0>m?0:255:m}function ui(t,i,c,p,m,b){jr(t,i,0,c,p+m),jr(t,i,1,c,p+b),jr(t,i,2,c,p-b),jr(t,i,3,c,p-m)}function ar(t){return(20091*t>>16)+t}function qi(t,i,c,p){var m,b=0,A=o(16);for(m=0;4>m;++m){var L=t[i+0]+t[i+8],x=t[i+0]-t[i+8],C=(35468*t[i+4]>>16)-ar(t[i+12]),W=ar(t[i+4])+(35468*t[i+12]>>16);A[b+0]=L+W,A[b+1]=x+C,A[b+2]=x-C,A[b+3]=L-W,b+=4,i++}for(m=b=0;4>m;++m)L=(t=A[b+0]+4)+A[b+8],x=t-A[b+8],C=(35468*A[b+4]>>16)-ar(A[b+12]),jr(c,p,0,0,L+(W=ar(A[b+4])+(35468*A[b+12]>>16))),jr(c,p,1,0,x+C),jr(c,p,2,0,x-C),jr(c,p,3,0,L-W),b++,p+=32}function Sa(t,i,c,p){var m=t[i+0]+4,b=35468*t[i+4]>>16,A=ar(t[i+4]),L=35468*t[i+1]>>16;ui(c,p,0,m+A,t=ar(t[i+1]),L),ui(c,p,1,m+b,t,L),ui(c,p,2,m-b,t,L),ui(c,p,3,m-A,t,L)}function So(t,i,c,p,m){qi(t,i,c,p),m&&qi(t,i+16,c,p+4)}function _a(t,i,c,p){un(t,i+0,c,p,1),un(t,i+32,c,p+128,1)}function _o(t,i,c,p){var m;for(t=t[i+0]+4,m=0;4>m;++m)for(i=0;4>i;++i)jr(c,p,i,m,t)}function Pa(t,i,c,p){t[i+0]&&rr(t,i+0,c,p),t[i+16]&&rr(t,i+16,c,p+4),t[i+32]&&rr(t,i+32,c,p+128),t[i+48]&&rr(t,i+48,c,p+128+4)}function Po(t,i,c,p){var m,b=o(16);for(m=0;4>m;++m){var A=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],C=t[i+0+m]-t[i+12+m];b[0+m]=A+L,b[8+m]=A-L,b[4+m]=C+x,b[12+m]=C-x}for(m=0;4>m;++m)A=(t=b[0+4*m]+3)+b[3+4*m],L=b[1+4*m]+b[2+4*m],x=b[1+4*m]-b[2+4*m],C=t-b[3+4*m],c[p+0]=A+L>>3,c[p+16]=C+x>>3,c[p+32]=A-L>>3,c[p+48]=C-x>>3,p+=64}function Di(t,i,c){var p,m=i-32,b=fr,A=255-t[m-1];for(p=0;p<c;++p){var L,x=b,C=A+t[i-1];for(L=0;L<c;++L)t[i+L]=x[C+t[m+L]];i+=32}}function ko(t,i){Di(t,i,4)}function Fo(t,i){Di(t,i,8)}function Co(t,i){Di(t,i,16)}function nn(t,i){var c;for(c=0;16>c;++c)a(t,i+32*c,t,i-32,16)}function ci(t,i){var c;for(c=16;0<c;--c)u(t,i,t[i-1],16),i+=32}function hi(t,i,c){var p;for(p=0;16>p;++p)u(i,c+32*p,t,16)}function ka(t,i){var c,p=16;for(c=0;16>c;++c)p+=t[i-1+32*c]+t[i+c-32];hi(p>>5,t,i)}function Je(t,i){var c,p=8;for(c=0;16>c;++c)p+=t[i-1+32*c];hi(p>>4,t,i)}function jo(t,i){var c,p=8;for(c=0;16>c;++c)p+=t[i+c-32];hi(p>>4,t,i)}function Fa(t,i){hi(128,t,i)}function Xt(t,i,c){return t+2*i+c+2>>2}function Oo(t,i){var c,p=i-32;for(p=new Uint8Array([Xt(t[p-1],t[p+0],t[p+1]),Xt(t[p+0],t[p+1],t[p+2]),Xt(t[p+1],t[p+2],t[p+3]),Xt(t[p+2],t[p+3],t[p+4])]),c=0;4>c;++c)a(t,i+32*c,p,0,p.length)}function Io(t,i){var c=t[i-1],p=t[i-1+32],m=t[i-1+64],b=t[i-1+96];Lt(t,i+0,16843009*Xt(t[i-1-32],c,p)),Lt(t,i+32,16843009*Xt(c,p,m)),Lt(t,i+64,16843009*Xt(p,m,b)),Lt(t,i+96,16843009*Xt(m,b,b))}function Hr(t,i){var c,p=4;for(c=0;4>c;++c)p+=t[i+c-32]+t[i-1+32*c];for(p>>=3,c=0;4>c;++c)u(t,i+32*c,p,4)}function Ca(t,i){var c=t[i-1+0],p=t[i-1+32],m=t[i-1+64],b=t[i-1-32],A=t[i+0-32],L=t[i+1-32],x=t[i+2-32],C=t[i+3-32];t[i+0+96]=Xt(p,m,t[i-1+96]),t[i+1+96]=t[i+0+64]=Xt(c,p,m),t[i+2+96]=t[i+1+64]=t[i+0+32]=Xt(b,c,p),t[i+3+96]=t[i+2+64]=t[i+1+32]=t[i+0+0]=Xt(A,b,c),t[i+3+64]=t[i+2+32]=t[i+1+0]=Xt(L,A,b),t[i+3+32]=t[i+2+0]=Xt(x,L,A),t[i+3+0]=Xt(C,x,L)}function ja(t,i){var c=t[i+1-32],p=t[i+2-32],m=t[i+3-32],b=t[i+4-32],A=t[i+5-32],L=t[i+6-32],x=t[i+7-32];t[i+0+0]=Xt(t[i+0-32],c,p),t[i+1+0]=t[i+0+32]=Xt(c,p,m),t[i+2+0]=t[i+1+32]=t[i+0+64]=Xt(p,m,b),t[i+3+0]=t[i+2+32]=t[i+1+64]=t[i+0+96]=Xt(m,b,A),t[i+3+32]=t[i+2+64]=t[i+1+96]=Xt(b,A,L),t[i+3+64]=t[i+2+96]=Xt(A,L,x),t[i+3+96]=Xt(L,x,x)}function li(t,i){var c=t[i-1+0],p=t[i-1+32],m=t[i-1+64],b=t[i-1-32],A=t[i+0-32],L=t[i+1-32],x=t[i+2-32],C=t[i+3-32];t[i+0+0]=t[i+1+64]=b+A+1>>1,t[i+1+0]=t[i+2+64]=A+L+1>>1,t[i+2+0]=t[i+3+64]=L+x+1>>1,t[i+3+0]=x+C+1>>1,t[i+0+96]=Xt(m,p,c),t[i+0+64]=Xt(p,c,b),t[i+0+32]=t[i+1+96]=Xt(c,b,A),t[i+1+32]=t[i+2+96]=Xt(b,A,L),t[i+2+32]=t[i+3+96]=Xt(A,L,x),t[i+3+32]=Xt(L,x,C)}function Bi(t,i){var c=t[i+0-32],p=t[i+1-32],m=t[i+2-32],b=t[i+3-32],A=t[i+4-32],L=t[i+5-32],x=t[i+6-32],C=t[i+7-32];t[i+0+0]=c+p+1>>1,t[i+1+0]=t[i+0+64]=p+m+1>>1,t[i+2+0]=t[i+1+64]=m+b+1>>1,t[i+3+0]=t[i+2+64]=b+A+1>>1,t[i+0+32]=Xt(c,p,m),t[i+1+32]=t[i+0+96]=Xt(p,m,b),t[i+2+32]=t[i+1+96]=Xt(m,b,A),t[i+3+32]=t[i+2+96]=Xt(b,A,L),t[i+3+64]=Xt(A,L,x),t[i+3+96]=Xt(L,x,C)}function Eo(t,i){var c=t[i-1+0],p=t[i-1+32],m=t[i-1+64],b=t[i-1+96];t[i+0+0]=c+p+1>>1,t[i+2+0]=t[i+0+32]=p+m+1>>1,t[i+2+32]=t[i+0+64]=m+b+1>>1,t[i+1+0]=Xt(c,p,m),t[i+3+0]=t[i+1+32]=Xt(p,m,b),t[i+3+32]=t[i+1+64]=Xt(m,b,b),t[i+3+64]=t[i+2+64]=t[i+0+96]=t[i+1+96]=t[i+2+96]=t[i+3+96]=b}function Mo(t,i){var c=t[i-1+0],p=t[i-1+32],m=t[i-1+64],b=t[i-1+96],A=t[i-1-32],L=t[i+0-32],x=t[i+1-32],C=t[i+2-32];t[i+0+0]=t[i+2+32]=c+A+1>>1,t[i+0+32]=t[i+2+64]=p+c+1>>1,t[i+0+64]=t[i+2+96]=m+p+1>>1,t[i+0+96]=b+m+1>>1,t[i+3+0]=Xt(L,x,C),t[i+2+0]=Xt(A,L,x),t[i+1+0]=t[i+3+32]=Xt(c,A,L),t[i+1+32]=t[i+3+64]=Xt(p,c,A),t[i+1+64]=t[i+3+96]=Xt(m,p,c),t[i+1+96]=Xt(b,m,p)}function qo(t,i){var c;for(c=0;8>c;++c)a(t,i+32*c,t,i-32,8)}function Ti(t,i){var c;for(c=0;8>c;++c)u(t,i,t[i-1],8),i+=32}function Bn(t,i,c){var p;for(p=0;8>p;++p)u(i,c+32*p,t,8)}function dn(t,i){var c,p=8;for(c=0;8>c;++c)p+=t[i+c-32]+t[i-1+32*c];Bn(p>>4,t,i)}function Do(t,i){var c,p=4;for(c=0;8>c;++c)p+=t[i+c-32];Bn(p>>3,t,i)}function Tn(t,i){var c,p=4;for(c=0;8>c;++c)p+=t[i-1+32*c];Bn(p>>3,t,i)}function Ri(t,i){Bn(128,t,i)}function fi(t,i,c){var p=t[i-c],m=t[i+0],b=3*(m-p)+Wo[1020+t[i-2*c]-t[i+c]],A=Ya[112+(b+4>>3)];t[i-c]=fr[255+p+Ya[112+(b+3>>3)]],t[i+0]=fr[255+m-A]}function Oa(t,i,c,p){var m=t[i+0],b=t[i+c];return Nr[255+t[i-2*c]-t[i-c]]>p||Nr[255+b-m]>p}function Ia(t,i,c,p){return 4*Nr[255+t[i-c]-t[i+0]]+Nr[255+t[i-2*c]-t[i+c]]<=p}function Ea(t,i,c,p,m){var b=t[i-3*c],A=t[i-2*c],L=t[i-c],x=t[i+0],C=t[i+c],W=t[i+2*c],K=t[i+3*c];return 4*Nr[255+L-x]+Nr[255+A-C]>p?0:Nr[255+t[i-4*c]-b]<=m&&Nr[255+b-A]<=m&&Nr[255+A-L]<=m&&Nr[255+K-W]<=m&&Nr[255+W-C]<=m&&Nr[255+C-x]<=m}function Ma(t,i,c,p){var m=2*p+1;for(p=0;16>p;++p)Ia(t,i+p,c,m)&&fi(t,i+p,c)}function Jr(t,i,c,p){var m=2*p+1;for(p=0;16>p;++p)Ia(t,i+p*c,1,m)&&fi(t,i+p*c,1)}function an(t,i,c,p){var m;for(m=3;0<m;--m)Ma(t,i+=4*c,c,p)}function Bo(t,i,c,p){var m;for(m=3;0<m;--m)Jr(t,i+=4,c,p)}function gn(t,i,c,p,m,b,A,L){for(b=2*b+1;0<m--;){if(Ea(t,i,c,b,A))if(Oa(t,i,c,L))fi(t,i,c);else{var x=t,C=i,W=c,K=x[C-2*W],$=x[C-W],G=x[C+0],vt=x[C+W],ot=x[C+2*W],Y=27*(gt=Wo[1020+3*(G-$)+Wo[1020+K-vt]])+63>>7,X=18*gt+63>>7,gt=9*gt+63>>7;x[C-3*W]=fr[255+x[C-3*W]+gt],x[C-2*W]=fr[255+K+X],x[C-W]=fr[255+$+Y],x[C+0]=fr[255+G-Y],x[C+W]=fr[255+vt-X],x[C+2*W]=fr[255+ot-gt]}i+=p}}function Or(t,i,c,p,m,b,A,L){for(b=2*b+1;0<m--;){if(Ea(t,i,c,b,A))if(Oa(t,i,c,L))fi(t,i,c);else{var x=t,C=i,W=c,K=x[C-W],$=x[C+0],G=x[C+W],vt=Ya[112+((ot=3*($-K))+4>>3)],ot=Ya[112+(ot+3>>3)],Y=vt+1>>1;x[C-2*W]=fr[255+x[C-2*W]+Y],x[C-W]=fr[255+K+ot],x[C+0]=fr[255+$-vt],x[C+W]=fr[255+G-Y]}i+=p}}function zi(t,i,c,p,m,b){gn(t,i,c,1,16,p,m,b)}function Rn(t,i,c,p,m,b){gn(t,i,1,c,16,p,m,b)}function To(t,i,c,p,m,b){var A;for(A=3;0<A;--A)Or(t,i+=4*c,c,1,16,p,m,b)}function pi(t,i,c,p,m,b){var A;for(A=3;0<A;--A)Or(t,i+=4,1,c,16,p,m,b)}function Ro(t,i,c,p,m,b,A,L){gn(t,i,m,1,8,b,A,L),gn(c,p,m,1,8,b,A,L)}function Ui(t,i,c,p,m,b,A,L){gn(t,i,1,m,8,b,A,L),gn(c,p,1,m,8,b,A,L)}function Wi(t,i,c,p,m,b,A,L){Or(t,i+4*m,m,1,8,b,A,L),Or(c,p+4*m,m,1,8,b,A,L)}function qa(t,i,c,p,m,b,A,L){Or(t,i+4,1,m,8,b,A,L),Or(c,p+4,1,m,8,b,A,L)}function di(){this.ba=new _r,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new xe,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Yi(){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 Xi(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Da(){this.ua=0,this.Wa=new q,this.vb=new q,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new B,this.yc=new k}function zo(){this.xb=this.a=0,this.l=new si,this.ca=new _r,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new N,this.Pb=0,this.wd=new N,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Da,this.ab=0,this.gc=h(4,Xi),this.Oc=0}function gi(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new si,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function zn(t,i,c,p,m,b,A){for(t=t==null?0:t[i+0],i=0;i<A;++i)m[b+i]=t+c[p+i]&255,t=m[b+i]}function Gi(t,i,c,p,m,b,A){var L;if(t==null)zn(null,null,c,p,m,b,A);else for(L=0;L<A;++L)m[b+L]=t[i+L]+c[p+L]&255}function mn(t,i,c,p,m,b,A){if(t==null)zn(null,null,c,p,m,b,A);else{var L,x=t[i+0],C=x,W=x;for(L=0;L<A;++L)C=W+(x=t[i+L])-C,W=c[p+L]+(-256&C?0>C?0:255:C)&255,C=x,m[b+L]=W}}function Hi(t,i,c,p){var m=i.width,b=i.o;if(e(t!=null&&i!=null),0>c||0>=p||c+p>b)return null;if(!t.Cc){if(t.ga==null){var A;if(t.ga=new gi,(A=t.ga==null)||(A=i.width*i.o,e(t.Gb.length==0),t.Gb=o(A),t.Uc=0,t.Gb==null?A=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,A=1),A=!A),!A){A=t.ga;var L=t.Fa,x=t.P,C=t.qc,W=t.mb,K=t.nb,$=x+1,G=C-1,vt=A.l;if(e(L!=null&&W!=null&&i!=null),Nn[0]=null,Nn[1]=zn,Nn[2]=Gi,Nn[3]=mn,A.ca=W,A.tb=K,A.c=i.width,A.i=i.height,e(0<A.c&&0<A.i),1>=C)i=0;else if(A.$a=L[x+0]>>0&3,A.Z=L[x+0]>>2&3,A.Lc=L[x+0]>>4&3,x=L[x+0]>>6&3,0>A.$a||1<A.$a||4<=A.Z||1<A.Lc||x)i=0;else if(vt.put=Ur,vt.ac=Ye,vt.bc=Wr,vt.ma=A,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,A.$a)t:{e(A.$a==1),i=mr();e:for(;;){if(i==null){i=0;break t}if(e(A!=null),A.mc=i,i.c=A.c,i.i=A.i,i.l=A.l,i.l.ma=A,i.l.width=A.c,i.l.height=A.i,i.a=0,Z(i.m,L,$,G),!Gr(A.c,A.i,1,i,null)||(i.ab==1&&i.gc[0].hc==3&&rn(i.s)?(A.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):(A.ic=0,i=Dn(i,A.c)),!i))break e;i=1;break t}A.mc=null,i=0}else i=G>=A.c*A.i;A=!i}if(A)return null;t.ga.Lc!=1?t.Ga=0:p=b-c}e(t.ga!=null),e(c+p<=b);t:{if(i=(L=t.ga).c,b=L.l.o,L.$a==0){if($=t.rc,G=t.Vc,vt=t.Fa,x=t.P+1+c*i,C=t.mb,W=t.nb+c*i,e(x<=t.P+t.qc),L.Z!=0)for(e(Nn[L.Z]!=null),A=0;A<p;++A)Nn[L.Z]($,G,vt,x,C,W,i),$=C,G=W,W+=i,x+=i;else for(A=0;A<p;++A)a(C,W,vt,x,i),$=C,G=W,W+=i,x+=i;t.rc=$,t.Vc=G}else{if(e(L.mc!=null),i=c+p,e((A=L.mc)!=null),e(i<=A.i),A.C>=i)i=1;else if(L.ic||V(),L.ic){L=A.V,$=A.Ba,G=A.c;var ot=A.i,Y=(vt=1,x=A.$/G,C=A.$%G,W=A.m,K=A.s,A.$),X=G*ot,gt=G*i,bt=K.wc,mt=Y<gt?Ee(K,C,x):null;e(Y<=X),e(i<=ot),e(rn(K));e:for(;;){for(;!W.h&&Y<gt;){if(C&bt||(mt=Ee(K,C,x)),e(mt!=null),H(W),256>(ot=ir(mt.G[0],mt.H[0],W)))L[$+Y]=ot,++Y,++C>=G&&(C=0,++x<=i&&!(x%16)&&Fr(A,x));else{if(!(280>ot)){vt=0;break e}ot=Pr(ot-256,W);var Et,St=ir(mt.G[4],mt.H[4],W);if(H(W),!(Y>=(St=Yr(G,St=Pr(St,W)))&&X-Y>=ot)){vt=0;break e}for(Et=0;Et<ot;++Et)L[$+Y+Et]=L[$+Y+Et-St];for(Y+=ot,C+=ot;C>=G;)C-=G,++x<=i&&!(x%16)&&Fr(A,x);Y<gt&&C&bt&&(mt=Ee(K,C,x))}e(W.h==M(W))}Fr(A,x>i?i:x);break e}!vt||W.h&&Y<X?(vt=0,A.a=W.h?5:3):A.$=Y,i=vt}else i=Cr(A,A.V,A.Ba,A.c,A.i,i,ri);if(!i){p=0;break t}}c+p>=b&&(t.Cc=1),p=1}if(!p)return null;if(t.Cc&&((p=t.ga)!=null&&(p.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+c*m}function s(t,i,c,p,m,b){for(;0<m--;){var A,L=t,x=i+(c?1:0),C=t,W=i+(c?0:3);for(A=0;A<p;++A){var K=C[W+4*A];K!=255&&(K*=32897,L[x+4*A+0]=L[x+4*A+0]*K>>23,L[x+4*A+1]=L[x+4*A+1]*K>>23,L[x+4*A+2]=L[x+4*A+2]*K>>23)}i+=b}}function v(t,i,c,p,m){for(;0<p--;){var b;for(b=0;b<c;++b){var A=t[i+2*b+0],L=15&(C=t[i+2*b+1]),x=4369*L,C=(240&C|C>>4)*x>>16;t[i+2*b+0]=(240&A|A>>4)*x>>16&240|(15&A|A<<4)*x>>16>>4&15,t[i+2*b+1]=240&C|L}i+=m}}function O(t,i,c,p,m,b,A,L){var x,C,W=255;for(C=0;C<m;++C){for(x=0;x<p;++x){var K=t[i+x];b[A+4*x]=K,W&=K}i+=c,A+=L}return W!=255}function R(t,i,c,p,m){var b;for(b=0;b<m;++b)c[p+b]=t[i+b]>>8}function V(){Ar=s,be=v,ye=O,Ce=R}function ct(t,i,c){T[t]=function(p,m,b,A,L,x,C,W,K,$,G,vt,ot,Y,X,gt,bt){var mt,Et=bt-1>>1,St=L[x+0]|C[W+0]<<16,Tt=K[$+0]|G[vt+0]<<16;e(p!=null);var Pt=3*St+Tt+131074>>2;for(i(p[m+0],255&Pt,Pt>>16,ot,Y),b!=null&&(Pt=3*Tt+St+131074>>2,i(b[A+0],255&Pt,Pt>>16,X,gt)),mt=1;mt<=Et;++mt){var se=L[x+mt]|C[W+mt]<<16,le=K[$+mt]|G[vt+mt]<<16,ae=St+se+Tt+le+524296,re=ae+2*(se+Tt)>>3;Pt=re+St>>1,St=(ae=ae+2*(St+le)>>3)+se>>1,i(p[m+2*mt-1],255&Pt,Pt>>16,ot,Y+(2*mt-1)*c),i(p[m+2*mt-0],255&St,St>>16,ot,Y+(2*mt-0)*c),b!=null&&(Pt=ae+Tt>>1,St=re+le>>1,i(b[A+2*mt-1],255&Pt,Pt>>16,X,gt+(2*mt-1)*c),i(b[A+2*mt+0],255&St,St>>16,X,gt+(2*mt+0)*c)),St=se,Tt=le}1&bt||(Pt=3*St+Tt+131074>>2,i(p[m+bt-1],255&Pt,Pt>>16,ot,Y+(bt-1)*c),b!=null&&(Pt=3*Tt+St+131074>>2,i(b[A+bt-1],255&Pt,Pt>>16,X,gt+(bt-1)*c)))}}function wt(){Lr[Xa]=nc,Lr[Ga]=Is,Lr[ks]=ic,Lr[Ha]=Es,Lr[Ja]=Ms,Lr[Yo]=qs,Lr[Fs]=ac,Lr[Xo]=Is,Lr[Go]=Es,Lr[Va]=Ms,Lr[Ho]=qs}function It(t){return t&-16384?0>t?0:255:t>>oc}function Bt(t,i){return It((19077*t>>8)+(26149*i>>8)-14234)}function $t(t,i,c){return It((19077*t>>8)-(6419*i>>8)-(13320*c>>8)+8708)}function Jt(t,i){return It((19077*t>>8)+(33050*i>>8)-17685)}function ne(t,i,c,p,m){p[m+0]=Bt(t,c),p[m+1]=$t(t,i,c),p[m+2]=Jt(t,i)}function Ne(t,i,c,p,m){p[m+0]=Jt(t,i),p[m+1]=$t(t,i,c),p[m+2]=Bt(t,c)}function ke(t,i,c,p,m){var b=$t(t,i,c);i=b<<3&224|Jt(t,i)>>3,p[m+0]=248&Bt(t,c)|b>>5,p[m+1]=i}function Me(t,i,c,p,m){var b=240&Jt(t,i)|15;p[m+0]=240&Bt(t,c)|$t(t,i,c)>>4,p[m+1]=b}function Ve(t,i,c,p,m){p[m+0]=255,ne(t,i,c,p,m+1)}function ze(t,i,c,p,m){Ne(t,i,c,p,m),p[m+3]=255}function Ir(t,i,c,p,m){ne(t,i,c,p,m),p[m+3]=255}function vr(t,i){return 0>t?0:t>i?i:t}function Vr(t,i,c){T[t]=function(p,m,b,A,L,x,C,W,K){for(var $=W+(-2&K)*c;W!=$;)i(p[m+0],b[A+0],L[x+0],C,W),i(p[m+1],b[A+0],L[x+0],C,W+c),m+=2,++A,++x,W+=2*c;1&K&&i(p[m+0],b[A+0],L[x+0],C,W)}}function Ba(t,i,c){return c==0?t==0?i==0?6:5:i==0?4:0:c}function Ji(t,i,c,p,m){switch(t>>>30){case 3:un(i,c,p,m,0);break;case 2:Fe(i,c,p,m);break;case 1:rr(i,c,p,m)}}function Vi(t,i){var c,p,m=i.M,b=i.Nb,A=t.oc,L=t.pc+40,x=t.oc,C=t.pc+584,W=t.oc,K=t.pc+600;for(c=0;16>c;++c)A[L+32*c-1]=129;for(c=0;8>c;++c)x[C+32*c-1]=129,W[K+32*c-1]=129;for(0<m?A[L-1-32]=x[C-1-32]=W[K-1-32]=129:(u(A,L-32-1,127,21),u(x,C-32-1,127,9),u(W,K-32-1,127,9)),p=0;p<t.za;++p){var $=i.ya[i.aa+p];if(0<p){for(c=-1;16>c;++c)a(A,L+32*c-4,A,L+32*c+12,4);for(c=-1;8>c;++c)a(x,C+32*c-4,x,C+32*c+4,4),a(W,K+32*c-4,W,K+32*c+4,4)}var G=t.Gd,vt=t.Hd+p,ot=$.ad,Y=$.Hc;if(0<m&&(a(A,L-32,G[vt].y,0,16),a(x,C-32,G[vt].f,0,8),a(W,K-32,G[vt].ea,0,8)),$.Za){var X=A,gt=L-32+16;for(0<m&&(p>=t.za-1?u(X,gt,G[vt].y[15],4):a(X,gt,G[vt+1].y,0,4)),c=0;4>c;c++)X[gt+128+c]=X[gt+256+c]=X[gt+384+c]=X[gt+0+c];for(c=0;16>c;++c,Y<<=2)X=A,gt=L+Bs[c],Er[$.Ob[c]](X,gt),Ji(Y,ot,16*+c,X,gt)}else if(X=Ba(p,m,$.Ob[0]),An[X](A,L),Y!=0)for(c=0;16>c;++c,Y<<=2)Ji(Y,ot,16*+c,A,L+Bs[c]);for(c=$.Gc,X=Ba(p,m,$.Dd),hn[X](x,C),hn[X](W,K),Y=ot,X=x,gt=C,255&($=c>>0)&&(170&$?ta(Y,256,X,gt):yr(Y,256,X,gt)),$=W,Y=K,255&(c>>=8)&&(170&c?ta(ot,320,$,Y):yr(ot,320,$,Y)),m<t.Ub-1&&(a(G[vt].y,0,A,L+480,16),a(G[vt].f,0,x,C+224,8),a(G[vt].ea,0,W,K+224,8)),c=8*b*t.B,G=t.sa,vt=t.ta+16*p+16*b*t.R,ot=t.qa,$=t.ra+8*p+c,Y=t.Ha,X=t.Ia+8*p+c,c=0;16>c;++c)a(G,vt+c*t.R,A,L+32*c,16);for(c=0;8>c;++c)a(ot,$+c*t.B,x,C+32*c,8),a(Y,X+c*t.B,W,K+32*c,8)}}function mi(t,i,c,p,m,b,A,L,x){var C=[0],W=[0],K=0,$=x!=null?x.kd:0,G=x??new Yi;if(t==null||12>c)return 7;G.data=t,G.w=i,G.ha=c,i=[i],c=[c],G.gb=[G.gb];t:{var vt=i,ot=c,Y=G.gb;if(e(t!=null),e(ot!=null),e(Y!=null),Y[0]=0,12<=ot[0]&&!r(t,vt[0],"RIFF")){if(r(t,vt[0]+8,"WEBP")){Y=3;break t}var X=_t(t,vt[0]+4);if(12>X||4294967286<X){Y=3;break t}if($&&X>ot[0]-8){Y=7;break t}Y[0]=X,vt[0]+=12,ot[0]-=12}Y=0}if(Y!=0)return Y;for(X=0<G.gb[0],c=c[0];;){t:{var gt=t;ot=i,Y=c;var bt=C,mt=W,Et=vt=[0];if((Pt=K=[K])[0]=0,8>Y[0])Y=7;else{if(!r(gt,ot[0],"VP8X")){if(_t(gt,ot[0]+4)!=10){Y=3;break t}if(18>Y[0]){Y=7;break t}var St=_t(gt,ot[0]+8),Tt=1+Ft(gt,ot[0]+12);if(2147483648<=Tt*(gt=1+Ft(gt,ot[0]+15))){Y=3;break t}Et!=null&&(Et[0]=St),bt!=null&&(bt[0]=Tt),mt!=null&&(mt[0]=gt),ot[0]+=18,Y[0]-=18,Pt[0]=1}Y=0}}if(K=K[0],vt=vt[0],Y!=0)return Y;if(ot=!!(2&vt),!X&&K)return 3;if(b!=null&&(b[0]=!!(16&vt)),A!=null&&(A[0]=ot),L!=null&&(L[0]=0),A=C[0],vt=W[0],K&&ot&&x==null){Y=0;break}if(4>c){Y=7;break}if(X&&K||!X&&!K&&!r(t,i[0],"ALPH")){c=[c],G.na=[G.na],G.P=[G.P],G.Sa=[G.Sa];t:{St=t,Y=i,X=c;var Pt=G.gb;bt=G.na,mt=G.P,Et=G.Sa,Tt=22,e(St!=null),e(X!=null),gt=Y[0];var se=X[0];for(e(bt!=null),e(Et!=null),bt[0]=null,mt[0]=null,Et[0]=0;;){if(Y[0]=gt,X[0]=se,8>se){Y=7;break t}var le=_t(St,gt+4);if(4294967286<le){Y=3;break t}var ae=8+le+1&-2;if(Tt+=ae,0<Pt&&Tt>Pt){Y=3;break t}if(!r(St,gt,"VP8 ")||!r(St,gt,"VP8L")){Y=0;break t}if(se[0]<ae){Y=7;break t}r(St,gt,"ALPH")||(bt[0]=St,mt[0]=gt+8,Et[0]=le),gt+=ae,se-=ae}}if(c=c[0],G.na=G.na[0],G.P=G.P[0],G.Sa=G.Sa[0],Y!=0)break}c=[c],G.Ja=[G.Ja],G.xa=[G.xa];t:if(Pt=t,Y=i,X=c,bt=G.gb[0],mt=G.Ja,Et=G.xa,St=Y[0],gt=!r(Pt,St,"VP8 "),Tt=!r(Pt,St,"VP8L"),e(Pt!=null),e(X!=null),e(mt!=null),e(Et!=null),8>X[0])Y=7;else{if(gt||Tt){if(Pt=_t(Pt,St+4),12<=bt&&Pt>bt-12){Y=3;break t}if($&&Pt>X[0]-8){Y=7;break t}mt[0]=Pt,Y[0]+=8,X[0]-=8,Et[0]=Tt}else Et[0]=5<=X[0]&&Pt[St+0]==47&&!(Pt[St+4]>>5),mt[0]=X[0];Y=0}if(c=c[0],G.Ja=G.Ja[0],G.xa=G.xa[0],i=i[0],Y!=0)break;if(4294967286<G.Ja)return 3;if(L==null||ot||(L[0]=G.xa?2:1),A=[A],vt=[vt],G.xa){if(5>c){Y=7;break}L=A,$=vt,ot=b,t==null||5>c?t=0:5<=c&&t[i+0]==47&&!(t[i+4]>>5)?(X=[0],Pt=[0],bt=[0],Z(mt=new N,t,i,c),zt(mt,X,Pt,bt)?(L!=null&&(L[0]=X[0]),$!=null&&($[0]=Pt[0]),ot!=null&&(ot[0]=bt[0]),t=1):t=0):t=0}else{if(10>c){Y=7;break}L=vt,t==null||10>c||!Na(t,i+3,c-3)?t=0:($=t[i+0]|t[i+1]<<8|t[i+2]<<16,ot=16383&(t[i+7]<<8|t[i+6]),t=16383&(t[i+9]<<8|t[i+8]),1&$||3<($>>1&7)||!($>>4&1)||$>>5>=G.Ja||!ot||!t?t=0:(A&&(A[0]=ot),L&&(L[0]=t),t=1))}if(!t||(A=A[0],vt=vt[0],K&&(C[0]!=A||W[0]!=vt)))return 3;x!=null&&(x[0]=G,x.offset=i-x.w,e(4294967286>i-x.w),e(x.offset==x.ha-c));break}return Y==0||Y==7&&K&&x==null?(b!=null&&(b[0]|=G.na!=null&&0<G.na.length),p!=null&&(p[0]=A),m!=null&&(m[0]=vt),0):Y}function Ki(t,i,c){var p=i.width,m=i.height,b=0,A=0,L=p,x=m;if(i.Da=t!=null&&0<t.Da,i.Da&&(L=t.cd,x=t.bd,b=t.v,A=t.j,11>c||(b&=-2,A&=-2),0>b||0>A||0>=L||0>=x||b+L>p||A+x>m))return 0;if(i.v=b,i.j=A,i.va=b+L,i.o=A+x,i.U=L,i.T=x,i.da=t!=null&&0<t.da,i.da){if(!Kt(L,x,c=[t.ib],b=[t.hb]))return 0;i.ib=c[0],i.hb=b[0]}return i.ob=t!=null&&t.ob,i.Kb=t==null||!t.Sd,i.da&&(i.ob=i.ib<3*p/4&&i.hb<3*m/4,i.Kb=0),1}function $i(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 vi(t,i,c,p){if(p==null||0>=t||0>=i)return 2;if(c!=null){if(c.Da){var m=c.cd,b=c.bd,A=-2&c.v,L=-2&c.j;if(0>A||0>L||0>=m||0>=b||A+m>t||L+b>i)return 2;t=m,i=b}if(c.da){if(!Kt(t,i,m=[c.ib],b=[c.hb]))return 2;t=m[0],i=b[0]}}p.width=t,p.height=i;t:{var x=p.width,C=p.height;if(t=p.S,0>=x||0>=C||!(t>=Xa&&13>t))t=2;else{if(0>=p.Rd&&p.sd==null){A=b=m=i=0;var W=(L=x*Ts[t])*C;if(11>t||(b=(C+1)/2*(i=(x+1)/2),t==12&&(A=(m=x)*C)),(C=o(W+2*b+A))==null){t=1;break t}p.sd=C,11>t?((x=p.f.RGBA).eb=C,x.fb=0,x.A=L,x.size=W):((x=p.f.kb).y=C,x.O=0,x.fa=L,x.Fd=W,x.f=C,x.N=0+W,x.Ab=i,x.Cd=b,x.ea=C,x.W=0+W+b,x.Db=i,x.Ed=b,t==12&&(x.F=C,x.J=0+W+2*b),x.Tc=A,x.lb=m)}if(i=1,m=p.S,b=p.width,A=p.height,m>=Xa&&13>m)if(11>m)t=p.f.RGBA,i&=(L=Math.abs(t.A))*(A-1)+b<=t.size,i&=L>=b*Ts[m],i&=t.eb!=null;else{t=p.f.kb,L=(b+1)/2,W=(A+1)/2,x=Math.abs(t.fa),C=Math.abs(t.Ab);var K=Math.abs(t.Db),$=Math.abs(t.lb),G=$*(A-1)+b;i&=x*(A-1)+b<=t.Fd,i&=C*(W-1)+L<=t.Cd,i=(i&=K*(W-1)+L<=t.Ed)&x>=b&C>=L&K>=L,i&=t.y!=null,i&=t.f!=null,i&=t.ea!=null,m==12&&(i&=$>=b,i&=G<=t.Tc,i&=t.F!=null)}else i=0;t=i?0:2}}return t!=0||c!=null&&c.fd&&(t=$i(p)),t}var Xe=64,bi=[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],yi=24,wi=32,Zi=8,or=[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"),T.Predictor0=function(){return 4278190080},T.Predictor1=function(t){return t},T.Predictor2=function(t,i,c){return i[c+0]},T.Predictor3=function(t,i,c){return i[c+1]},T.Predictor4=function(t,i,c){return i[c-1]},T.Predictor5=function(t,i,c){return kt(kt(t,i[c+1]),i[c+0])},T.Predictor6=function(t,i,c){return kt(t,i[c-1])},T.Predictor7=function(t,i,c){return kt(t,i[c+0])},T.Predictor8=function(t,i,c){return kt(i[c-1],i[c+0])},T.Predictor9=function(t,i,c){return kt(i[c+0],i[c+1])},T.Predictor10=function(t,i,c){return kt(kt(t,i[c-1]),kt(i[c+0],i[c+1]))},T.Predictor11=function(t,i,c){var p=i[c+0];return 0>=Qt(p>>24&255,t>>24&255,(i=i[c-1])>>24&255)+Qt(p>>16&255,t>>16&255,i>>16&255)+Qt(p>>8&255,t>>8&255,i>>8&255)+Qt(255&p,255&t,255&i)?p:t},T.Predictor12=function(t,i,c){var p=i[c+0];return(Dt((t>>24&255)+(p>>24&255)-((i=i[c-1])>>24&255))<<24|Dt((t>>16&255)+(p>>16&255)-(i>>16&255))<<16|Dt((t>>8&255)+(p>>8&255)-(i>>8&255))<<8|Dt((255&t)+(255&p)-(255&i)))>>>0},T.Predictor13=function(t,i,c){var p=i[c-1];return(Gt((t=kt(t,i[c+0]))>>24&255,p>>24&255)<<24|Gt(t>>16&255,p>>16&255)<<16|Gt(t>>8&255,p>>8&255)<<8|Gt(t>>0&255,p>>0&255))>>>0};var Uo=T.PredictorAdd0;T.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 Qi=T.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 Ta,br=T.ColorIndexInverseTransform,Ai=T.MapARGB,Ra=T.VP8LColorIndexInverseTransformAlpha,za=T.MapAlpha,vn=T.VP8LPredictorsAdd=[];vn.length=16,(T.VP8LPredictors=[]).length=16,(T.VP8LPredictorsAdd_C=[]).length=16,(T.VP8LPredictors_C=[]).length=16;var Un,sr,er,bn,on,sn,Ni,un,Fe,ta,rr,yr,Li,Ua,ea,Wn,Yn,yn,Xn,xi,Gn,wn,ra,wr,Ar,be,ye,Ce,Te=o(511),cn=o(2041),na=o(225),Si=o(767),Wa=0,Wo=cn,Ya=na,fr=Si,Nr=Te,Xa=0,Ga=1,ks=2,Ha=3,Ja=4,Yo=5,Fs=6,Xo=7,Go=8,Va=9,Ho=10,Wu=[2,3,7],Yu=[3,3,11],Cs=[280,256,256,256,40],Xu=[0,1,1,1,0],Gu=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Hu=[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],Ju=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Vu=8,Jo=[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],Vo=[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],ia=null,Ku=[[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]],$u=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],js=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Zu=[[[[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]]]],Qu=[[[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]]],tc=[[[[255,255,255,255,255,255,255,255,255,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]]]],ec=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],An=[],Er=[],hn=[],rc=1,Os=2,Nn=[],Lr=[];ct("UpsampleRgbLinePair",ne,3),ct("UpsampleBgrLinePair",Ne,3),ct("UpsampleRgbaLinePair",Ir,4),ct("UpsampleBgraLinePair",ze,4),ct("UpsampleArgbLinePair",Ve,4),ct("UpsampleRgba4444LinePair",Me,2),ct("UpsampleRgb565LinePair",ke,2);var nc=T.UpsampleRgbLinePair,ic=T.UpsampleBgrLinePair,Is=T.UpsampleRgbaLinePair,Es=T.UpsampleBgraLinePair,Ms=T.UpsampleArgbLinePair,qs=T.UpsampleRgba4444LinePair,ac=T.UpsampleRgb565LinePair,Ka=16,$a=1<<Ka-1,aa=-227,Ko=482,oc=6,Ds=0,sc=o(256),uc=o(256),cc=o(256),hc=o(256),lc=o(Ko-aa),fc=o(Ko-aa);Vr("YuvToRgbRow",ne,3),Vr("YuvToBgrRow",Ne,3),Vr("YuvToRgbaRow",Ir,4),Vr("YuvToBgraRow",ze,4),Vr("YuvToArgbRow",Ve,4),Vr("YuvToRgba4444Row",Me,2),Vr("YuvToRgb565Row",ke,2);var Bs=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Za=[0,2,8],pc=[8,7,6,4,4,2,2,2,1,1,1,1],dc=1;this.WebPDecodeRGBA=function(t,i,c,p,m){var b=Ga,A=new di,L=new _r;A.ba=L,L.S=b,L.width=[L.width],L.height=[L.height];var x=L.width,C=L.height,W=new en;if(W==null||t==null)var K=2;else e(W!=null),K=mi(t,i,c,W.width,W.height,W.Pd,W.Qd,W.format,null);if(K!=0?x=0:(x!=null&&(x[0]=W.width[0]),C!=null&&(C[0]=W.height[0]),x=1),x){L.width=L.width[0],L.height=L.height[0],p!=null&&(p[0]=L.width),m!=null&&(m[0]=L.height);t:{if(p=new si,(m=new Yi).data=t,m.w=i,m.ha=c,m.kd=1,i=[0],e(m!=null),((t=mi(m.data,m.w,m.ha,null,null,null,i,null,m))==0||t==7)&&i[0]&&(t=4),(i=t)==0){if(e(A!=null),p.data=m.data,p.w=m.w+m.offset,p.ha=m.ha-m.offset,p.put=Ur,p.ac=Ye,p.bc=Wr,p.ma=A,m.xa){if((t=mr())==null){A=1;break t}if(function($,G){var vt=[0],ot=[0],Y=[0];e:for(;;){if($==null)return 0;if(G==null)return $.a=2,0;if($.l=G,$.a=0,Z($.m,G.data,G.w,G.ha),!zt($.m,vt,ot,Y)){$.a=3;break e}if($.xb=Os,G.width=vt[0],G.height=ot[0],!Gr(vt[0],ot[0],1,$,null))break e;return 1}return e($.a!=0),0}(t,p)){if(p=(i=vi(p.width,p.height,A.Oa,A.ba))==0){e:{p=t;r:for(;;){if(p==null){p=0;break e}if(e(p.s.yc!=null),e(p.s.Ya!=null),e(0<p.s.Wb),e((c=p.l)!=null),e((m=c.ma)!=null),p.xb!=0){if(p.ca=m.ba,p.tb=m.tb,e(p.ca!=null),!Ki(m.Oa,c,Ha)){p.a=2;break r}if(!Dn(p,c.width)||c.da)break r;if((c.da||ue(p.ca.S))&&V(),11>p.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),p.ca.f.kb.F!=null&&V()),p.Pb&&0<p.s.ua&&p.s.vb.X==null&&!Ut(p.s.vb,p.s.Wa.Xa)){p.a=1;break r}p.xb=0}if(!Cr(p,p.V,p.Ba,p.c,p.i,c.o,ei))break r;m.Dc=p.Ma,p=1;break e}e(p.a!=0),p=0}p=!p}p&&(i=t.a)}else i=t.a}else{if((t=new Lo)==null){A=1;break t}if(t.Fa=m.na,t.P=m.P,t.qc=m.Sa,La(t,p)){if((i=vi(p.width,p.height,A.Oa,A.ba))==0){if(t.Aa=0,c=A.Oa,e((m=t)!=null),c!=null){if(0<(x=0>(x=c.Md)?0:100<x?255:255*x/100)){for(C=W=0;4>C;++C)12>(K=m.pb[C]).lc&&(K.ia=x*pc[0>K.lc?0:K.lc]>>3),W|=K.ia;W&&(alert("todo:VP8InitRandom"),m.ia=1)}m.Ga=c.Id,100<m.Ga?m.Ga=100:0>m.Ga&&(m.Ga=0)}xo(t,p)||(i=t.a)}}else i=t.a}i==0&&A.Oa!=null&&A.Oa.fd&&(i=$i(A.ba))}A=i}b=A!=0?null:11>b?L.f.RGBA.eb:L.f.kb.y}else b=null;return b};var Ts=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function g(T,nt){for(var dt="",P=0;P<4;P++)dt+=String.fromCharCode(T[nt++]);return dt}function y(T,nt){return(T[nt+0]<<0|T[nt+1]<<8|T[nt+2]<<16)>>>0}function w(T,nt){return(T[nt+0]<<0|T[nt+1]<<8|T[nt+2]<<16|T[nt+3]<<24)>>>0}new f;var S=[0],d=[0],I=[],F=new f,D=n,_=function(T,nt){var dt={},P=0,k=!1,z=0,B=0;if(dt.frames=[],!function(j,M,U,H){for(var Q=0;Q<H;Q++)if(j[M+Q]!=U.charCodeAt(Q))return!0;return!1}(T,nt,"RIFF",4)){for(w(T,nt+=4),nt+=8;nt<T.length;){var at=g(T,nt),it=w(T,nt+=4);nt+=4;var ut=it+(1&it);switch(at){case"VP8 ":case"VP8L":dt.frames[P]===void 0&&(dt.frames[P]={}),(ft=dt.frames[P]).src_off=k?B:nt-8,ft.src_size=z+it+8,P++,k&&(k=!1,z=0,B=0);break;case"VP8X":(ft=dt.header={}).feature_flags=T[nt];var Z=nt+4;ft.canvas_width=1+y(T,Z),Z+=3,ft.canvas_height=1+y(T,Z),Z+=3;break;case"ALPH":k=!0,z=ut+8,B=nt-8;break;case"ANIM":(ft=dt.header).bgcolor=w(T,nt),Z=nt+4,ft.loop_count=(Ot=T)[(N=Z)+0]<<0|Ot[N+1]<<8,Z+=2;break;case"ANMF":var pt,ft;(ft=dt.frames[P]={}).offset_x=2*y(T,nt),nt+=3,ft.offset_y=2*y(T,nt),nt+=3,ft.width=1+y(T,nt),nt+=3,ft.height=1+y(T,nt),nt+=3,ft.duration=y(T,nt),nt+=3,pt=T[nt++],ft.dispose=1&pt,ft.blend=pt>>1&1}at!="ANMF"&&(nt+=ut)}var Ot,N;return dt}}(D,0);_.response=D,_.rgbaoutput=!0,_.dataurl=!1;var E=_.header?_.header:null,J=_.frames?_.frames:null;if(E){E.loop_counter=E.loop_count,S=[E.canvas_height],d=[E.canvas_width];for(var st=0;st<J.length&&J[st].blend!=0;st++);}var ht=J[0],yt=F.WebPDecodeRGBA(D,ht.src_off,ht.src_size,d,S);ht.rgba=yt,ht.imgwidth=d[0],ht.imgheight=S[0];for(var tt=0;tt<d[0]*S[0]*4;tt++)I[tt]=yt[tt];return this.width=d,this.height=S,this.data=I,this}(function(n){var e=function(){return typeof gs=="function"},r=function(S,d,I,F){var D=4,_=h;switch(F){case n.image_compression.FAST:D=1,_=o;break;case n.image_compression.MEDIUM:D=6,_=l;break;case n.image_compression.SLOW:D=9,_=f}S=a(S,d,I,_);var E=gs(S,{level:D});return n.__addimage__.arrayBufferToBinaryString(E)},a=function(S,d,I,F){for(var D,_,E,J=S.length/d,st=new Uint8Array(S.length+J),ht=y(),yt=0;yt<J;yt+=1){if(E=yt*d,D=S.subarray(E,E+d),F)st.set(F(D,I,_),E+yt);else{for(var tt,T=ht.length,nt=[];tt<T;tt+=1)nt[tt]=ht[tt](D,I,_);var dt=w(nt.concat());st.set(nt[dt],E+yt)}_=D}return st},u=function(S){var d=Array.apply([],S);return d.unshift(0),d},o=function(S,d){var I,F=[],D=S.length;F[0]=1;for(var _=0;_<D;_+=1)I=S[_-d]||0,F[_+1]=S[_]-I+256&255;return F},h=function(S,d,I){var F,D=[],_=S.length;D[0]=2;for(var E=0;E<_;E+=1)F=I&&I[E]||0,D[E+1]=S[E]-F+256&255;return D},l=function(S,d,I){var F,D,_=[],E=S.length;_[0]=3;for(var J=0;J<E;J+=1)F=S[J-d]||0,D=I&&I[J]||0,_[J+1]=S[J]+256-(F+D>>>1)&255;return _},f=function(S,d,I){var F,D,_,E,J=[],st=S.length;J[0]=4;for(var ht=0;ht<st;ht+=1)F=S[ht-d]||0,D=I&&I[ht]||0,_=I&&I[ht-d]||0,E=g(F,D,_),J[ht+1]=S[ht]-E+256&255;return J},g=function(S,d,I){if(S===d&&d===I)return S;var F=Math.abs(d-I),D=Math.abs(S-I),_=Math.abs(S+d-I-I);return F<=D&&F<=_?S:D<=_?d:I},y=function(){return[u,o,h,l,f]},w=function(S){var d=S.map(function(I){return I.reduce(function(F,D){return F+Math.abs(D)},0)});return d.indexOf(Math.min.apply(null,d))};n.processPNG=function(S,d,I,F){var D,_,E,J,st,ht,yt,tt,T,nt,dt,P,k,z,B,at=this.decode.FLATE_DECODE,it="";if(this.__addimage__.isArrayBuffer(S)&&(S=new Uint8Array(S)),this.__addimage__.isArrayBufferView(S)){if(S=(E=new o1(S)).imgData,_=E.bits,D=E.colorSpace,st=E.colors,[4,6].indexOf(E.colorType)!==-1){if(E.bits===8){T=(tt=E.pixelBitlength==32?new Uint32Array(E.decodePixels().buffer):E.pixelBitlength==16?new Uint16Array(E.decodePixels().buffer):new Uint8Array(E.decodePixels().buffer)).length,dt=new Uint8Array(T*E.colors),nt=new Uint8Array(T);var ut,Z=E.pixelBitlength-E.bits;for(z=0,B=0;z<T;z++){for(k=tt[z],ut=0;ut<Z;)dt[B++]=k>>>ut&255,ut+=E.bits;nt[z]=k>>>ut&255}}if(E.bits===16){T=(tt=new Uint32Array(E.decodePixels().buffer)).length,dt=new Uint8Array(T*(32/E.pixelBitlength)*E.colors),nt=new Uint8Array(T*(32/E.pixelBitlength)),P=E.colors>1,z=0,B=0;for(var pt=0;z<T;)k=tt[z++],dt[B++]=k>>>0&255,P&&(dt[B++]=k>>>16&255,k=tt[z++],dt[B++]=k>>>0&255),nt[pt++]=k>>>16&255;_=8}F!==n.image_compression.NONE&&e()?(S=r(dt,E.width*E.colors,E.colors,F),yt=r(nt,E.width,1,F)):(S=dt,yt=nt,at=void 0)}if(E.colorType===3&&(D=this.color_spaces.INDEXED,ht=E.palette,E.transparency.indexed)){var ft=E.transparency.indexed,Ot=0;for(z=0,T=ft.length;z<T;++z)Ot+=ft[z];if((Ot/=255)===T-1&&ft.indexOf(0)!==-1)J=[ft.indexOf(0)];else if(Ot!==T){for(tt=E.decodePixels(),nt=new Uint8Array(tt.length),z=0,T=tt.length;z<T;z++)nt[z]=ft[tt[z]];yt=r(nt,E.width,1)}}var N=function(j){var M;switch(j){case n.image_compression.FAST:M=11;break;case n.image_compression.MEDIUM:M=13;break;case n.image_compression.SLOW:M=14;break;default:M=12}return M}(F);return at===this.decode.FLATE_DECODE&&(it="/Predictor "+N+" "),it+="/Colors "+st+" /BitsPerComponent "+_+" /Columns "+E.width,(this.__addimage__.isArrayBuffer(S)||this.__addimage__.isArrayBufferView(S))&&(S=this.__addimage__.arrayBufferToBinaryString(S)),(yt&&this.__addimage__.isArrayBuffer(yt)||this.__addimage__.isArrayBufferView(yt))&&(yt=this.__addimage__.arrayBufferToBinaryString(yt)),{alias:I,data:S,index:d,filter:at,decodeParameters:it,transparency:J,palette:ht,sMask:yt,predictor:N,width:E.width,height:E.height,bitsPerComponent:_,colorSpace:D}}}})(Rt.API),function(n){n.processGIF89A=function(e,r,a,u){var o=new s1(e),h=o.width,l=o.height,f=[];o.decodeAndBlitFrameRGBA(0,f);var g={data:f,width:h,height:l},y=new Ps(100).encode(g,100);return n.processJPEG.call(this,y,r,a,u)},n.processGIF87A=n.processGIF89A}(Rt.API),Tr.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 n=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(n);for(var e=0;e<n;e++){var r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),u=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:u,green:a,blue:r,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Tr.prototype.parseBGR=function(){this.pos=this.offset;try{var n="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[n]()}catch(r){ve.log("bit decode error:"+r)}},Tr.prototype.bit1=function(){var n,e=Math.ceil(this.width/8),r=e%4;for(n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,u=0;u<e;u++)for(var o=this.datav.getUint8(this.pos++,!0),h=a*this.width*4+8*u*4,l=0;l<8&&8*u+l<this.width;l++){var f=this.palette[o>>7-l&1];this.data[h+4*l]=f.blue,this.data[h+4*l+1]=f.green,this.data[h+4*l+2]=f.red,this.data[h+4*l+3]=255}r!==0&&(this.pos+=4-r)}},Tr.prototype.bit4=function(){for(var n=Math.ceil(this.width/2),e=n%4,r=this.height-1;r>=0;r--){for(var a=this.bottom_up?r:this.height-1-r,u=0;u<n;u++){var o=this.datav.getUint8(this.pos++,!0),h=a*this.width*4+2*u*4,l=o>>4,f=15&o,g=this.palette[l];if(this.data[h]=g.blue,this.data[h+1]=g.green,this.data[h+2]=g.red,this.data[h+3]=255,2*u+1>=this.width)break;g=this.palette[f],this.data[h+4]=g.blue,this.data[h+4+1]=g.green,this.data[h+4+2]=g.red,this.data[h+4+3]=255}e!==0&&(this.pos+=4-e)}},Tr.prototype.bit8=function(){for(var n=this.width%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,a=0;a<this.width;a++){var u=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+4*a;if(u<this.palette.length){var h=this.palette[u];this.data[o]=h.red,this.data[o+1]=h.green,this.data[o+2]=h.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}n!==0&&(this.pos+=4-n)}},Tr.prototype.bit15=function(){for(var n=this.width%3,e=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var a=this.bottom_up?r:this.height-1-r,u=0;u<this.width;u++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var h=(o&e)/e*255|0,l=(o>>5&e)/e*255|0,f=(o>>10&e)/e*255|0,g=o>>15?255:0,y=a*this.width*4+4*u;this.data[y]=f,this.data[y+1]=l,this.data[y+2]=h,this.data[y+3]=g}this.pos+=n}},Tr.prototype.bit16=function(){for(var n=this.width%3,e=parseInt("11111",2),r=parseInt("111111",2),a=this.height-1;a>=0;a--){for(var u=this.bottom_up?a:this.height-1-a,o=0;o<this.width;o++){var h=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(h&e)/e*255|0,f=(h>>5&r)/r*255|0,g=(h>>11)/e*255|0,y=u*this.width*4+4*o;this.data[y]=g,this.data[y+1]=f,this.data[y+2]=l,this.data[y+3]=255}this.pos+=n}},Tr.prototype.bit24=function(){for(var n=this.height-1;n>=0;n--){for(var e=this.bottom_up?n:this.height-1-n,r=0;r<this.width;r++){var a=this.datav.getUint8(this.pos++,!0),u=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),h=e*this.width*4+4*r;this.data[h]=o,this.data[h+1]=u,this.data[h+2]=a,this.data[h+3]=255}this.pos+=this.width%4}},Tr.prototype.bit32=function(){for(var n=this.height-1;n>=0;n--)for(var e=this.bottom_up?n:this.height-1-n,r=0;r<this.width;r++){var a=this.datav.getUint8(this.pos++,!0),u=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),h=this.datav.getUint8(this.pos++,!0),l=e*this.width*4+4*r;this.data[l]=o,this.data[l+1]=u,this.data[l+2]=a,this.data[l+3]=h}},Tr.prototype.getData=function(){return this.data},function(n){n.processBMP=function(e,r,a,u){var o=new Tr(e,!1),h=o.width,l=o.height,f={data:o.getData(),width:h,height:l},g=new Ps(100).encode(f,100);return n.processJPEG.call(this,g,r,a,u)}}(Rt.API),Tu.prototype.getData=function(){return this.data},function(n){n.processWEBP=function(e,r,a,u){var o=new Tu(e),h=o.width,l=o.height,f={data:o.getData(),width:h,height:l},g=new Ps(100).encode(f,100);return n.processJPEG.call(this,g,r,a,u)}}(Rt.API),Rt.API.processRGBA=function(n,e,r){for(var a=n.data,u=a.length,o=new Uint8Array(u/4*3),h=new Uint8Array(u/4),l=0,f=0,g=0;g<u;g+=4){var y=a[g],w=a[g+1],S=a[g+2],d=a[g+3];o[l++]=y,o[l++]=w,o[l++]=S,h[f++]=d}var I=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(h),data:I,index:e,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:n.width,height:n.height}},Rt.API.setLanguage=function(n){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"}[n]!==void 0&&(this.internal.languageSettings.languageCode=n,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},Ii=Rt.API,vo=Ii.getCharWidthsArray=function(n,e){var r,a,u=(e=e||{}).font||this.internal.getFont(),o=e.fontSize||this.internal.getFontSize(),h=e.charSpace||this.internal.getCharSpace(),l=e.widths?e.widths:u.metadata.Unicode.widths,f=l.fof?l.fof:1,g=e.kerning?e.kerning:u.metadata.Unicode.kerning,y=g.fof?g.fof:1,w=e.doKerning!==!1,S=0,d=n.length,I=0,F=l[0]||f,D=[];for(r=0;r<d;r++)a=n.charCodeAt(r),typeof u.metadata.widthOfString=="function"?D.push((u.metadata.widthOfGlyph(u.metadata.characterToGlyph(a))+h*(1e3/o)||0)/1e3):(S=w&&he(g[a])==="object"&&!isNaN(parseInt(g[a][I],10))?g[a][I]/y:0,D.push((l[a]||F)/f+S)),I=a;return D},Mu=Ii.getStringUnitWidth=function(n,e){var r=(e=e||{}).fontSize||this.internal.getFontSize(),a=e.font||this.internal.getFont(),u=e.charSpace||this.internal.getCharSpace();return Ii.processArabic&&(n=Ii.processArabic(n)),typeof a.metadata.widthOfString=="function"?a.metadata.widthOfString(n,r,u)/r:vo.apply(this,arguments).reduce(function(o,h){return o+h},0)},qu=function(n,e,r,a){for(var u=[],o=0,h=n.length,l=0;o!==h&&l+e[o]<r;)l+=e[o],o++;u.push(n.slice(0,o));var f=o;for(l=0;o!==h;)l+e[o]>a&&(u.push(n.slice(f,o)),l=0,f=o),l+=e[o],o++;return f!==o&&u.push(n.slice(f,o)),u},Du=function(n,e,r){r||(r={});var a,u,o,h,l,f,g,y=[],w=[y],S=r.textIndent||0,d=0,I=0,F=n.split(" "),D=vo.apply(this,[" ",r])[0];if(f=r.lineIndent===-1?F[0].length+2:r.lineIndent||0){var _=Array(f).join(" "),E=[];F.map(function(st){(st=st.split(/\s*\n/)).length>1?E=E.concat(st.map(function(ht,yt){return(yt&&ht.length?`
47
+ `:"")+ht})):E.push(st[0])}),F=E,f=Mu.apply(this,[_,r])}for(o=0,h=F.length;o<h;o++){var J=0;if(a=F[o],f&&a[0]==`
48
+ `&&(a=a.substr(1),J=1),S+d+(I=(u=vo.apply(this,[a,r])).reduce(function(st,ht){return st+ht},0))>e||J){if(I>e){for(l=qu.apply(this,[a,u,e-(S+d),e]),y.push(l.shift()),y=[l.pop()];l.length;)w.push([l.shift()]);I=u.slice(a.length-(y[0]?y[0].length:0)).reduce(function(st,ht){return st+ht},0)}else y=[a];w.push(y),S=I+f,d=D}else y.push(a),S+=d+I,d=D}return g=f?function(st,ht){return(ht?_:"")+st.join(" ")}:function(st){return st.join(" ")},w.map(g)},Ii.splitTextToSize=function(n,e,r){var a,u=(r=r||{}).fontSize||this.internal.getFontSize(),o=function(y){if(y.widths&&y.kerning)return{widths:y.widths,kerning:y.kerning};var w=this.internal.getFont(y.fontName,y.fontStyle);return w.metadata.Unicode?{widths:w.metadata.Unicode.widths||{0:1},kerning:w.metadata.Unicode.kerning||{}}:{font:w.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,r);a=Array.isArray(n)?n:String(n).split(/\r?\n/);var h=1*this.internal.scaleFactor*e/u;o.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/u:0,o.lineIndent=r.lineIndent;var l,f,g=[];for(l=0,f=a.length;l<f;l++)g=g.concat(Du.apply(this,[a[l],h,o]));return g},function(n){n.__fontmetrics__=n.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",r={},a={},u=0;u<e.length;u++)r[e[u]]="0123456789abcdef"[u],a["0123456789abcdef"[u]]=e[u];var o=function(w){return"0x"+parseInt(w,10).toString(16)},h=n.__fontmetrics__.compress=function(w){var S,d,I,F,D=["{"];for(var _ in w){if(S=w[_],isNaN(parseInt(_,10))?d="'"+_+"'":(_=parseInt(_,10),d=(d=o(_).slice(2)).slice(0,-1)+a[d.slice(-1)]),typeof S=="number")S<0?(I=o(S).slice(3),F="-"):(I=o(S).slice(2),F=""),I=F+I.slice(0,-1)+a[I.slice(-1)];else{if(he(S)!=="object")throw new Error("Don't know what to do with value type "+he(S)+".");I=h(S)}D.push(d+I)}return D.push("}"),D.join("")},l=n.__fontmetrics__.uncompress=function(w){if(typeof w!="string")throw new Error("Invalid argument passed to uncompress.");for(var S,d,I,F,D={},_=1,E=D,J=[],st="",ht="",yt=w.length-1,tt=1;tt<yt;tt+=1)(F=w[tt])=="'"?S?(I=S.join(""),S=void 0):S=[]:S?S.push(F):F=="{"?(J.push([E,I]),E={},I=void 0):F=="}"?((d=J.pop())[0][d[1]]=E,I=void 0,E=d[0]):F=="-"?_=-1:I===void 0?r.hasOwnProperty(F)?(st+=r[F],I=parseInt(st,16)*_,_=1,st=""):st+=F:r.hasOwnProperty(F)?(ht+=r[F],E[I]=parseInt(ht,16)*_,_=1,I=void 0,ht=""):ht+=F;return D},f={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{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}},y={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};n.events.push(["addFont",function(w){var S=w.font,d=y.Unicode[S.postScriptName];d&&(S.metadata.Unicode={},S.metadata.Unicode.widths=d.widths,S.metadata.Unicode.kerning=d.kerning);var I=g.Unicode[S.postScriptName];I&&(S.metadata.Unicode.encoding=I,S.encoding=I.codePages[0])}])}(Rt.API),function(n){var e=function(r){for(var a=r.length,u=new Uint8Array(a),o=0;o<a;o++)u[o]=r.charCodeAt(o);return u};n.API.events.push(["addFont",function(r){var a=void 0,u=r.font,o=r.instance;if(!u.isStandardFont){if(o===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+u.postScriptName+"').");if(typeof(a=o.existsFileInVFS(u.postScriptName)===!1?o.loadFile(u.postScriptName):o.getFileFromVFS(u.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+u.postScriptName+"').");(function(h,l){l=/^\x00\x01\x00\x00/.test(l)?e(l):e(pa(l)),h.metadata=n.API.TTFFont.open(l),h.metadata.Unicode=h.metadata.Unicode||{encoding:{},kerning:{},widths:[]},h.metadata.glyIdsUsed=[0]})(u,a)}}])}(Rt),function(n){function e(){return(Wt.canvg?Promise.resolve(Wt.canvg):import("./index.es-DOqegDGr.js")).catch(function(r){return Promise.reject(new Error("Could not load canvg: "+r))}).then(function(r){return r.default?r.default:r})}Rt.API.addSvgAsImage=function(r,a,u,o,h,l,f,g){if(isNaN(a)||isNaN(u))throw ve.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(o)||isNaN(h))throw ve.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var y=document.createElement("canvas");y.width=o,y.height=h;var w=y.getContext("2d");w.fillStyle="#fff",w.fillRect(0,0,y.width,y.height);var S={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then(function(I){return I.fromString(w,r,S)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(I){return I.render(S)}).then(function(){d.addImage(y.toDataURL("image/jpeg",1),a,u,o,h,f,g)})}}(),Rt.API.putTotalPages=function(n){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(n,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(n,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var a=1;a<=this.internal.getNumberOfPages();a++)for(var u=0;u<this.internal.pages[a].length;u++)this.internal.pages[a][u]=this.internal.pages[a][u].replace(e,r);return this},Rt.API.viewerPreferences=function(n,e){var r;n=n||{},e=e||!1;var a,u,o,h={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(h),f=[],g=0,y=0,w=0;function S(I,F){var D,_=!1;for(D=0;D<I.length;D+=1)I[D]===F&&(_=!0);return _}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(h)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,n==="reset"||e===!0){var d=l.length;for(w=0;w<d;w+=1)r[l[w]].value=r[l[w]].defaultValue,r[l[w]].explicitSet=!1}if(he(n)==="object"){for(u in n)if(o=n[u],S(l,u)&&o!==void 0){if(r[u].type==="boolean"&&typeof o=="boolean")r[u].value=o;else if(r[u].type==="name"&&S(r[u].valueSet,o))r[u].value=o;else if(r[u].type==="integer"&&Number.isInteger(o))r[u].value=o;else if(r[u].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(y=0;y<o[g].length;y+=1)typeof o[g][y]!="number"&&(a=!1);a===!0&&f.push([o[g][0]-1,o[g][1]-1].join(" "))}r[u].value="["+f.join(" ")+"]"}else r[u].value=r[u].defaultValue;r[u].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var I,F=[];for(I in r)r[I].explicitSet===!0&&(r[I].type==="name"?F.push("/"+I+" /"+r[I].value):F.push("/"+I+" "+r[I].value));F.length!==0&&this.internal.write(`/ViewerPreferences
49
+ <<
50
+ `+F.join(`
51
+ `)+`
52
+ >>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},function(n){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>',u=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),o=unescape(encodeURIComponent(a)),h=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),l=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),f=unescape(encodeURIComponent("</x:xmpmeta>")),g=o.length+h.length+l.length+u.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(u+o+h+l+f),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};n.addMetadata=function(a,u){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:a,namespaceuri:u||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",e)),this}}(Rt.API),function(n){var e=n.API,r=e.pdfEscape16=function(o,h){for(var l,f=h.metadata.Unicode.widths,g=["","0","00","000","0000"],y=[""],w=0,S=o.length;w<S;++w){if(l=h.metadata.characterToGlyph(o.charCodeAt(w)),h.metadata.glyIdsUsed.push(l),h.metadata.toUnicode[l]=o.charCodeAt(w),f.indexOf(l)==-1&&(f.push(l),f.push([parseInt(h.metadata.widthOfGlyph(l),10)])),l=="0")return y.join("");l=l.toString(16),y.push(g[4-l.length],l)}return y.join("")},a=function(o){var h,l,f,g,y,w,S;for(y=`/CIDInit /ProcSet findresource begin
53
+ 12 dict begin
54
+ begincmap
55
+ /CIDSystemInfo <<
56
+ /Registry (Adobe)
57
+ /Ordering (UCS)
58
+ /Supplement 0
59
+ >> def
60
+ /CMapName /Adobe-Identity-UCS def
61
+ /CMapType 2 def
62
+ 1 begincodespacerange
63
+ <0000><ffff>
64
+ endcodespacerange`,f=[],w=0,S=(l=Object.keys(o).sort(function(d,I){return d-I})).length;w<S;w++)h=l[w],f.length>=100&&(y+=`
65
+ `+f.length+` beginbfchar
66
+ `+f.join(`
67
+ `)+`
68
+ endbfchar`,f=[]),o[h]!==void 0&&o[h]!==null&&typeof o[h].toString=="function"&&(g=("0000"+o[h].toString(16)).slice(-4),h=("0000"+(+h).toString(16)).slice(-4),f.push("<"+h+"><"+g+">"));return f.length&&(y+=`
69
+ `+f.length+` beginbfchar
70
+ `+f.join(`
71
+ `)+`
72
+ endbfchar
73
+ `),y+=`endcmap
74
+ CMapName currentdict /CMap defineresource pop
75
+ end
76
+ end`};e.events.push(["putFont",function(o){(function(h){var l=h.font,f=h.out,g=h.newObject,y=h.putStream;if(l.metadata instanceof n.API.TTFFont&&l.encoding==="Identity-H"){for(var w=l.metadata.Unicode.widths,S=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),d="",I=0;I<S.length;I++)d+=String.fromCharCode(S[I]);var F=g();y({data:d,addLength1:!0,objectId:F}),f("endobj");var D=g();y({data:a(l.metadata.toUnicode),addLength1:!0,objectId:D}),f("endobj");var _=g();f("<<"),f("/Type /FontDescriptor"),f("/FontName /"+ji(l.fontName)),f("/FontFile2 "+F+" 0 R"),f("/FontBBox "+n.API.PDFObject.convert(l.metadata.bbox)),f("/Flags "+l.metadata.flags),f("/StemV "+l.metadata.stemV),f("/ItalicAngle "+l.metadata.italicAngle),f("/Ascent "+l.metadata.ascender),f("/Descent "+l.metadata.decender),f("/CapHeight "+l.metadata.capHeight),f(">>"),f("endobj");var E=g();f("<<"),f("/Type /Font"),f("/BaseFont /"+ji(l.fontName)),f("/FontDescriptor "+_+" 0 R"),f("/W "+n.API.PDFObject.convert(w)),f("/CIDToGIDMap /Identity"),f("/DW 1000"),f("/Subtype /CIDFontType2"),f("/CIDSystemInfo"),f("<<"),f("/Supplement 0"),f("/Registry (Adobe)"),f("/Ordering ("+l.encoding+")"),f(">>"),f(">>"),f("endobj"),l.objectNumber=g(),f("<<"),f("/Type /Font"),f("/Subtype /Type0"),f("/ToUnicode "+D+" 0 R"),f("/BaseFont /"+ji(l.fontName)),f("/Encoding /"+l.encoding),f("/DescendantFonts ["+E+" 0 R]"),f(">>"),f("endobj"),l.isAlreadyPutted=!0}})(o)}]),e.events.push(["putFont",function(o){(function(h){var l=h.font,f=h.out,g=h.newObject,y=h.putStream;if(l.metadata instanceof n.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var w=l.metadata.rawData,S="",d=0;d<w.length;d++)S+=String.fromCharCode(w[d]);var I=g();y({data:S,addLength1:!0,objectId:I}),f("endobj");var F=g();y({data:a(l.metadata.toUnicode),addLength1:!0,objectId:F}),f("endobj");var D=g();f("<<"),f("/Descent "+l.metadata.decender),f("/CapHeight "+l.metadata.capHeight),f("/StemV "+l.metadata.stemV),f("/Type /FontDescriptor"),f("/FontFile2 "+I+" 0 R"),f("/Flags 96"),f("/FontBBox "+n.API.PDFObject.convert(l.metadata.bbox)),f("/FontName /"+ji(l.fontName)),f("/ItalicAngle "+l.metadata.italicAngle),f("/Ascent "+l.metadata.ascender),f(">>"),f("endobj"),l.objectNumber=g();for(var _=0;_<l.metadata.hmtx.widths.length;_++)l.metadata.hmtx.widths[_]=parseInt(l.metadata.hmtx.widths[_]*(1e3/l.metadata.head.unitsPerEm));f("<</Subtype/TrueType/Type/Font/ToUnicode "+F+" 0 R/BaseFont/"+ji(l.fontName)+"/FontDescriptor "+D+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+n.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),f("endobj"),l.isAlreadyPutted=!0}})(o)}]);var u=function(o){var h,l=o.text||"",f=o.x,g=o.y,y=o.options||{},w=o.mutex||{},S=w.pdfEscape,d=w.activeFontKey,I=w.fonts,F=d,D="",_=0,E="",J=I[F].encoding;if(I[F].encoding!=="Identity-H")return{text:l,x:f,y:g,options:y,mutex:w};for(E=l,F=d,Array.isArray(l)&&(E=l[0]),_=0;_<E.length;_+=1)I[F].metadata.hasOwnProperty("cmap")&&(h=I[F].metadata.cmap.unicode.codeMap[E[_].charCodeAt(0)]),h||E[_].charCodeAt(0)<256&&I[F].metadata.hasOwnProperty("Unicode")?D+=E[_]:D+="";var st="";return parseInt(F.slice(1))<14||J==="WinAnsiEncoding"?st=S(D,F).split("").map(function(ht){return ht.charCodeAt(0).toString(16)}).join(""):J==="Identity-H"&&(st=r(D,I[F])),w.isHex=!0,{text:st,x:f,y:g,options:y,mutex:w}};e.events.push(["postProcessText",function(o){var h=o.text||"",l=[],f={text:h,x:o.x,y:o.y,options:o.options,mutex:o.mutex};if(Array.isArray(h)){var g=0;for(g=0;g<h.length;g+=1)Array.isArray(h[g])&&h[g].length===3?l.push([u(Object.assign({},f,{text:h[g][0]})).text,h[g][1],h[g][2]]):l.push(u(Object.assign({},f,{text:h[g]})).text);o.text=l}else o.text=u(Object.assign({},f,{text:h})).text}])}(Rt),function(n){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};n.existsFileInVFS=function(r){return e.call(this),this.internal.vFS[r]!==void 0},n.addFileToVFS=function(r,a){return e.call(this),this.internal.vFS[r]=a,this},n.getFileFromVFS=function(r){return e.call(this),this.internal.vFS[r]!==void 0?this.internal.vFS[r]:null}}(Rt.API),function(n){n.__bidiEngine__=n.prototype.__bidiEngine__=function(a){var u,o,h,l,f,g,y,w=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]],d=[[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]],I={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},F={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},D=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],_=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),E=!1,J=0;this.__bidiEngine__={};var st=function(P){var k=P.charCodeAt(),z=k>>8,B=F[z];return B!==void 0?w[256*B+(255&k)]:z===252||z===253?"AL":_.test(z)?"L":z===8?"R":"N"},ht=function(P){for(var k,z=0;z<P.length;z++){if((k=st(P.charAt(z)))==="L")return!1;if(k==="R")return!0}return!1},yt=function(P,k,z,B){var at,it,ut,Z,pt=k[B];switch(pt){case"L":case"R":E=!1;break;case"N":case"AN":break;case"EN":E&&(pt="AN");break;case"AL":E=!0,pt="R";break;case"WS":pt="N";break;case"CS":B<1||B+1>=k.length||(at=z[B-1])!=="EN"&&at!=="AN"||(it=k[B+1])!=="EN"&&it!=="AN"?pt="N":E&&(it="AN"),pt=it===at?it:"N";break;case"ES":pt=(at=B>0?z[B-1]:"B")==="EN"&&B+1<k.length&&k[B+1]==="EN"?"EN":"N";break;case"ET":if(B>0&&z[B-1]==="EN"){pt="EN";break}if(E){pt="N";break}for(ut=B+1,Z=k.length;ut<Z&&k[ut]==="ET";)ut++;pt=ut<Z&&k[ut]==="EN"?"EN":"N";break;case"NSM":if(h&&!l){for(Z=k.length,ut=B+1;ut<Z&&k[ut]==="NSM";)ut++;if(ut<Z){var ft=P[B],Ot=ft>=1425&&ft<=2303||ft===64286;if(at=k[ut],Ot&&(at==="R"||at==="AL")){pt="R";break}}}pt=B<1||(at=k[B-1])==="B"?"N":z[B-1];break;case"B":E=!1,u=!0,pt=J;break;case"S":o=!0,pt="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":E=!1;break;case"BN":pt="N"}return pt},tt=function(P,k,z){var B=P.split("");return z&&T(B,z,{hiLevel:J}),B.reverse(),k&&k.reverse(),B.join("")},T=function(P,k,z){var B,at,it,ut,Z,pt=-1,ft=P.length,Ot=0,N=[],j=J?d:S,M=[];for(E=!1,u=!1,o=!1,at=0;at<ft;at++)M[at]=st(P[at]);for(it=0;it<ft;it++){if(Z=Ot,N[it]=yt(P,M,N,it),B=240&(Ot=j[Z][I[N[it]]]),Ot&=15,k[it]=ut=j[Ot][5],B>0)if(B===16){for(at=pt;at<it;at++)k[at]=1;pt=-1}else pt=-1;if(j[Ot][6])pt===-1&&(pt=it);else if(pt>-1){for(at=pt;at<it;at++)k[at]=ut;pt=-1}M[it]==="B"&&(k[it]=0),z.hiLevel|=ut}o&&function(U,H,Q){for(var et=0;et<Q;et++)if(U[et]==="S"){H[et]=J;for(var rt=et-1;rt>=0&&U[rt]==="WS";rt--)H[rt]=J}}(M,k,ft)},nt=function(P,k,z,B,at){if(!(at.hiLevel<P)){if(P===1&&J===1&&!u)return k.reverse(),void(z&&z.reverse());for(var it,ut,Z,pt,ft=k.length,Ot=0;Ot<ft;){if(B[Ot]>=P){for(Z=Ot+1;Z<ft&&B[Z]>=P;)Z++;for(pt=Ot,ut=Z-1;pt<ut;pt++,ut--)it=k[pt],k[pt]=k[ut],k[ut]=it,z&&(it=z[pt],z[pt]=z[ut],z[ut]=it);Ot=Z}Ot++}}},dt=function(P,k,z){var B=P.split(""),at={hiLevel:J};return z||(z=[]),T(B,z,at),function(it,ut,Z){if(Z.hiLevel!==0&&y)for(var pt,ft=0;ft<it.length;ft++)ut[ft]===1&&(pt=D.indexOf(it[ft]))>=0&&(it[ft]=D[pt+1])}(B,z,at),nt(2,B,k,z,at),nt(1,B,k,z,at),B.join("")};return this.__bidiEngine__.doBidiReorder=function(P,k,z){if(function(at,it){if(it)for(var ut=0;ut<at.length;ut++)it[ut]=ut;l===void 0&&(l=ht(at)),g===void 0&&(g=ht(at))}(P,k),h||!f||g)if(h&&f&&l^g)J=l?1:0,P=tt(P,k,z);else if(!h&&f&&g)J=l?1:0,P=dt(P,k,z),P=tt(P,k);else if(!h||l||f||g){if(h&&!f&&l^g)P=tt(P,k),l?(J=0,P=dt(P,k,z)):(J=1,P=dt(P,k,z),P=tt(P,k));else if(h&&l&&!f&&g)J=1,P=dt(P,k,z),P=tt(P,k);else if(!h&&!f&&l^g){var B=y;l?(J=1,P=dt(P,k,z),J=0,y=!1,P=dt(P,k,z),y=B):(J=0,P=dt(P,k,z),P=tt(P,k),J=1,y=!1,P=dt(P,k,z),y=B,P=tt(P,k))}}else J=0,P=dt(P,k,z);else J=l?1:0,P=dt(P,k,z);return P},this.__bidiEngine__.setOptions=function(P){P&&(h=P.isInputVisual,f=P.isOutputVisual,l=P.isInputRtl,g=P.isOutputRtl,y=P.isSymmetricSwapping)},this.__bidiEngine__.setOptions(a),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","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"],r=new n.__bidiEngine__({isInputVisual:!0});n.API.events.push(["postProcessText",function(a){var u=a.text;a.x,a.y;var o=a.options||{};a.mutex,o.lang;var h=[];if(o.isInputVisual=typeof o.isInputVisual!="boolean"||o.isInputVisual,r.setOptions(o),Object.prototype.toString.call(u)==="[object Array]"){var l=0;for(h=[],l=0;l<u.length;l+=1)Object.prototype.toString.call(u[l])==="[object Array]"?h.push([r.doBidiReorder(u[l][0]),u[l][1],u[l][2]]):h.push([r.doBidiReorder(u[l])]);a.text=h}else a.text=r.doBidiReorder(u);r.setOptions({isInputVisual:!0})}])}(Rt),Rt.API.TTFFont=function(){function n(e){var r;if(this.rawData=e,r=this.contents=new En(e),this.contents.pos=4,r.readString(4)==="ttcf")throw new Error("TTCF not supported.");r.pos=0,this.parse(),this.subset=new N1(this),this.registerTTF()}return n.open=function(e){return new n(e)},n.prototype.parse=function(){return this.directory=new u1(this.contents),this.head=new h1(this),this.name=new g1(this),this.cmap=new zu(this),this.toUnicode={},this.hhea=new l1(this),this.maxp=new m1(this),this.hmtx=new v1(this),this.post=new p1(this),this.os2=new f1(this),this.loca=new A1(this),this.glyf=new b1(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]},n.prototype.registerTTF=function(){var e,r,a,u,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var h,l,f,g;for(g=[],h=0,l=(f=this.bbox).length;h<l;h++)e=f[h],g.push(Math.round(e*this.scaleFactor));return g}.call(this),this.stemV=0,this.post.exists?(a=255&(u=this.post.italic_angle),(32768&(r=u>>16))!=0&&(r=-(1+(65535^r))),this.italicAngle=+(r+"."+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")},n.prototype.characterToGlyph=function(e){var r;return((r=this.cmap.unicode)!=null?r.codeMap[e]:void 0)||0},n.prototype.widthOfGlyph=function(e){var r;return r=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*r},n.prototype.widthOfString=function(e,r,a){var u,o,h,l;for(h=0,o=0,l=(e=""+e).length;0<=l?o<l:o>l;o=0<=l?++o:--o)u=e.charCodeAt(o),h+=this.widthOfGlyph(this.characterToGlyph(u))+a*(1e3/r)||0;return h*(r/1e3)},n.prototype.lineHeight=function(e,r){var a;return r==null&&(r=!1),a=r?this.lineGap:0,(this.ascender+a-this.decender)/1e3*e},n}();var Rr,En=function(){function n(e){this.data=e??[],this.pos=0,this.length=this.data.length}return n.prototype.readByte=function(){return this.data[this.pos++]},n.prototype.writeByte=function(e){return this.data[this.pos++]=e},n.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},n.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},n.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},n.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},n.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},n.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},n.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},n.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},n.prototype.readString=function(e){var r,a;for(a=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)a[r]=String.fromCharCode(this.readByte());return a.join("")},n.prototype.writeString=function(e){var r,a,u;for(u=[],r=0,a=e.length;0<=a?r<a:r>a;r=0<=a?++r:--r)u.push(this.writeByte(e.charCodeAt(r)));return u},n.prototype.readShort=function(){return this.readInt16()},n.prototype.writeShort=function(e){return this.writeInt16(e)},n.prototype.readLongLong=function(){var e,r,a,u,o,h,l,f;return e=this.readByte(),r=this.readByte(),a=this.readByte(),u=this.readByte(),o=this.readByte(),h=this.readByte(),l=this.readByte(),f=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^r)+1099511627776*(255^a)+4294967296*(255^u)+16777216*(255^o)+65536*(255^h)+256*(255^l)+(255^f)+1):72057594037927940*e+281474976710656*r+1099511627776*a+4294967296*u+16777216*o+65536*h+256*l+f},n.prototype.writeLongLong=function(e){var r,a;return r=Math.floor(e/4294967296),a=4294967295&e,this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r),this.writeByte(a>>24&255),this.writeByte(a>>16&255),this.writeByte(a>>8&255),this.writeByte(255&a)},n.prototype.readInt=function(){return this.readInt32()},n.prototype.writeInt=function(e){return this.writeInt32(e)},n.prototype.read=function(e){var r,a;for(r=[],a=0;0<=e?a<e:a>e;a=0<=e?++a:--a)r.push(this.readByte());return r},n.prototype.write=function(e){var r,a,u,o;for(o=[],a=0,u=e.length;a<u;a++)r=e[a],o.push(this.writeByte(r));return o},n}(),u1=function(){var n;function e(r){var a,u,o;for(this.scalarType=r.readInt(),this.tableCount=r.readShort(),this.searchRange=r.readShort(),this.entrySelector=r.readShort(),this.rangeShift=r.readShort(),this.tables={},u=0,o=this.tableCount;0<=o?u<o:u>o;u=0<=o?++u:--u)a={tag:r.readString(4),checksum:r.readInt(),offset:r.readInt(),length:r.readInt()},this.tables[a.tag]=a}return e.prototype.encode=function(r){var a,u,o,h,l,f,g,y,w,S,d,I,F;for(F in d=Object.keys(r).length,f=Math.log(2),w=16*Math.floor(Math.log(d)/f),h=Math.floor(w/f),y=16*d-w,(u=new En).writeInt(this.scalarType),u.writeShort(d),u.writeShort(w),u.writeShort(h),u.writeShort(y),o=16*d,g=u.pos+o,l=null,I=[],r)for(S=r[F],u.writeString(F),u.writeInt(n(S)),u.writeInt(g),u.writeInt(S.length),I=I.concat(S),F==="head"&&(l=g),g+=S.length;g%4;)I.push(0),g++;return u.write(I),a=2981146554-n(u.data),u.pos=l+8,u.writeUInt32(a),u.data},n=function(r){var a,u,o,h;for(r=Uu.call(r);r.length%4;)r.push(0);for(o=new En(r),u=0,a=0,h=r.length;a<h;a=a+=4)u+=o.readUInt32();return 4294967295&u},e}(),c1={}.hasOwnProperty,tn=function(n,e){for(var r in e)c1.call(e,r)&&(n[r]=e[r]);function a(){this.constructor=n}return a.prototype=e.prototype,n.prototype=new a,n.__super__=e.prototype,n};Rr=function(){function n(e){var r;this.file=e,r=this.file.directory.tables[this.tag],this.exists=!!r,r&&(this.offset=r.offset,this.length=r.length,this.parse(this.file.contents))}return n.prototype.parse=function(){},n.prototype.encode=function(){},n.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},n}();var h1=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return tn(e,Rr),e.prototype.tag="head",e.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.revision=r.readInt(),this.checkSumAdjustment=r.readInt(),this.magicNumber=r.readInt(),this.flags=r.readShort(),this.unitsPerEm=r.readShort(),this.created=r.readLongLong(),this.modified=r.readLongLong(),this.xMin=r.readShort(),this.yMin=r.readShort(),this.xMax=r.readShort(),this.yMax=r.readShort(),this.macStyle=r.readShort(),this.lowestRecPPEM=r.readShort(),this.fontDirectionHint=r.readShort(),this.indexToLocFormat=r.readShort(),this.glyphDataFormat=r.readShort()},e.prototype.encode=function(r){var a;return(a=new En).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(r),a.writeShort(this.glyphDataFormat),a.data},e}(),Ru=function(){function n(e,r){var a,u,o,h,l,f,g,y,w,S,d,I,F,D,_,E,J;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=r+e.readInt(),w=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(d=e.readUInt16(),S=d/2,e.pos+=6,o=function(){var st,ht;for(ht=[],f=st=0;0<=S?st<S:st>S;f=0<=S?++st:--st)ht.push(e.readUInt16());return ht}(),e.pos+=2,F=function(){var st,ht;for(ht=[],f=st=0;0<=S?st<S:st>S;f=0<=S?++st:--st)ht.push(e.readUInt16());return ht}(),g=function(){var st,ht;for(ht=[],f=st=0;0<=S?st<S:st>S;f=0<=S?++st:--st)ht.push(e.readUInt16());return ht}(),y=function(){var st,ht;for(ht=[],f=st=0;0<=S?st<S:st>S;f=0<=S?++st:--st)ht.push(e.readUInt16());return ht}(),u=(this.length-e.pos+this.offset)/2,l=function(){var st,ht;for(ht=[],f=st=0;0<=u?st<u:st>u;f=0<=u?++st:--st)ht.push(e.readUInt16());return ht}(),f=_=0,J=o.length;_<J;f=++_)for(D=o[f],a=E=I=F[f];I<=D?E<=D:E>=D;a=I<=D?++E:--E)y[f]===0?h=a+g[f]:(h=l[y[f]/2+(a-I)-(S-f)]||0)!==0&&(h+=g[f]),this.codeMap[a]=65535&h}e.pos=w}return n.encode=function(e,r){var a,u,o,h,l,f,g,y,w,S,d,I,F,D,_,E,J,st,ht,yt,tt,T,nt,dt,P,k,z,B,at,it,ut,Z,pt,ft,Ot,N,j,M,U,H,Q,et,rt,Lt,Nt,Ft;switch(B=new En,h=Object.keys(e).sort(function(_t,Ut){return _t-Ut}),r){case"macroman":for(F=0,D=function(){var _t=[];for(I=0;I<256;++I)_t.push(0);return _t}(),E={0:0},o={},at=0,pt=h.length;at<pt;at++)E[rt=e[u=h[at]]]==null&&(E[rt]=++F),o[u]={old:e[u],new:E[e[u]]},D[u]=E[e[u]];return B.writeUInt16(1),B.writeUInt16(0),B.writeUInt32(12),B.writeUInt16(0),B.writeUInt16(262),B.writeUInt16(0),B.write(D),{charMap:o,subtable:B.data,maxGlyphID:F+1};case"unicode":for(k=[],w=[],J=0,E={},a={},_=g=null,it=0,ft=h.length;it<ft;it++)E[ht=e[u=h[it]]]==null&&(E[ht]=++J),a[u]={old:ht,new:E[ht]},l=E[ht]-u,_!=null&&l===g||(_&&w.push(_),k.push(u),g=l),_=u;for(_&&w.push(_),w.push(65535),k.push(65535),dt=2*(nt=k.length),T=2*Math.pow(Math.log(nt)/Math.LN2,2),S=Math.log(T/2)/Math.LN2,tt=2*nt-T,f=[],yt=[],d=[],I=ut=0,Ot=k.length;ut<Ot;I=++ut){if(P=k[I],y=w[I],P===65535){f.push(0),yt.push(0);break}if(P-(z=a[P].new)>=32768)for(f.push(0),yt.push(2*(d.length+nt-I)),u=Z=P;P<=y?Z<=y:Z>=y;u=P<=y?++Z:--Z)d.push(a[u].new);else f.push(z-P),yt.push(0)}for(B.writeUInt16(3),B.writeUInt16(1),B.writeUInt32(12),B.writeUInt16(4),B.writeUInt16(16+8*nt+2*d.length),B.writeUInt16(0),B.writeUInt16(dt),B.writeUInt16(T),B.writeUInt16(S),B.writeUInt16(tt),Q=0,N=w.length;Q<N;Q++)u=w[Q],B.writeUInt16(u);for(B.writeUInt16(0),et=0,j=k.length;et<j;et++)u=k[et],B.writeUInt16(u);for(Lt=0,M=f.length;Lt<M;Lt++)l=f[Lt],B.writeUInt16(l);for(Nt=0,U=yt.length;Nt<U;Nt++)st=yt[Nt],B.writeUInt16(st);for(Ft=0,H=d.length;Ft<H;Ft++)F=d[Ft],B.writeUInt16(F);return{charMap:a,subtable:B.data,maxGlyphID:J+1}}},n}(),zu=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return tn(e,Rr),e.prototype.tag="cmap",e.prototype.parse=function(r){var a,u,o;for(r.pos=this.offset,this.version=r.readUInt16(),o=r.readUInt16(),this.tables=[],this.unicode=null,u=0;0<=o?u<o:u>o;u=0<=o?++u:--u)a=new Ru(r,this.offset),this.tables.push(a),a.isUnicode&&this.unicode==null&&(this.unicode=a);return!0},e.encode=function(r,a){var u,o;return a==null&&(a="macroman"),u=Ru.encode(r,a),(o=new En).writeUInt16(0),o.writeUInt16(1),u.table=o.data.concat(u.subtable),u},e}(),l1=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return tn(e,Rr),e.prototype.tag="hhea",e.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.ascender=r.readShort(),this.decender=r.readShort(),this.lineGap=r.readShort(),this.advanceWidthMax=r.readShort(),this.minLeftSideBearing=r.readShort(),this.minRightSideBearing=r.readShort(),this.xMaxExtent=r.readShort(),this.caretSlopeRise=r.readShort(),this.caretSlopeRun=r.readShort(),this.caretOffset=r.readShort(),r.pos+=8,this.metricDataFormat=r.readShort(),this.numberOfMetrics=r.readUInt16()},e}(),f1=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return tn(e,Rr),e.prototype.tag="OS/2",e.prototype.parse=function(r){if(r.pos=this.offset,this.version=r.readUInt16(),this.averageCharWidth=r.readShort(),this.weightClass=r.readUInt16(),this.widthClass=r.readUInt16(),this.type=r.readShort(),this.ySubscriptXSize=r.readShort(),this.ySubscriptYSize=r.readShort(),this.ySubscriptXOffset=r.readShort(),this.ySubscriptYOffset=r.readShort(),this.ySuperscriptXSize=r.readShort(),this.ySuperscriptYSize=r.readShort(),this.ySuperscriptXOffset=r.readShort(),this.ySuperscriptYOffset=r.readShort(),this.yStrikeoutSize=r.readShort(),this.yStrikeoutPosition=r.readShort(),this.familyClass=r.readShort(),this.panose=function(){var a,u;for(u=[],a=0;a<10;++a)u.push(r.readByte());return u}(),this.charRange=function(){var a,u;for(u=[],a=0;a<4;++a)u.push(r.readInt());return u}(),this.vendorID=r.readString(4),this.selection=r.readShort(),this.firstCharIndex=r.readShort(),this.lastCharIndex=r.readShort(),this.version>0&&(this.ascent=r.readShort(),this.descent=r.readShort(),this.lineGap=r.readShort(),this.winAscent=r.readShort(),this.winDescent=r.readShort(),this.codePageRange=function(){var a,u;for(u=[],a=0;a<2;a=++a)u.push(r.readInt());return u}(),this.version>1))return this.xHeight=r.readShort(),this.capHeight=r.readShort(),this.defaultChar=r.readShort(),this.breakChar=r.readShort(),this.maxContext=r.readShort()},e}(),p1=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return tn(e,Rr),e.prototype.tag="post",e.prototype.parse=function(r){var a,u,o;switch(r.pos=this.offset,this.format=r.readInt(),this.italicAngle=r.readInt(),this.underlinePosition=r.readShort(),this.underlineThickness=r.readShort(),this.isFixedPitch=r.readInt(),this.minMemType42=r.readInt(),this.maxMemType42=r.readInt(),this.minMemType1=r.readInt(),this.maxMemType1=r.readInt(),this.format){case 65536:break;case 131072:var h;for(u=r.readUInt16(),this.glyphNameIndex=[],h=0;0<=u?h<u:h>u;h=0<=u?++h:--h)this.glyphNameIndex.push(r.readUInt16());for(this.names=[],o=[];r.pos<this.offset+this.length;)a=r.readByte(),o.push(this.names.push(r.readString(a)));return o;case 151552:return u=r.readUInt16(),this.offsets=r.read(u);case 196608:break;case 262144:return this.map=function(){var l,f,g;for(g=[],h=l=0,f=this.file.maxp.numGlyphs;0<=f?l<f:l>f;h=0<=f?++l:--l)g.push(r.readUInt32());return g}.call(this)}},e}(),d1=function(n,e){this.raw=n,this.length=n.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},g1=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return tn(e,Rr),e.prototype.tag="name",e.prototype.parse=function(r){var a,u,o,h,l,f,g,y,w,S,d;for(r.pos=this.offset,r.readShort(),a=r.readShort(),f=r.readShort(),u=[],h=0;0<=a?h<a:h>a;h=0<=a?++h:--h)u.push({platformID:r.readShort(),encodingID:r.readShort(),languageID:r.readShort(),nameID:r.readShort(),length:r.readShort(),offset:this.offset+f+r.readShort()});for(g={},h=w=0,S=u.length;w<S;h=++w)o=u[h],r.pos=o.offset,y=r.readString(o.length),l=new d1(y,o),g[d=o.nameID]==null&&(g[d]=[]),g[o.nameID].push(l);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}(),m1=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return tn(e,Rr),e.prototype.tag="maxp",e.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.numGlyphs=r.readUInt16(),this.maxPoints=r.readUInt16(),this.maxContours=r.readUInt16(),this.maxCompositePoints=r.readUInt16(),this.maxComponentContours=r.readUInt16(),this.maxZones=r.readUInt16(),this.maxTwilightPoints=r.readUInt16(),this.maxStorage=r.readUInt16(),this.maxFunctionDefs=r.readUInt16(),this.maxInstructionDefs=r.readUInt16(),this.maxStackElements=r.readUInt16(),this.maxSizeOfInstructions=r.readUInt16(),this.maxComponentElements=r.readUInt16(),this.maxComponentDepth=r.readUInt16()},e}(),v1=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return tn(e,Rr),e.prototype.tag="hmtx",e.prototype.parse=function(r){var a,u,o,h,l,f,g;for(r.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:r.readUInt16(),lsb:r.readInt16()});for(o=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var y,w;for(w=[],a=y=0;0<=o?y<o:y>o;a=0<=o?++y:--y)w.push(r.readInt16());return w}(),this.widths=function(){var y,w,S,d;for(d=[],y=0,w=(S=this.metrics).length;y<w;y++)h=S[y],d.push(h.advance);return d}.call(this),u=this.widths[this.widths.length-1],g=[],a=l=0;0<=o?l<o:l>o;a=0<=o?++l:--l)g.push(this.widths.push(u));return g},e.prototype.forGlyph=function(r){return r in this.metrics?this.metrics[r]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[r-this.metrics.length]}},e}(),Uu=[].slice,b1=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return tn(e,Rr),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(r){var a,u,o,h,l,f,g,y,w,S;return r in this.cache?this.cache[r]:(h=this.file.loca,a=this.file.contents,u=h.indexOf(r),(o=h.lengthOf(r))===0?this.cache[r]=null:(a.pos=this.offset+u,l=(f=new En(a.read(o))).readShort(),y=f.readShort(),S=f.readShort(),g=f.readShort(),w=f.readShort(),this.cache[r]=l===-1?new w1(f,y,S,g,w):new y1(f,l,y,S,g,w),this.cache[r]))},e.prototype.encode=function(r,a,u){var o,h,l,f,g;for(l=[],h=[],f=0,g=a.length;f<g;f++)o=r[a[f]],h.push(l.length),o&&(l=l.concat(o.encode(u)));return h.push(l.length),{table:l,offsets:h}},e}(),y1=function(){function n(e,r,a,u,o,h){this.raw=e,this.numberOfContours=r,this.xMin=a,this.yMin=u,this.xMax=o,this.yMax=h,this.compound=!1}return n.prototype.encode=function(){return this.raw.data},n}(),w1=function(){function n(e,r,a,u,o){var h,l;for(this.raw=e,this.xMin=r,this.yMin=a,this.xMax=u,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],h=this.raw;l=h.readShort(),this.glyphOffsets.push(h.pos),this.glyphIDs.push(h.readUInt16()),32&l;)h.pos+=1&l?4:2,128&l?h.pos+=8:64&l?h.pos+=4:8&l&&(h.pos+=2)}return n.prototype.encode=function(){var e,r,a;for(r=new En(Uu.call(this.raw.data)),e=0,a=this.glyphIDs.length;e<a;++e)r.pos=this.glyphOffsets[e];return r.data},n}(),A1=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return tn(e,Rr),e.prototype.tag="loca",e.prototype.parse=function(r){var a,u;return r.pos=this.offset,a=this.file.head.indexToLocFormat,this.offsets=a===0?function(){var o,h;for(h=[],u=0,o=this.length;u<o;u+=2)h.push(2*r.readUInt16());return h}.call(this):function(){var o,h;for(h=[],u=0,o=this.length;u<o;u+=4)h.push(r.readUInt32());return h}.call(this)},e.prototype.indexOf=function(r){return this.offsets[r]},e.prototype.lengthOf=function(r){return this.offsets[r+1]-this.offsets[r]},e.prototype.encode=function(r,a){for(var u=new Uint32Array(this.offsets.length),o=0,h=0,l=0;l<u.length;++l)if(u[l]=o,h<a.length&&a[h]==l){++h,u[l]=o;var f=this.offsets[l],g=this.offsets[l+1]-f;g>0&&(o+=g)}for(var y=new Array(4*u.length),w=0;w<u.length;++w)y[4*w+3]=255&u[w],y[4*w+2]=(65280&u[w])>>8,y[4*w+1]=(16711680&u[w])>>16,y[4*w]=(4278190080&u[w])>>24;return y},e}(),N1=function(){function n(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return n.prototype.generateCmap=function(){var e,r,a,u,o;for(r in u=this.font.cmap.tables[0].codeMap,e={},o=this.subset)a=o[r],e[r]=u[a];return e},n.prototype.glyphsFor=function(e){var r,a,u,o,h,l,f;for(u={},h=0,l=e.length;h<l;h++)u[o=e[h]]=this.font.glyf.glyphFor(o);for(o in r=[],u)(a=u[o])!=null&&a.compound&&r.push.apply(r,a.glyphIDs);if(r.length>0)for(o in f=this.glyphsFor(r))a=f[o],u[o]=a;return u},n.prototype.encode=function(e,r){var a,u,o,h,l,f,g,y,w,S,d,I,F,D,_;for(u in a=zu.encode(this.generateCmap(),"unicode"),h=this.glyphsFor(e),d={0:0},_=a.charMap)d[(f=_[u]).old]=f.new;for(I in S=a.maxGlyphID,h)I in d||(d[I]=S++);return y=function(E){var J,st;for(J in st={},E)st[E[J]]=J;return st}(d),w=Object.keys(y).sort(function(E,J){return E-J}),F=function(){var E,J,st;for(st=[],E=0,J=w.length;E<J;E++)l=w[E],st.push(y[l]);return st}(),o=this.font.glyf.encode(h,F,d),g=this.font.loca.encode(o.offsets,F),D={cmap:this.font.cmap.raw(),glyf:o.table,loca:g,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(r)},this.font.os2.exists&&(D["OS/2"]=this.font.os2.raw()),this.font.directory.encode(D)},n}();Rt.API.PDFObject=function(){var n;function e(){}return n=function(r,a){return(Array(a+1).join("0")+r).slice(-a)},e.convert=function(r){var a,u,o,h;if(Array.isArray(r))return"["+function(){var l,f,g;for(g=[],l=0,f=r.length;l<f;l++)a=r[l],g.push(e.convert(a));return g}().join(" ")+"]";if(typeof r=="string")return"/"+r;if(r?.isString)return"("+r+")";if(r instanceof Date)return"(D:"+n(r.getUTCFullYear(),4)+n(r.getUTCMonth(),2)+n(r.getUTCDate(),2)+n(r.getUTCHours(),2)+n(r.getUTCMinutes(),2)+n(r.getUTCSeconds(),2)+"Z)";if({}.toString.call(r)==="[object Object]"){for(u in o=["<<"],r)h=r[u],o.push("/"+u+" "+e.convert(h));return o.push(">>"),o.join(`
77
+ `)}return""+r},e}();const L1=Object.freeze(Object.defineProperty({__proto__:null,AcroFormAppearance:Mt,AcroFormButton:Re,AcroFormCheckBox:va,AcroFormChoiceField:$n,AcroFormComboBox:Qn,AcroFormEditBox:ga,AcroFormListBox:Zn,AcroFormPasswordField:ba,AcroFormPushButton:ma,AcroFormRadioButton:ti,AcroFormTextField:In,GState:da,ShadingPattern:jn,TilingPattern:Vn,default:Rt,jsPDF:Rt},Symbol.toStringTag,{value:"Module"}));export{he as _,L1 as j};