gantt-source_management 3.37.5
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.
- package/.editorconfig +9 -0
- package/.eslintrc.json +39 -0
- package/.prettierrc.cjs +5 -0
- package/README.md +129 -0
- package/cypress/e2e/add-rows-items.test.ts +26 -0
- package/cypress/e2e/basic.test.ts +173 -0
- package/cypress/e2e/calculated-zoom-mode.test.ts +163 -0
- package/cypress/e2e/calendar-dates.test.ts +285 -0
- package/cypress/e2e/dst.test.ts +691 -0
- package/cypress/e2e/grid-cells.test.ts +72 -0
- package/cypress/e2e/items-vertical.test.ts +305 -0
- package/cypress/e2e/items.test.ts +501 -0
- package/cypress/e2e/list-columns-toggle.test.ts +124 -0
- package/cypress/e2e/list-header-resize.test.ts +30 -0
- package/cypress/e2e/locale.test.ts +102 -0
- package/cypress/e2e/move-items-outside.test.ts +437 -0
- package/cypress/e2e/rows.test.ts +50 -0
- package/cypress/e2e/scroll-bar.test.ts +357 -0
- package/cypress/e2e/time-bookmarks.test.ts +92 -0
- package/cypress/e2e/utc-mode.test.ts +51 -0
- package/cypress/fixtures/example.json +5 -0
- package/cypress/helpers.ts +12 -0
- package/cypress/plugins/index.js +22 -0
- package/cypress/support/commands.ts +175 -0
- package/cypress/support/e2e.ts +31 -0
- package/cypress.config.js +24 -0
- package/dist/api/api.d.ts +182 -0
- package/dist/api/helpers.d.ts +9 -0
- package/dist/api/id.d.ts +14 -0
- package/dist/api/locale.d.ts +3 -0
- package/dist/api/main.d.ts +47 -0
- package/dist/api/public.d.ts +32 -0
- package/dist/api/slots.d.ts +22 -0
- package/dist/api/time.d.ts +104 -0
- package/dist/assets/2f1f893a.wasm +0 -0
- package/dist/gstc.d.ts +708 -0
- package/dist/gstc.esm.min.d.ts +708 -0
- package/dist/gstc.esm.min.js +574 -0
- package/dist/gstc.umd.min.d.ts +708 -0
- package/dist/gstc.umd.min.js +701 -0
- package/dist/gstc.wasm.esm.min.d.ts +708 -0
- package/dist/gstc.wasm.esm.min.js +574 -0
- package/dist/gstc.wasm.umd.min.d.ts +708 -0
- package/dist/gstc.wasm.umd.min.js +701 -0
- package/dist/plugins/calendar-scroll.d.ts +15 -0
- package/dist/plugins/calendar-scroll.esm.min.d.ts +15 -0
- package/dist/plugins/calendar-scroll.esm.min.js +13 -0
- package/dist/plugins/calendar-scroll.umd.min.d.ts +15 -0
- package/dist/plugins/calendar-scroll.umd.min.js +13 -0
- package/dist/plugins/dependency-lines.d.ts +47 -0
- package/dist/plugins/dependency-lines.esm.min.d.ts +47 -0
- package/dist/plugins/dependency-lines.esm.min.js +38 -0
- package/dist/plugins/dependency-lines.umd.min.d.ts +47 -0
- package/dist/plugins/dependency-lines.umd.min.js +38 -0
- package/dist/plugins/export-image.d.ts +12 -0
- package/dist/plugins/export-image.esm.min.d.ts +12 -0
- package/dist/plugins/export-image.esm.min.js +28 -0
- package/dist/plugins/export-image.umd.min.d.ts +12 -0
- package/dist/plugins/export-image.umd.min.js +34 -0
- package/dist/plugins/export-pdf.d.ts +12 -0
- package/dist/plugins/export-pdf.esm.min.d.ts +12 -0
- package/dist/plugins/export-pdf.esm.min.js +389 -0
- package/dist/plugins/export-pdf.umd.min.d.ts +12 -0
- package/dist/plugins/export-pdf.umd.min.js +511 -0
- package/dist/plugins/grab-scroll.d.ts +14 -0
- package/dist/plugins/grab-scroll.esm.min.d.ts +14 -0
- package/dist/plugins/grab-scroll.umd.min.d.ts +14 -0
- package/dist/plugins/highlight-weekends.d.ts +12 -0
- package/dist/plugins/highlight-weekends.esm.min.d.ts +12 -0
- package/dist/plugins/highlight-weekends.esm.min.js +14 -0
- package/dist/plugins/highlight-weekends.umd.min.d.ts +12 -0
- package/dist/plugins/highlight-weekends.umd.min.js +14 -0
- package/dist/plugins/item-movement.d.ts +97 -0
- package/dist/plugins/item-movement.esm.min.d.ts +97 -0
- package/dist/plugins/item-movement.esm.min.js +25 -0
- package/dist/plugins/item-movement.umd.min.d.ts +97 -0
- package/dist/plugins/item-movement.umd.min.js +25 -0
- package/dist/plugins/item-resizing.d.ts +102 -0
- package/dist/plugins/item-resizing.esm.min.d.ts +102 -0
- package/dist/plugins/item-resizing.esm.min.js +37 -0
- package/dist/plugins/item-resizing.umd.min.d.ts +102 -0
- package/dist/plugins/item-resizing.umd.min.js +37 -0
- package/dist/plugins/item-types.d.ts +13 -0
- package/dist/plugins/item-types.esm.min.d.ts +13 -0
- package/dist/plugins/item-types.esm.min.js +127 -0
- package/dist/plugins/item-types.umd.min.d.ts +13 -0
- package/dist/plugins/item-types.umd.min.js +127 -0
- package/dist/plugins/progress-bar.d.ts +13 -0
- package/dist/plugins/progress-bar.esm.min.d.ts +13 -0
- package/dist/plugins/progress-bar.esm.min.js +27 -0
- package/dist/plugins/progress-bar.umd.min.d.ts +13 -0
- package/dist/plugins/progress-bar.umd.min.js +27 -0
- package/dist/plugins/selection.d.ts +94 -0
- package/dist/plugins/selection.esm.min.d.ts +94 -0
- package/dist/plugins/selection.esm.min.js +26 -0
- package/dist/plugins/selection.umd.min.d.ts +94 -0
- package/dist/plugins/selection.umd.min.js +26 -0
- package/dist/plugins/time-bookmarks.d.ts +38 -0
- package/dist/plugins/time-bookmarks.esm.min.d.ts +38 -0
- package/dist/plugins/time-bookmarks.esm.min.js +50 -0
- package/dist/plugins/time-bookmarks.umd.min.d.ts +38 -0
- package/dist/plugins/time-bookmarks.umd.min.js +50 -0
- package/dist/plugins/timeline-pointer.d.ts +83 -0
- package/dist/plugins/timeline-pointer.esm.min.d.ts +83 -0
- package/dist/plugins/timeline-pointer.esm.min.js +13 -0
- package/dist/plugins/timeline-pointer.umd.min.d.ts +83 -0
- package/dist/plugins/timeline-pointer.umd.min.js +13 -0
- package/dist/style.css +811 -0
- package/dist/vendor.esm.min.js +128 -0
- package/examples/complex-1/faces/face-1.jpg +0 -0
- package/examples/complex-1/faces/face-10.jpg +0 -0
- package/examples/complex-1/faces/face-11.jpg +0 -0
- package/examples/complex-1/faces/face-12.jpg +0 -0
- package/examples/complex-1/faces/face-13.jpg +0 -0
- package/examples/complex-1/faces/face-14.jpg +0 -0
- package/examples/complex-1/faces/face-15.jpg +0 -0
- package/examples/complex-1/faces/face-16.jpg +0 -0
- package/examples/complex-1/faces/face-17.jpg +0 -0
- package/examples/complex-1/faces/face-18.jpg +0 -0
- package/examples/complex-1/faces/face-19.jpg +0 -0
- package/examples/complex-1/faces/face-2.jpg +0 -0
- package/examples/complex-1/faces/face-20.jpg +0 -0
- package/examples/complex-1/faces/face-21.jpg +0 -0
- package/examples/complex-1/faces/face-22.jpg +0 -0
- package/examples/complex-1/faces/face-23.jpg +0 -0
- package/examples/complex-1/faces/face-24.jpg +0 -0
- package/examples/complex-1/faces/face-25.jpg +0 -0
- package/examples/complex-1/faces/face-26.jpg +0 -0
- package/examples/complex-1/faces/face-27.jpg +0 -0
- package/examples/complex-1/faces/face-28.jpg +0 -0
- package/examples/complex-1/faces/face-29.jpg +0 -0
- package/examples/complex-1/faces/face-3.jpg +0 -0
- package/examples/complex-1/faces/face-30.jpg +0 -0
- package/examples/complex-1/faces/face-31.jpg +0 -0
- package/examples/complex-1/faces/face-32.jpg +0 -0
- package/examples/complex-1/faces/face-33.jpg +0 -0
- package/examples/complex-1/faces/face-34.jpg +0 -0
- package/examples/complex-1/faces/face-35.jpg +0 -0
- package/examples/complex-1/faces/face-36.jpg +0 -0
- package/examples/complex-1/faces/face-37.jpg +0 -0
- package/examples/complex-1/faces/face-38.jpg +0 -0
- package/examples/complex-1/faces/face-39.jpg +0 -0
- package/examples/complex-1/faces/face-4.jpg +0 -0
- package/examples/complex-1/faces/face-40.jpg +0 -0
- package/examples/complex-1/faces/face-41.jpg +0 -0
- package/examples/complex-1/faces/face-42.jpg +0 -0
- package/examples/complex-1/faces/face-43.jpg +0 -0
- package/examples/complex-1/faces/face-44.jpg +0 -0
- package/examples/complex-1/faces/face-45.jpg +0 -0
- package/examples/complex-1/faces/face-46.jpg +0 -0
- package/examples/complex-1/faces/face-47.jpg +0 -0
- package/examples/complex-1/faces/face-48.jpg +0 -0
- package/examples/complex-1/faces/face-49.jpg +0 -0
- package/examples/complex-1/faces/face-5.jpg +0 -0
- package/examples/complex-1/faces/face-50.jpg +0 -0
- package/examples/complex-1/faces/face-6.jpg +0 -0
- package/examples/complex-1/faces/face-7.jpg +0 -0
- package/examples/complex-1/faces/face-8.jpg +0 -0
- package/examples/complex-1/faces/face-9.jpg +0 -0
- package/examples/complex-1/index.html +61 -0
- package/examples/complex-1/index.js +923 -0
- package/examples/index.html +22 -0
- package/examples/reset.css +455 -0
- package/examples/server.js +18 -0
- package/package.json +150 -0
- package/tsconfig.json +17 -0
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
function A(A,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(e){if("default"!==e&&!(e in A)){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(A,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}}))})),Object.freeze(A)}function t(A,t,e,r){return new(e||(e=Promise))((function(n,i){function s(A){try{a(r.next(A))}catch(A){i(A)}}function o(A){try{a(r.throw(A))}catch(A){i(A)}}function a(A){var t;A.done?n(A.value):(t=A.value,t instanceof e?t:new e((function(A){A(t)}))).then(s,o)}a((r=r.apply(A,t||[])).next())}))}function e(A){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},e(A)}"function"==typeof SuppressedError&&SuppressedError;var r=Uint8Array,n=Uint16Array,i=Uint32Array,s=new r([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]),o=new r([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]),a=new r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(A,t){for(var e=new n(31),r=0;r<31;++r)e[r]=t+=1<<A[r-1];var s=new i(e[30]);for(r=1;r<30;++r)for(var o=e[r];o<e[r+1];++o)s[o]=o-e[r]<<5|r;return[e,s]},u=c(s,2),l=u[0],h=u[1];l[28]=258,h[258]=28;for(var f=c(o,0),d=f[0],g=f[1],p=new n(32768),B=0;B<32768;++B){var w=(43690&B)>>>1|(21845&B)<<1;w=(61680&(w=(52428&w)>>>2|(13107&w)<<2))>>>4|(3855&w)<<4,p[B]=((65280&w)>>>8|(255&w)<<8)>>>1}var m=function(A,t,e){for(var r=A.length,i=0,s=new n(t);i<r;++i)++s[A[i]-1];var o,a=new n(t);for(i=0;i<t;++i)a[i]=a[i-1]+s[i-1]<<1;if(e){o=new n(1<<t);var c=15-t;for(i=0;i<r;++i)if(A[i])for(var u=i<<4|A[i],l=t-A[i],h=a[A[i]-1]++<<l,f=h|(1<<l)-1;h<=f;++h)o[p[h]>>>c]=u}else for(o=new n(r),i=0;i<r;++i)o[i]=p[a[A[i]-1]++]>>>15-A[i];return o},y=new r(288);for(B=0;B<144;++B)y[B]=8;for(B=144;B<256;++B)y[B]=9;for(B=256;B<280;++B)y[B]=7;for(B=280;B<288;++B)y[B]=8;var v=new r(32);for(B=0;B<32;++B)v[B]=5;var b=m(y,9,0),C=m(y,9,1),Q=m(v,5,0),F=m(v,5,1),U=function(A){for(var t=A[0],e=1;e<A.length;++e)A[e]>t&&(t=A[e]);return t},x=function(A,t,e){var r=t/8|0;return(A[r]|A[r+1]<<8)>>>(7&t)&e},E=function(A,t){var e=t/8|0;return(A[e]|A[e+1]<<8|A[e+2]<<16)>>>(7&t)},L=function(A){return(A/8|0)+(7&A&&1)},S=function(A,t,e){(null==t||t<0)&&(t=0),(null==e||e>A.length)&&(e=A.length);var s=new(A instanceof n?n:A instanceof i?i:r)(e-t);return s.set(A.subarray(t,e)),s},I=function(A,t,e){e<<=7&t;var r=t/8|0;A[r]|=e,A[r+1]|=e>>>8},N=function(A,t,e){e<<=7&t;var r=t/8|0;A[r]|=e,A[r+1]|=e>>>8,A[r+2]|=e>>>16},H=function(A,t){for(var e=[],i=0;i<A.length;++i)A[i]&&e.push({s:i,f:A[i]});var s=e.length,o=e.slice();if(!s)return[new r(0),0];if(1==s){var a=new r(e[0].s+1);return a[e[0].s]=1,[a,1]}e.sort((function(A,t){return A.f-t.f})),e.push({s:-1,f:25001});var c=e[0],u=e[1],l=0,h=1,f=2;for(e[0]={s:-1,f:c.f+u.f,l:c,r:u};h!=s-1;)c=e[e[l].f<e[f].f?l++:f++],u=e[l!=h&&e[l].f<e[f].f?l++:f++],e[h++]={s:-1,f:c.f+u.f,l:c,r:u};var d=o[0].s;for(i=1;i<s;++i)o[i].s>d&&(d=o[i].s);var g=new n(d+1),p=P(e[h-1],g,0);if(p>t){i=0;var B=0,w=p-t,m=1<<w;for(o.sort((function(A,t){return g[t.s]-g[A.s]||A.f-t.f}));i<s;++i){var y=o[i].s;if(!(g[y]>t))break;B+=m-(1<<p-g[y]),g[y]=t}for(B>>>=w;B>0;){var v=o[i].s;g[v]<t?B-=1<<t-g[v]++-1:++i}for(;i>=0&&B;--i){var b=o[i].s;g[b]==t&&(--g[b],++B)}p=t}return[new r(g),p]},P=function(A,t,e){return-1==A.s?Math.max(P(A.l,t,e+1),P(A.r,t,e+1)):t[A.s]=e},O=function(A){for(var t=A.length;t&&!A[--t];);for(var e=new n(++t),r=0,i=A[0],s=1,o=function(A){e[r++]=A},a=1;a<=t;++a)if(A[a]==i&&a!=t)++s;else{if(!i&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(i),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(i);s=1,i=A[a]}return[e.subarray(0,r),t]},T=function(A,t){for(var e=0,r=0;r<t.length;++r)e+=A[r]*t[r];return e},_=function(A,t,e){var r=e.length,n=L(t+2);A[n]=255&r,A[n+1]=r>>>8,A[n+2]=255^A[n],A[n+3]=255^A[n+1];for(var i=0;i<r;++i)A[n+i+4]=e[i];return 8*(n+4+r)},k=function(A,t,e,r,i,c,u,l,h,f,d){I(t,d++,e),++i[256];for(var g=H(i,15),p=g[0],B=g[1],w=H(c,15),C=w[0],F=w[1],U=O(p),x=U[0],E=U[1],L=O(C),S=L[0],P=L[1],k=new n(19),M=0;M<x.length;++M)k[31&x[M]]++;for(M=0;M<S.length;++M)k[31&S[M]]++;for(var D=H(k,7),R=D[0],K=D[1],V=19;V>4&&!R[a[V-1]];--V);var j,G,q,X,z=f+5<<3,W=T(i,y)+T(c,v)+u,Y=T(i,p)+T(c,C)+u+14+3*V+T(k,R)+(2*k[16]+3*k[17]+7*k[18]);if(z<=W&&z<=Y)return _(t,d,A.subarray(h,h+f));if(I(t,d,1+(Y<W)),d+=2,Y<W){j=m(p,B,0),G=p,q=m(C,F,0),X=C;var J=m(R,K,0);I(t,d,E-257),I(t,d+5,P-1),I(t,d+10,V-4),d+=14;for(M=0;M<V;++M)I(t,d+3*M,R[a[M]]);d+=3*V;for(var Z=[x,S],$=0;$<2;++$){var AA=Z[$];for(M=0;M<AA.length;++M){var tA=31&AA[M];I(t,d,J[tA]),d+=R[tA],tA>15&&(I(t,d,AA[M]>>>5&127),d+=AA[M]>>>12)}}}else j=b,G=y,q=Q,X=v;for(M=0;M<l;++M)if(r[M]>255){tA=r[M]>>>18&31;N(t,d,j[tA+257]),d+=G[tA+257],tA>7&&(I(t,d,r[M]>>>23&31),d+=s[tA]);var eA=31&r[M];N(t,d,q[eA]),d+=X[eA],eA>3&&(N(t,d,r[M]>>>5&8191),d+=o[eA])}else N(t,d,j[r[M]]),d+=G[r[M]];return N(t,d,j[256]),d+G[256]},M=new i([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),D=new r(0),R=function(A,t,e,a,c){return function(A,t,e,a,c,u){var l=A.length,f=new r(a+l+5*(1+Math.floor(l/7e3))+c),d=f.subarray(a,f.length-c),p=0;if(!t||l<8)for(var B=0;B<=l;B+=65535){var w=B+65535;w<l?p=_(d,p,A.subarray(B,w)):(d[B]=u,p=_(d,p,A.subarray(B,l)))}else{for(var m=M[t-1],y=m>>>13,v=8191&m,b=(1<<e)-1,C=new n(32768),Q=new n(b+1),F=Math.ceil(e/3),U=2*F,x=function(t){return(A[t]^A[t+1]<<F^A[t+2]<<U)&b},E=new i(25e3),I=new n(288),N=new n(32),H=0,P=0,O=(B=0,0),T=0,R=0;B<l;++B){var K=x(B),V=32767&B,j=Q[K];if(C[V]=j,Q[K]=V,T<=B){var G=l-B;if((H>7e3||O>24576)&&G>423){p=k(A,d,0,E,I,N,P,O,R,B-R,p),O=H=P=0,R=B;for(var q=0;q<286;++q)I[q]=0;for(q=0;q<30;++q)N[q]=0}var X=2,z=0,W=v,Y=V-j&32767;if(G>2&&K==x(B-Y))for(var J=Math.min(y,G)-1,Z=Math.min(32767,B),$=Math.min(258,G);Y<=Z&&--W&&V!=j;){if(A[B+X]==A[B+X-Y]){for(var AA=0;AA<$&&A[B+AA]==A[B+AA-Y];++AA);if(AA>X){if(X=AA,z=Y,AA>J)break;var tA=Math.min(Y,AA-2),eA=0;for(q=0;q<tA;++q){var rA=B-Y+q+32768&32767,nA=rA-C[rA]+32768&32767;nA>eA&&(eA=nA,j=rA)}}}Y+=(V=j)-(j=C[V])+32768&32767}if(z){E[O++]=268435456|h[X]<<18|g[z];var iA=31&h[X],sA=31&g[z];P+=s[iA]+o[sA],++I[257+iA],++N[sA],T=B+X,++H}else E[O++]=A[B],++I[A[B]]}}p=k(A,d,u,E,I,N,P,O,R,B-R,p),u||(p=_(d,p,D))}return S(f,0,a+L(p)+c)}(A,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(A.length)))):12+t.mem,e,a,!c)};function K(A,t){void 0===t&&(t={});var e=function(){var A=1,t=0;return{p:function(e){for(var r=A,n=t,i=e.length,s=0;s!=i;){for(var o=Math.min(s+5552,i);s<o;++s)n+=r+=e[s];r%=65521,n%=65521}A=r,t=n},d:function(){return(A>>>8<<16|(255&t)<<8|t>>>8)+2*((255&A)<<23)}}}();e.p(A);var r=R(A,t,2,4);return function(A,t){var e=t.level,r=0==e?0:e<6?1:9==e?3:2;A[0]=120,A[1]=r<<6|(r?32-2*r:1)}(r,t),function(A,t,e){for(;e;++t)A[t]=e,e>>>=8}(r,r.length-4,e.d()),r}function V(A,t){return function(A,t,e){var n=A.length,i=!t||e,c=!e||e.i;e||(e={}),t||(t=new r(3*n));var u=function(A){var e=t.length;if(A>e){var n=new r(Math.max(2*e,A));n.set(t),t=n}},h=e.f||0,f=e.p||0,g=e.b||0,p=e.l,B=e.d,w=e.m,y=e.n,v=8*n;do{if(!p){e.f=h=x(A,f,1);var b=x(A,f+1,3);if(f+=3,!b){var Q=A[(R=L(f)+4)-4]|A[R-3]<<8,I=R+Q;if(I>n){if(c)throw"unexpected EOF";break}i&&u(g+Q),t.set(A.subarray(R,I),g),e.b=g+=Q,e.p=f=8*I;continue}if(1==b)p=C,B=F,w=9,y=5;else{if(2!=b)throw"invalid block type";var N=x(A,f,31)+257,H=x(A,f+10,15)+4,P=N+x(A,f+5,31)+1;f+=14;for(var O=new r(P),T=new r(19),_=0;_<H;++_)T[a[_]]=x(A,f+3*_,7);f+=3*H;var k=U(T),M=(1<<k)-1;if(!c&&f+P*(k+7)>v)break;var D=m(T,k,1);for(_=0;_<P;){var R,K=D[x(A,f,M)];if(f+=15&K,(R=K>>>4)<16)O[_++]=R;else{var V=0,j=0;for(16==R?(j=3+x(A,f,3),f+=2,V=O[_-1]):17==R?(j=3+x(A,f,7),f+=3):18==R&&(j=11+x(A,f,127),f+=7);j--;)O[_++]=V}}var G=O.subarray(0,N),q=O.subarray(N);w=U(G),y=U(q),p=m(G,w,1),B=m(q,y,1)}if(f>v)throw"unexpected EOF"}i&&u(g+131072);for(var X=(1<<w)-1,z=(1<<y)-1,W=w+y+18;c||f+W<v;){var Y=(V=p[E(A,f)&X])>>>4;if((f+=15&V)>v)throw"unexpected EOF";if(!V)throw"invalid length/literal";if(Y<256)t[g++]=Y;else{if(256==Y){p=null;break}var J=Y-254;if(Y>264){var Z=s[_=Y-257];J=x(A,f,(1<<Z)-1)+l[_],f+=Z}var $=B[E(A,f)&z],AA=$>>>4;if(!$)throw"invalid distance";if(f+=15&$,q=d[AA],AA>3&&(Z=o[AA],q+=E(A,f)&(1<<Z)-1,f+=Z),f>v)throw"unexpected EOF";i&&u(g+131072);for(var tA=g+J;g<tA;g+=4)t[g]=t[g-q],t[g+1]=t[g+1-q],t[g+2]=t[g+2-q],t[g+3]=t[g+3-q];g=tA}}e.l=p,e.p=f,e.b=g,p&&(h=1,e.m=w,e.d=B,e.n=y)}while(!h);return g==t.length?t:S(t,0,g)}((function(A){if(8!=(15&A[0])||A[0]>>>4>7||(A[0]<<8|A[1])%31)throw"invalid zlib data";if(32&A[1])throw"invalid zlib data: preset dictionaries not supported"}(A),A.subarray(2,-4)),t)}
|
|
2
|
+
/** @license
|
|
3
|
+
*
|
|
4
|
+
* jsPDF - PDF Document creation from JavaScript
|
|
5
|
+
* Version 2.5.1 Built on 2022-01-28T15:37:57.791Z
|
|
6
|
+
* CommitID 00000000
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
|
|
9
|
+
* 2015-2021 yWorks GmbH, http://www.yworks.com
|
|
10
|
+
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
|
|
11
|
+
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
|
|
12
|
+
* 2010 Aaron Spike, https://github.com/acspike
|
|
13
|
+
* 2012 Willow Systems Corporation, https://github.com/willowsystems
|
|
14
|
+
* 2012 Pablo Hess, https://github.com/pablohess
|
|
15
|
+
* 2012 Florian Jenett, https://github.com/fjenett
|
|
16
|
+
* 2013 Warren Weckesser, https://github.com/warrenweckesser
|
|
17
|
+
* 2013 Youssef Beddad, https://github.com/lifof
|
|
18
|
+
* 2013 Lee Driscoll, https://github.com/lsdriscoll
|
|
19
|
+
* 2013 Stefan Slonevskiy, https://github.com/stefslon
|
|
20
|
+
* 2013 Jeremy Morel, https://github.com/jmorel
|
|
21
|
+
* 2013 Christoph Hartmann, https://github.com/chris-rock
|
|
22
|
+
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
|
|
23
|
+
* 2014 James Makes, https://github.com/dollaruw
|
|
24
|
+
* 2014 Diego Casorran, https://github.com/diegocr
|
|
25
|
+
* 2014 Steven Spungin, https://github.com/Flamenco
|
|
26
|
+
* 2014 Kenneth Glassey, https://github.com/Gavvers
|
|
27
|
+
*
|
|
28
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
29
|
+
* a copy of this software and associated documentation files (the
|
|
30
|
+
* "Software"), to deal in the Software without restriction, including
|
|
31
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
32
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
33
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
34
|
+
* the following conditions:
|
|
35
|
+
*
|
|
36
|
+
* The above copyright notice and this permission notice shall be
|
|
37
|
+
* included in all copies or substantial portions of the Software.
|
|
38
|
+
*
|
|
39
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
40
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
41
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
42
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
43
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
44
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
45
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
46
|
+
*
|
|
47
|
+
* Contributor(s):
|
|
48
|
+
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
|
|
49
|
+
* kim3er, mfo, alnorth, Flamenco
|
|
50
|
+
*/var j=function(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this}();function G(){j.console&&"function"==typeof j.console.log&&j.console.log.apply(j.console,arguments)}var q={log:G,warn:function(A){j.console&&("function"==typeof j.console.warn?j.console.warn.apply(j.console,arguments):G.call(null,arguments))},error:function(A){j.console&&("function"==typeof j.console.error?j.console.error.apply(j.console,arguments):G(A))}};function X(A,t,e){var r=new XMLHttpRequest;r.open("GET",A),r.responseType="blob",r.onload=function(){Z(r.response,t,e)},r.onerror=function(){q.error("could not download file")},r.send()}function z(A){var t=new XMLHttpRequest;t.open("HEAD",A,!1);try{t.send()}catch(A){}return t.status>=200&&t.status<=299}function W(A){try{A.dispatchEvent(new MouseEvent("click"))}catch(e){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),A.dispatchEvent(t)}}var Y,J,Z=j.saveAs||("object"!==("undefined"==typeof window?"undefined":e(window))||window!==j?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(A,t,e){var r=j.URL||j.webkitURL,n=document.createElement("a");t=t||A.name||"download",n.download=t,n.rel="noopener","string"==typeof A?(n.href=A,n.origin!==location.origin?z(n.href)?X(A,t,e):W(n,n.target="_blank"):W(n)):(n.href=r.createObjectURL(A),setTimeout((function(){r.revokeObjectURL(n.href)}),4e4),setTimeout((function(){W(n)}),0))}:"msSaveOrOpenBlob"in navigator?function(A,t,r){if(t=t||A.name||"download","string"==typeof A)if(z(A))X(A,t,r);else{var n=document.createElement("a");n.href=A,n.target="_blank",setTimeout((function(){W(n)}))}else navigator.msSaveOrOpenBlob(function(A,t){return void 0===t?t={autoBom:!1}:"object"!==e(t)&&(q.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(A.type)?new Blob([String.fromCharCode(65279),A],{type:A.type}):A}(A,r),t)}:function(A,t,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeof A)return X(A,t,r);var i="application/octet-stream"===A.type,s=/constructor/i.test(j.HTMLElement)||j.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&s)&&"object"===("undefined"==typeof FileReader?"undefined":e(FileReader))){var a=new FileReader;a.onloadend=function(){var A=a.result;A=o?A:A.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=A:location=A,n=null},a.readAsDataURL(A)}else{var c=j.URL||j.webkitURL,u=c.createObjectURL(A);n?n.location=u:location.href=u,n=null,setTimeout((function(){c.revokeObjectURL(u)}),4e4)}});
|
|
51
|
+
/**
|
|
52
|
+
* A class to parse color values
|
|
53
|
+
* @author Stoyan Stefanov <sstoo@gmail.com>
|
|
54
|
+
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
|
|
55
|
+
* @license Use it if you like it
|
|
56
|
+
*/function $(A){var t;A=A||"",this.ok=!1,"#"==A.charAt(0)&&(A=A.substr(1,6));A={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"}[A=(A=A.replace(/ /g,"")).toLowerCase()]||A;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(A){return[parseInt(A[1]),parseInt(A[2]),parseInt(A[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(A){return[parseInt(A[1],16),parseInt(A[2],16),parseInt(A[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(A){return[parseInt(A[1]+A[1],16),parseInt(A[2]+A[2],16),parseInt(A[3]+A[3],16)]}}],r=0;r<e.length;r++){var n=e[r].re,i=e[r].process,s=n.exec(A);s&&(t=i(s),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var A=this.r.toString(16),t=this.g.toString(16),e=this.b.toString(16);return 1==A.length&&(A="0"+A),1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),"#"+A+t+e}}
|
|
57
|
+
/**
|
|
58
|
+
* @license
|
|
59
|
+
* Joseph Myers does not specify a particular license for his work.
|
|
60
|
+
*
|
|
61
|
+
* Author: Joseph Myers
|
|
62
|
+
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
|
|
63
|
+
*
|
|
64
|
+
* Modified by: Owen Leong
|
|
65
|
+
*/
|
|
66
|
+
function AA(A,t){var e=A[0],r=A[1],n=A[2],i=A[3];e=eA(e,r,n,i,t[0],7,-680876936),i=eA(i,e,r,n,t[1],12,-389564586),n=eA(n,i,e,r,t[2],17,606105819),r=eA(r,n,i,e,t[3],22,-1044525330),e=eA(e,r,n,i,t[4],7,-176418897),i=eA(i,e,r,n,t[5],12,1200080426),n=eA(n,i,e,r,t[6],17,-1473231341),r=eA(r,n,i,e,t[7],22,-45705983),e=eA(e,r,n,i,t[8],7,1770035416),i=eA(i,e,r,n,t[9],12,-1958414417),n=eA(n,i,e,r,t[10],17,-42063),r=eA(r,n,i,e,t[11],22,-1990404162),e=eA(e,r,n,i,t[12],7,1804603682),i=eA(i,e,r,n,t[13],12,-40341101),n=eA(n,i,e,r,t[14],17,-1502002290),e=rA(e,r=eA(r,n,i,e,t[15],22,1236535329),n,i,t[1],5,-165796510),i=rA(i,e,r,n,t[6],9,-1069501632),n=rA(n,i,e,r,t[11],14,643717713),r=rA(r,n,i,e,t[0],20,-373897302),e=rA(e,r,n,i,t[5],5,-701558691),i=rA(i,e,r,n,t[10],9,38016083),n=rA(n,i,e,r,t[15],14,-660478335),r=rA(r,n,i,e,t[4],20,-405537848),e=rA(e,r,n,i,t[9],5,568446438),i=rA(i,e,r,n,t[14],9,-1019803690),n=rA(n,i,e,r,t[3],14,-187363961),r=rA(r,n,i,e,t[8],20,1163531501),e=rA(e,r,n,i,t[13],5,-1444681467),i=rA(i,e,r,n,t[2],9,-51403784),n=rA(n,i,e,r,t[7],14,1735328473),e=nA(e,r=rA(r,n,i,e,t[12],20,-1926607734),n,i,t[5],4,-378558),i=nA(i,e,r,n,t[8],11,-2022574463),n=nA(n,i,e,r,t[11],16,1839030562),r=nA(r,n,i,e,t[14],23,-35309556),e=nA(e,r,n,i,t[1],4,-1530992060),i=nA(i,e,r,n,t[4],11,1272893353),n=nA(n,i,e,r,t[7],16,-155497632),r=nA(r,n,i,e,t[10],23,-1094730640),e=nA(e,r,n,i,t[13],4,681279174),i=nA(i,e,r,n,t[0],11,-358537222),n=nA(n,i,e,r,t[3],16,-722521979),r=nA(r,n,i,e,t[6],23,76029189),e=nA(e,r,n,i,t[9],4,-640364487),i=nA(i,e,r,n,t[12],11,-421815835),n=nA(n,i,e,r,t[15],16,530742520),e=iA(e,r=nA(r,n,i,e,t[2],23,-995338651),n,i,t[0],6,-198630844),i=iA(i,e,r,n,t[7],10,1126891415),n=iA(n,i,e,r,t[14],15,-1416354905),r=iA(r,n,i,e,t[5],21,-57434055),e=iA(e,r,n,i,t[12],6,1700485571),i=iA(i,e,r,n,t[3],10,-1894986606),n=iA(n,i,e,r,t[10],15,-1051523),r=iA(r,n,i,e,t[1],21,-2054922799),e=iA(e,r,n,i,t[8],6,1873313359),i=iA(i,e,r,n,t[15],10,-30611744),n=iA(n,i,e,r,t[6],15,-1560198380),r=iA(r,n,i,e,t[13],21,1309151649),e=iA(e,r,n,i,t[4],6,-145523070),i=iA(i,e,r,n,t[11],10,-1120210379),n=iA(n,i,e,r,t[2],15,718787259),r=iA(r,n,i,e,t[9],21,-343485551),A[0]=fA(e,A[0]),A[1]=fA(r,A[1]),A[2]=fA(n,A[2]),A[3]=fA(i,A[3])}function tA(A,t,e,r,n,i){return t=fA(fA(t,A),fA(r,i)),fA(t<<n|t>>>32-n,e)}function eA(A,t,e,r,n,i,s){return tA(t&e|~t&r,A,t,n,i,s)}function rA(A,t,e,r,n,i,s){return tA(t&r|e&~r,A,t,n,i,s)}function nA(A,t,e,r,n,i,s){return tA(t^e^r,A,t,n,i,s)}function iA(A,t,e,r,n,i,s){return tA(e^(t|~r),A,t,n,i,s)}function sA(A){var t,e=A.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=A.length;t+=64)AA(r,oA(A.substring(t-64,t)));A=A.substring(t-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<A.length;t++)n[t>>2]|=A.charCodeAt(t)<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),t>55)for(AA(r,n),t=0;t<16;t++)n[t]=0;return n[14]=8*e,AA(r,n),r}function oA(A){var t,e=[];for(t=0;t<64;t+=4)e[t>>2]=A.charCodeAt(t)+(A.charCodeAt(t+1)<<8)+(A.charCodeAt(t+2)<<16)+(A.charCodeAt(t+3)<<24);return e}Y=j.atob.bind(j),J=j.btoa.bind(j);var aA="0123456789abcdef".split("");function cA(A){for(var t="",e=0;e<4;e++)t+=aA[A>>8*e+4&15]+aA[A>>8*e&15];return t}function uA(A){return String.fromCharCode(255&A,(65280&A)>>8,(16711680&A)>>16,(4278190080&A)>>24)}function lA(A){return function(A){return A.map(uA).join("")}(sA(A))}var hA="5d41402abc4b2a76b9719d911017c592"!=function(A){return function(A){for(var t=0;t<A.length;t++)A[t]=cA(A[t]);return A.join("")}(sA(A))}("hello");function fA(A,t){if(hA){var e=(65535&A)+(65535&t);return(A>>16)+(t>>16)+(e>>16)<<16|65535&e}return A+t&4294967295}
|
|
67
|
+
/**
|
|
68
|
+
* @license
|
|
69
|
+
* FPDF is released under a permissive license: there is no usage restriction.
|
|
70
|
+
* You may embed it freely in your application (commercial or not), with or
|
|
71
|
+
* without modifications.
|
|
72
|
+
*
|
|
73
|
+
* Reference: http://www.fpdf.org/en/script/script37.php
|
|
74
|
+
*/function dA(A,t){var e,r,n,i;if(A!==e){for(var s=(n=A,i=1+(256/A.length|0),new Array(i+1).join(n)),o=[],a=0;a<256;a++)o[a]=a;var c=0;for(a=0;a<256;a++){var u=o[a];c=(c+u+s.charCodeAt(a))%256,o[a]=o[c],o[c]=u}e=A,r=o}else o=r;var l=t.length,h=0,f=0,d="";for(a=0;a<l;a++)f=(f+(u=o[h=(h+1)%256]))%256,o[h]=o[f],o[f]=u,s=o[(o[h]+o[f])%256],d+=String.fromCharCode(t.charCodeAt(a)^s);return d}
|
|
75
|
+
/**
|
|
76
|
+
* @license
|
|
77
|
+
* Licensed under the MIT License.
|
|
78
|
+
* http://opensource.org/licenses/mit-license
|
|
79
|
+
* Author: Owen Leong (@owenl131)
|
|
80
|
+
* Date: 15 Oct 2020
|
|
81
|
+
* References:
|
|
82
|
+
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
|
|
83
|
+
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
|
|
84
|
+
* http://www.fpdf.org/en/script/script37.php
|
|
85
|
+
*/var gA={print:4,modify:8,copy:16,"annot-forms":32};function pA(A,t,e,r){this.v=1,this.r=2;var n=192;A.forEach((function(A){if(void 0!==gA.perm)throw new Error("Invalid permission: "+A);n+=gA[A]})),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(t+this.padding).substr(0,32),s=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,s),this.P=-(1+(255^n)),this.encryptionKey=lA(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=dA(this.encryptionKey,this.padding)}function BA(A){if(/[^\u0000-\u00ff]/.test(A))throw new Error("Invalid PDF Name Object: "+A+", Only accept ASCII characters.");for(var t="",e=A.length,r=0;r<e;r++){var n=A.charCodeAt(r);if(n<33||35===n||37===n||40===n||41===n||47===n||60===n||62===n||91===n||93===n||123===n||125===n||n>126)t+="#"+("0"+n.toString(16)).slice(-2);else t+=A[r]}return t}function wA(A){if("object"!==e(A))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(A,e,r){if(r=r||!1,"string"!=typeof A||"function"!=typeof e||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(A)||(t[A]={});var n=Math.random().toString(35);return t[A][n]=[e,!!r],n},this.unsubscribe=function(A){for(var e in t)if(t[e][A])return delete t[e][A],0===Object.keys(t[e]).length&&delete t[e],!0;return!1},this.publish=function(e){if(t.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in t[e]){var s=t[e][i];try{s[0].apply(A,r)}catch(A){j.console&&q.error("jsPDF PubSub Error",A.message,A)}s[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function mA(A){if(!(this instanceof mA))return new mA(A);var t="opacity,stroke-opacity".split(",");for(var e in A)A.hasOwnProperty(e)&&t.indexOf(e)>=0&&(this[e]=A[e]);this.id="",this.objectNumber=-1}function yA(A,t){this.gState=A,this.matrix=t,this.id="",this.objectNumber=-1}function vA(A,t,e,r,n){if(!(this instanceof vA))return new vA(A,t,e,r,n);this.type="axial"===A?2:3,this.coords=t,this.colors=e,yA.call(this,r,n)}function bA(A,t,e,r,n){if(!(this instanceof bA))return new bA(A,t,e,r,n);this.boundingBox=A,this.xStep=t,this.yStep=e,this.stream="",this.cloneIndex=0,yA.call(this,r,n)}function CA(A){var t,r="string"==typeof arguments[0]?arguments[0]:"p",n=arguments[1],i=arguments[2],s=arguments[3],o=[],a=1,c=16,u="S",l=null;"object"===e(A=A||{})&&(r=A.orientation,n=A.unit||n,i=A.format||i,s=A.compress||A.compressPdf||s,null!==(l=A.encryption||null)&&(l.userPassword=l.userPassword||"",l.ownerPassword=l.ownerPassword||"",l.userPermissions=l.userPermissions||[]),a="number"==typeof A.userUnit?Math.abs(A.userUnit):1,void 0!==A.precision&&(t=A.precision),void 0!==A.floatPrecision&&(c=A.floatPrecision),u=A.defaultPathOperation||"S"),o=A.filters||(!0===s?["FlateEncode"]:o),n=n||"mm",r=(""+(r||"P")).toLowerCase();var h=A.putOnlyUsedFonts||!1,f={},d={internal:{},__private__:{}};d.__private__.PubSub=wA;var g="1.3",p=d.__private__.getPdfVersion=function(){return g};d.__private__.setPdfVersion=function(A){g=A};var B={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};d.__private__.getPageFormats=function(){return B};var w=d.__private__.getPageFormat=function(A){return B[A]};i=i||"a4";var m="compat",y="advanced",v=m;function b(){this.saveGraphicsState(),rA(new jA(FA,0,0,-FA,0,ve()*FA).toString()+" cm"),this.setFontSize(this.getFontSize()/FA),u="n",v=y}function C(){this.restoreGraphicsState(),u="S",v=m}var Q=d.__private__.combineFontStyleAndFontWeight=function(A,t){if("bold"==A&&"normal"==t||"bold"==A&&400==t||"normal"==A&&"italic"==t||"bold"==A&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(A=400==t||"normal"===t?"italic"===A?"italic":"normal":700!=t&&"bold"!==t||"normal"!==A?(700==t?"bold":t)+""+A:"bold"),A};d.advancedAPI=function(A){var t=v===m;return t&&b.call(this),"function"!=typeof A||(A(this),t&&C.call(this)),this},d.compatAPI=function(A){var t=v===y;return t&&C.call(this),"function"!=typeof A||(A(this),t&&b.call(this)),this},d.isAdvancedAPI=function(){return v===y};var F,U=function(A){if(v!==y)throw new Error(A+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},x=d.roundToPrecision=d.__private__.roundToPrecision=function(A,e){var r=t||e;if(isNaN(A)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return A.toFixed(r).replace(/0+$/,"")};F=d.hpf=d.__private__.hpf="number"==typeof c?function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.hpf");return x(A,c)}:"smart"===c?function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.hpf");return x(A,A>-1&&A<1?16:5)}:function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.hpf");return x(A,16)};var E=d.f2=d.__private__.f2=function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.f2");return x(A,2)},L=d.__private__.f3=function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.f3");return x(A,3)},S=d.scale=d.__private__.scale=function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.scale");return v===m?A*FA:v===y?A:void 0},I=function(A){return S(function(A){return v===m?ve()-A:v===y?A:void 0}(A))};d.__private__.setPrecision=d.setPrecision=function(A){"number"==typeof parseInt(A,10)&&(t=parseInt(A,10))};var N,H="00000000000000000000000000000000",P=d.__private__.getFileId=function(){return H},O=d.__private__.setFileId=function(A){return H=void 0!==A&&/^[a-fA-F0-9]{32}$/.test(A)?A.toUpperCase():H.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==l&&(It=new pA(l.userPermissions,l.userPassword,l.ownerPassword,H)),H};d.setFileId=function(A){return O(A),this},d.getFileId=function(){return P()};var T=d.__private__.convertDateToPDFDate=function(A){var t=A.getTimezoneOffset(),e=t<0?"+":"-",r=Math.floor(Math.abs(t/60)),n=Math.abs(t%60),i=[e,R(r),"'",R(n),"'"].join("");return["D:",A.getFullYear(),R(A.getMonth()+1),R(A.getDate()),R(A.getHours()),R(A.getMinutes()),R(A.getSeconds()),i].join("")},_=d.__private__.convertPDFDateToDate=function(A){var t=parseInt(A.substr(2,4),10),e=parseInt(A.substr(6,2),10)-1,r=parseInt(A.substr(8,2),10),n=parseInt(A.substr(10,2),10),i=parseInt(A.substr(12,2),10),s=parseInt(A.substr(14,2),10);return new Date(t,e,r,n,i,s,0)},k=d.__private__.setCreationDate=function(A){var t;if(void 0===A&&(A=new Date),A instanceof Date)t=T(A);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(A))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=A}return N=t},M=d.__private__.getCreationDate=function(A){var t=N;return"jsDate"===A&&(t=_(N)),t};d.setCreationDate=function(A){return k(A),this},d.getCreationDate=function(A){return M(A)};var D,R=d.__private__.padd2=function(A){return("0"+parseInt(A)).slice(-2)},K=d.__private__.padd2Hex=function(A){return("00"+(A=A.toString())).substr(A.length)},V=0,G=[],X=[],z=0,W=[],Y=[],AA=!1,tA=X;d.__private__.setCustomOutputDestination=function(A){AA=!0,tA=A};var eA=function(A){AA||(tA=A)};d.__private__.resetCustomOutputDestination=function(){AA=!1,tA=X};var rA=d.__private__.out=function(A){return A=A.toString(),z+=A.length+1,tA.push(A),tA},nA=d.__private__.write=function(A){return rA(1===arguments.length?A.toString():Array.prototype.join.call(arguments," "))},iA=d.__private__.getArrayBuffer=function(A){for(var t=A.length,e=new ArrayBuffer(t),r=new Uint8Array(e);t--;)r[t]=A.charCodeAt(t);return e},sA=[["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 sA};var oA=A.fontSize||16;d.__private__.setFontSize=d.setFontSize=function(A){return oA=v===y?A/FA:A,this};var aA,cA=d.__private__.getFontSize=d.getFontSize=function(){return v===m?oA:oA*FA},uA=A.R2L||!1;d.__private__.setR2L=d.setR2L=function(A){return uA=A,this},d.__private__.getR2L=d.getR2L=function(){return uA};var lA,hA=d.__private__.setZoomMode=function(A){var t=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(A))aA=A;else if(isNaN(A)){if(-1===t.indexOf(A))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+A+'" is not recognized.');aA=A}else aA=parseInt(A,10)};d.__private__.getZoomMode=function(){return aA};var fA,dA=d.__private__.setPageMode=function(A){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(A))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+A+'" is not recognized.');lA=A};d.__private__.getPageMode=function(){return lA};var gA=d.__private__.setLayoutMode=function(A){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(A))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+A+'" is not recognized.');fA=A};d.__private__.getLayoutMode=function(){return fA},d.__private__.setDisplayMode=d.setDisplayMode=function(A,t,e){return hA(A),gA(t),dA(e),this};var yA={title:"",subject:"",author:"",keywords:"",creator:""};d.__private__.getDocumentProperty=function(A){if(-1===Object.keys(yA).indexOf(A))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return yA[A]},d.__private__.getDocumentProperties=function(){return yA},d.__private__.setDocumentProperties=d.setProperties=d.setDocumentProperties=function(A){for(var t in yA)yA.hasOwnProperty(t)&&A[t]&&(yA[t]=A[t]);return this},d.__private__.setDocumentProperty=function(A,t){if(-1===Object.keys(yA).indexOf(A))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return yA[A]=t};var QA,FA,UA,xA,EA,LA={},SA={},IA=[],NA={},HA={},PA={},OA={},TA=null,_A=0,kA=[],MA=new wA(d),DA=A.hotfixes||[],RA={},KA={},VA=[],jA=function A(t,e,r,n,i,s){if(!(this instanceof A))return new A(t,e,r,n,i,s);isNaN(t)&&(t=1),isNaN(e)&&(e=0),isNaN(r)&&(r=0),isNaN(n)&&(n=1),isNaN(i)&&(i=0),isNaN(s)&&(s=0),this._matrix=[t,e,r,n,i,s]};Object.defineProperty(jA.prototype,"sx",{get:function(){return this._matrix[0]},set:function(A){this._matrix[0]=A}}),Object.defineProperty(jA.prototype,"shy",{get:function(){return this._matrix[1]},set:function(A){this._matrix[1]=A}}),Object.defineProperty(jA.prototype,"shx",{get:function(){return this._matrix[2]},set:function(A){this._matrix[2]=A}}),Object.defineProperty(jA.prototype,"sy",{get:function(){return this._matrix[3]},set:function(A){this._matrix[3]=A}}),Object.defineProperty(jA.prototype,"tx",{get:function(){return this._matrix[4]},set:function(A){this._matrix[4]=A}}),Object.defineProperty(jA.prototype,"ty",{get:function(){return this._matrix[5]},set:function(A){this._matrix[5]=A}}),Object.defineProperty(jA.prototype,"a",{get:function(){return this._matrix[0]},set:function(A){this._matrix[0]=A}}),Object.defineProperty(jA.prototype,"b",{get:function(){return this._matrix[1]},set:function(A){this._matrix[1]=A}}),Object.defineProperty(jA.prototype,"c",{get:function(){return this._matrix[2]},set:function(A){this._matrix[2]=A}}),Object.defineProperty(jA.prototype,"d",{get:function(){return this._matrix[3]},set:function(A){this._matrix[3]=A}}),Object.defineProperty(jA.prototype,"e",{get:function(){return this._matrix[4]},set:function(A){this._matrix[4]=A}}),Object.defineProperty(jA.prototype,"f",{get:function(){return this._matrix[5]},set:function(A){this._matrix[5]=A}}),Object.defineProperty(jA.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(jA.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(jA.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(jA.prototype,"isIdentity",{get:function(){return 1===this.sx&&(0===this.shy&&(0===this.shx&&(1===this.sy&&(0===this.tx&&0===this.ty))))}}),jA.prototype.join=function(A){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(F).join(A)},jA.prototype.multiply=function(A){var t=A.sx*this.sx+A.shy*this.shx,e=A.sx*this.shy+A.shy*this.sy,r=A.shx*this.sx+A.sy*this.shx,n=A.shx*this.shy+A.sy*this.sy,i=A.tx*this.sx+A.ty*this.shx+this.tx,s=A.tx*this.shy+A.ty*this.sy+this.ty;return new jA(t,e,r,n,i,s)},jA.prototype.decompose=function(){var A=this.sx,t=this.shy,e=this.shx,r=this.sy,n=this.tx,i=this.ty,s=Math.sqrt(A*A+t*t),o=(A/=s)*e+(t/=s)*r;e-=A*o,r-=t*o;var a=Math.sqrt(e*e+r*r);return o/=a,A*(r/=a)<t*(e/=a)&&(A=-A,t=-t,o=-o,s=-s),{scale:new jA(s,0,0,a,0,0),translate:new jA(1,0,0,1,n,i),rotate:new jA(A,t,-t,A,0,0),skew:new jA(1,0,o,1,0,0)}},jA.prototype.toString=function(A){return this.join(" ")},jA.prototype.inversed=function(){var A=this.sx,t=this.shy,e=this.shx,r=this.sy,n=this.tx,i=this.ty,s=1/(A*r-t*e),o=r*s,a=-t*s,c=-e*s,u=A*s;return new jA(o,a,c,u,-o*n-c*i,-a*n-u*i)},jA.prototype.applyToPoint=function(A){var t=A.x*this.sx+A.y*this.shx+this.tx,e=A.x*this.shy+A.y*this.sy+this.ty;return new de(t,e)},jA.prototype.applyToRectangle=function(A){var t=this.applyToPoint(A),e=this.applyToPoint(new de(A.x+A.w,A.y+A.h));return new ge(t.x,t.y,e.x-t.x,e.y-t.y)},jA.prototype.clone=function(){var A=this.sx,t=this.shy,e=this.shx,r=this.sy,n=this.tx,i=this.ty;return new jA(A,t,e,r,n,i)},d.Matrix=jA;var GA=d.matrixMult=function(A,t){return t.multiply(A)},qA=new jA(1,0,0,1,0,0);d.unitMatrix=d.identityMatrix=qA;var XA=function(A,t){if(!HA[A]){var e=(t instanceof vA?"Sh":"P")+(Object.keys(NA).length+1).toString(10);t.id=e,HA[A]=e,NA[e]=t,MA.publish("addPattern",t)}};d.ShadingPattern=vA,d.TilingPattern=bA,d.addShadingPattern=function(A,t){return U("addShadingPattern()"),XA(A,t),this},d.beginTilingPattern=function(A){U("beginTilingPattern()"),Be(A.boundingBox[0],A.boundingBox[1],A.boundingBox[2]-A.boundingBox[0],A.boundingBox[3]-A.boundingBox[1],A.matrix)},d.endTilingPattern=function(A,t){U("endTilingPattern()"),t.stream=Y[D].join("\n"),XA(A,t),MA.publish("endTilingPattern",t),VA.pop().restore()};var zA,WA=d.__private__.newObject=function(){var A=YA();return JA(A,!0),A},YA=d.__private__.newObjectDeferred=function(){return V++,G[V]=function(){return z},V},JA=function(A,t){return t="boolean"==typeof t&&t,G[A]=z,t&&rA(A+" 0 obj"),A},ZA=d.__private__.newAdditionalObject=function(){var A={objId:YA(),content:""};return W.push(A),A},$A=YA(),At=YA(),tt=d.__private__.decodeColorString=function(A){var t=A.split(" ");if(2!==t.length||"g"!==t[1]&&"G"!==t[1]){if(5===t.length&&("k"===t[4]||"K"===t[4])){t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),"r"]}}else{var e=parseFloat(t[0]);t=[e,e,e,"r"]}for(var r="#",n=0;n<3;n++)r+=("0"+Math.floor(255*parseFloat(t[n])).toString(16)).slice(-2);return r},et=d.__private__.encodeColorString=function(A){var t;"string"==typeof A&&(A={ch1:A});var r=A.ch1,n=A.ch2,i=A.ch3,s=A.ch4,o="draw"===A.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof r&&"#"!==r.charAt(0)){var a=new $(r);if(a.ok)r=a.toHex();else if(!/^\d*\.?\d*$/.test(r))throw new Error('Invalid color "'+r+'" passed to jsPDF.encodeColorString.')}if("string"==typeof r&&/^#[0-9A-Fa-f]{3}$/.test(r)&&(r="#"+r[1]+r[1]+r[2]+r[2]+r[3]+r[3]),"string"==typeof r&&/^#[0-9A-Fa-f]{6}$/.test(r)){var c=parseInt(r.substr(1),16);r=c>>16&255,n=c>>8&255,i=255&c}if(void 0===n||void 0===s&&r===n&&n===i)if("string"==typeof r)t=r+" "+o[0];else if(2===A.precision)t=E(r/255)+" "+o[0];else t=L(r/255)+" "+o[0];else if(void 0===s||"object"===e(s)){if(s&&!isNaN(s.a)&&0===s.a)return t=["1.","1.","1.",o[1]].join(" ");if("string"==typeof r)t=[r,n,i,o[1]].join(" ");else if(2===A.precision)t=[E(r/255),E(n/255),E(i/255),o[1]].join(" ");else t=[L(r/255),L(n/255),L(i/255),o[1]].join(" ")}else if("string"==typeof r)t=[r,n,i,s,o[2]].join(" ");else if(2===A.precision)t=[E(r),E(n),E(i),E(s),o[2]].join(" ");else t=[L(r),L(n),L(i),L(s),o[2]].join(" ");return t},rt=d.__private__.getFilters=function(){return o},nt=d.__private__.putStream=function(A){var t=(A=A||{}).data||"",e=A.filters||rt(),r=A.alreadyAppliedFilters||[],n=A.addLength1||!1,i=t.length,s=A.objectId,o=function(A){return A};if(null!==l&&void 0===s)throw new Error("ObjectId must be passed to putStream for file encryption");null!==l&&(o=It.encryptor(s,0));var a={};!0===e&&(e=["FlateEncode"]);var c=A.additionalKeyValues||[],u=(a=void 0!==CA.API.processDataByFilters?CA.API.processDataByFilters(t,e):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==a.data.length&&(c.push({key:"Length",value:a.data.length}),!0===n&&c.push({key:"Length1",value:i})),0!=u.length)if(u.split("/").length-1==1)c.push({key:"Filter",value:u});else{c.push({key:"Filter",value:"["+u+"]"});for(var h=0;h<c.length;h+=1)if("DecodeParms"===c[h].key){for(var f=[],d=0;d<a.reverseChain.split("/").length-1;d+=1)f.push("null");f.push(c[h].value),c[h].value="["+f.join(" ")+"]"}}rA("<<");for(var g=0;g<c.length;g++)rA("/"+c[g].key+" "+c[g].value);rA(">>"),0!==a.data.length&&(rA("stream"),rA(o(a.data)),rA("endstream"))},it=d.__private__.putPage=function(A){var t=A.number,e=A.data,r=A.objId,n=A.contentsObjId;JA(r,!0),rA("<</Type /Page"),rA("/Parent "+A.rootDictionaryObjId+" 0 R"),rA("/Resources "+A.resourceDictionaryObjId+" 0 R"),rA("/MediaBox ["+parseFloat(F(A.mediaBox.bottomLeftX))+" "+parseFloat(F(A.mediaBox.bottomLeftY))+" "+F(A.mediaBox.topRightX)+" "+F(A.mediaBox.topRightY)+"]"),null!==A.cropBox&&rA("/CropBox ["+F(A.cropBox.bottomLeftX)+" "+F(A.cropBox.bottomLeftY)+" "+F(A.cropBox.topRightX)+" "+F(A.cropBox.topRightY)+"]"),null!==A.bleedBox&&rA("/BleedBox ["+F(A.bleedBox.bottomLeftX)+" "+F(A.bleedBox.bottomLeftY)+" "+F(A.bleedBox.topRightX)+" "+F(A.bleedBox.topRightY)+"]"),null!==A.trimBox&&rA("/TrimBox ["+F(A.trimBox.bottomLeftX)+" "+F(A.trimBox.bottomLeftY)+" "+F(A.trimBox.topRightX)+" "+F(A.trimBox.topRightY)+"]"),null!==A.artBox&&rA("/ArtBox ["+F(A.artBox.bottomLeftX)+" "+F(A.artBox.bottomLeftY)+" "+F(A.artBox.topRightX)+" "+F(A.artBox.topRightY)+"]"),"number"==typeof A.userUnit&&1!==A.userUnit&&rA("/UserUnit "+A.userUnit),MA.publish("putPage",{objId:r,pageContext:kA[t],pageNumber:t,page:e}),rA("/Contents "+n+" 0 R"),rA(">>"),rA("endobj");var i=e.join("\n");return v===y&&(i+="\nQ"),JA(n,!0),nt({data:i,filters:rt(),objectId:n}),rA("endobj"),r},st=d.__private__.putPages=function(){var A,t,e=[];for(A=1;A<=_A;A++)kA[A].objId=YA(),kA[A].contentsObjId=YA();for(A=1;A<=_A;A++)e.push(it({number:A,data:Y[A],objId:kA[A].objId,contentsObjId:kA[A].contentsObjId,mediaBox:kA[A].mediaBox,cropBox:kA[A].cropBox,bleedBox:kA[A].bleedBox,trimBox:kA[A].trimBox,artBox:kA[A].artBox,userUnit:kA[A].userUnit,rootDictionaryObjId:$A,resourceDictionaryObjId:At}));JA($A,!0),rA("<</Type /Pages");var r="/Kids [";for(t=0;t<_A;t++)r+=e[t]+" 0 R ";rA(r+"]"),rA("/Count "+_A),rA(">>"),rA("endobj"),MA.publish("postPutPages")},ot=function(A){A.objectNumber=WA();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[F(A.x),F(A.y),F(A.x+A.width),F(A.y+A.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+A.matrix.toString()+"]"});var e=A.pages[1].join("\n");nt({data:e,additionalKeyValues:t,objectId:A.objectNumber}),rA("endobj")},at=function(A,t){t||(t=21);var e=WA(),r=function(A,t){var e,r=[],n=1/(t-1);for(e=0;e<1;e+=n)r.push(e);if(r.push(1),0!=A[0].offset){var i={offset:0,color:A[0].color};A.unshift(i)}if(1!=A[A.length-1].offset){var s={offset:1,color:A[A.length-1].color};A.push(s)}for(var o="",a=0,c=0;c<r.length;c++){for(e=r[c];e>A[a+1].offset;)a++;var u=A[a].offset,l=(e-u)/(A[a+1].offset-u),h=A[a].color,f=A[a+1].color;o+=K(Math.round((1-l)*h[0]+l*f[0]).toString(16))+K(Math.round((1-l)*h[1]+l*f[1]).toString(16))+K(Math.round((1-l)*h[2]+l*f[2]).toString(16))}return o.trim()}(A.colors,t),n=[];n.push({key:"FunctionType",value:"0"}),n.push({key:"Domain",value:"[0.0 1.0]"}),n.push({key:"Size",value:"["+t+"]"}),n.push({key:"BitsPerSample",value:"8"}),n.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),n.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),nt({data:r,additionalKeyValues:n,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:e}),rA("endobj"),A.objectNumber=WA(),rA("<< /ShadingType "+A.type),rA("/ColorSpace /DeviceRGB");var i="/Coords ["+F(parseFloat(A.coords[0]))+" "+F(parseFloat(A.coords[1]))+" ";2===A.type?i+=F(parseFloat(A.coords[2]))+" "+F(parseFloat(A.coords[3])):i+=F(parseFloat(A.coords[2]))+" "+F(parseFloat(A.coords[3]))+" "+F(parseFloat(A.coords[4]))+" "+F(parseFloat(A.coords[5])),rA(i+="]"),A.matrix&&rA("/Matrix ["+A.matrix.toString()+"]"),rA("/Function "+e+" 0 R"),rA("/Extend [true true]"),rA(">>"),rA("endobj")},ct=function(A,t){var e=YA(),r=WA();t.push({resourcesOid:e,objectOid:r}),A.objectNumber=r;var n=[];n.push({key:"Type",value:"/Pattern"}),n.push({key:"PatternType",value:"1"}),n.push({key:"PaintType",value:"1"}),n.push({key:"TilingType",value:"1"}),n.push({key:"BBox",value:"["+A.boundingBox.map(F).join(" ")+"]"}),n.push({key:"XStep",value:F(A.xStep)}),n.push({key:"YStep",value:F(A.yStep)}),n.push({key:"Resources",value:e+" 0 R"}),A.matrix&&n.push({key:"Matrix",value:"["+A.matrix.toString()+"]"}),nt({data:A.stream,additionalKeyValues:n,objectId:A.objectNumber}),rA("endobj")},ut=function(A){for(var t in A.objectNumber=WA(),rA("<<"),A)switch(t){case"opacity":rA("/ca "+E(A[t]));break;case"stroke-opacity":rA("/CA "+E(A[t]))}rA(">>"),rA("endobj")},lt=function(A){JA(A.resourcesOid,!0),rA("<<"),rA("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var A in rA("/Font <<"),LA)LA.hasOwnProperty(A)&&(!1===h||!0===h&&f.hasOwnProperty(A))&&rA("/"+A+" "+LA[A].objectNumber+" 0 R");rA(">>")}(),function(){if(Object.keys(NA).length>0){for(var A in rA("/Shading <<"),NA)NA.hasOwnProperty(A)&&NA[A]instanceof vA&&NA[A].objectNumber>=0&&rA("/"+A+" "+NA[A].objectNumber+" 0 R");MA.publish("putShadingPatternDict"),rA(">>")}}(),function(A){if(Object.keys(NA).length>0){for(var t in rA("/Pattern <<"),NA)NA.hasOwnProperty(t)&&NA[t]instanceof d.TilingPattern&&NA[t].objectNumber>=0&&NA[t].objectNumber<A&&rA("/"+t+" "+NA[t].objectNumber+" 0 R");MA.publish("putTilingPatternDict"),rA(">>")}}(A.objectOid),function(){if(Object.keys(PA).length>0){var A;for(A in rA("/ExtGState <<"),PA)PA.hasOwnProperty(A)&&PA[A].objectNumber>=0&&rA("/"+A+" "+PA[A].objectNumber+" 0 R");MA.publish("putGStateDict"),rA(">>")}}(),function(){for(var A in rA("/XObject <<"),RA)RA.hasOwnProperty(A)&&RA[A].objectNumber>=0&&rA("/"+A+" "+RA[A].objectNumber+" 0 R");MA.publish("putXobjectDict"),rA(">>")}(),rA(">>"),rA("endobj")},ht=function(){var A=[];!function(){for(var A in LA)LA.hasOwnProperty(A)&&(!1===h||!0===h&&f.hasOwnProperty(A))&&(t=LA[A],MA.publish("putFont",{font:t,out:rA,newObject:WA,putStream:nt}),!0!==t.isAlreadyPutted&&(t.objectNumber=WA(),rA("<<"),rA("/Type /Font"),rA("/BaseFont /"+BA(t.postScriptName)),rA("/Subtype /Type1"),"string"==typeof t.encoding&&rA("/Encoding /"+t.encoding),rA("/FirstChar 32"),rA("/LastChar 255"),rA(">>"),rA("endobj")));var t}(),function(){var A;for(A in PA)PA.hasOwnProperty(A)&&ut(PA[A])}(),function(){for(var A in RA)RA.hasOwnProperty(A)&&ot(RA[A])}(),function(A){var t;for(t in NA)NA.hasOwnProperty(t)&&(NA[t]instanceof vA?at(NA[t]):NA[t]instanceof bA&&ct(NA[t],A))}(A),MA.publish("putResources"),A.forEach(lt),lt({resourcesOid:At,objectOid:Number.MAX_SAFE_INTEGER}),MA.publish("postPutResources")},ft=function(A){SA[A.fontName]=SA[A.fontName]||{},SA[A.fontName][A.fontStyle]=A.id},dt=function(A,t,e,r,n){var i={id:"F"+(Object.keys(LA).length+1).toString(10),postScriptName:A,fontName:t,fontStyle:e,encoding:r,isStandardFont:n||!1,metadata:{}};return MA.publish("addFont",{font:i,instance:this}),LA[i.id]=i,ft(i),i.id},gt=d.__private__.pdfEscape=d.pdfEscape=function(A,t){return function(A,t){var e,r,n,i,s,o,a,c,u;if(n=(t=t||{}).sourceEncoding||"Unicode",s=t.outputEncoding,(t.autoencode||s)&&LA[QA].metadata&&LA[QA].metadata[n]&&LA[QA].metadata[n].encoding&&(i=LA[QA].metadata[n].encoding,!s&&LA[QA].encoding&&(s=LA[QA].encoding),!s&&i.codePages&&(s=i.codePages[0]),"string"==typeof s&&(s=i[s]),s)){for(a=!1,o=[],e=0,r=A.length;e<r;e++)(c=s[A.charCodeAt(e)])?o.push(String.fromCharCode(c)):o.push(A[e]),o[e].charCodeAt(0)>>8&&(a=!0);A=o.join("")}for(e=A.length;void 0===a&&0!==e;)A.charCodeAt(e-1)>>8&&(a=!0),e--;if(!a)return A;for(o=t.noBOM?[]:[254,255],e=0,r=A.length;e<r;e++){if((u=(c=A.charCodeAt(e))>>8)>>8)throw new Error("Character at position "+e+" of string '"+A+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");o.push(u),o.push(c-(u<<8))}return String.fromCharCode.apply(void 0,o)}(A,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},pt=d.__private__.beginPage=function(A){Y[++_A]=[],kA[_A]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(A[0]),topRightY:Number(A[1])}},mt(_A),eA(Y[D])},Bt=function(A,t){var e,n,s;switch(r=t||r,"string"==typeof A&&(e=w(A.toLowerCase()),Array.isArray(e)&&(n=e[0],s=e[1])),Array.isArray(A)&&(n=A[0]*FA,s=A[1]*FA),isNaN(n)&&(n=i[0],s=i[1]),(n>14400||s>14400)&&(q.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),n=Math.min(14400,n),s=Math.min(14400,s)),i=[n,s],r.substr(0,1)){case"l":s>n&&(i=[s,n]);break;case"p":n>s&&(i=[s,n])}pt(i),Jt(Wt),rA(ie),0!==le&&rA(le+" J"),0!==he&&rA(he+" j"),MA.publish("addPage",{pageNumber:_A})},wt=function(A){A>0&&A<=_A&&(Y.splice(A,1),kA.splice(A,1),_A--,D>_A&&(D=_A),this.setPage(D))},mt=function(A){A>0&&A<=_A&&(D=A)},yt=d.__private__.getNumberOfPages=d.getNumberOfPages=function(){return Y.length-1},vt=function(A,t,e){var r,n=void 0;return e=e||{},A=void 0!==A?A:LA[QA].fontName,t=void 0!==t?t:LA[QA].fontStyle,r=A.toLowerCase(),void 0!==SA[r]&&void 0!==SA[r][t]?n=SA[r][t]:void 0!==SA[A]&&void 0!==SA[A][t]?n=SA[A][t]:!1===e.disableWarning&&q.warn("Unable to look up font label for font '"+A+"', '"+t+"'. Refer to getFontList() for available fonts."),n||e.noFallback||null==(n=SA.times[t])&&(n=SA.times.normal),n},bt=d.__private__.putInfo=function(){var A=WA(),t=function(A){return A};for(var e in null!==l&&(t=It.encryptor(A,0)),rA("<<"),rA("/Producer ("+gt(t("jsPDF "+CA.version))+")"),yA)yA.hasOwnProperty(e)&&yA[e]&&rA("/"+e.substr(0,1).toUpperCase()+e.substr(1)+" ("+gt(t(yA[e]))+")");rA("/CreationDate ("+gt(t(N))+")"),rA(">>"),rA("endobj")},Ct=d.__private__.putCatalog=function(A){var t=(A=A||{}).rootDictionaryObjId||$A;switch(WA(),rA("<<"),rA("/Type /Catalog"),rA("/Pages "+t+" 0 R"),aA||(aA="fullwidth"),aA){case"fullwidth":rA("/OpenAction [3 0 R /FitH null]");break;case"fullheight":rA("/OpenAction [3 0 R /FitV null]");break;case"fullpage":rA("/OpenAction [3 0 R /Fit]");break;case"original":rA("/OpenAction [3 0 R /XYZ null null 1]");break;default:var e=""+aA;"%"===e.substr(e.length-1)&&(aA=parseInt(aA)/100),"number"==typeof aA&&rA("/OpenAction [3 0 R /XYZ null null "+E(aA)+"]")}switch(fA||(fA="continuous"),fA){case"continuous":rA("/PageLayout /OneColumn");break;case"single":rA("/PageLayout /SinglePage");break;case"two":case"twoleft":rA("/PageLayout /TwoColumnLeft");break;case"tworight":rA("/PageLayout /TwoColumnRight")}lA&&rA("/PageMode /"+lA),MA.publish("putCatalog"),rA(">>"),rA("endobj")},Qt=d.__private__.putTrailer=function(){rA("trailer"),rA("<<"),rA("/Size "+(V+1)),rA("/Root "+V+" 0 R"),rA("/Info "+(V-1)+" 0 R"),null!==l&&rA("/Encrypt "+It.oid+" 0 R"),rA("/ID [ <"+H+"> <"+H+"> ]"),rA(">>")},Ft=d.__private__.putHeader=function(){rA("%PDF-"+g),rA("%ºß¬à")},Ut=d.__private__.putXRef=function(){var A="0000000000";rA("xref"),rA("0 "+(V+1)),rA("0000000000 65535 f ");for(var t=1;t<=V;t++){"function"==typeof G[t]?rA((A+G[t]()).slice(-10)+" 00000 n "):void 0!==G[t]?rA((A+G[t]).slice(-10)+" 00000 n "):rA("0000000000 00000 n ")}},xt=d.__private__.buildDocument=function(){V=0,z=0,X=[],G=[],W=[],$A=YA(),At=YA(),eA(X),MA.publish("buildDocument"),Ft(),st(),function(){MA.publish("putAdditionalObjects");for(var A=0;A<W.length;A++){var t=W[A];JA(t.objId,!0),rA(t.content),rA("endobj")}MA.publish("postPutAdditionalObjects")}(),ht(),null!==l&&(It.oid=WA(),rA("<<"),rA("/Filter /Standard"),rA("/V "+It.v),rA("/R "+It.r),rA("/U <"+It.toHexString(It.U)+">"),rA("/O <"+It.toHexString(It.O)+">"),rA("/P "+It.P),rA(">>"),rA("endobj")),bt(),Ct();var A=z;return Ut(),Qt(),rA("startxref"),rA(""+A),rA("%%EOF"),eA(Y[D]),X.join("\n")},Et=d.__private__.getBlob=function(A){return new Blob([iA(A)],{type:"application/pdf"})},Lt=d.output=d.__private__.output=(zA=function(A,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",A){case void 0:return xt();case"save":d.save(t.filename);break;case"arraybuffer":return iA(xt());case"blob":return Et(xt());case"bloburi":case"bloburl":if(void 0!==j.URL&&"function"==typeof j.URL.createObjectURL)return j.URL&&j.URL.createObjectURL(Et(xt()))||void 0;q.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var e="",r=xt();try{e=J(r)}catch(A){e=J(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+t.filename+";base64,"+e;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(j)){var n="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",i=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';t.pdfObjectUrl&&(n=t.pdfObjectUrl,i="");var s='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+n+'"'+i+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(t)+");<\/script></body></html>",o=j.open();return null!==o&&o.document.write(s),o}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(j)){var a='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(t.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+t.filename+'" width="500px" height="400px" /></body></html>',c=j.open();if(null!==c){c.document.write(a);var u=this;c.document.documentElement.querySelector("#pdfViewer").onload=function(){c.document.title=t.filename,c.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(u.output("bloburl"))}}return c}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(j))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var l='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",t)+'"></iframe></body></html>',h=j.open();if(null!==h&&(h.document.write(l),h.document.title=t.filename),h||"undefined"==typeof safari)return h;break;case"datauri":case"dataurl":return j.document.location.href=this.output("datauristring",t);default:return null}},zA.foo=function(){try{return zA.apply(this,arguments)}catch(e){var A=e.stack||"";~A.indexOf(" at ")&&(A=A.split(" at ")[1]);var t="Error in function "+A.split("\n")[0].split("<")[0]+": "+e.message;if(!j.console)throw new Error(t);j.console.error(t,e),j.alert&&alert(t)}},zA.foo.bar=zA,zA.foo),St=function(A){return!0===Array.isArray(DA)&&DA.indexOf(A)>-1};switch(n){case"pt":FA=1;break;case"mm":FA=72/25.4;break;case"cm":FA=72/2.54;break;case"in":FA=72;break;case"px":FA=1==St("px_scaling")?.75:96/72;break;case"pc":case"em":FA=12;break;case"ex":FA=6;break;default:if("number"!=typeof n)throw new Error("Invalid unit: "+n);FA=n}var It=null;k(),O();var Nt=d.__private__.getPageInfo=d.getPageInfo=function(A){if(isNaN(A)||A%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:kA[A].objId,pageNumber:A,pageContext:kA[A]}},Ht=d.__private__.getPageInfoByObjId=function(A){if(isNaN(A)||A%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in kA)if(kA[t].objId===A)break;return Nt(t)},Pt=d.__private__.getCurrentPageInfo=d.getCurrentPageInfo=function(){return{objId:kA[D].objId,pageNumber:D,pageContext:kA[D]}};d.addPage=function(){return Bt.apply(this,arguments),this},d.setPage=function(){return mt.apply(this,arguments),eA.call(this,Y[D]),this},d.insertPage=function(A){return this.addPage(),this.movePage(D,A),this},d.movePage=function(A,t){var e,r;if(A>t){e=Y[A],r=kA[A];for(var n=A;n>t;n--)Y[n]=Y[n-1],kA[n]=kA[n-1];Y[t]=e,kA[t]=r,this.setPage(t)}else if(A<t){e=Y[A],r=kA[A];for(var i=A;i<t;i++)Y[i]=Y[i+1],kA[i]=kA[i+1];Y[t]=e,kA[t]=r,this.setPage(t)}return this},d.deletePage=function(){return wt.apply(this,arguments),this},d.__private__.text=d.text=function(A,t,r,n,i){var s,o,a,c,u,l,h,d,g,p=(n=n||{}).scope||this;if("number"==typeof A&&"number"==typeof t&&("string"==typeof r||Array.isArray(r))){var B=r;r=t,t=A,A=B}if(arguments[3]instanceof jA==!1?(a=arguments[4],c=arguments[5],"object"===e(h=arguments[3])&&null!==h||("string"==typeof a&&(c=a,a=null),"string"==typeof h&&(c=h,h=null),"number"==typeof h&&(a=h,h=null),n={flags:h,angle:a,align:c})):(U("The transform parameter of text() with a Matrix value"),g=i),isNaN(t)||isNaN(r)||null==A)throw new Error("Invalid arguments passed to jsPDF.text");if(0===A.length)return p;var w,m="",b="number"==typeof n.lineHeightFactor?n.lineHeightFactor:zt,C=p.internal.scaleFactor;function Q(A){return A=A.split("\t").join(Array(n.TabLen||9).join(" ")),gt(A,h)}function x(A){for(var t,e=A.concat(),r=[],n=e.length;n--;)"string"==typeof(t=e.shift())?r.push(t):Array.isArray(A)&&(1===t.length||void 0===t[1]&&void 0===t[2])?r.push(t[0]):r.push([t[0],t[1],t[2]]);return r}function E(A,t){var e;if("string"==typeof A)e=t(A)[0];else if(Array.isArray(A)){for(var r,n,i=A.concat(),s=[],o=i.length;o--;)"string"==typeof(r=i.shift())?s.push(t(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(n=t(r[0],r[1],r[2]),s.push([n[0],n[1],n[2]]));e=s}return e}var L=!1,I=!0;if("string"==typeof A)L=!0;else if(Array.isArray(A)){var N=A.concat();o=[];for(var H,P=N.length;P--;)("string"!=typeof(H=N.shift())||Array.isArray(H)&&"string"!=typeof H[0])&&(I=!1);L=I}if(!1===L)throw new Error('Type of text must be string or Array. "'+A+'" is not recognized.');"string"==typeof A&&(A=A.match(/[\r?\n]/)?A.split(/\r\n|\r|\n/g):[A]);var O=oA/p.internal.scaleFactor,T=O*(b-1);switch(n.baseline){case"bottom":r-=T;break;case"top":r+=O-T;break;case"hanging":r+=O-2*T;break;case"middle":r+=O/2-T}if((l=n.maxWidth||0)>0&&("string"==typeof A?A=p.splitTextToSize(A,l):"[object Array]"===Object.prototype.toString.call(A)&&(A=A.reduce((function(A,t){return A.concat(p.splitTextToSize(t,l))}),[]))),s={text:A,x:t,y:r,options:n,mutex:{pdfEscape:gt,activeFontKey:QA,fonts:LA,activeFontSize:oA}},MA.publish("preProcessText",s),A=s.text,a=(n=s.options).angle,g instanceof jA==!1&&a&&"number"==typeof a){a*=Math.PI/180,0===n.rotationDirection&&(a=-a),v===y&&(a=-a);var _=Math.cos(a),k=Math.sin(a);g=new jA(_,k,-k,_,0,0)}else a&&a instanceof jA&&(g=a);v!==y||g||(g=qA),void 0!==(u=n.charSpace||ce)&&(m+=F(S(u))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(d=n.horizontalScale)&&(m+=F(100*d)+" Tz\n"),n.lang;var M=-1,D=void 0!==n.renderingMode?n.renderingMode:n.stroke,R=p.internal.getCurrentPageInfo().pageContext;switch(D){case 0:case!1:case"fill":M=0;break;case 1:case!0:case"stroke":M=1;break;case 2:case"fillThenStroke":M=2;break;case 3:case"invisible":M=3;break;case 4:case"fillAndAddForClipping":M=4;break;case 5:case"strokeAndAddPathForClipping":M=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":M=6;break;case 7:case"addToPathForClipping":M=7}var K=void 0!==R.usedRenderingMode?R.usedRenderingMode:-1;-1!==M?m+=M+" Tr\n":-1!==K&&(m+="0 Tr\n"),-1!==M&&(R.usedRenderingMode=M),c=n.align||"left";var V,j=oA*b,G=p.internal.pageSize.getWidth(),q=LA[QA];u=n.charSpace||ce,l=n.maxWidth||0,h=Object.assign({autoencode:!0,noBOM:!0},n.flags);var X=[];if("[object Array]"===Object.prototype.toString.call(A)){var z;o=x(A),"left"!==c&&(V=o.map((function(A){return p.getStringUnitWidth(A,{font:q,charSpace:u,fontSize:oA,doKerning:!1})*oA/C})));var W,Y=0;if("right"===c){t-=V[0],A=[],P=o.length;for(var J=0;J<P;J++)0===J?(W=te(t),z=ee(r)):(W=S(Y-V[J]),z=-j),A.push([o[J],W,z]),Y=V[J]}else if("center"===c){t-=V[0]/2,A=[],P=o.length;for(var Z=0;Z<P;Z++)0===Z?(W=te(t),z=ee(r)):(W=S((Y-V[Z])/2),z=-j),A.push([o[Z],W,z]),Y=V[Z]}else if("left"===c){A=[],P=o.length;for(var $=0;$<P;$++)A.push(o[$])}else{if("justify"!==c)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');A=[],P=o.length,l=0!==l?l:G;for(var AA=0;AA<P;AA++)z=0===AA?ee(r):-j,W=0===AA?te(t):0,AA<P-1?X.push(F(S((l-V[AA])/(o[AA].split(" ").length-1)))):X.push(0),A.push([o[AA],W,z])}}!0===("boolean"==typeof n.R2L?n.R2L:uA)&&(A=E(A,(function(A,t,e){return[A.split("").reverse().join(""),t,e]}))),s={text:A,x:t,y:r,options:n,mutex:{pdfEscape:gt,activeFontKey:QA,fonts:LA,activeFontSize:oA}},MA.publish("postProcessText",s),A=s.text,w=s.mutex.isHex||!1;var tA=LA[QA].encoding;"WinAnsiEncoding"!==tA&&"StandardEncoding"!==tA||(A=E(A,(function(A,t,e){return[Q(A),t,e]}))),o=x(A),A=[];for(var eA,nA,iA,sA=Array.isArray(o[0])?1:0,aA="",cA=function(A,t,e){var r="";return e instanceof jA?(e="number"==typeof n.angle?GA(e,new jA(1,0,0,1,A,t)):GA(new jA(1,0,0,1,A,t),e),v===y&&(e=GA(new jA(1,0,0,-1,0,0),e)),r=e.join(" ")+" Tm\n"):r=F(A)+" "+F(t)+" Td\n",r},lA=0;lA<o.length;lA++){switch(aA="",sA){case 1:iA=(w?"<":"(")+o[lA][0]+(w?">":")"),eA=parseFloat(o[lA][1]),nA=parseFloat(o[lA][2]);break;case 0:iA=(w?"<":"(")+o[lA]+(w?">":")"),eA=te(t),nA=ee(r)}void 0!==X&&void 0!==X[lA]&&(aA=X[lA]+" Tw\n"),0===lA?A.push(aA+cA(eA,nA,g)+iA):0===sA?A.push(aA+iA):1===sA&&A.push(aA+cA(eA,nA,g)+iA)}A=0===sA?A.join(" Tj\nT* "):A.join(" Tj\n"),A+=" Tj\n";var hA="BT\n/";return hA+=QA+" "+oA+" Tf\n",hA+=F(oA*b)+" TL\n",hA+=oe+"\n",hA+=m,hA+=A,rA(hA+="ET"),f[QA]=!0,p};var Ot=d.__private__.clip=d.clip=function(A){return rA("evenodd"===A?"W*":"W"),this};d.clipEvenOdd=function(){return Ot("evenodd")},d.__private__.discardPath=d.discardPath=function(){return rA("n"),this};var Tt=d.__private__.isValidStyle=function(A){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(A)&&(t=!0),t};d.__private__.setDefaultPathOperation=d.setDefaultPathOperation=function(A){return Tt(A)&&(u=A),this};var _t=d.__private__.getStyle=d.getStyle=function(A){var t=u;switch(A){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=A}return t},kt=d.close=function(){return rA("h"),this};d.stroke=function(){return rA("S"),this},d.fill=function(A){return Mt("f",A),this},d.fillEvenOdd=function(A){return Mt("f*",A),this},d.fillStroke=function(A){return Mt("B",A),this},d.fillStrokeEvenOdd=function(A){return Mt("B*",A),this};var Mt=function(A,t){"object"===e(t)?Kt(t,A):rA(A)},Dt=function(A){null===A||v===y&&void 0===A||(A=_t(A),rA(A))};function Rt(A,t,e,r,n){var i=new bA(t||this.boundingBox,e||this.xStep,r||this.yStep,this.gState,n||this.matrix);i.stream=this.stream;var s=A+"$$"+this.cloneIndex+++"$$";return XA(s,i),i}var Kt=function(A,t){var e=HA[A.key],r=NA[e];if(r instanceof vA)rA("q"),rA(Vt(t)),r.gState&&d.setGState(r.gState),rA(A.matrix.toString()+" cm"),rA("/"+e+" sh"),rA("Q");else if(r instanceof bA){var n=new jA(1,0,0,-1,0,ve());A.matrix&&(n=n.multiply(A.matrix||qA),e=Rt.call(r,A.key,A.boundingBox,A.xStep,A.yStep,n).id),rA("q"),rA("/Pattern cs"),rA("/"+e+" scn"),r.gState&&d.setGState(r.gState),rA(t),rA("Q")}},Vt=function(A){switch(A){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},jt=d.moveTo=function(A,t){return rA(F(S(A))+" "+F(I(t))+" m"),this},Gt=d.lineTo=function(A,t){return rA(F(S(A))+" "+F(I(t))+" l"),this},qt=d.curveTo=function(A,t,e,r,n,i){return rA([F(S(A)),F(I(t)),F(S(e)),F(I(r)),F(S(n)),F(I(i)),"c"].join(" ")),this};d.__private__.line=d.line=function(A,t,e,r,n){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||!Tt(n))throw new Error("Invalid arguments passed to jsPDF.line");return v===m?this.lines([[e-A,r-t]],A,t,[1,1],n||"S"):this.lines([[e-A,r-t]],A,t,[1,1]).stroke()},d.__private__.lines=d.lines=function(A,t,e,r,n,i){var s,o,a,c,u,l,h,f,d,g,p,B;if("number"==typeof A&&(B=e,e=t,t=A,A=B),r=r||[1,1],i=i||!1,isNaN(t)||isNaN(e)||!Array.isArray(A)||!Array.isArray(r)||!Tt(n)||"boolean"!=typeof i)throw new Error("Invalid arguments passed to jsPDF.lines");for(jt(t,e),s=r[0],o=r[1],c=A.length,g=t,p=e,a=0;a<c;a++)2===(u=A[a]).length?(g=u[0]*s+g,p=u[1]*o+p,Gt(g,p)):(l=u[0]*s+g,h=u[1]*o+p,f=u[2]*s+g,d=u[3]*o+p,g=u[4]*s+g,p=u[5]*o+p,qt(l,h,f,d,g,p));return i&&kt(),Dt(n),this},d.path=function(A){for(var t=0;t<A.length;t++){var e=A[t],r=e.c;switch(e.op){case"m":jt(r[0],r[1]);break;case"l":Gt(r[0],r[1]);break;case"c":qt.apply(this,r);break;case"h":kt()}}return this},d.__private__.rect=d.rect=function(A,t,e,r,n){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||!Tt(n))throw new Error("Invalid arguments passed to jsPDF.rect");return v===m&&(r=-r),rA([F(S(A)),F(I(t)),F(S(e)),F(S(r)),"re"].join(" ")),Dt(n),this},d.__private__.triangle=d.triangle=function(A,t,e,r,n,i,s){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||!Tt(s))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[e-A,r-t],[n-e,i-r],[A-n,t-i]],A,t,[1,1],s,!0),this},d.__private__.roundedRect=d.roundedRect=function(A,t,e,r,n,i,s){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||!Tt(s))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var o=4/3*(Math.SQRT2-1);return n=Math.min(n,.5*e),i=Math.min(i,.5*r),this.lines([[e-2*n,0],[n*o,0,n,i-i*o,n,i],[0,r-2*i],[0,i*o,-n*o,i,-n,i],[2*n-e,0],[-n*o,0,-n,-i*o,-n,-i],[0,2*i-r],[0,-i*o,n*o,-i,n,-i]],A+n,t,[1,1],s,!0),this},d.__private__.ellipse=d.ellipse=function(A,t,e,r,n){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||!Tt(n))throw new Error("Invalid arguments passed to jsPDF.ellipse");var i=4/3*(Math.SQRT2-1)*e,s=4/3*(Math.SQRT2-1)*r;return jt(A+e,t),qt(A+e,t-s,A+i,t-r,A,t-r),qt(A-i,t-r,A-e,t-s,A-e,t),qt(A-e,t+s,A-i,t+r,A,t+r),qt(A+i,t+r,A+e,t+s,A+e,t),Dt(n),this},d.__private__.circle=d.circle=function(A,t,e,r){if(isNaN(A)||isNaN(t)||isNaN(e)||!Tt(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(A,t,e,e,r)},d.setFont=function(A,t,e){return e&&(t=Q(t,e)),QA=vt(A,t,{disableWarning:!1}),this};var Xt=d.__private__.getFont=d.getFont=function(){return LA[vt.apply(d,arguments)]};d.__private__.getFontList=d.getFontList=function(){var A,t,e={};for(A in SA)if(SA.hasOwnProperty(A))for(t in e[A]=[],SA[A])SA[A].hasOwnProperty(t)&&e[A].push(t);return e},d.addFont=function(A,t,e,r,n){var i=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==i.indexOf(arguments[3])?n=arguments[3]:arguments[3]&&-1==i.indexOf(arguments[3])&&(e=Q(e,r)),dt.call(this,A,t,e,n=n||"Identity-H")};var zt,Wt=A.lineWidth||.200025,Yt=d.__private__.getLineWidth=d.getLineWidth=function(){return Wt},Jt=d.__private__.setLineWidth=d.setLineWidth=function(A){return Wt=A,rA(F(S(A))+" w"),this};d.__private__.setLineDash=CA.API.setLineDash=CA.API.setLineDashPattern=function(A,t){if(A=A||[],t=t||0,isNaN(t)||!Array.isArray(A))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return A=A.map((function(A){return F(S(A))})).join(" "),t=F(S(t)),rA("["+A+"] "+t+" d"),this};var Zt=d.__private__.getLineHeight=d.getLineHeight=function(){return oA*zt};d.__private__.getLineHeight=d.getLineHeight=function(){return oA*zt};var $t=d.__private__.setLineHeightFactor=d.setLineHeightFactor=function(A){return"number"==typeof(A=A||1.15)&&(zt=A),this},Ae=d.__private__.getLineHeightFactor=d.getLineHeightFactor=function(){return zt};$t(A.lineHeight);var te=d.__private__.getHorizontalCoordinate=function(A){return S(A)},ee=d.__private__.getVerticalCoordinate=function(A){return v===y?A:kA[D].mediaBox.topRightY-kA[D].mediaBox.bottomLeftY-S(A)},re=d.__private__.getHorizontalCoordinateString=d.getHorizontalCoordinateString=function(A){return F(te(A))},ne=d.__private__.getVerticalCoordinateString=d.getVerticalCoordinateString=function(A){return F(ee(A))},ie=A.strokeColor||"0 G";d.__private__.getStrokeColor=d.getDrawColor=function(){return tt(ie)},d.__private__.setStrokeColor=d.setDrawColor=function(A,t,e,r){return ie=et({ch1:A,ch2:t,ch3:e,ch4:r,pdfColorType:"draw",precision:2}),rA(ie),this};var se=A.fillColor||"0 g";d.__private__.getFillColor=d.getFillColor=function(){return tt(se)},d.__private__.setFillColor=d.setFillColor=function(A,t,e,r){return se=et({ch1:A,ch2:t,ch3:e,ch4:r,pdfColorType:"fill",precision:2}),rA(se),this};var oe=A.textColor||"0 g",ae=d.__private__.getTextColor=d.getTextColor=function(){return tt(oe)};d.__private__.setTextColor=d.setTextColor=function(A,t,e,r){return oe=et({ch1:A,ch2:t,ch3:e,ch4:r,pdfColorType:"text",precision:3}),this};var ce=A.charSpace,ue=d.__private__.getCharSpace=d.getCharSpace=function(){return parseFloat(ce||0)};d.__private__.setCharSpace=d.setCharSpace=function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return ce=A,this};var le=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(A){var t=d.CapJoinStyles[A];if(void 0===t)throw new Error("Line cap style of '"+A+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return le=t,rA(t+" J"),this};var he=0;d.__private__.setLineJoin=d.setLineJoin=function(A){var t=d.CapJoinStyles[A];if(void 0===t)throw new Error("Line join style of '"+A+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return he=t,rA(t+" j"),this},d.__private__.setLineMiterLimit=d.__private__.setMiterLimit=d.setLineMiterLimit=d.setMiterLimit=function(A){if(A=A||0,isNaN(A))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return rA(F(S(A))+" M"),this},d.GState=mA,d.setGState=function(A){(A="string"==typeof A?PA[OA[A]]:fe(null,A)).equals(TA)||(rA("/"+A.id+" gs"),TA=A)};var fe=function(A,t){if(!A||!OA[A]){var e=!1;for(var r in PA)if(PA.hasOwnProperty(r)&&PA[r].equals(t)){e=!0;break}if(e)t=PA[r];else{var n="GS"+(Object.keys(PA).length+1).toString(10);PA[n]=t,t.id=n}return A&&(OA[A]=t.id),MA.publish("addGState",t),t}};d.addGState=function(A,t){return fe(A,t),this},d.saveGraphicsState=function(){return rA("q"),IA.push({key:QA,size:oA,color:oe}),this},d.restoreGraphicsState=function(){rA("Q");var A=IA.pop();return QA=A.key,oA=A.size,oe=A.color,TA=null,this},d.setCurrentTransformationMatrix=function(A){return rA(A.toString()+" cm"),this},d.comment=function(A){return rA("#"+A),this};var de=function(A,t){var e=A||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(A){isNaN(A)||(e=parseFloat(A))}});var r=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(A){isNaN(A)||(r=parseFloat(A))}});var n="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return n},set:function(A){n=A.toString()}}),this},ge=function(A,t,e,r){de.call(this,A,t),this.type="rect";var n=e||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return n},set:function(A){isNaN(A)||(n=parseFloat(A))}});var i=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return i},set:function(A){isNaN(A)||(i=parseFloat(A))}}),this},pe=function(){this.page=_A,this.currentPage=D,this.pages=Y.slice(0),this.pagesContext=kA.slice(0),this.x=UA,this.y=xA,this.matrix=EA,this.width=me(D),this.height=ve(D),this.outputDestination=tA,this.id="",this.objectNumber=-1};pe.prototype.restore=function(){_A=this.page,D=this.currentPage,kA=this.pagesContext,Y=this.pages,UA=this.x,xA=this.y,EA=this.matrix,ye(D,this.width),be(D,this.height),tA=this.outputDestination};var Be=function(A,t,e,r,n){VA.push(new pe),_A=D=0,Y=[],UA=A,xA=t,EA=n,pt([e,r])};for(var we in d.beginFormObject=function(A,t,e,r,n){return Be(A,t,e,r,n),this},d.endFormObject=function(A){return function(A){if(KA[A])VA.pop().restore();else{var t=new pe,e="Xo"+(Object.keys(RA).length+1).toString(10);t.id=e,KA[A]=e,RA[e]=t,MA.publish("addFormObject",t),VA.pop().restore()}}(A),this},d.doFormObject=function(A,t){var e=RA[KA[A]];return rA("q"),rA(t.toString()+" cm"),rA("/"+e.id+" Do"),rA("Q"),this},d.getFormObject=function(A){var t=RA[KA[A]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},d.save=function(A,t){return A=A||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(Z(Et(xt()),A),"function"==typeof Z.unload&&j.setTimeout&&setTimeout(Z.unload,911),this):new Promise((function(t,e){try{var r=Z(Et(xt()),A);"function"==typeof Z.unload&&j.setTimeout&&setTimeout(Z.unload,911),t(r)}catch(A){e(A.message)}}))},CA.API)CA.API.hasOwnProperty(we)&&("events"===we&&CA.API.events.length?function(A,t){var e,r,n;for(n=t.length-1;-1!==n;n--)e=t[n][0],r=t[n][1],A.subscribe.apply(A,[e].concat("function"==typeof r?[r]:r))}(MA,CA.API.events):d[we]=CA.API[we]);var me=d.getPageWidth=function(A){return(kA[A=A||D].mediaBox.topRightX-kA[A].mediaBox.bottomLeftX)/FA},ye=d.setPageWidth=function(A,t){kA[A].mediaBox.topRightX=t*FA+kA[A].mediaBox.bottomLeftX},ve=d.getPageHeight=function(A){return(kA[A=A||D].mediaBox.topRightY-kA[A].mediaBox.bottomLeftY)/FA},be=d.setPageHeight=function(A,t){kA[A].mediaBox.topRightY=t*FA+kA[A].mediaBox.bottomLeftY};return d.internal={pdfEscape:gt,getStyle:_t,getFont:Xt,getFontSize:cA,getCharSpace:ue,getTextColor:ae,getLineHeight:Zt,getLineHeightFactor:Ae,getLineWidth:Yt,write:nA,getHorizontalCoordinate:te,getVerticalCoordinate:ee,getCoordinateString:re,getVerticalCoordinateString:ne,collections:{},newObject:WA,newAdditionalObject:ZA,newObjectDeferred:YA,newObjectDeferredBegin:JA,getFilters:rt,putStream:nt,events:MA,scaleFactor:FA,pageSize:{getWidth:function(){return me(D)},setWidth:function(A){ye(D,A)},getHeight:function(){return ve(D)},setHeight:function(A){be(D,A)}},encryptionOptions:l,encryption:It,getEncryptor:function(A){return null!==l?It.encryptor(A,0):function(A){return A}},output:Lt,getNumberOfPages:yt,pages:Y,out:rA,f2:E,f3:L,getPageInfo:Nt,getPageInfoByObjId:Ht,getCurrentPageInfo:Pt,getPDFVersion:p,Point:de,Rectangle:ge,Matrix:jA,hasHotfix:St},Object.defineProperty(d.internal.pageSize,"width",{get:function(){return me(D)},set:function(A){ye(D,A)},enumerable:!0,configurable:!0}),Object.defineProperty(d.internal.pageSize,"height",{get:function(){return ve(D)},set:function(A){be(D,A)},enumerable:!0,configurable:!0}),function(A){for(var t=0,e=sA.length;t<e;t++){var r=dt.call(this,A[t][0],A[t][1],A[t][2],sA[t][3],!0);!1===h&&(f[r]=!0);var n=A[t][0].split("-");ft({id:r,fontName:n[0],fontStyle:n[1]||""})}MA.publish("addFonts",{fonts:LA,dictionary:SA})}.call(d,sA),QA="F1",Bt(i,r),MA.publish("initialized"),d}pA.prototype.lsbFirstWord=function(A){return String.fromCharCode(255&A,A>>8&255,A>>16&255,A>>24&255)},pA.prototype.toHexString=function(A){return A.split("").map((function(A){return("0"+(255&A.charCodeAt(0)).toString(16)).slice(-2)})).join("")},pA.prototype.hexToBytes=function(A){for(var t=[],e=0;e<A.length;e+=2)t.push(String.fromCharCode(parseInt(A.substr(e,2),16)));return t.join("")},pA.prototype.processOwnerPassword=function(A,t){return dA(lA(t).substr(0,5),A)},pA.prototype.encryptor=function(A,t){var e=lA(this.encryptionKey+String.fromCharCode(255&A,A>>8&255,A>>16&255,255&t,t>>8&255)).substr(0,10);return function(A){return dA(e,A)}},mA.prototype.equals=function(A){var t,r="id,objectNumber,equals";if(!A||e(A)!==e(this))return!1;var n=0;for(t in this)if(!(r.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!A.hasOwnProperty(t))return!1;if(this[t]!==A[t])return!1;n++}for(t in A)A.hasOwnProperty(t)&&r.indexOf(t)<0&&n--;return 0===n},CA.API={events:[]},CA.version="2.5.1";var QA=CA.API,FA=1,UA=function(A){return A.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},xA=function(A){return A.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},EA=function(A){return A.toFixed(2)},LA=function(A){return A.toFixed(5)};QA.__acroform__={};var SA=function(A,t){A.prototype=Object.create(t.prototype),A.prototype.constructor=A},IA=function(A){return A*FA},NA=function(A){var t=new YA,e=ut.internal.getHeight(A)||0,r=ut.internal.getWidth(A)||0;return t.BBox=[0,0,Number(EA(r)),Number(EA(e))],t},HA=QA.__acroform__.setBit=function(A,t){if(A=A||0,t=t||0,isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return A|=1<<t},PA=QA.__acroform__.clearBit=function(A,t){if(A=A||0,t=t||0,isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return A&=~(1<<t)},OA=QA.__acroform__.getBit=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return A&1<<t?1:0},TA=QA.__acroform__.getBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return OA(A,t-1)},_A=QA.__acroform__.setBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return HA(A,t-1)},kA=QA.__acroform__.clearBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return PA(A,t-1)},MA=QA.__acroform__.calculateCoordinates=function(A,t){var e=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,n=A[0],i=A[1],s=A[2],o=A[3],a={};return a.lowerLeft_X=e(n)||0,a.lowerLeft_Y=r(i+o)||0,a.upperRight_X=e(n+s)||0,a.upperRight_Y=r(i)||0,[Number(EA(a.lowerLeft_X)),Number(EA(a.lowerLeft_Y)),Number(EA(a.upperRight_X)),Number(EA(a.upperRight_Y))]},DA=function(A){if(A.appearanceStreamContent)return A.appearanceStreamContent;if(A.V||A.DV){var t=[],e=A._V||A.DV,r=RA(A,e),n=A.scope.internal.getFont(A.fontName,A.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(A.scope.__private__.encodeColorString(A.color)),t.push("/"+n+" "+EA(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=NA(A);return i.scope=A.scope,i.stream=t.join("\n"),i}},RA=function(A,t){var e=0===A.fontSize?A.maxFontSize:A.fontSize,r={text:"",fontSize:""},n=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" ");n=A.multiline?n.map((function(A){return A.split("\n")})):n.map((function(A){return[A]}));var i=e,s=ut.internal.getHeight(A)||0;s=s<0?-s:s;var o=ut.internal.getWidth(A)||0;o=o<0?-o:o;var a=function(t,e,r){if(t+1<n.length){var i=e+" "+n[t+1][0];return KA(i,A,r).width<=o-4}return!1};i++;A:for(;i>0;){t="",i--;var c,u,l=KA("3",A,i).height,h=A.multiline?s-i:(s-l)/2,f=h+=2,d=0,g=0,p=0;if(i<=0){t="(...) Tj\n",t+="% Width of Text: "+KA(t,A,i=12).width+", FieldWidth:"+o+"\n";break}for(var B="",w=0,m=0;m<n.length;m++)if(n.hasOwnProperty(m)){var y=!1;if(1!==n[m].length&&p!==n[m].length-1){if((l+2)*(w+2)+2>s)continue A;B+=n[m][p],y=!0,g=m,m--}else{B=" "==(B+=n[m][p]+" ").substr(B.length-1)?B.substr(0,B.length-1):B;var v=parseInt(m),b=a(v,B,i),C=m>=n.length-1;if(b&&!C){B+=" ",p=0;continue}if(b||C){if(C)g=v;else if(A.multiline&&(l+2)*(w+2)+2>s)continue A}else{if(!A.multiline)continue A;if((l+2)*(w+2)+2>s)continue A;g=v}}for(var Q="",F=d;F<=g;F++){var U=n[F];if(A.multiline){if(F===g){Q+=U[p]+" ",p=(p+1)%U.length;continue}if(F===d){Q+=U[U.length-1]+" ";continue}}Q+=U[0]+" "}switch(Q=" "==Q.substr(Q.length-1)?Q.substr(0,Q.length-1):Q,u=KA(Q,A,i).width,A.textAlign){case"right":c=o-u-2;break;case"center":c=(o-u)/2;break;default:c=2}t+=EA(c)+" "+EA(f)+" Td\n",t+="("+UA(Q)+") Tj\n",t+=-EA(c)+" 0 Td\n",f=-(i+2),u=0,d=y?g:g+1,w++,B=""}else;break}return r.text=t,r.fontSize=i,r},KA=function(A,t,e){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),n=t.scope.getStringUnitWidth(A,{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:n}},VA={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},jA=function(A,t){var e={type:"reference",object:A};void 0===t.internal.getPageInfo(A.page).pageContext.annotations.find((function(A){return A.type===e.type&&A.object===e.object}))&&t.internal.getPageInfo(A.page).pageContext.annotations.push(e)},GA=function(A,t){for(var r in A)if(A.hasOwnProperty(r)){var n=r,i=A[r];t.internal.newObjectDeferredBegin(i.objId,!0),"object"===e(i)&&"function"==typeof i.putStream&&i.putStream(),delete A[n]}},qA=function(A,t){if(t.scope=A,void 0!==A.internal&&(void 0===A.internal.acroformPlugin||!1===A.internal.acroformPlugin.isInitialized)){if(ZA.FieldNum=0,A.internal.acroformPlugin=JSON.parse(JSON.stringify(VA)),A.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");FA=A.internal.scaleFactor,A.internal.acroformPlugin.acroFormDictionaryRoot=new JA,A.internal.acroformPlugin.acroFormDictionaryRoot.scope=A,A.internal.acroformPlugin.acroFormDictionaryRoot._eventID=A.internal.events.subscribe("postPutResources",(function(){!function(A){A.internal.events.unsubscribe(A.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete A.internal.acroformPlugin.acroFormDictionaryRoot._eventID,A.internal.acroformPlugin.printedOut=!0}(A)})),A.internal.events.subscribe("buildDocument",(function(){!function(A){A.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=A.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var e in t)if(t.hasOwnProperty(e)){var r=t[e];r.objId=void 0,r.hasAnnotation&&jA(r,A)}}(A)})),A.internal.events.subscribe("putCatalog",(function(){!function(A){if(void 0===A.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");A.internal.write("/AcroForm "+A.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(A)})),A.internal.events.subscribe("postPutPages",(function(t){!function(A,t){var r=!A;for(var n in A||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),A=A||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(A.hasOwnProperty(n)){var i=A[n],s=[],o=i.Rect;if(i.Rect&&(i.Rect=MA(i.Rect,t)),t.internal.newObjectDeferredBegin(i.objId,!0),i.DA=ut.createDefaultAppearanceStream(i),"object"===e(i)&&"function"==typeof i.getKeyValueListForStream&&(s=i.getKeyValueListForStream()),i.Rect=o,i.hasAppearanceStream&&!i.appearanceStreamContent){var a=DA(i);s.push({key:"AP",value:"<</N "+a+">>"}),t.internal.acroformPlugin.xForms.push(a)}if(i.appearanceStreamContent){var c="";for(var u in i.appearanceStreamContent)if(i.appearanceStreamContent.hasOwnProperty(u)){var l=i.appearanceStreamContent[u];if(c+="/"+u+" ",c+="<<",Object.keys(l).length>=1||Array.isArray(l)){for(var n in l)if(l.hasOwnProperty(n)){var h=l[n];"function"==typeof h&&(h=h.call(t,i)),c+="/"+n+" "+h+" ",t.internal.acroformPlugin.xForms.indexOf(h)>=0||t.internal.acroformPlugin.xForms.push(h)}}else"function"==typeof(h=l)&&(h=h.call(t,i)),c+="/"+n+" "+h,t.internal.acroformPlugin.xForms.indexOf(h)>=0||t.internal.acroformPlugin.xForms.push(h);c+=">>"}s.push({key:"AP",value:"<<\n"+c+">>"})}t.internal.putStream({additionalKeyValues:s,objectId:i.objId}),t.internal.out("endobj")}r&&GA(t.internal.acroformPlugin.xForms,t)}(t,A)})),A.internal.acroformPlugin.isInitialized=!0}},XA=QA.__acroform__.arrayToPdfArray=function(A,t,r){var n=function(A){return A};if(Array.isArray(A)){for(var i="[",s=0;s<A.length;s++)switch(0!==s&&(i+=" "),e(A[s])){case"boolean":case"number":case"object":i+=A[s].toString();break;case"string":"/"!==A[s].substr(0,1)?(void 0!==t&&r&&(n=r.internal.getEncryptor(t)),i+="("+UA(n(A[s].toString()))+")"):i+=A[s].toString()}return i+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")};var zA=function(A,t,e){var r=function(A){return A};return void 0!==t&&e&&(r=e.internal.getEncryptor(t)),(A=A||"").toString(),A="("+UA(r(A))+")"},WA=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(A){this._objId=A}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};WA.prototype.toString=function(){return this.objId+" 0 R"},WA.prototype.putStream=function(){var A=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:A,objectId:this.objId}),this.scope.internal.out("endobj")},WA.prototype.getKeyValueListForStream=function(){var A=[],t=Object.getOwnPropertyNames(this).filter((function(A){return"content"!=A&&"appearanceStreamContent"!=A&&"scope"!=A&&"objId"!=A&&"_"!=A.substring(0,1)}));for(var e in t)if(!1===Object.getOwnPropertyDescriptor(this,t[e]).configurable){var r=t[e],n=this[r];n&&(Array.isArray(n)?A.push({key:r,value:XA(n,this.objId,this.scope)}):n instanceof WA?(n.scope=this.scope,A.push({key:r,value:n.objId+" 0 R"})):"function"!=typeof n&&A.push({key:r,value:n}))}return A};var YA=function(){WA.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 A,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(A){t=A}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){A=t.trim()},get:function(){return A||null}})};SA(YA,WA);var JA=function(){WA.call(this);var A,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(A){var t=function(A){return A};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+UA(t(A))+")"}},set:function(t){A=t}})};SA(JA,WA);var ZA=function A(){WA.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(A){if(isNaN(A))throw new Error('Invalid value "'+A+'" for attribute F supplied.');t=A}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(t,3))},set:function(A){!0===Boolean(A)?this.F=_A(t,3):this.F=kA(t,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(A){if(isNaN(A))throw new Error('Invalid value "'+A+'" for attribute Ff supplied.');e=A}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(A){r=void 0!==A?A:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(A){r[0]=A}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(A){r[1]=A}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(A){r[2]=A}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(A){r[3]=A}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(A){switch(A){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=A;break;default:throw new Error('Invalid value "'+A+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof st)return;i="FieldObject"+A.FieldNum++}var t=function(A){return A};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+UA(t(i))+")"},set:function(A){i=A.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(A){i=A}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(A){s=A}});var o="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return o},set:function(A){o=A}});var a=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return a},set:function(A){a=A}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===c?50/FA:c},set:function(A){c=A}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(A){u=A}});var l="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!l||this instanceof st||this instanceof at))return zA(l,this.objId,this.scope)},set:function(A){A=A.toString(),l=A}});var h=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof rt==!1?zA(h,this.objId,this.scope):h},set:function(A){A=A.toString(),h=this instanceof rt==!1?"("===A.substr(0,1)?xA(A.substr(1,A.length-2)):xA(A):A}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof rt==!0?xA(h.substr(1,h.length-1)):h},set:function(A){A=A.toString(),h=this instanceof rt==!0?"/"+A:A}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(A){this.V=A}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof rt==!1?zA(f,this.objId,this.scope):f},set:function(A){A=A.toString(),f=this instanceof rt==!1?"("===A.substr(0,1)?xA(A.substr(1,A.length-2)):xA(A):A}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof rt==!0?xA(f.substr(1,f.length-1)):f},set:function(A){A=A.toString(),f=this instanceof rt==!0?"/"+A:A}}),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 d,g=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return g},set:function(A){A=Boolean(A),g=A}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(d)return d},set:function(A){d=A}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(this.Ff,1))},set:function(A){!0===Boolean(A)?this.Ff=_A(this.Ff,1):this.Ff=kA(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(this.Ff,2))},set:function(A){!0===Boolean(A)?this.Ff=_A(this.Ff,2):this.Ff=kA(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(this.Ff,3))},set:function(A){!0===Boolean(A)?this.Ff=_A(this.Ff,3):this.Ff=kA(this.Ff,3)}});var p=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==p)return p},set:function(A){if(-1===[0,1,2].indexOf(A))throw new Error('Invalid value "'+A+'" for attribute Q supplied.');p=A}}),Object.defineProperty(this,"textAlign",{get:function(){var A;switch(p){case 0:default:A="left";break;case 1:A="center";break;case 2:A="right"}return A},configurable:!0,enumerable:!0,set:function(A){switch(A){case"right":case 2:p=2;break;case"center":case 1:p=1;break;default:p=0}}})};SA(ZA,WA);var $A=function(){ZA.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var A=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return A},set:function(t){A=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return XA(t,this.objId,this.scope)},set:function(A){var e,r;r=[],"string"==typeof(e=A)&&(r=function(A,t,e){e||(e=1);for(var r,n=[];r=t.exec(A);)n.push(r[e]);return n}(e,/\((.*?)\)/g)),t=r}}),this.getOptions=function(){return t},this.setOptions=function(A){t=A,this.sort&&t.sort()},this.addOption=function(A){A=(A=A||"").toString(),t.push(A),this.sort&&t.sort()},this.removeOption=function(A,e){for(e=e||!1,A=(A=A||"").toString();-1!==t.indexOf(A)&&(t.splice(t.indexOf(A),1),!1!==e););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(this.Ff,18))},set:function(A){!0===Boolean(A)?this.Ff=_A(this.Ff,18):this.Ff=kA(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(this.Ff,19))},set:function(A){!0===this.combo&&(!0===Boolean(A)?this.Ff=_A(this.Ff,19):this.Ff=kA(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(this.Ff,20))},set:function(A){!0===Boolean(A)?(this.Ff=_A(this.Ff,20),t.sort()):this.Ff=kA(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(this.Ff,22))},set:function(A){!0===Boolean(A)?this.Ff=_A(this.Ff,22):this.Ff=kA(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(this.Ff,23))},set:function(A){!0===Boolean(A)?this.Ff=_A(this.Ff,23):this.Ff=kA(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(this.Ff,27))},set:function(A){!0===Boolean(A)?this.Ff=_A(this.Ff,27):this.Ff=kA(this.Ff,27)}}),this.hasAppearanceStream=!1};SA($A,ZA);var At=function(){$A.call(this),this.fontName="helvetica",this.combo=!1};SA(At,$A);var tt=function(){At.call(this),this.combo=!0};SA(tt,At);var et=function(){tt.call(this),this.edit=!0};SA(et,tt);var rt=function(){ZA.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(this.Ff,15))},set:function(A){!0===Boolean(A)?this.Ff=_A(this.Ff,15):this.Ff=kA(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(this.Ff,16))},set:function(A){!0===Boolean(A)?this.Ff=_A(this.Ff,16):this.Ff=kA(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(this.Ff,17))},set:function(A){!0===Boolean(A)?this.Ff=_A(this.Ff,17):this.Ff=kA(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(this.Ff,26))},set:function(A){!0===Boolean(A)?this.Ff=_A(this.Ff,26):this.Ff=kA(this.Ff,26)}});var A,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(A){return A};if(this.scope&&(A=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var e,r=[];for(e in r.push("<<"),t)r.push("/"+e+" ("+UA(A(t[e]))+")");return r.push(">>"),r.join("\n")}},set:function(A){"object"===e(A)&&(t=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(A){"string"==typeof A&&(t.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return A.substr(1,A.length-1)},set:function(t){A="/"+t}})};SA(rt,ZA);var nt=function(){rt.call(this),this.pushButton=!0};SA(nt,rt);var it=function(){rt.call(this),this.radio=!0,this.pushButton=!1;var A=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return A},set:function(t){A=void 0!==t?t:[]}})};SA(it,rt);var st=function(){var A,t;ZA.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(A){t=A}});var r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(A){return A};this.scope&&(A=this.scope.internal.getEncryptor(this.objId));var t,e=[];for(t in e.push("<<"),n)e.push("/"+t+" ("+UA(A(n[t]))+")");return e.push(">>"),e.join("\n")},set:function(A){"object"===e(A)&&(n=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(A){"string"==typeof A&&(n.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(A){r=A}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(A){r="/"+A}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ut.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};SA(st,ZA),it.prototype.setAppearance=function(A){if(!("createAppearanceStream"in A)||!("getCA"in A))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var e=this.Kids[t];e.appearanceStreamContent=A.createAppearanceStream(e.optionName),e.caption=A.getCA()}},it.prototype.createOption=function(A){var t=new st;return t.Parent=this,t.optionName=A,this.Kids.push(t),lt.call(this.scope,t),t};var ot=function(){rt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ut.CheckBox.createAppearanceStream()};SA(ot,rt);var at=function(){ZA.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(this.Ff,13))},set:function(A){!0===Boolean(A)?this.Ff=_A(this.Ff,13):this.Ff=kA(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(this.Ff,21))},set:function(A){!0===Boolean(A)?this.Ff=_A(this.Ff,21):this.Ff=kA(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(this.Ff,23))},set:function(A){!0===Boolean(A)?this.Ff=_A(this.Ff,23):this.Ff=kA(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(this.Ff,24))},set:function(A){!0===Boolean(A)?this.Ff=_A(this.Ff,24):this.Ff=kA(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(this.Ff,25))},set:function(A){!0===Boolean(A)?this.Ff=_A(this.Ff,25):this.Ff=kA(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(this.Ff,26))},set:function(A){!0===Boolean(A)?this.Ff=_A(this.Ff,26):this.Ff=kA(this.Ff,26)}});var A=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return A},set:function(t){Number.isInteger(t)&&(A=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};SA(at,ZA);var ct=function(){at.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(TA(this.Ff,14))},set:function(A){!0===Boolean(A)?this.Ff=_A(this.Ff,14):this.Ff=kA(this.Ff,14)}}),this.password=!0};SA(ct,at);var ut={CheckBox:{createAppearanceStream:function(){return{N:{On:ut.CheckBox.YesNormal},D:{On:ut.CheckBox.YesPushDown,Off:ut.CheckBox.OffPushDown}}},YesPushDown:function(A){var t=NA(A);t.scope=A.scope;var e=[],r=A.scope.internal.getFont(A.fontName,A.fontStyle).id,n=A.scope.__private__.encodeColorString(A.color),i=RA(A,A.caption);return e.push("0.749023 g"),e.push("0 0 "+EA(ut.internal.getWidth(A))+" "+EA(ut.internal.getHeight(A))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+r+" "+EA(i.fontSize)+" Tf "+n),e.push("BT"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC"),t.stream=e.join("\n"),t},YesNormal:function(A){var t=NA(A);t.scope=A.scope;var e=A.scope.internal.getFont(A.fontName,A.fontStyle).id,r=A.scope.__private__.encodeColorString(A.color),n=[],i=ut.internal.getHeight(A),s=ut.internal.getWidth(A),o=RA(A,A.caption);return n.push("1 g"),n.push("0 0 "+EA(s)+" "+EA(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+EA(s-1)+" "+EA(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+e+" "+EA(o.fontSize)+" Tf "+r),n.push(o.text),n.push("ET"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(A){var t=NA(A);t.scope=A.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+EA(ut.internal.getWidth(A))+" "+EA(ut.internal.getHeight(A))+" re"),e.push("f"),t.stream=e.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(A){var t={D:{Off:ut.RadioButton.Circle.OffPushDown},N:{}};return t.N[A]=ut.RadioButton.Circle.YesNormal,t.D[A]=ut.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(A){var t=NA(A);t.scope=A.scope;var e=[],r=ut.internal.getWidth(A)<=ut.internal.getHeight(A)?ut.internal.getWidth(A)/4:ut.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=ut.internal.Bezier_C,i=Number((r*n).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+LA(ut.internal.getWidth(A)/2)+" "+LA(ut.internal.getHeight(A)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),e.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),e.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),e.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t},YesPushDown:function(A){var t=NA(A);t.scope=A.scope;var e=[],r=ut.internal.getWidth(A)<=ut.internal.getHeight(A)?ut.internal.getWidth(A)/4:ut.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*ut.internal.Bezier_C).toFixed(5)),s=Number((r*ut.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+LA(ut.internal.getWidth(A)/2)+" "+LA(ut.internal.getHeight(A)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+LA(ut.internal.getWidth(A)/2)+" "+LA(ut.internal.getHeight(A)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),e.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),e.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),e.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t},OffPushDown:function(A){var t=NA(A);t.scope=A.scope;var e=[],r=ut.internal.getWidth(A)<=ut.internal.getHeight(A)?ut.internal.getWidth(A)/4:ut.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*ut.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+LA(ut.internal.getWidth(A)/2)+" "+LA(ut.internal.getHeight(A)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t}},Cross:{createAppearanceStream:function(A){var t={D:{Off:ut.RadioButton.Cross.OffPushDown},N:{}};return t.N[A]=ut.RadioButton.Cross.YesNormal,t.D[A]=ut.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(A){var t=NA(A);t.scope=A.scope;var e=[],r=ut.internal.calculateCross(A);return e.push("q"),e.push("1 1 "+EA(ut.internal.getWidth(A)-2)+" "+EA(ut.internal.getHeight(A)-2)+" re"),e.push("W"),e.push("n"),e.push(EA(r.x1.x)+" "+EA(r.x1.y)+" m"),e.push(EA(r.x2.x)+" "+EA(r.x2.y)+" l"),e.push(EA(r.x4.x)+" "+EA(r.x4.y)+" m"),e.push(EA(r.x3.x)+" "+EA(r.x3.y)+" l"),e.push("s"),e.push("Q"),t.stream=e.join("\n"),t},YesPushDown:function(A){var t=NA(A);t.scope=A.scope;var e=ut.internal.calculateCross(A),r=[];return r.push("0.749023 g"),r.push("0 0 "+EA(ut.internal.getWidth(A))+" "+EA(ut.internal.getHeight(A))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+EA(ut.internal.getWidth(A)-2)+" "+EA(ut.internal.getHeight(A)-2)+" re"),r.push("W"),r.push("n"),r.push(EA(e.x1.x)+" "+EA(e.x1.y)+" m"),r.push(EA(e.x2.x)+" "+EA(e.x2.y)+" l"),r.push(EA(e.x4.x)+" "+EA(e.x4.y)+" m"),r.push(EA(e.x3.x)+" "+EA(e.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(A){var t=NA(A);t.scope=A.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+EA(ut.internal.getWidth(A))+" "+EA(ut.internal.getHeight(A))+" re"),e.push("f"),t.stream=e.join("\n"),t}}},createDefaultAppearanceStream:function(A){var t=A.scope.internal.getFont(A.fontName,A.fontStyle).id,e=A.scope.__private__.encodeColorString(A.color);return"/"+t+" "+A.fontSize+" Tf "+e}};ut.internal={Bezier_C:.551915024494,calculateCross:function(A){var t=ut.internal.getWidth(A),e=ut.internal.getHeight(A),r=Math.min(t,e);return{x1:{x:(t-r)/2,y:(e-r)/2+r},x2:{x:(t-r)/2+r,y:(e-r)/2},x3:{x:(t-r)/2,y:(e-r)/2},x4:{x:(t-r)/2+r,y:(e-r)/2+r}}}},ut.internal.getWidth=function(A){var t=0;return"object"===e(A)&&(t=IA(A.Rect[2])),t},ut.internal.getHeight=function(A){var t=0;return"object"===e(A)&&(t=IA(A.Rect[3])),t};var lt=QA.addField=function(A){if(qA(this,A),!(A instanceof ZA))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=A).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),A.page=A.scope.internal.getCurrentPageInfo().pageNumber,this};function ht(A){return A.reduce((function(A,t,e){return A[t]=e,A}),{})}QA.AcroFormChoiceField=$A,QA.AcroFormListBox=At,QA.AcroFormComboBox=tt,QA.AcroFormEditBox=et,QA.AcroFormButton=rt,QA.AcroFormPushButton=nt,QA.AcroFormRadioButton=it,QA.AcroFormCheckBox=ot,QA.AcroFormTextField=at,QA.AcroFormPasswordField=ct,QA.AcroFormAppearance=ut,QA.AcroForm={ChoiceField:$A,ListBox:At,ComboBox:tt,EditBox:et,Button:rt,PushButton:nt,RadioButton:it,CheckBox:ot,TextField:at,PasswordField:ct,Appearance:ut},CA.AcroForm={ChoiceField:$A,ListBox:At,ComboBox:tt,EditBox:et,Button:rt,PushButton:nt,RadioButton:it,CheckBox:ot,TextField:at,PasswordField:ct,Appearance:ut},CA.AcroForm,function(A){var t="addImage_";A.__addimage__={};var r="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=A.__addimage__.getImageFileTypeByImageData=function(A,t){var e,i,s,o,a,c=r;if("RGBA"===(t=t||r)||void 0!==A.data&&A.data instanceof Uint8ClampedArray&&"height"in A&&"width"in A)return"RGBA";if(Q(A))for(a in n)for(s=n[a],e=0;e<s.length;e+=1){for(o=!0,i=0;i<s[e].length;i+=1)if(void 0!==s[e][i]&&s[e][i]!==A[i]){o=!1;break}if(!0===o){c=a;break}}else for(a in n)for(s=n[a],e=0;e<s.length;e+=1){for(o=!0,i=0;i<s[e].length;i+=1)if(void 0!==s[e][i]&&s[e][i]!==A.charCodeAt(i)){o=!1;break}if(!0===o){c=a;break}}return c===r&&t!==r&&(c=t),c},s=function A(t){for(var e=this.internal.write,r=this.internal.putStream,n=(0,this.internal.getFilters)();-1!==n.indexOf("FlateEncode");)n.splice(n.indexOf("FlateEncode"),1);t.objectId=this.internal.newObject();var i=[];if(i.push({key:"Type",value:"/XObject"}),i.push({key:"Subtype",value:"/Image"}),i.push({key:"Width",value:t.width}),i.push({key:"Height",value:t.height}),t.colorSpace===w.INDEXED?i.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(t.palette.length/3-1)+" "+("sMask"in t&&void 0!==t.sMask?t.objectId+2:t.objectId+1)+" 0 R]"}):(i.push({key:"ColorSpace",value:"/"+t.colorSpace}),t.colorSpace===w.DEVICE_CMYK&&i.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),i.push({key:"BitsPerComponent",value:t.bitsPerComponent}),"decodeParameters"in t&&void 0!==t.decodeParameters&&i.push({key:"DecodeParms",value:"<<"+t.decodeParameters+">>"}),"transparency"in t&&Array.isArray(t.transparency)){for(var s="",o=0,a=t.transparency.length;o<a;o++)s+=t.transparency[o]+" "+t.transparency[o]+" ";i.push({key:"Mask",value:"["+s+"]"})}void 0!==t.sMask&&i.push({key:"SMask",value:t.objectId+1+" 0 R"});var c=void 0!==t.filter?["/"+t.filter]:void 0;if(r({data:t.data,additionalKeyValues:i,alreadyAppliedFilters:c,objectId:t.objectId}),e("endobj"),"sMask"in t&&void 0!==t.sMask){var u="/Predictor "+t.predictor+" /Colors 1 /BitsPerComponent "+t.bitsPerComponent+" /Columns "+t.width,l={width:t.width,height:t.height,colorSpace:"DeviceGray",bitsPerComponent:t.bitsPerComponent,decodeParameters:u,data:t.sMask};"filter"in t&&(l.filter=t.filter),A.call(this,l)}if(t.colorSpace===w.INDEXED){var h=this.internal.newObject();r({data:U(new Uint8Array(t.palette)),objectId:h}),e("endobj")}},o=function(){var A=this.internal.collections[t+"images"];for(var e in A)s.call(this,A[e])},a=function(){var A,e=this.internal.collections[t+"images"],r=this.internal.write;for(var n in e)r("/I"+(A=e[n]).index,A.objectId,"0","R")},c=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",a))},u=function(){var A=this.internal.collections[t+"images"];return c.call(this),A},l=function(){return Object.keys(this.internal.collections[t+"images"]).length},h=function(t){return"function"==typeof A["process"+t.toUpperCase()]},f=function(A){return"object"===e(A)&&1===A.nodeType},d=function(t,e){if("IMG"===t.nodeName&&t.hasAttribute("src")){var r=""+t.getAttribute("src");if(0===r.indexOf("data:image/"))return Y(unescape(r).split("base64,").pop());var n=A.loadFile(r,!0);if(void 0!==n)return n}if("CANVAS"===t.nodeName){if(0===t.width||0===t.height)throw new Error("Given canvas must have data. Canvas width: "+t.width+", height: "+t.height);var i;switch(e){case"PNG":i="image/png";break;case"WEBP":i="image/webp";break;default:i="image/jpeg"}return Y(t.toDataURL(i,1).split("base64,").pop())}},g=function(A){var e=this.internal.collections[t+"images"];if(e)for(var r in e)if(A===e[r].alias)return e[r]},p=function(A,t,e){return A||t||(A=-96,t=-96),A<0&&(A=-1*e.width*72/A/this.internal.scaleFactor),t<0&&(t=-1*e.height*72/t/this.internal.scaleFactor),0===A&&(A=t*e.width/e.height),0===t&&(t=A*e.height/e.width),[A,t]},B=function(A,t,e,r,n,i){var s=p.call(this,e,r,n),o=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,c=u.call(this);if(e=s[0],r=s[1],c[n.index]=n,i){i*=Math.PI/180;var l=Math.cos(i),h=Math.sin(i),f=function(A){return A.toFixed(4)},d=[f(l),f(h),f(-1*h),f(l),0,0,"cm"]}this.internal.write("q"),i?(this.internal.write([1,"0","0",1,o(A),a(t+r),"cm"].join(" ")),this.internal.write(d.join(" ")),this.internal.write([o(e),"0","0",o(r),"0","0","cm"].join(" "))):this.internal.write([o(e),"0","0",o(r),o(A),a(t+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+n.index+" Do"),this.internal.write("Q")},w=A.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"};A.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 m=A.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},y=A.__addimage__.sHashCode=function(A){var t,e,r=0;if("string"==typeof A)for(e=A.length,t=0;t<e;t++)r=(r<<5)-r+A.charCodeAt(t),r|=0;else if(Q(A))for(e=A.byteLength/2,t=0;t<e;t++)r=(r<<5)-r+A[t],r|=0;return r},v=A.__addimage__.validateStringAsBase64=function(A){(A=A||"").toString().trim();var t=!0;return 0===A.length&&(t=!1),A.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(A.substr(0,A.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(A.substr(-2))&&(t=!1),t},b=A.__addimage__.extractImageFromDataUrl=function(A){var t=(A=A||"").split("base64,"),e=null;if(2===t.length){var r=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(t[0]);Array.isArray(r)&&(e={mimeType:r[1],charset:r[2],data:t[1]})}return e},C=A.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};A.__addimage__.isArrayBuffer=function(A){return C()&&A instanceof ArrayBuffer};var Q=A.__addimage__.isArrayBufferView=function(A){return C()&&"undefined"!=typeof Uint32Array&&(A instanceof Int8Array||A instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&A instanceof Uint8ClampedArray||A instanceof Int16Array||A instanceof Uint16Array||A instanceof Int32Array||A instanceof Uint32Array||A instanceof Float32Array||A instanceof Float64Array)},F=A.__addimage__.binaryStringToUint8Array=function(A){for(var t=A.length,e=new Uint8Array(t),r=0;r<t;r++)e[r]=A.charCodeAt(r);return e},U=A.__addimage__.arrayBufferToBinaryString=function(A){for(var t="",e=Q(A)?A:new Uint8Array(A),r=0;r<e.length;r+=8192)t+=String.fromCharCode.apply(null,e.subarray(r,r+8192));return t};A.addImage=function(){var A,t,n,i,s,o,a,u,l;if("number"==typeof arguments[1]?(t=r,n=arguments[1],i=arguments[2],s=arguments[3],o=arguments[4],a=arguments[5],u=arguments[6],l=arguments[7]):(t=arguments[1],n=arguments[2],i=arguments[3],s=arguments[4],o=arguments[5],a=arguments[6],u=arguments[7],l=arguments[8]),"object"===e(A=arguments[0])&&!f(A)&&"imageData"in A){var h=A;A=h.imageData,t=h.format||t||r,n=h.x||n||0,i=h.y||i||0,s=h.w||h.width||s,o=h.h||h.height||o,a=h.alias||a,u=h.compression||u,l=h.rotation||h.angle||l}var d=this.internal.getFilters();if(void 0===u&&-1!==d.indexOf("FlateEncode")&&(u="SLOW"),isNaN(n)||isNaN(i))throw new Error("Invalid coordinates passed to jsPDF.addImage");c.call(this);var g=x.call(this,A,t,a,u);return B.call(this,n,i,s,o,g,l),this};var x=function(t,e,n,s){var o,a,c;if("string"==typeof t&&i(t)===r){t=unescape(t);var u=E(t,!1);(""!==u||void 0!==(u=A.loadFile(t,!0)))&&(t=u)}if(f(t)&&(t=d(t,e)),e=i(t,e),!h(e))throw new Error("addImage does not support files of type '"+e+"', please ensure that a plugin for '"+e+"' support is added.");if((null==(c=n)||0===c.length)&&(n=function(A){return"string"==typeof A||Q(A)?y(A):Q(A.data)?y(A.data):null}(t)),(o=g.call(this,n))||(C()&&(t instanceof Uint8Array||"RGBA"===e||(a=t,t=F(t))),o=this["process"+e.toUpperCase()](t,l.call(this),n,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in A.image_compression?t:m.NONE}(s),a)),!o)throw new Error("An unknown error occurred whilst processing the image.");return o},E=A.__addimage__.convertBase64ToBinaryString=function(A,t){var e;t="boolean"!=typeof t||t;var r,n="";if("string"==typeof A){r=null!==(e=b(A))?e.data:A;try{n=Y(r)}catch(A){if(t)throw v(r)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+A.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return n};A.getImageProperties=function(t){var e,n,s="";if(f(t)&&(t=d(t)),"string"==typeof t&&i(t)===r&&(""===(s=E(t,!1))&&(s=A.loadFile(t)||""),t=s),n=i(t),!h(n))throw new Error("addImage does not support files of type '"+n+"', please ensure that a plugin for '"+n+"' support is added.");if(!C()||t instanceof Uint8Array||(t=F(t)),!(e=this["process"+n.toUpperCase()](t)))throw new Error("An unknown error occurred whilst processing the image");return e.fileType=n,e}}(CA.API),
|
|
86
|
+
/**
|
|
87
|
+
* @license
|
|
88
|
+
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
|
89
|
+
*
|
|
90
|
+
* Licensed under the MIT License.
|
|
91
|
+
* http://opensource.org/licenses/mit-license
|
|
92
|
+
*/
|
|
93
|
+
function(A){var t=function(A){if(void 0!==A&&""!=A)return!0};CA.API.events.push(["addPage",function(A){this.internal.getPageInfo(A.pageNumber).pageContext.annotations=[]}]),A.events.push(["putPage",function(A){for(var e,r,n,i=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(A.objId),a=A.pageContext.annotations,c=!1,u=0;u<a.length&&!c;u++)switch((e=a[u]).type){case"link":(t(e.options.url)||t(e.options.pageNumber))&&(c=!0);break;case"reference":case"text":case"freetext":c=!0}if(0!=c){this.internal.write("/Annots [");for(var l=0;l<a.length;l++){e=a[l];var h=this.internal.pdfEscape,f=this.internal.getEncryptor(A.objId);switch(e.type){case"reference":this.internal.write(" "+e.object.objId+" 0 R ");break;case"text":var d=this.internal.newAdditionalObject(),g=this.internal.newAdditionalObject(),p=this.internal.getEncryptor(d.objId),B=e.title||"Note";n="<</Type /Annot /Subtype /Text "+(r="/Rect ["+i(e.bounds.x)+" "+s(e.bounds.y+e.bounds.h)+" "+i(e.bounds.x+e.bounds.w)+" "+s(e.bounds.y)+"] ")+"/Contents ("+h(p(e.contents))+")",n+=" /Popup "+g.objId+" 0 R",n+=" /P "+o.objId+" 0 R",n+=" /T ("+h(p(B))+") >>",d.content=n;var w=d.objId+" 0 R";n="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+i(e.bounds.x+30)+" "+s(e.bounds.y+e.bounds.h)+" "+i(e.bounds.x+e.bounds.w+30)+" "+s(e.bounds.y)+"] ")+" /Parent "+w,e.open&&(n+=" /Open true"),n+=" >>",g.content=n,this.internal.write(d.objId,"0 R",g.objId,"0 R");break;case"freetext":r="/Rect ["+i(e.bounds.x)+" "+s(e.bounds.y)+" "+i(e.bounds.x+e.bounds.w)+" "+s(e.bounds.y+e.bounds.h)+"] ";var m=e.color||"#000000";n="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+h(f(e.contents))+")",n+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+m+")",n+=" /Border [0 0 0]",n+=" >>",this.internal.write(n);break;case"link":if(e.options.name){var y=this.annotations._nameMap[e.options.name];e.options.pageNumber=y.page,e.options.top=y.y}else e.options.top||(e.options.top=0);if(r="/Rect ["+e.finalBounds.x+" "+e.finalBounds.y+" "+e.finalBounds.w+" "+e.finalBounds.h+"] ",n="",e.options.url)n="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+h(f(e.options.url))+") >>";else if(e.options.pageNumber){switch(n="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(e.options.pageNumber).objId+" 0 R",e.options.magFactor=e.options.magFactor||"XYZ",e.options.magFactor){case"Fit":n+=" /Fit]";break;case"FitH":n+=" /FitH "+e.options.top+"]";break;case"FitV":e.options.left=e.options.left||0,n+=" /FitV "+e.options.left+"]";break;default:var v=s(e.options.top);e.options.left=e.options.left||0,void 0===e.options.zoom&&(e.options.zoom=0),n+=" /XYZ "+e.options.left+" "+v+" "+e.options.zoom+"]"}}""!=n&&(n+=" >>",this.internal.write(n))}}this.internal.write("]")}}]),A.createAnnotation=function(A){var t=this.internal.getCurrentPageInfo();switch(A.type){case"link":this.link(A.bounds.x,A.bounds.y,A.bounds.w,A.bounds.h,A);break;case"text":case"freetext":t.pageContext.annotations.push(A)}},A.link=function(A,t,e,r,n){var i=this.internal.getCurrentPageInfo(),s=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString;i.pageContext.annotations.push({finalBounds:{x:s(A),y:o(t),w:s(A+e),h:o(t+r)},options:n,type:"link"})},A.textWithLink=function(A,t,e,r){var n,i,s=this.getTextWidth(A),o=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==r.maxWidth){i=r.maxWidth;var a=this.splitTextToSize(A,i).length;n=Math.ceil(o*a)}else i=s,n=o;return this.text(A,t,e,r),e+=.2*o,"center"===r.align&&(t-=s/2),"right"===r.align&&(t-=s),this.link(t,e-o,i,n,r),s},A.getTextWidth=function(A){var t=this.internal.getFontSize();return this.getStringUnitWidth(A)*t/this.internal.scaleFactor}}(CA.API),
|
|
94
|
+
/**
|
|
95
|
+
* @license
|
|
96
|
+
* Copyright (c) 2017 Aras Abbasi
|
|
97
|
+
*
|
|
98
|
+
* Licensed under the MIT License.
|
|
99
|
+
* http://opensource.org/licenses/mit-license
|
|
100
|
+
*/
|
|
101
|
+
function(A){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},e={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];A.__arabicParser__={};var i=A.__arabicParser__.isInArabicSubstitutionA=function(A){return void 0!==t[A.charCodeAt(0)]},s=A.__arabicParser__.isArabicLetter=function(A){return"string"==typeof A&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(A)},o=A.__arabicParser__.isArabicEndLetter=function(A){return s(A)&&i(A)&&t[A.charCodeAt(0)].length<=2},a=A.__arabicParser__.isArabicAlfLetter=function(A){return s(A)&&n.indexOf(A.charCodeAt(0))>=0};A.__arabicParser__.arabicLetterHasIsolatedForm=function(A){return s(A)&&i(A)&&t[A.charCodeAt(0)].length>=1};var c=A.__arabicParser__.arabicLetterHasFinalForm=function(A){return s(A)&&i(A)&&t[A.charCodeAt(0)].length>=2};A.__arabicParser__.arabicLetterHasInitialForm=function(A){return s(A)&&i(A)&&t[A.charCodeAt(0)].length>=3};var u=A.__arabicParser__.arabicLetterHasMedialForm=function(A){return s(A)&&i(A)&&4==t[A.charCodeAt(0)].length},l=A.__arabicParser__.resolveLigatures=function(A){var t=0,r=e,n="",i=0;for(t=0;t<A.length;t+=1)void 0!==r[A.charCodeAt(t)]?(i++,"number"==typeof(r=r[A.charCodeAt(t)])&&(n+=String.fromCharCode(r),r=e,i=0),t===A.length-1&&(r=e,n+=A.charAt(t-(i-1)),t-=i-1,i=0)):(r=e,n+=A.charAt(t-i),t-=i,i=0);return n};A.__arabicParser__.isArabicDiacritic=function(A){return void 0!==A&&void 0!==r[A.charCodeAt(0)]};var h=A.__arabicParser__.getCorrectForm=function(A,t,e){return s(A)?!1===i(A)?-1:!c(A)||!s(t)&&!s(e)||!s(e)&&o(t)||o(A)&&!s(t)||o(A)&&a(t)||o(A)&&o(t)?0:u(A)&&s(t)&&!o(t)&&s(e)&&c(e)?3:o(A)||!s(e)?1:2:-1},f=function(A){var e=0,r=0,n=0,i="",o="",a="",c=(A=A||"").split("\\s+"),u=[];for(e=0;e<c.length;e+=1){for(u.push(""),r=0;r<c[e].length;r+=1)i=c[e][r],o=c[e][r-1],a=c[e][r+1],s(i)?(n=h(i,o,a),u[e]+=-1!==n?String.fromCharCode(t[i.charCodeAt(0)][n]):i):u[e]+=i;u[e]=l(u[e])}return u.join(" ")},d=A.__arabicParser__.processArabic=A.processArabic=function(){var A,t="string"==typeof arguments[0]?arguments[0]:arguments[0].text,e=[];if(Array.isArray(t)){var r=0;for(e=[],r=0;r<t.length;r+=1)Array.isArray(t[r])?e.push([f(t[r][0]),t[r][1],t[r][2]]):e.push([f(t[r])]);A=e}else A=f(t);return"string"==typeof arguments[0]?A:(arguments[0].text=A,arguments[0])};A.events.push(["preProcessText",d])}(CA.API),CA.API.autoPrint=function(A){var t;return(A=A||{}).variant=A.variant||"non-conform","javascript"===A.variant?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))),this},
|
|
102
|
+
/**
|
|
103
|
+
* @license
|
|
104
|
+
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
|
105
|
+
*
|
|
106
|
+
* Licensed under the MIT License.
|
|
107
|
+
* http://opensource.org/licenses/mit-license
|
|
108
|
+
*/
|
|
109
|
+
function(A){var t=function(){var A=void 0;Object.defineProperty(this,"pdf",{get:function(){return A},set:function(t){A=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(A){t=isNaN(A)||!1===Number.isInteger(A)||A<0?150:A,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var e=300;Object.defineProperty(this,"height",{get:function(){return e},set:function(A){e=isNaN(A)||!1===Number.isInteger(A)||A<0?300:A,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=e+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(A){r=A}});var n={};Object.defineProperty(this,"style",{get:function(){return n},set:function(A){n=A}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(A,t){var e;if("2d"!==(A=A||"2d"))return null;for(e in t)this.pdf.context2d.hasOwnProperty(e)&&(this.pdf.context2d[e]=t[e]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},A.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(CA.API),function(A){var t={left:0,top:0,bottom:0,right:0},r=!1,n=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new s,this.internal.__cell__.pages=1},s=function(){var A=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return A},set:function(t){A=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(A){t=A}});var e=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return e},set:function(A){e=A}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(A){r=A}});var n=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return n},set:function(A){n=A}});var i=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return i},set:function(A){i=A}});var s=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return s},set:function(A){s=A}}),this};s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},s.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},A.setHeaderFunction=function(A){return n.call(this),this.internal.__cell__.headerFunction="function"==typeof A?A:void 0,this},A.getTextDimensions=function(A,t){n.call(this);var e=(t=t||{}).fontSize||this.getFontSize(),r=t.font||this.getFont(),i=t.scaleFactor||this.internal.scaleFactor,s=0,o=0,a=0,c=this;if(!Array.isArray(A)&&"string"!=typeof A){if("number"!=typeof A)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");A=String(A)}var u=t.maxWidth;u>0?"string"==typeof A?A=this.splitTextToSize(A,u):"[object Array]"===Object.prototype.toString.call(A)&&(A=A.reduce((function(A,t){return A.concat(c.splitTextToSize(t,u))}),[])):A=Array.isArray(A)?A:[A];for(var l=0;l<A.length;l++)s<(a=this.getStringUnitWidth(A[l],{font:r})*e)&&(s=a);return 0!==s&&(o=A.length),{w:s/=i,h:Math.max((o*e*this.getLineHeightFactor()-e*(this.getLineHeightFactor()-1))/i,0)}},A.cellAddPage=function(){n.call(this),this.addPage();var A=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new s(A.left,A.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=A.cell=function(){var A;A=arguments[0]instanceof s?arguments[0]:new s(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),n.call(this);var e=this.internal.__cell__.lastCell,i=this.internal.__cell__.padding,o=this.internal.__cell__.margins||t,a=this.internal.__cell__.tableHeaderRow,c=this.internal.__cell__.printHeaders;return void 0!==e.lineNumber&&(e.lineNumber===A.lineNumber?(A.x=(e.x||0)+(e.width||0),A.y=e.y||0):e.y+e.height+A.height+o.bottom>this.getPageHeight()?(this.cellAddPage(),A.y=o.top,c&&a&&(this.printHeaderRow(A.lineNumber,!0),A.y+=a[0].height)):A.y=e.y+e.height||A.y),void 0!==A.text[0]&&(this.rect(A.x,A.y,A.width,A.height,!0===r?"FD":void 0),"right"===A.align?this.text(A.text,A.x+A.width-i,A.y+i,{align:"right",baseline:"top"}):"center"===A.align?this.text(A.text,A.x+A.width/2,A.y+i,{align:"center",baseline:"top",maxWidth:A.width-i-i}):this.text(A.text,A.x+i,A.y+i,{align:"left",baseline:"top",maxWidth:A.width-i-i})),this.internal.__cell__.lastCell=A,this};A.table=function(A,r,c,u,l){if(n.call(this),!c)throw new Error("No data for PDF table.");var h,f,d,g,p=[],B=[],w=[],m={},y={},v=[],b=[],C=(l=l||{}).autoSize||!1,Q=!1!==l.printHeaders,F=l.css&&void 0!==l.css["font-size"]?16*l.css["font-size"]:l.fontSize||12,U=l.margins||Object.assign({width:this.getPageWidth()},t),x="number"==typeof l.padding?l.padding:3,E=l.headerBackgroundColor||"#c8c8c8",L=l.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=Q,this.internal.__cell__.margins=U,this.internal.__cell__.table_font_size=F,this.internal.__cell__.padding=x,this.internal.__cell__.headerBackgroundColor=E,this.internal.__cell__.headerTextColor=L,this.setFontSize(F),null==u)B=p=Object.keys(c[0]),w=p.map((function(){return"left"}));else if(Array.isArray(u)&&"object"===e(u[0]))for(p=u.map((function(A){return A.name})),B=u.map((function(A){return A.prompt||A.name||""})),w=u.map((function(A){return A.align||"left"})),h=0;h<u.length;h+=1)y[u[h].name]=.7499990551181103*u[h].width;else Array.isArray(u)&&"string"==typeof u[0]&&(B=p=u,w=p.map((function(){return"left"})));if(C||Array.isArray(u)&&"string"==typeof u[0])for(h=0;h<p.length;h+=1){for(m[g=p[h]]=c.map((function(A){return A[g]})),this.setFont(void 0,"bold"),v.push(this.getTextDimensions(B[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),f=m[g],this.setFont(void 0,"normal"),d=0;d<f.length;d+=1)v.push(this.getTextDimensions(f[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);y[g]=Math.max.apply(null,v)+x+x,v=[]}if(Q){var S={};for(h=0;h<p.length;h+=1)S[p[h]]={},S[p[h]].text=B[h],S[p[h]].align=w[h];var I=a.call(this,S,y);b=p.map((function(t){return new s(A,r,y[t],I,S[t].text,void 0,S[t].align)})),this.setTableHeaderRow(b),this.printHeaderRow(1,!1)}var N=u.reduce((function(A,t){return A[t.name]=t.align,A}),{});for(h=0;h<c.length;h+=1){"rowStart"in l&&l.rowStart instanceof Function&&l.rowStart({row:h,data:c[h]},this);var H=a.call(this,c[h],y);for(d=0;d<p.length;d+=1){var P=c[h][p[d]];"cellStart"in l&&l.cellStart instanceof Function&&l.cellStart({row:h,col:d,data:P},this),o.call(this,new s(A,r,y[p[d]],H,P,h+2,N[p[d]]))}}return this.internal.__cell__.table_x=A,this.internal.__cell__.table_y=r,this};var a=function(A,t){var e=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,n=this.internal.scaleFactor;return Object.keys(A).map((function(r){var n=A[r];return this.splitTextToSize(n.hasOwnProperty("text")?n.text:n,t[r]-e-e)}),this).map((function(A){return this.getLineHeightFactor()*A.length*r/n+e+e}),this).reduce((function(A,t){return Math.max(A,t)}),0)};A.setTableHeaderRow=function(A){n.call(this),this.internal.__cell__.tableHeaderRow=A},A.printHeaderRow=function(A,t){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var e;if(r=!0,"function"==typeof this.internal.__cell__.headerFunction){var i=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new s(i[0],i[1],i[2],i[3],void 0,-1)}this.setFont(void 0,"bold");for(var a=[],c=0;c<this.internal.__cell__.tableHeaderRow.length;c+=1){e=this.internal.__cell__.tableHeaderRow[c].clone(),t&&(e.y=this.internal.__cell__.margins.top||0,a.push(e)),e.lineNumber=A;var u=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,e),this.setTextColor(u)}a.length>0&&this.setTableHeaderRow(a),this.setFont(void 0,"normal"),r=!1}}(CA.API);var ft={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},dt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],gt=ht(dt),pt=[100,200,300,400,500,600,700,800,900],Bt=ht(pt);function wt(A){var t=A.family.replace(/"|'/g,"").toLowerCase(),e=function(A){return ft[A=A||"normal"]?A:"normal"}(A.style),r=function(A){return A?"number"==typeof A?A>=100&&A<=900&&A%100==0?A:400:/^\d00$/.test(A)?parseInt(A):"bold"===A?700:400:400}(A.weight),n=function(A){return"number"==typeof gt[A=A||"normal"]?A:"normal"}(A.stretch);return{family:t,style:e,weight:r,stretch:n,src:A.src||[],ref:A.ref||{name:t,style:[n,e,r].join(" ")}}}function mt(A,t,e,r){var n;for(n=e;n>=0&&n<t.length;n+=r)if(A[t[n]])return A[t[n]];for(n=e;n>=0&&n<t.length;n-=r)if(A[t[n]])return A[t[n]]}var yt={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},vt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function bt(A){return[A.stretch,A.style,A.weight,A.family].join(" ")}function Ct(A,t,e){for(var r=(e=e||{}).defaultFontFamily||"times",n=Object.assign({},yt,e.genericFontFamilies||{}),i=null,s=null,o=0;o<t.length;++o)if(n[(i=wt(t[o])).family]&&(i.family=n[i.family]),A.hasOwnProperty(i.family)){s=A[i.family];break}if(!(s=s||A[r]))throw new Error("Could not find a font-family for the rule '"+bt(i)+"' and default family '"+r+"'.");if(s=function(A,t){if(t[A])return t[A];var e=gt[A],r=e<=gt.normal?-1:1,n=mt(t,dt,e,r);if(!n)throw new Error("Could not find a matching font-stretch value for "+A);return n}(i.stretch,s),s=function(A,t){if(t[A])return t[A];for(var e=ft[A],r=0;r<e.length;++r)if(t[e[r]])return t[e[r]];throw new Error("Could not find a matching font-style for "+A)}(i.style,s),s=function(A,t){if(t[A])return t[A];if(400===A&&t[500])return t[500];if(500===A&&t[400])return t[400];var e=Bt[A],r=mt(t,pt,e,A<400?-1:1);if(!r)throw new Error("Could not find a matching font-weight for value "+A);return r}(i.weight,s),!s)throw new Error("Failed to resolve a font for the rule '"+bt(i)+"'.");return s}function Qt(A){return A.trimLeft()}function Ft(A,t){for(var e=0;e<A.length;){if(A.charAt(e)===t)return[A.substring(0,e),A.substring(e+1)];e+=1}return null}function Ut(A){var t=A.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===t?null:[t[0],A.substring(t[0].length)]}var xt,Et,Lt,St=["times"];!function(A){var t,r,n,i,s,o,a,c,u,l=function(A){return A=A||{},this.isStrokeTransparent=A.isStrokeTransparent||!1,this.strokeOpacity=A.strokeOpacity||1,this.strokeStyle=A.strokeStyle||"#000000",this.fillStyle=A.fillStyle||"#000000",this.isFillTransparent=A.isFillTransparent||!1,this.fillOpacity=A.fillOpacity||1,this.font=A.font||"10px sans-serif",this.textBaseline=A.textBaseline||"alphabetic",this.textAlign=A.textAlign||"left",this.lineWidth=A.lineWidth||1,this.lineJoin=A.lineJoin||"miter",this.lineCap=A.lineCap||"butt",this.path=A.path||[],this.transform=void 0!==A.transform?A.transform.clone():new c,this.globalCompositeOperation=A.globalCompositeOperation||"normal",this.globalAlpha=A.globalAlpha||1,this.clip_path=A.clip_path||[],this.currentPoint=A.currentPoint||new o,this.miterLimit=A.miterLimit||10,this.lastPoint=A.lastPoint||new o,this.lineDashOffset=A.lineDashOffset||0,this.lineDash=A.lineDash||[],this.margin=A.margin||[0,0,0,0],this.prevPageLastElemOffset=A.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof A.ignoreClearRect||A.ignoreClearRect,this};A.events.push(["initialized",function(){this.context2d=new h(this),t=this.internal.f2,r=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,o=this.internal.Point,a=this.internal.Rectangle,c=this.internal.Matrix,u=new l}]);var h=function(A){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=A;Object.defineProperty(this,"pdf",{get:function(){return t}});var e=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return e},set:function(A){e=Boolean(A)}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(A){r=Boolean(A)}});var n=0;Object.defineProperty(this,"posX",{get:function(){return n},set:function(A){isNaN(A)||(n=A)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(A){isNaN(A)||(i=A)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(A){var t;"number"==typeof A?t=[A,A,A,A]:((t=new Array(4))[0]=A[0],t[1]=A.length>=2?A[1]:t[0],t[2]=A.length>=3?A[2]:t[0],t[3]=A.length>=4?A[3]:t[1]),u.margin=t}});var s=!1;Object.defineProperty(this,"autoPaging",{get:function(){return s},set:function(A){s=A}});var o=0;Object.defineProperty(this,"lastBreak",{get:function(){return o},set:function(A){o=A}});var a=[];Object.defineProperty(this,"pageBreaks",{get:function(){return a},set:function(A){a=A}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(A){A instanceof l&&(u=A)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(A){u.path=A}});var c=[];Object.defineProperty(this,"ctxStack",{get:function(){return c},set:function(A){c=A}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(A){var t;t=f(A),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(A){var t=f(A);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(A){-1!==["butt","round","square"].indexOf(A)&&(this.ctx.lineCap=A,this.pdf.setLineCap(A))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(A){isNaN(A)||(this.ctx.lineWidth=A,this.pdf.setLineWidth(A))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(A){-1!==["bevel","round","miter"].indexOf(A)&&(this.ctx.lineJoin=A,this.pdf.setLineJoin(A))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(A){isNaN(A)||(this.ctx.miterLimit=A,this.pdf.setMiterLimit(A))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(A){this.ctx.textBaseline=A}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(A){-1!==["right","end","center","left","start"].indexOf(A)&&(this.ctx.textAlign=A)}});var h=null;function d(A,t){if(null===h){var e=function(A){var t=[];return Object.keys(A).forEach((function(e){A[e].forEach((function(A){var r=null;switch(A){case"bold":r={family:e,weight:"bold"};break;case"italic":r={family:e,style:"italic"};break;case"bolditalic":r={family:e,weight:"bold",style:"italic"};break;case"":case"normal":r={family:e}}null!==r&&(r.ref={name:e,style:A},t.push(r))}))})),t}(A.getFontList());h=function(A){for(var t={},e=0;e<A.length;++e){var r=wt(A[e]),n=r.family,i=r.stretch,s=r.style,o=r.weight;t[n]=t[n]||{},t[n][i]=t[n][i]||{},t[n][i][s]=t[n][i][s]||{},t[n][i][s][o]=r}return t}(e.concat(t))}return h}var g=null;Object.defineProperty(this,"fontFaces",{get:function(){return g},set:function(A){h=null,g=A}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(A){var t;if(this.ctx.font=A,null!==(t=/^\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(A))){var e=t[1];t[2];var r=t[3],n=t[4];t[5];var i=t[6],s=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(n)[2];n="px"===s?Math.floor(parseFloat(n)*this.pdf.internal.scaleFactor):"em"===s?Math.floor(parseFloat(n)*this.pdf.getFontSize()):Math.floor(parseFloat(n)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(n);var o=function(A){var t,e,r=[],n=A.trim();if(""===n)return St;if(n in vt)return[vt[n]];for(;""!==n;){switch(e=null,t=(n=Qt(n)).charAt(0)){case'"':case"'":e=Ft(n.substring(1),t);break;default:e=Ut(n)}if(null===e)return St;if(r.push(e[0]),""!==(n=Qt(e[1]))&&","!==n.charAt(0))return St;n=n.replace(/^,/,"")}return r}(i);if(this.fontFaces){var a=d(this.pdf,this.fontFaces),c=o.map((function(A){return{family:A,stretch:"normal",weight:r,style:e}})),u=Ct(a,c);this.pdf.setFont(u.ref.name,u.ref.style)}else{var l="";("bold"===r||parseInt(r,10)>=700||"bold"===e)&&(l="bold"),"italic"===e&&(l+="italic"),0===l.length&&(l="normal");for(var h="",f={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"},g=0;g<o.length;g++){if(void 0!==this.pdf.internal.getFont(o[g],l,{noFallback:!0,disableWarning:!0})){h=o[g];break}if("bolditalic"===l&&void 0!==this.pdf.internal.getFont(o[g],"bold",{noFallback:!0,disableWarning:!0}))h=o[g],l="bold";else if(void 0!==this.pdf.internal.getFont(o[g],"normal",{noFallback:!0,disableWarning:!0})){h=o[g],l="normal";break}}if(""===h)for(var p=0;p<o.length;p++)if(f[o[p]]){h=f[o[p]];break}h=""===h?"Times":h,this.pdf.setFont(h,l)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(A){this.ctx.globalCompositeOperation=A}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(A){this.ctx.globalAlpha=A}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(A){this.ctx.lineDashOffset=A,k.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(A){this.ctx.lineDash=A,k.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(A){this.ctx.ignoreClearRect=Boolean(A)}})};h.prototype.setLineDash=function(A){this.lineDash=A},h.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},h.prototype.fill=function(){v.call(this,"fill",!1)},h.prototype.stroke=function(){v.call(this,"stroke",!1)},h.prototype.beginPath=function(){this.path=[{type:"begin"}]},h.prototype.moveTo=function(A,t){if(isNaN(A)||isNaN(t))throw q.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var e=this.ctx.transform.applyToPoint(new o(A,t));this.path.push({type:"mt",x:e.x,y:e.y}),this.ctx.lastPoint=new o(A,t)},h.prototype.closePath=function(){var A=new o(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"===e(this.path[t+1])&&"number"==typeof this.path[t+1].x){A=new o(this.path[t+1].x,this.path[t+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(A.x,A.y)},h.prototype.lineTo=function(A,t){if(isNaN(A)||isNaN(t))throw q.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var e=this.ctx.transform.applyToPoint(new o(A,t));this.path.push({type:"lt",x:e.x,y:e.y}),this.ctx.lastPoint=new o(e.x,e.y)},h.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),v.call(this,null,!0)},h.prototype.quadraticCurveTo=function(A,t,e,r){if(isNaN(e)||isNaN(r)||isNaN(A)||isNaN(t))throw q.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var n=this.ctx.transform.applyToPoint(new o(e,r)),i=this.ctx.transform.applyToPoint(new o(A,t));this.path.push({type:"qct",x1:i.x,y1:i.y,x:n.x,y:n.y}),this.ctx.lastPoint=new o(n.x,n.y)},h.prototype.bezierCurveTo=function(A,t,e,r,n,i){if(isNaN(n)||isNaN(i)||isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r))throw q.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var s=this.ctx.transform.applyToPoint(new o(n,i)),a=this.ctx.transform.applyToPoint(new o(A,t)),c=this.ctx.transform.applyToPoint(new o(e,r));this.path.push({type:"bct",x1:a.x,y1:a.y,x2:c.x,y2:c.y,x:s.x,y:s.y}),this.ctx.lastPoint=new o(s.x,s.y)},h.prototype.arc=function(A,t,e,r,n,i){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw q.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(i=Boolean(i),!this.ctx.transform.isIdentity){var s=this.ctx.transform.applyToPoint(new o(A,t));A=s.x,t=s.y;var a=this.ctx.transform.applyToPoint(new o(0,e)),c=this.ctx.transform.applyToPoint(new o(0,0));e=Math.sqrt(Math.pow(a.x-c.x,2)+Math.pow(a.y-c.y,2))}Math.abs(n-r)>=2*Math.PI&&(r=0,n=2*Math.PI),this.path.push({type:"arc",x:A,y:t,radius:e,startAngle:r,endAngle:n,counterclockwise:i})},h.prototype.arcTo=function(A,t,e,r,n){throw new Error("arcTo not implemented.")},h.prototype.rect=function(A,t,e,r){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r))throw q.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(A,t),this.lineTo(A+e,t),this.lineTo(A+e,t+r),this.lineTo(A,t+r),this.lineTo(A,t),this.lineTo(A+e,t),this.lineTo(A,t)},h.prototype.fillRect=function(A,t,e,r){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r))throw q.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!d.call(this)){var n={};"butt"!==this.lineCap&&(n.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(n.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(A,t,e,r),this.fill(),n.hasOwnProperty("lineCap")&&(this.lineCap=n.lineCap),n.hasOwnProperty("lineJoin")&&(this.lineJoin=n.lineJoin)}},h.prototype.strokeRect=function(A,t,e,r){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r))throw q.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");g.call(this)||(this.beginPath(),this.rect(A,t,e,r),this.stroke())},h.prototype.clearRect=function(A,t,e,r){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r))throw q.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(A,t,e,r))},h.prototype.save=function(A){A="boolean"!=typeof A||A;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,e=0;e<this.pdf.internal.getNumberOfPages();e++)this.pdf.setPage(e+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),A){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new l(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},h.prototype.restore=function(A){A="boolean"!=typeof A||A;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,e=0;e<this.pdf.internal.getNumberOfPages();e++)this.pdf.setPage(e+1),this.pdf.internal.out("Q");this.pdf.setPage(t),A&&0!==this.ctxStack.length&&(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)},h.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var f=function(A){var t,e,r,n;if(!0===A.isCanvasGradient&&(A=A.getColor()),!A)return{r:0,g:0,b:0,a:0,style:A};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(A))t=0,e=0,r=0,n=0;else{var i=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(A);if(null!==i)t=parseInt(i[1]),e=parseInt(i[2]),r=parseInt(i[3]),n=1;else if(null!==(i=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(A)))t=parseInt(i[1]),e=parseInt(i[2]),r=parseInt(i[3]),n=parseFloat(i[4]);else{if(n=1,"string"==typeof A&&"#"!==A.charAt(0)){var s=new $(A);A=s.ok?s.toHex():"#000000"}4===A.length?(t=A.substring(1,2),t+=t,e=A.substring(2,3),e+=e,r=A.substring(3,4),r+=r):(t=A.substring(1,3),e=A.substring(3,5),r=A.substring(5,7)),t=parseInt(t,16),e=parseInt(e,16),r=parseInt(r,16)}}return{r:t,g:e,b:r,a:n,style:A}},d=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},g=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};h.prototype.fillText=function(A,t,e,r){if(isNaN(t)||isNaN(e)||"string"!=typeof A)throw q.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!d.call(this)){var n=O(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;L.call(this,{text:A,x:t,y:e,scale:i,angle:n,align:this.textAlign,maxWidth:r})}},h.prototype.strokeText=function(A,t,e,r){if(isNaN(t)||isNaN(e)||"string"!=typeof A)throw q.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!g.call(this)){r=isNaN(r)?void 0:r;var n=O(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;L.call(this,{text:A,x:t,y:e,scale:i,renderingMode:"stroke",angle:n,align:this.textAlign,maxWidth:r})}},h.prototype.measureText=function(A){if("string"!=typeof A)throw q.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,e=this.pdf.internal.scaleFactor,r=t.internal.getFontSize(),n=t.getStringUnitWidth(A)*r/t.internal.scaleFactor;return new function(A){var t=(A=A||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this}({width:n*=Math.round(96*e/72*1e4)/1e4})},h.prototype.scale=function(A,t){if(isNaN(A)||isNaN(t))throw q.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var e=new c(A,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(e)},h.prototype.rotate=function(A){if(isNaN(A))throw q.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new c(Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},h.prototype.translate=function(A,t){if(isNaN(A)||isNaN(t))throw q.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var e=new c(1,0,0,1,A,t);this.ctx.transform=this.ctx.transform.multiply(e)},h.prototype.transform=function(A,t,e,r,n,i){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i))throw q.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var s=new c(A,t,e,r,n,i);this.ctx.transform=this.ctx.transform.multiply(s)},h.prototype.setTransform=function(A,t,e,r,n,i){A=isNaN(A)?1:A,t=isNaN(t)?0:t,e=isNaN(e)?0:e,r=isNaN(r)?1:r,n=isNaN(n)?0:n,i=isNaN(i)?0:i,this.ctx.transform=new c(A,t,e,r,n,i)};var p=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};h.prototype.drawImage=function(A,t,e,r,n,i,s,o,u){var l=this.pdf.getImageProperties(A),h=1,f=1,d=1,g=1;void 0!==r&&void 0!==o&&(d=o/r,g=u/n,h=l.width/r*o/r,f=l.height/n*u/n),void 0===i&&(i=t,s=e,t=0,e=0),void 0!==r&&void 0===o&&(o=r,u=n),void 0===r&&void 0===o&&(o=l.width,u=l.height);for(var w,v=this.ctx.transform.decompose(),C=O(v.rotate.shx),Q=new c,F=(Q=(Q=(Q=Q.multiply(v.translate)).multiply(v.skew)).multiply(v.scale)).applyToRectangle(new a(i-t*d,s-e*g,r*h,n*f)),U=B.call(this,F),x=[],E=0;E<U.length;E+=1)-1===x.indexOf(U[E])&&x.push(U[E]);if(y(x),this.autoPaging)for(var L=x[0],S=x[x.length-1],I=L;I<S+1;I++){this.pdf.setPage(I);var N=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],H=1===I?this.posY+this.margin[0]:this.margin[0],P=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],T=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],_=1===I?0:P+(I-2)*T;if(0!==this.ctx.clip_path.length){var k=this.path;w=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=m(w,this.posX+this.margin[3],-_+H+this.ctx.prevPageLastElemOffset),b.call(this,"fill",!0),this.path=k}var M=JSON.parse(JSON.stringify(F));M=m([M],this.posX+this.margin[3],-_+H+this.ctx.prevPageLastElemOffset)[0];var D=(I>L||I<S)&&p.call(this);D&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],N,T,null).clip().discardPath()),this.pdf.addImage(A,"JPEG",M.x,M.y,M.w,M.h,null,null,C),D&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(A,"JPEG",F.x,F.y,F.w,F.h,null,null,C)};var B=function(A,t,e){var r=[];t=t||this.pdf.internal.pageSize.width,e=e||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var n=this.posY+this.ctx.prevPageLastElemOffset;switch(A.type){default:case"mt":case"lt":r.push(Math.floor((A.y+n)/e)+1);break;case"arc":r.push(Math.floor((A.y+n-A.radius)/e)+1),r.push(Math.floor((A.y+n+A.radius)/e)+1);break;case"qct":var i=T(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x,A.y);r.push(Math.floor((i.y+n)/e)+1),r.push(Math.floor((i.y+i.h+n)/e)+1);break;case"bct":var s=_(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x2,A.y2,A.x,A.y);r.push(Math.floor((s.y+n)/e)+1),r.push(Math.floor((s.y+s.h+n)/e)+1);break;case"rect":r.push(Math.floor((A.y+n)/e)+1),r.push(Math.floor((A.y+A.h+n)/e)+1)}for(var o=0;o<r.length;o+=1)for(;this.pdf.internal.getNumberOfPages()<r[o];)w.call(this);return r},w=function(){var A=this.fillStyle,t=this.strokeStyle,e=this.font,r=this.lineCap,n=this.lineWidth,i=this.lineJoin;this.pdf.addPage(),this.fillStyle=A,this.strokeStyle=t,this.font=e,this.lineCap=r,this.lineWidth=n,this.lineJoin=i},m=function(A,t,e){for(var r=0;r<A.length;r++)switch(A[r].type){case"bct":A[r].x2+=t,A[r].y2+=e;case"qct":A[r].x1+=t,A[r].y1+=e;default:A[r].x+=t,A[r].y+=e}return A},y=function(A){return A.sort((function(A,t){return A-t}))},v=function(A,t){for(var e,r,n=this.fillStyle,i=this.strokeStyle,s=this.lineCap,o=this.lineWidth,a=Math.abs(o*this.ctx.transform.scaleX),c=this.lineJoin,u=JSON.parse(JSON.stringify(this.path)),l=JSON.parse(JSON.stringify(this.path)),h=[],f=0;f<l.length;f++)if(void 0!==l[f].x)for(var d=B.call(this,l[f]),g=0;g<d.length;g+=1)-1===h.indexOf(d[g])&&h.push(d[g]);for(var v=0;v<h.length;v++)for(;this.pdf.internal.getNumberOfPages()<h[v];)w.call(this);if(y(h),this.autoPaging)for(var C=h[0],Q=h[h.length-1],F=C;F<Q+1;F++){this.pdf.setPage(F),this.fillStyle=n,this.strokeStyle=i,this.lineCap=s,this.lineWidth=a,this.lineJoin=c;var U=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],x=1===F?this.posY+this.margin[0]:this.margin[0],E=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],L=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],S=1===F?0:E+(F-2)*L;if(0!==this.ctx.clip_path.length){var I=this.path;e=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=m(e,this.posX+this.margin[3],-S+x+this.ctx.prevPageLastElemOffset),b.call(this,A,!0),this.path=I}if(r=JSON.parse(JSON.stringify(u)),this.path=m(r,this.posX+this.margin[3],-S+x+this.ctx.prevPageLastElemOffset),!1===t||0===F){var N=(F>C||F<Q)&&p.call(this);N&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],U,L,null).clip().discardPath()),b.call(this,A,t),N&&this.pdf.restoreGraphicsState()}this.lineWidth=o}else this.lineWidth=a,b.call(this,A,t),this.lineWidth=o;this.path=u},b=function(A,t){if(("stroke"!==A||t||!g.call(this))&&("stroke"===A||t||!d.call(this))){for(var e,r,n=[],i=this.path,s=0;s<i.length;s++){var o=i[s];switch(o.type){case"begin":n.push({begin:!0});break;case"close":n.push({close:!0});break;case"mt":n.push({start:o,deltas:[],abs:[]});break;case"lt":var a=n.length;if(i[s-1]&&!isNaN(i[s-1].x)&&(e=[o.x-i[s-1].x,o.y-i[s-1].y],a>0))for(;a>=0;a--)if(!0!==n[a-1].close&&!0!==n[a-1].begin){n[a-1].deltas.push(e),n[a-1].abs.push(o);break}break;case"bct":e=[o.x1-i[s-1].x,o.y1-i[s-1].y,o.x2-i[s-1].x,o.y2-i[s-1].y,o.x-i[s-1].x,o.y-i[s-1].y],n[n.length-1].deltas.push(e);break;case"qct":var c=i[s-1].x+2/3*(o.x1-i[s-1].x),u=i[s-1].y+2/3*(o.y1-i[s-1].y),l=o.x+2/3*(o.x1-o.x),h=o.y+2/3*(o.y1-o.y),f=o.x,p=o.y;e=[c-i[s-1].x,u-i[s-1].y,l-i[s-1].x,h-i[s-1].y,f-i[s-1].x,p-i[s-1].y],n[n.length-1].deltas.push(e);break;case"arc":n.push({deltas:[],abs:[],arc:!0}),Array.isArray(n[n.length-1].abs)&&n[n.length-1].abs.push(o)}}r=t?null:"stroke"===A?"stroke":"fill";for(var B=!1,w=0;w<n.length;w++)if(n[w].arc)for(var m=n[w].abs,y=0;y<m.length;y++){var v=m[y];"arc"===v.type?F.call(this,v.x,v.y,v.radius,v.startAngle,v.endAngle,v.counterclockwise,void 0,t,!B):S.call(this,v.x,v.y),B=!0}else if(!0===n[w].close)this.pdf.internal.out("h"),B=!1;else if(!0!==n[w].begin){var b=n[w].start.x,C=n[w].start.y;I.call(this,n[w].deltas,b,C),B=!0}r&&U.call(this,r),t&&x.call(this)}},C=function(A){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,e=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return A-e;case"top":return A+t-e;case"hanging":return A+t-2*e;case"middle":return A+t/2-e;default:return A}},Q=function(A){return A+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};h.prototype.createLinearGradient=function(){var A=function(){};return A.colorStops=[],A.addColorStop=function(A,t){this.colorStops.push([A,t])},A.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},A.isCanvasGradient=!0,A},h.prototype.createPattern=function(){return this.createLinearGradient()},h.prototype.createRadialGradient=function(){return this.createLinearGradient()};var F=function(A,t,e,r,n,i,s,o,a){for(var c=H.call(this,e,r,n,i),u=0;u<c.length;u++){var l=c[u];0===u&&(a?E.call(this,l.x1+A,l.y1+t):S.call(this,l.x1+A,l.y1+t)),N.call(this,A,t,l.x2,l.y2,l.x3,l.y3,l.x4,l.y4)}o?x.call(this):U.call(this,s)},U=function(A){switch(A){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},x=function(){this.pdf.clip(),this.pdf.discardPath()},E=function(A,t){this.pdf.internal.out(r(A)+" "+n(t)+" m")},L=function(A){var t;switch(A.align){case"right":case"end":t="right";break;case"center":t="center";break;default:t="left"}var e=this.pdf.getTextDimensions(A.text),r=C.call(this,A.y),n=Q.call(this,r)-e.h,i=this.ctx.transform.applyToPoint(new o(A.x,r)),s=this.ctx.transform.decompose(),u=new c;u=(u=(u=u.multiply(s.translate)).multiply(s.skew)).multiply(s.scale);for(var l,h,f,d=this.ctx.transform.applyToRectangle(new a(A.x,r,e.w,e.h)),g=u.applyToRectangle(new a(A.x,n,e.w,e.h)),w=B.call(this,g),v=[],F=0;F<w.length;F+=1)-1===v.indexOf(w[F])&&v.push(w[F]);if(y(v),this.autoPaging)for(var U=v[0],x=v[v.length-1],E=U;E<x+1;E++){this.pdf.setPage(E);var L=1===E?this.posY+this.margin[0]:this.margin[0],S=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],I=this.pdf.internal.pageSize.height-this.margin[2],N=I-this.margin[0],H=this.pdf.internal.pageSize.width-this.margin[1],P=H-this.margin[3],O=1===E?0:S+(E-2)*N;if(0!==this.ctx.clip_path.length){var T=this.path;l=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=m(l,this.posX+this.margin[3],-1*O+L),b.call(this,"fill",!0),this.path=T}var _=m([JSON.parse(JSON.stringify(g))],this.posX+this.margin[3],-O+L+this.ctx.prevPageLastElemOffset)[0];A.scale>=.01&&(h=this.pdf.internal.getFontSize(),this.pdf.setFontSize(h*A.scale),f=this.lineWidth,this.lineWidth=f*A.scale);var k="text"!==this.autoPaging;if(k||_.y+_.h<=I){if(k||_.y>=L&&_.x<=H){var M=k?A.text:this.pdf.splitTextToSize(A.text,A.maxWidth||H-_.x)[0],D=m([JSON.parse(JSON.stringify(d))],this.posX+this.margin[3],-O+L+this.ctx.prevPageLastElemOffset)[0],R=k&&(E>U||E<x)&&p.call(this);R&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],P,N,null).clip().discardPath()),this.pdf.text(M,D.x,D.y,{angle:A.angle,align:t,renderingMode:A.renderingMode}),R&&this.pdf.restoreGraphicsState()}}else _.y<I&&(this.ctx.prevPageLastElemOffset+=I-_.y);A.scale>=.01&&(this.pdf.setFontSize(h),this.lineWidth=f)}else A.scale>=.01&&(h=this.pdf.internal.getFontSize(),this.pdf.setFontSize(h*A.scale),f=this.lineWidth,this.lineWidth=f*A.scale),this.pdf.text(A.text,i.x+this.posX,i.y+this.posY,{angle:A.angle,align:t,renderingMode:A.renderingMode,maxWidth:A.maxWidth}),A.scale>=.01&&(this.pdf.setFontSize(h),this.lineWidth=f)},S=function(A,t,e,i){e=e||0,i=i||0,this.pdf.internal.out(r(A+e)+" "+n(t+i)+" l")},I=function(A,t,e){return this.pdf.lines(A,t,e,null,null)},N=function(A,e,r,n,o,a,c,u){this.pdf.internal.out([t(i(r+A)),t(s(n+e)),t(i(o+A)),t(s(a+e)),t(i(c+A)),t(s(u+e)),"c"].join(" "))},H=function(A,t,e,r){for(var n=2*Math.PI,i=Math.PI/2;t>e;)t-=n;var s=Math.abs(e-t);s<n&&r&&(s=n-s);for(var o=[],a=r?-1:1,c=t;s>1e-5;){var u=c+a*Math.min(s,i);o.push(P.call(this,A,c,u)),s-=Math.abs(u-c),c=u}return o},P=function(A,t,e){var r=(e-t)/2,n=A*Math.cos(r),i=A*Math.sin(r),s=n,o=-i,a=s*s+o*o,c=a+s*n+o*i,u=4/3*(Math.sqrt(2*a*c)-c)/(s*i-o*n),l=s-u*o,h=o+u*s,f=l,d=-h,g=r+t,p=Math.cos(g),B=Math.sin(g);return{x1:A*Math.cos(t),y1:A*Math.sin(t),x2:l*p-h*B,y2:l*B+h*p,x3:f*p-d*B,y3:f*B+d*p,x4:A*Math.cos(e),y4:A*Math.sin(e)}},O=function(A){return 180*A/Math.PI},T=function(A,t,e,r,n,i){var s=A+.5*(e-A),o=t+.5*(r-t),c=n+.5*(e-n),u=i+.5*(r-i),l=Math.min(A,n,s,c),h=Math.max(A,n,s,c),f=Math.min(t,i,o,u),d=Math.max(t,i,o,u);return new a(l,f,h-l,d-f)},_=function(A,t,e,r,n,i,s,o){var c,u,l,h,f,d,g,p,B,w,m,y,v,b,C=e-A,Q=r-t,F=n-e,U=i-r,x=s-n,E=o-i;for(u=0;u<41;u++)B=(g=(l=A+(c=u/40)*C)+c*((f=e+c*F)-l))+c*(f+c*(n+c*x-f)-g),w=(p=(h=t+c*Q)+c*((d=r+c*U)-h))+c*(d+c*(i+c*E-d)-p),0==u?(m=B,y=w,v=B,b=w):(m=Math.min(m,B),y=Math.min(y,w),v=Math.max(v,B),b=Math.max(b,w));return new a(Math.round(m),Math.round(y),Math.round(v-m),Math.round(b-y))},k=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var A,t,e=(A=this.ctx.lineDash,t=this.ctx.lineDashOffset,JSON.stringify({lineDash:A,lineDashOffset:t}));this.prevLineDash!==e&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=e)}}}(CA.API),
|
|
110
|
+
/**
|
|
111
|
+
* @license
|
|
112
|
+
* jsPDF filters PlugIn
|
|
113
|
+
* Copyright (c) 2014 Aras Abbasi
|
|
114
|
+
*
|
|
115
|
+
* Licensed under the MIT License.
|
|
116
|
+
* http://opensource.org/licenses/mit-license
|
|
117
|
+
*/
|
|
118
|
+
function(A){var t=function(A){var t,e,r,n,i,s,o,a,c,u;for(/[^\x00-\xFF]/.test(A),e=[],r=0,n=(A+=t="\0\0\0\0".slice(A.length%4||4)).length;n>r;r+=4)0!==(i=(A.charCodeAt(r)<<24)+(A.charCodeAt(r+1)<<16)+(A.charCodeAt(r+2)<<8)+A.charCodeAt(r+3))?(s=(i=((i=((i=((i=(i-(u=i%85))/85)-(c=i%85))/85)-(a=i%85))/85)-(o=i%85))/85)%85,e.push(s+33,o+33,a+33,c+33,u+33)):e.push(122);return function(A,t){for(var e=t;e>0;e--)A.pop()}(e,t.length),String.fromCharCode.apply(String,e)+"~>"},e=function(A){var t,e,r,n,i,s=String,o="length",a=255,c="charCodeAt",u="slice",l="replace";for(A[u](-2),A=A[u](0,-2)[l](/\s/g,"")[l]("z","!!!!!"),r=[],n=0,i=(A+=t="uuuuu"[u](A[o]%5||5))[o];i>n;n+=5)e=52200625*(A[c](n)-33)+614125*(A[c](n+1)-33)+7225*(A[c](n+2)-33)+85*(A[c](n+3)-33)+(A[c](n+4)-33),r.push(a&e>>24,a&e>>16,a&e>>8,a&e);return function(A,t){for(var e=t;e>0;e--)A.pop()}(r,t[o]),s.fromCharCode.apply(s,r)},r=function(A){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(A=A.replace(/\s/g,"")).indexOf(">")&&(A=A.substr(0,A.indexOf(">"))),A.length%2&&(A+="0"),!1===t.test(A))return"";for(var e="",r=0;r<A.length;r+=2)e+=String.fromCharCode("0x"+(A[r]+A[r+1]));return e},n=function(A){for(var t=new Uint8Array(A.length),e=A.length;e--;)t[e]=A.charCodeAt(e);return A=(t=K(t)).reduce((function(A,t){return A+String.fromCharCode(t)}),"")};A.processDataByFilters=function(A,i){var s=0,o=A||"",a=[];for("string"==typeof(i=i||[])&&(i=[i]),s=0;s<i.length;s+=1)switch(i[s]){case"ASCII85Decode":case"/ASCII85Decode":o=e(o),a.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":o=t(o),a.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":o=r(o),a.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":o=o.split("").map((function(A){return("0"+A.charCodeAt().toString(16)).slice(-2)})).join("")+">",a.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":o=n(o),a.push("/FlateDecode");break;default:throw new Error('The filter: "'+i[s]+'" is not implemented')}return{data:o,reverseChain:a.reverse().join(" ")}}}(CA.API),
|
|
119
|
+
/**
|
|
120
|
+
* @license
|
|
121
|
+
* jsPDF fileloading PlugIn
|
|
122
|
+
* Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
|
|
123
|
+
*
|
|
124
|
+
* Licensed under the MIT License.
|
|
125
|
+
* http://opensource.org/licenses/mit-license
|
|
126
|
+
*/
|
|
127
|
+
function(A){A.loadFile=function(A,t,e){return function(A,t,e){t=!1!==t,e="function"==typeof e?e:function(){};var r=void 0,n=function(A,t,e){var r=new XMLHttpRequest,n=0,i=function(A){var t=A.length,e=[],r=String.fromCharCode;for(n=0;n<t;n+=1)e.push(r(255&A.charCodeAt(n)));return e.join("")};if(r.open("GET",A,!t),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(r.onload=function(){200===r.status?e(i(this.responseText)):e(void 0)}),r.send(null),t&&200===r.status)return i(r.responseText)};try{r=n(A,t,e)}catch(A){}return r}(A,t,e)},A.loadImageFile=A.loadFile}(CA.API),function(A){function t(){return(j.html2canvas?Promise.resolve(j.html2canvas):Promise.resolve().then((function(){return ge}))).catch((function(A){return Promise.reject(new Error("Could not load html2canvas: "+A))})).then((function(A){return A.default?A.default:A}))}function r(){return(j.DOMPurify?Promise.resolve(j.DOMPurify):Promise.resolve().then((function(){return Be}))).catch((function(A){return Promise.reject(new Error("Could not load dompurify: "+A))})).then((function(A){return A.default?A.default:A}))}var n=function(A){var t=e(A);return"undefined"===t?"undefined":"string"===t||A instanceof String?"string":"number"===t||A instanceof Number?"number":"function"===t||A instanceof Function?"function":A&&A.constructor===Array?"array":A&&1===A.nodeType?"element":"object"===t?"object":"unknown"},i=function(A,t){var e=document.createElement(A);for(var r in t.className&&(e.className=t.className),t.innerHTML&&t.dompurify&&(e.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)e.style[r]=t.style[r];return e},s=function A(t,e){for(var r=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),n=t.firstChild;n;n=n.nextSibling)!0!==e&&1===n.nodeType&&"SCRIPT"===n.nodeName||r.appendChild(A(n,e));return 1===t.nodeType&&("CANVAS"===t.nodeName?(r.width=t.width,r.height=t.height,r.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(r.value=t.value),r.addEventListener("load",(function(){r.scrollTop=t.scrollTop,r.scrollLeft=t.scrollLeft}),!0)),r},o=function A(t){var e=Object.assign(A.convert(Promise.resolve()),JSON.parse(JSON.stringify(A.template))),r=A.convert(Promise.resolve(),e);return r=(r=r.setProgress(1,A,1,[A])).set(t)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(A,t){return A.__proto__=t||o.prototype,A},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(A,t){return this.then((function(){switch(t=t||function(A){switch(n(A)){case"string":return"string";case"element":return"canvas"===A.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(A),t){case"string":return this.then(r).then((function(t){return this.set({src:i("div",{innerHTML:A,dompurify:t})})}));case"element":return this.set({src:A});case"canvas":return this.set({canvas:A});case"img":return this.set({img:A});default:return this.error("Unknown source type.")}}))},o.prototype.to=function(A){switch(A){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 A={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||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},t=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(A.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:A}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(i("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 A=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(A).then(t).then((function(A){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,A(this.prop.container,t)})).then((function(A){(this.opt.html2canvas.onrendered||function(){})(A),this.prop.canvas=A,document.body.removeChild(this.prop.overlay)}))},o.prototype.toContext2d=function(){var A=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(A).then(t).then((function(A){var t=this.opt.jsPDF,e=this.opt.fontFaces,r="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,n=Object.assign({async:!0,allowTaint:!0,scale:r,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete n.onrendered,t.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=e,e)for(var i=0;i<e.length;++i){var s=e[i],o=s.src.find((function(A){return"truetype"===A.format}));o&&t.addFont(o.url,s.ref.name,s.ref.style)}return n.windowHeight=n.windowHeight||0,n.windowHeight=0==n.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):n.windowHeight,t.context2d.save(!0),A(this.prop.container,n)})).then((function(A){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(A),this.prop.canvas=A,document.body.removeChild(this.prop.overlay)}))},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var A=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=A}))},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(A,t,e){return"img"===(e=e||"pdf").toLowerCase()||"image"===e.toLowerCase()?this.outputImg(A,t):this.outputPdf(A,t)},o.prototype.outputPdf=function(A,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(A,t)}))},o.prototype.outputImg=function(A){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(A){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 "'+A+'" is not supported.'}}))},o.prototype.save=function(A){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(A?{filename:A}: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(A){if("object"!==n(A))return this;var t=Object.keys(A||{}).map((function(t){if(t in o.template.prop)return function(){this.prop[t]=A[t]};switch(t){case"margin":return this.setMargin.bind(this,A.margin);case"jsPDF":return function(){return this.opt.jsPDF=A.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,A.pageSize);default:return function(){this.opt[t]=A[t]}}}),this);return this.then((function(){return this.thenList(t)}))},o.prototype.get=function(A,t){return this.then((function(){var e=A in o.template.prop?this.prop[A]:this.opt[A];return t?t(e):e}))},o.prototype.setMargin=function(A){return this.then((function(){switch(n(A)){case"number":A=[A,A,A,A];case"array":if(2===A.length&&(A=[A[0],A[1],A[0],A[1]]),4===A.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=A})).then(this.setPageSize)},o.prototype.setPageSize=function(A){function t(A,t){return Math.floor(A*t/72*96)}return this.then((function(){(A=A||CA.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(A.inner={width:A.width-this.opt.margin[1]-this.opt.margin[3],height:A.height-this.opt.margin[0]-this.opt.margin[2]},A.inner.px={width:t(A.inner.width,A.k),height:t(A.inner.height,A.k)},A.inner.ratio=A.inner.height/A.inner.width),this.prop.pageSize=A}))},o.prototype.setProgress=function(A,t,e,r){return null!=A&&(this.progress.val=A),null!=t&&(this.progress.state=t),null!=e&&(this.progress.n=e),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(A,t,e,r){return this.setProgress(A?this.progress.val+A:null,t||null,e?this.progress.n+e:null,r?this.progress.stack.concat(r):null)},o.prototype.then=function(A,t){var e=this;return this.thenCore(A,t,(function(A,t){return e.updateProgress(null,null,1,[A]),Promise.prototype.then.call(this,(function(t){return e.updateProgress(null,A),t})).then(A,t).then((function(A){return e.updateProgress(1),A}))}))},o.prototype.thenCore=function(A,t,e){e=e||Promise.prototype.then;var r=this;A&&(A=A.bind(r)),t&&(t=t.bind(r));var n=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?r:o.convert(Object.assign({},r),Promise.prototype),i=e.call(n,A,t);return o.convert(i,r.__proto__)},o.prototype.thenExternal=function(A,t){return Promise.prototype.then.call(this,A,t)},o.prototype.thenList=function(A){var t=this;return A.forEach((function(A){t=t.thenCore(A)})),t},o.prototype.catch=function(A){A&&(A=A.bind(this));var t=Promise.prototype.catch.call(this,A);return o.convert(t,this)},o.prototype.catchExternal=function(A){return Promise.prototype.catch.call(this,A)},o.prototype.error=function(A){return this.then((function(){throw new Error(A)}))},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,CA.getPageSize=function(A,t,r){if("object"===e(A)){var n=A;A=n.orientation,t=n.unit||t,r=n.format||r}t=t||"mm",r=r||"a4",A=(""+(A||"P")).toLowerCase();var i,s=(""+r).toLowerCase(),o={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(t){case"pt":i=1;break;case"mm":i=72/25.4;break;case"cm":i=72/2.54;break;case"in":i=72;break;case"px":i=.75;break;case"pc":case"em":i=12;break;case"ex":i=6;break;default:throw"Invalid unit: "+t}var a,c=0,u=0;if(o.hasOwnProperty(s))c=o[s][1]/i,u=o[s][0]/i;else try{c=r[1],u=r[0]}catch(A){throw new Error("Invalid format: "+r)}if("p"===A||"portrait"===A)A="p",u>c&&(a=u,u=c,c=a);else{if("l"!==A&&"landscape"!==A)throw"Invalid orientation: "+A;A="l",c>u&&(a=u,u=c,c=a)}return{width:u,height:c,unit:t,k:i,orientation:A}},A.html=function(A,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(wt):null;var e=new o(t);return t.worker?e:e.from(A).doCallback()}}(CA.API),CA.API.addJS=function(A){return Lt=A,this.internal.events.subscribe("postPutResources",(function(){xt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(xt+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Et=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Lt+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==xt&&void 0!==Et&&this.internal.out("/Names <</JavaScript "+xt+" 0 R>>")})),this},
|
|
128
|
+
/**
|
|
129
|
+
* @license
|
|
130
|
+
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
|
131
|
+
*
|
|
132
|
+
* Licensed under the MIT License.
|
|
133
|
+
* http://opensource.org/licenses/mit-license
|
|
134
|
+
*/
|
|
135
|
+
function(A){var t;A.events.push(["postPutResources",function(){var A=this,e=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=A.outline.render().split(/\r\n/),n=0;n<r.length;n++){var i=r[n],s=e.exec(i);if(null!=s){var o=s[1];A.internal.newObjectDeferredBegin(o,!1)}A.internal.write(i)}if(this.outline.createNamedDestinations){var a=this.internal.pages.length,c=[];for(n=0;n<a;n++){var u=A.internal.newObject();c.push(u);var l=A.internal.getPageInfo(n+1);A.internal.write("<< /D["+l.objId+" 0 R /XYZ null null null]>> endobj")}var h=A.internal.newObject();A.internal.write("<< /Names [ ");for(n=0;n<c.length;n++)A.internal.write("(page_"+(n+1)+")"+c[n]+" 0 R");A.internal.write(" ] >>","endobj"),t=A.internal.newObject(),A.internal.write("<< /Dests "+h+" 0 R"),A.internal.write(">>","endobj")}}]),A.events.push(["putCatalog",function(){var A=this;A.outline.root.children.length>0&&(A.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&A.internal.write("/Names "+t+" 0 R"))}]),A.events.push(["initialized",function(){var A=this;A.outline={createNamedDestinations:!1,root:{children:[]}},A.outline.add=function(A,t,e){var r={title:t,options:e,children:[]};return null==A&&(A=this.root),A.children.push(r),r},A.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=A,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},A.outline.genIds_r=function(t){t.id=A.internal.newObjectDeferred();for(var e=0;e<t.children.length;e++)this.genIds_r(t.children[e])},A.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()},A.outline.renderItems=function(t){for(var e=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<t.children.length;r++){var n=t.children[r];this.objStart(n),this.line("/Title "+this.makeString(n.title)),this.line("/Parent "+this.makeRef(t)),r>0&&this.line("/Prev "+this.makeRef(t.children[r-1])),r<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[r+1])),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1])));var i=this.count=this.count_r({count:0},n);if(i>0&&this.line("/Count "+i),n.options&&n.options.pageNumber){var s=A.internal.getPageInfo(n.options.pageNumber);this.line("/Dest ["+s.objId+" 0 R /XYZ 0 "+e(0)+" 0]")}this.objEnd()}for(var o=0;o<t.children.length;o++)this.renderItems(t.children[o])},A.outline.line=function(A){this.ctx.val+=A+"\r\n"},A.outline.makeRef=function(A){return A.id+" 0 R"},A.outline.makeString=function(t){return"("+A.internal.pdfEscape(t)+")"},A.outline.objStart=function(A){this.ctx.val+="\r\n"+A.id+" 0 obj\r\n<<\r\n"},A.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},A.outline.count_r=function(A,t){for(var e=0;e<t.children.length;e++)A.count++,this.count_r(A,t.children[e]);return A.count}}])}(CA.API),
|
|
136
|
+
/**
|
|
137
|
+
* @license
|
|
138
|
+
*
|
|
139
|
+
* Licensed under the MIT License.
|
|
140
|
+
* http://opensource.org/licenses/mit-license
|
|
141
|
+
*/
|
|
142
|
+
function(A){var t=[192,193,194,195,196,197,198,199];A.processJPEG=function(A,e,r,n,i,s){var o,a=this.decode.DCT_DECODE,c=null;if("string"==typeof A||this.__addimage__.isArrayBuffer(A)||this.__addimage__.isArrayBufferView(A)){switch(A=i||A,A=this.__addimage__.isArrayBuffer(A)?new Uint8Array(A):A,o=function(A){for(var e,r=256*A.charCodeAt(4)+A.charCodeAt(5),n=A.length,i={width:0,height:0,numcomponents:1},s=4;s<n;s+=2){if(s+=r,-1!==t.indexOf(A.charCodeAt(s+1))){e=256*A.charCodeAt(s+5)+A.charCodeAt(s+6),i={width:256*A.charCodeAt(s+7)+A.charCodeAt(s+8),height:e,numcomponents:A.charCodeAt(s+9)};break}r=256*A.charCodeAt(s+2)+A.charCodeAt(s+3)}return i}(A=this.__addimage__.isArrayBufferView(A)?this.__addimage__.arrayBufferToBinaryString(A):A),o.numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}c={data:A,width:o.width,height:o.height,colorSpace:s,bitsPerComponent:8,filter:a,index:e,alias:r}}return c}}(CA.API);var It,Nt,Ht,Pt,Ot,Tt=function(){var A,t,e;function r(A){var t,e,r,n,i,s,o,a,c,u,l,h,f,d;for(this.data=A,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},s=null;;){switch(t=this.readUInt32(),c=function(){var A,t;for(t=[],A=0;A<4;++A)t.push(String.fromCharCode(this.data[this.pos++]));return t}.call(this).join(""),c){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(t);break;case"fcTL":s&&this.animation.frames.push(s),this.pos+=4,s={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},i=this.readUInt16(),n=this.readUInt16()||100,s.delay=1e3*i/n,s.disposeOp=this.data[this.pos++],s.blendOp=this.data[this.pos++],s.data=[];break;case"IDAT":case"fdAT":for("fdAT"===c&&(this.pos+=4,t-=4),A=(null!=s?s.data:void 0)||this.imgData,h=0;0<=t?h<t:h>t;0<=t?++h:--h)A.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(r=this.palette.length/3,this.transparency.indexed=this.read(t),this.transparency.indexed.length>r)throw new Error("More transparent colors than palette size");if((u=r-this.transparency.indexed.length)>0)for(f=0;0<=u?f<u:f>u;0<=u?++f:--f)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(t)[0];break;case 2:this.transparency.rgb=this.read(t)}break;case"tEXt":o=(l=this.read(t)).indexOf(0),a=String.fromCharCode.apply(String,l.slice(0,o)),this.text[a]=String.fromCharCode.apply(String,l.slice(o+1));break;case"IEND":return s&&this.animation.frames.push(s),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(d=this.colorType)||6===d,e=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*e,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+=t}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(A){var t,e;for(e=[],t=0;0<=A?t<A:t>A;0<=A?++t:--t)e.push(this.data[this.pos++]);return e},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(A){var t=this.pixelBitlength/8,e=new Uint8Array(this.width*this.height*t),r=0,n=this;if(null==A&&(A=this.imgData),0===A.length)return new Uint8Array(0);function i(i,s,o,a){var c,u,l,h,f,d,g,p,B,w,m,y,v,b,C,Q,F,U,x,E,L,S=Math.ceil((n.width-i)/o),I=Math.ceil((n.height-s)/a),N=n.width==S&&n.height==I;for(b=t*S,y=N?e:new Uint8Array(b*I),d=A.length,v=0,u=0;v<I&&r<d;){switch(A[r++]){case 0:for(h=F=0;F<b;h=F+=1)y[u++]=A[r++];break;case 1:for(h=U=0;U<b;h=U+=1)c=A[r++],f=h<t?0:y[u-t],y[u++]=(c+f)%256;break;case 2:for(h=x=0;x<b;h=x+=1)c=A[r++],l=(h-h%t)/t,C=v&&y[(v-1)*b+l*t+h%t],y[u++]=(C+c)%256;break;case 3:for(h=E=0;E<b;h=E+=1)c=A[r++],l=(h-h%t)/t,f=h<t?0:y[u-t],C=v&&y[(v-1)*b+l*t+h%t],y[u++]=(c+Math.floor((f+C)/2))%256;break;case 4:for(h=L=0;L<b;h=L+=1)c=A[r++],l=(h-h%t)/t,f=h<t?0:y[u-t],0===v?C=Q=0:(C=y[(v-1)*b+l*t+h%t],Q=l&&y[(v-1)*b+(l-1)*t+h%t]),g=f+C-Q,p=Math.abs(g-f),w=Math.abs(g-C),m=Math.abs(g-Q),B=p<=w&&p<=m?f:w<=m?C:Q,y[u++]=(c+B)%256;break;default:throw new Error("Invalid filter algorithm: "+A[r-1])}if(!N){var H=((s+v*a)*n.width+i)*t,P=v*b;for(h=0;h<S;h+=1){for(var O=0;O<t;O+=1)e[H++]=y[P++];H+=(o-1)*t}}v++}}return A=V(A),1==n.interlaceMethod?(i(0,0,8,8),i(4,0,8,8),i(0,4,4,8),i(2,0,4,4),i(0,2,2,4),i(1,0,2,2),i(0,1,1,2)):i(0,0,1,1),e},r.prototype.decodePalette=function(){var A,t,e,r,n,i,s,o,a;for(e=this.palette,i=this.transparency.indexed||[],n=new Uint8Array((i.length||0)+e.length),r=0,A=0,t=s=0,o=e.length;s<o;t=s+=3)n[r++]=e[t],n[r++]=e[t+1],n[r++]=e[t+2],n[r++]=null!=(a=i[A++])?a:255;return n},r.prototype.copyToImageData=function(A,t){var e,r,n,i,s,o,a,c,u,l,h;if(r=this.colors,u=null,e=this.hasAlphaChannel,this.palette.length&&(u=null!=(h=this._decodedPalette)?h:this._decodedPalette=this.decodePalette(),r=4,e=!0),c=(n=A.data||A).length,s=u||t,i=o=0,1===r)for(;i<c;)a=u?4*t[i/4]:o,l=s[a++],n[i++]=l,n[i++]=l,n[i++]=l,n[i++]=e?s[a++]:255,o=a;else for(;i<c;)a=u?4*t[i/4]:o,n[i++]=s[a++],n[i++]=s[a++],n[i++]=s[a++],n[i++]=e?s[a++]:255,o=a},r.prototype.decode=function(){var A;return A=new Uint8Array(this.width*this.height*4),this.copyToImageData(A,this.decodePixels()),A};var n=function(){if("[object Window]"===Object.prototype.toString.call(j)){try{t=j.document.createElement("canvas"),e=t.getContext("2d")}catch(A){return!1}return!0}return!1};return n(),A=function(A){var r;if(!0===n())return e.width=A.width,e.height=A.height,e.clearRect(0,0,A.width,A.height),e.putImageData(A,0,0),(r=new Image).src=t.toDataURL(),r;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(t){var e,r,n,i,s,o,a,c;if(this.animation){for(c=[],r=s=0,o=(a=this.animation.frames).length;s<o;r=++s)e=a[r],n=t.createImageData(e.width,e.height),i=this.decodePixels(new Uint8Array(e.data)),this.copyToImageData(n,i),e.imageData=n,c.push(e.image=A(n));return c}},r.prototype.renderFrame=function(A,t){var e,r,n;return e=(r=this.animation.frames)[t],n=r[t-1],0===t&&A.clearRect(0,0,this.width,this.height),1===(null!=n?n.disposeOp:void 0)?A.clearRect(n.xOffset,n.yOffset,n.width,n.height):2===(null!=n?n.disposeOp:void 0)&&A.putImageData(n.imageData,n.xOffset,n.yOffset),0===e.blendOp&&A.clearRect(e.xOffset,e.yOffset,e.width,e.height),A.drawImage(e.image,e.xOffset,e.yOffset)},r.prototype.animate=function(A){var t,e,r,n,i,s,o=this;return e=0,s=this.animation,n=s.numFrames,r=s.frames,i=s.numPlays,(t=function(){var s,a;if(s=e++%n,a=r[s],o.renderFrame(A,s),n>1&&e/n<i)return o.animation._timeout=setTimeout(t,a.delay)})()},r.prototype.stopAnimation=function(){var A;return clearTimeout(null!=(A=this.animation)?A._timeout:void 0)},r.prototype.render=function(A){var t,e;return A._png&&A._png.stopAnimation(),A._png=this,A.width=this.width,A.height=this.height,t=A.getContext("2d"),this.animation?(this.decodeFrames(t),this.animate(t)):(e=t.createImageData(this.width,this.height),this.copyToImageData(e,this.decodePixels()),t.putImageData(e,0,0))},r}();
|
|
143
|
+
/**
|
|
144
|
+
* @license
|
|
145
|
+
*
|
|
146
|
+
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
|
|
147
|
+
*
|
|
148
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
149
|
+
* a copy of this software and associated documentation files (the
|
|
150
|
+
* "Software"), to deal in the Software without restriction, including
|
|
151
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
152
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
153
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
154
|
+
* the following conditions:
|
|
155
|
+
*
|
|
156
|
+
* The above copyright notice and this permission notice shall be
|
|
157
|
+
* included in all copies or substantial portions of the Software.
|
|
158
|
+
*
|
|
159
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
160
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
161
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
162
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
163
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
164
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
165
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
166
|
+
* ====================================================================
|
|
167
|
+
*/
|
|
168
|
+
/**
|
|
169
|
+
* @license
|
|
170
|
+
* (c) Dean McNamee <dean@gmail.com>, 2013.
|
|
171
|
+
*
|
|
172
|
+
* https://github.com/deanm/omggif
|
|
173
|
+
*
|
|
174
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
175
|
+
* of this software and associated documentation files (the "Software"), to
|
|
176
|
+
* deal in the Software without restriction, including without limitation the
|
|
177
|
+
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
178
|
+
* sell copies of the Software, and to permit persons to whom the Software is
|
|
179
|
+
* furnished to do so, subject to the following conditions:
|
|
180
|
+
*
|
|
181
|
+
* The above copyright notice and this permission notice shall be included in
|
|
182
|
+
* all copies or substantial portions of the Software.
|
|
183
|
+
*
|
|
184
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
185
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
186
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
187
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
188
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
189
|
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
190
|
+
* IN THE SOFTWARE.
|
|
191
|
+
*
|
|
192
|
+
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
|
|
193
|
+
* including animation and compression. It does not rely on any specific
|
|
194
|
+
* underlying system, so should run in the browser, Node, or Plask.
|
|
195
|
+
*/
|
|
196
|
+
function _t(A){var t=0;if(71!==A[t++]||73!==A[t++]||70!==A[t++]||56!==A[t++]||56!=(A[t++]+1&253)||97!==A[t++])throw new Error("Invalid GIF 87a/89a header.");var e=A[t++]|A[t++]<<8,r=A[t++]|A[t++]<<8,n=A[t++],i=n>>7,s=1<<(7&n)+1;A[t++],A[t++];var o=null,a=null;i&&(o=t,a=s,t+=3*s);var c=!0,u=[],l=0,h=null,f=0,d=null;for(this.width=e,this.height=r;c&&t<A.length;)switch(A[t++]){case 33:switch(A[t++]){case 255:if(11!==A[t]||78==A[t+1]&&69==A[t+2]&&84==A[t+3]&&83==A[t+4]&&67==A[t+5]&&65==A[t+6]&&80==A[t+7]&&69==A[t+8]&&50==A[t+9]&&46==A[t+10]&&48==A[t+11]&&3==A[t+12]&&1==A[t+13]&&0==A[t+16])t+=14,d=A[t++]|A[t++]<<8,t++;else for(t+=12;;){if(!((x=A[t++])>=0))throw Error("Invalid block size");if(0===x)break;t+=x}break;case 249:if(4!==A[t++]||0!==A[t+4])throw new Error("Invalid graphics extension block.");var g=A[t++];l=A[t++]|A[t++]<<8,h=A[t++],1&g||(h=null),f=g>>2&7,t++;break;case 254:for(;;){if(!((x=A[t++])>=0))throw Error("Invalid block size");if(0===x)break;t+=x}break;default:throw new Error("Unknown graphic control label: 0x"+A[t-1].toString(16))}break;case 44:var p=A[t++]|A[t++]<<8,B=A[t++]|A[t++]<<8,w=A[t++]|A[t++]<<8,m=A[t++]|A[t++]<<8,y=A[t++],v=y>>6&1,b=1<<(7&y)+1,C=o,Q=a,F=!1;if(y>>7){F=!0;C=t,Q=b,t+=3*b}var U=t;for(t++;;){var x;if(!((x=A[t++])>=0))throw Error("Invalid block size");if(0===x)break;t+=x}u.push({x:p,y:B,width:w,height:m,has_local_palette:F,palette_offset:C,palette_size:Q,data_offset:U,data_length:t-U,transparent_index:h,interlaced:!!v,delay:l,disposal:f});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+A[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return d},this.frameInfo=function(A){if(A<0||A>=u.length)throw new Error("Frame index out of range.");return u[A]},this.decodeAndBlitFrameBGRA=function(t,r){var n=this.frameInfo(t),i=n.width*n.height,s=new Uint8Array(i);kt(A,n.data_offset,s,i);var o=n.palette_offset,a=n.transparent_index;null===a&&(a=256);var c=n.width,u=e-c,l=c,h=4*(n.y*e+n.x),f=4*((n.y+n.height)*e+n.x),d=h,g=4*u;!0===n.interlaced&&(g+=4*e*7);for(var p=8,B=0,w=s.length;B<w;++B){var m=s[B];if(0===l&&(l=c,(d+=g)>=f&&(g=4*u+4*e*(p-1),d=h+(c+u)*(p<<1),p>>=1)),m===a)d+=4;else{var y=A[o+3*m],v=A[o+3*m+1],b=A[o+3*m+2];r[d++]=b,r[d++]=v,r[d++]=y,r[d++]=255}--l}},this.decodeAndBlitFrameRGBA=function(t,r){var n=this.frameInfo(t),i=n.width*n.height,s=new Uint8Array(i);kt(A,n.data_offset,s,i);var o=n.palette_offset,a=n.transparent_index;null===a&&(a=256);var c=n.width,u=e-c,l=c,h=4*(n.y*e+n.x),f=4*((n.y+n.height)*e+n.x),d=h,g=4*u;!0===n.interlaced&&(g+=4*e*7);for(var p=8,B=0,w=s.length;B<w;++B){var m=s[B];if(0===l&&(l=c,(d+=g)>=f&&(g=4*u+4*e*(p-1),d=h+(c+u)*(p<<1),p>>=1)),m===a)d+=4;else{var y=A[o+3*m],v=A[o+3*m+1],b=A[o+3*m+2];r[d++]=y,r[d++]=v,r[d++]=b,r[d++]=255}--l}}}function kt(A,t,e,r){for(var n=A[t++],i=1<<n,s=i+1,o=s+1,a=n+1,c=(1<<a)-1,u=0,l=0,h=0,f=A[t++],d=new Int32Array(4096),g=null;;){for(;u<16&&0!==f;)l|=A[t++]<<u,u+=8,1===f?f=A[t++]:--f;if(u<a)break;var p=l&c;if(l>>=a,u-=a,p!==i){if(p===s)break;for(var B=p<o?p:g,w=0,m=B;m>i;)m=d[m]>>8,++w;var y=m;if(h+w+(B!==p?1:0)>r)return void q.log("Warning, gif stream longer than expected.");e[h++]=y;var v=h+=w;for(B!==p&&(e[h++]=y),m=B;w--;)m=d[m],e[--v]=255&m,m>>=8;null!==g&&o<4096&&(d[o++]=g<<8|y,o>=c+1&&a<12&&(++a,c=c<<1|1)),g=p}else o=s+1,c=(1<<(a=n+1))-1,g=null}return h!==r&&q.log("Warning, gif stream shorter than expected."),e}
|
|
197
|
+
/**
|
|
198
|
+
* @license
|
|
199
|
+
Copyright (c) 2008, Adobe Systems Incorporated
|
|
200
|
+
All rights reserved.
|
|
201
|
+
|
|
202
|
+
Redistribution and use in source and binary forms, with or without
|
|
203
|
+
modification, are permitted provided that the following conditions are
|
|
204
|
+
met:
|
|
205
|
+
|
|
206
|
+
* Redistributions of source code must retain the above copyright notice,
|
|
207
|
+
this list of conditions and the following disclaimer.
|
|
208
|
+
|
|
209
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
210
|
+
notice, this list of conditions and the following disclaimer in the
|
|
211
|
+
documentation and/or other materials provided with the distribution.
|
|
212
|
+
|
|
213
|
+
* Neither the name of Adobe Systems Incorporated nor the names of its
|
|
214
|
+
contributors may be used to endorse or promote products derived from
|
|
215
|
+
this software without specific prior written permission.
|
|
216
|
+
|
|
217
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
218
|
+
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
219
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
220
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
221
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
222
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
223
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
224
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
225
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
226
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
227
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
228
|
+
*/function Mt(A){var t,e,r,n,i,s=Math.floor,o=new Array(64),a=new Array(64),c=new Array(64),u=new Array(64),l=new Array(65535),h=new Array(65535),f=new Array(64),d=new Array(64),g=[],p=0,B=7,w=new Array(64),m=new Array(64),y=new Array(64),v=new Array(256),b=new Array(2048),C=[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],Q=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],F=[0,1,2,3,4,5,6,7,8,9,10,11],U=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],x=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],E=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],L=[0,1,2,3,4,5,6,7,8,9,10,11],S=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],I=[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 N(A,t){for(var e=0,r=0,n=new Array,i=1;i<=16;i++){for(var s=1;s<=A[i];s++)n[t[r]]=[],n[t[r]][0]=e,n[t[r]][1]=i,r++,e++;e*=2}return n}function H(A){for(var t=A[0],e=A[1]-1;e>=0;)t&1<<e&&(p|=1<<B),e--,--B<0&&(255==p?(P(255),P(0)):P(p),B=7,p=0)}function P(A){g.push(A)}function O(A){P(A>>8&255),P(255&A)}function T(A,t,e,r,n){for(var i,s=n[0],o=n[240],a=function(A,t){var e,r,n,i,s,o,a,c,u,l,h=0;for(u=0;u<8;++u){e=A[h],r=A[h+1],n=A[h+2],i=A[h+3],s=A[h+4],o=A[h+5],a=A[h+6];var d=e+(c=A[h+7]),g=e-c,p=r+a,B=r-a,w=n+o,m=n-o,y=i+s,v=i-s,b=d+y,C=d-y,Q=p+w,F=p-w;A[h]=b+Q,A[h+4]=b-Q;var U=.707106781*(F+C);A[h+2]=C+U,A[h+6]=C-U;var x=.382683433*((b=v+m)-(F=B+g)),E=.5411961*b+x,L=1.306562965*F+x,S=.707106781*(Q=m+B),I=g+S,N=g-S;A[h+5]=N+E,A[h+3]=N-E,A[h+1]=I+L,A[h+7]=I-L,h+=8}for(h=0,u=0;u<8;++u){e=A[h],r=A[h+8],n=A[h+16],i=A[h+24],s=A[h+32],o=A[h+40],a=A[h+48];var H=e+(c=A[h+56]),P=e-c,O=r+a,T=r-a,_=n+o,k=n-o,M=i+s,D=i-s,R=H+M,K=H-M,V=O+_,j=O-_;A[h]=R+V,A[h+32]=R-V;var G=.707106781*(j+K);A[h+16]=K+G,A[h+48]=K-G;var q=.382683433*((R=D+k)-(j=T+P)),X=.5411961*R+q,z=1.306562965*j+q,W=.707106781*(V=k+T),Y=P+W,J=P-W;A[h+40]=J+X,A[h+24]=J-X,A[h+8]=Y+z,A[h+56]=Y-z,h++}for(u=0;u<64;++u)l=A[u]*t[u],f[u]=l>0?l+.5|0:l-.5|0;return f}(A,t),c=0;c<64;++c)d[C[c]]=a[c];var u=d[0]-e;e=d[0],0==u?H(r[0]):(H(r[h[i=32767+u]]),H(l[i]));for(var g=63;g>0&&0==d[g];)g--;if(0==g)return H(s),e;for(var p,B=1;B<=g;){for(var w=B;0==d[B]&&B<=g;)++B;var m=B-w;if(m>=16){p=m>>4;for(var y=1;y<=p;++y)H(o);m&=15}i=32767+d[B],H(n[(m<<4)+h[i]]),H(l[i]),B++}return 63!=g&&H(s),e}function _(A){(A=Math.min(Math.max(A,1),100),i!=A)&&(!function(A){for(var t=[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],e=0;e<64;e++){var r=s((t[e]*A+50)/100);r=Math.min(Math.max(r,1),255),o[C[e]]=r}for(var n=[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],i=0;i<64;i++){var l=s((n[i]*A+50)/100);l=Math.min(Math.max(l,1),255),a[C[i]]=l}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],f=0,d=0;d<8;d++)for(var g=0;g<8;g++)c[f]=1/(o[C[f]]*h[d]*h[g]*8),u[f]=1/(a[C[f]]*h[d]*h[g]*8),f++}(A<50?Math.floor(5e3/A):Math.floor(200-2*A)),i=A)}this.encode=function(A,i){i&&_(i),g=new Array,p=0,B=7,O(65496),O(65504),O(16),P(74),P(70),P(73),P(70),P(0),P(1),P(1),P(0),O(1),O(1),P(0),P(0),function(){O(65499),O(132),P(0);for(var A=0;A<64;A++)P(o[A]);P(1);for(var t=0;t<64;t++)P(a[t])}(),function(A,t){O(65472),O(17),P(8),O(t),O(A),P(3),P(1),P(17),P(0),P(2),P(17),P(1),P(3),P(17),P(1)}(A.width,A.height),function(){O(65476),O(418),P(0);for(var A=0;A<16;A++)P(Q[A+1]);for(var t=0;t<=11;t++)P(F[t]);P(16);for(var e=0;e<16;e++)P(U[e+1]);for(var r=0;r<=161;r++)P(x[r]);P(1);for(var n=0;n<16;n++)P(E[n+1]);for(var i=0;i<=11;i++)P(L[i]);P(17);for(var s=0;s<16;s++)P(S[s+1]);for(var o=0;o<=161;o++)P(I[o])}(),O(65498),O(12),P(3),P(1),P(0),P(2),P(17),P(3),P(17),P(0),P(63),P(0);var s=0,l=0,h=0;p=0,B=7,this.encode.displayName="_encode_";for(var f,d,v,C,N,k,M,D,R,K=A.data,V=A.width,j=A.height,G=4*V,q=0;q<j;){for(f=0;f<G;){for(N=G*q+f,M=-1,D=0,R=0;R<64;R++)k=N+(D=R>>3)*G+(M=4*(7&R)),q+D>=j&&(k-=G*(q+1+D-j)),f+M>=G&&(k-=f+M-G+4),d=K[k++],v=K[k++],C=K[k++],w[R]=(b[d]+b[v+256|0]+b[C+512|0]>>16)-128,m[R]=(b[d+768|0]+b[v+1024|0]+b[C+1280|0]>>16)-128,y[R]=(b[d+1280|0]+b[v+1536|0]+b[C+1792|0]>>16)-128;s=T(w,c,s,t,r),l=T(m,u,l,e,n),h=T(y,u,h,e,n),f+=32}q+=8}if(B>=0){var X=[];X[1]=B+1,X[0]=(1<<B+1)-1,H(X)}return O(65497),new Uint8Array(g)},A=A||50,function(){for(var A=String.fromCharCode,t=0;t<256;t++)v[t]=A(t)}(),t=N(Q,F),e=N(E,L),r=N(U,x),n=N(S,I),function(){for(var A=1,t=2,e=1;e<=15;e++){for(var r=A;r<t;r++)h[32767+r]=e,l[32767+r]=[],l[32767+r][1]=e,l[32767+r][0]=r;for(var n=-(t-1);n<=-A;n++)h[32767+n]=e,l[32767+n]=[],l[32767+n][1]=e,l[32767+n][0]=t-1+n;A<<=1,t<<=1}}(),function(){for(var A=0;A<256;A++)b[A]=19595*A,b[A+256|0]=38470*A,b[A+512|0]=7471*A+32768,b[A+768|0]=-11059*A,b[A+1024|0]=-21709*A,b[A+1280|0]=32768*A+8421375,b[A+1536|0]=-27439*A,b[A+1792|0]=-5329*A}(),_(A)}
|
|
229
|
+
/**
|
|
230
|
+
* @license
|
|
231
|
+
* Copyright (c) 2017 Aras Abbasi
|
|
232
|
+
*
|
|
233
|
+
* Licensed under the MIT License.
|
|
234
|
+
* http://opensource.org/licenses/mit-license
|
|
235
|
+
*/function Dt(A,t){if(this.pos=0,this.buffer=A,this.datav=new DataView(A.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Rt(A){function t(A){if(!A)throw Error("assert :P")}function e(A,t,e){for(var r=0;4>r;r++)if(A[t+r]!=e.charCodeAt(r))return!0;return!1}function r(A,t,e,r,n){for(var i=0;i<n;i++)A[t+i]=e[r+i]}function n(A,t,e,r){for(var n=0;n<r;n++)A[t+n]=e}function i(A){return new Int32Array(A)}function s(A,t){for(var e=[],r=0;r<A;r++)e.push(new t);return e}function o(A,t){var e=[];return function A(e,r,n){for(var i=n[r],s=0;s<i&&(e.push(n.length>r+1?[]:new t),!(n.length<r+1));s++)A(e[s],r+1,n)}(e,0,A),e}var a=function(){var A=this;function a(A,t){for(var e=1<<t-1>>>0;A&e;)e>>>=1;return e?(A&e-1)+e:A}function c(A,e,r,n,i){t(!(n%r));do{A[e+(n-=r)]=i}while(0<n)}function u(A,e,r,n,s){if(t(2328>=s),512>=s)var o=i(512);else if(null==(o=i(s)))return 0;return function(A,e,r,n,s,o){var u,h,f=e,d=1<<r,g=i(16),p=i(16);for(t(0!=s),t(null!=n),t(null!=A),t(0<r),h=0;h<s;++h){if(15<n[h])return 0;++g[n[h]]}if(g[0]==s)return 0;for(p[1]=0,u=1;15>u;++u){if(g[u]>1<<u)return 0;p[u+1]=p[u]+g[u]}for(h=0;h<s;++h)u=n[h],0<n[h]&&(o[p[u]++]=h);if(1==p[15])return(n=new l).g=0,n.value=o[0],c(A,f,1,d,n),d;var B,w=-1,m=d-1,y=0,v=1,b=1,C=1<<r;for(h=0,u=1,s=2;u<=r;++u,s<<=1){if(v+=b<<=1,0>(b-=g[u]))return 0;for(;0<g[u];--g[u])(n=new l).g=u,n.value=o[h++],c(A,f+y,s,C,n),y=a(y,u)}for(u=r+1,s=2;15>=u;++u,s<<=1){if(v+=b<<=1,0>(b-=g[u]))return 0;for(;0<g[u];--g[u]){if(n=new l,(y&m)!=w){for(f+=C,B=1<<(w=u)-r;15>w&&!(0>=(B-=g[w]));)++w,B<<=1;d+=C=1<<(B=w-r),A[e+(w=y&m)].g=B+r,A[e+w].value=f-e-w}n.g=u-r,n.value=o[h++],c(A,f+(y>>r),s,C,n),y=a(y,u)}}return v!=2*p[15]-1?0:d}(A,e,r,n,s,o)}function l(){this.value=this.g=0}function h(){this.value=this.g=0}function f(){this.G=s(5,l),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(ke,h)}function d(A,e,r,n){t(null!=A),t(null!=e),t(2147483648>n),A.Ca=254,A.I=0,A.b=-8,A.Ka=0,A.oa=e,A.pa=r,A.Jd=e,A.Yc=r+n,A.Zc=4<=n?r+n-4+1:r,U(A)}function g(A,t){for(var e=0;0<t--;)e|=E(A,128)<<t;return e}function p(A,t){var e=g(A,t);return x(A)?-e:e}function B(A,e,r,n){var i,s=0;for(t(null!=A),t(null!=e),t(4294967288>n),A.Sb=n,A.Ra=0,A.u=0,A.h=0,4<n&&(n=4),i=0;i<n;++i)s+=e[r+i]<<8*i;A.Ra=s,A.bb=n,A.oa=e,A.pa=r}function w(A){for(;8<=A.u&&A.bb<A.Sb;)A.Ra>>>=8,A.Ra+=A.oa[A.pa+A.bb]<<Re-8>>>0,++A.bb,A.u-=8;C(A)&&(A.h=1,A.u=0)}function m(A,e){if(t(0<=e),!A.h&&e<=De){var r=b(A)&Me[e];return A.u+=e,w(A),r}return A.h=1,A.u=0}function y(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function v(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function b(A){return A.Ra>>>(A.u&Re-1)>>>0}function C(A){return t(A.bb<=A.Sb),A.h||A.bb==A.Sb&&A.u>Re}function Q(A,t){A.u=t,A.h=C(A)}function F(A){A.u>=Ke&&(t(A.u>=Ke),w(A))}function U(A){t(null!=A&&null!=A.oa),A.pa<A.Zc?(A.I=(A.oa[A.pa++]|A.I<<8)>>>0,A.b+=8):(t(null!=A&&null!=A.oa),A.pa<A.Yc?(A.b+=8,A.I=A.oa[A.pa++]|A.I<<8):A.Ka?A.b=0:(A.I<<=8,A.b+=8,A.Ka=1))}function x(A){return g(A,1)}function E(A,t){var e=A.Ca;0>A.b&&U(A);var r=A.b,n=e*t>>>8,i=(A.I>>>r>n)+0;for(i?(e-=n,A.I-=n+1<<r>>>0):e=n+1,r=e,n=0;256<=r;)n+=8,r>>=8;return r=7^n+Ve[r],A.b-=r,A.Ca=(e<<r)-1,i}function L(A,t,e){A[t+0]=e>>24&255,A[t+1]=e>>16&255,A[t+2]=e>>8&255,A[t+3]=255&e}function S(A,t){return A[t+0]|A[t+1]<<8}function I(A,t){return S(A,t)|A[t+2]<<16}function N(A,t){return S(A,t)|S(A,t+2)<<16}function H(A,e){var r=1<<e;return t(null!=A),t(0<e),A.X=i(r),null==A.X?0:(A.Mb=32-e,A.Xa=e,1)}function P(A,e){t(null!=A),t(null!=e),t(A.Xa==e.Xa),r(e.X,0,A.X,0,1<<e.Xa)}function O(){this.X=[],this.Xa=this.Mb=0}function T(A,e,r,n){t(null!=r),t(null!=n);var i=r[0],s=n[0];return 0==i&&(i=(A*s+e/2)/e),0==s&&(s=(e*i+A/2)/A),0>=i||0>=s?0:(r[0]=i,n[0]=s,1)}function _(A,t){return A+(1<<t)-1>>>t}function k(A,t){return((4278255360&A)+(4278255360&t)>>>0&4278255360)+((16711935&A)+(16711935&t)>>>0&16711935)>>>0}function M(t,e){A[e]=function(e,r,n,i,s,o,a){var c;for(c=0;c<s;++c){var u=A[t](o[a+c-1],n,i+c);o[a+c]=k(e[r+c],u)}}}function D(){this.ud=this.hd=this.jd=0}function R(A,t){return((4278124286&(A^t))>>>1)+(A&t)>>>0}function K(A){return 0<=A&&256>A?A:0>A?0:255<A?255:void 0}function V(A,t){return K(A+(A-t+.5>>1))}function j(A,t,e){return Math.abs(t-e)-Math.abs(A-e)}function G(A,t,e,r,n,i,s){for(r=i[s-1],e=0;e<n;++e)i[s+e]=r=k(A[t+e],r)}function q(A,t,e,r,n){var i;for(i=0;i<e;++i){var s=A[t+i],o=s>>8&255,a=16711935&(a=(a=16711935&s)+((o<<16)+o));r[n+i]=(4278255360&s)+a>>>0}}function X(A,t){t.jd=255&A,t.hd=A>>8&255,t.ud=A>>16&255}function z(A,t,e,r,n,i){var s;for(s=0;s<r;++s){var o=t[e+s],a=o>>>8,c=o,u=255&(u=(u=o>>>16)+((A.jd<<24>>24)*(a<<24>>24)>>>5));c=255&(c=(c=c+((A.hd<<24>>24)*(a<<24>>24)>>>5))+((A.ud<<24>>24)*(u<<24>>24)>>>5));n[i+s]=(4278255360&o)+(u<<16)+c}}function W(t,e,r,n,i){A[e]=function(A,t,e,r,s,o,a,c,u){for(r=a;r<c;++r)for(a=0;a<u;++a)s[o++]=i(e[n(A[t++])])},A[t]=function(t,e,s,o,a,c,u){var l=8>>t.b,h=t.Ea,f=t.K[0],d=t.w;if(8>l)for(t=(1<<t.b)-1,d=(1<<l)-1;e<s;++e){var g,p=0;for(g=0;g<h;++g)g&t||(p=n(o[a++])),c[u++]=i(f[p&d]),p>>=l}else A["VP8LMapColor"+r](o,a,f,d,c,u,e,s,h)}}function Y(A,t,e,r,n){for(e=t+e;t<e;){var i=A[t++];r[n++]=i>>16&255,r[n++]=i>>8&255,r[n++]=255&i}}function J(A,t,e,r,n){for(e=t+e;t<e;){var i=A[t++];r[n++]=i>>16&255,r[n++]=i>>8&255,r[n++]=255&i,r[n++]=i>>24&255}}function Z(A,t,e,r,n){for(e=t+e;t<e;){var i=(s=A[t++])>>16&240|s>>12&15,s=240&s|s>>28&15;r[n++]=i,r[n++]=s}}function $(A,t,e,r,n){for(e=t+e;t<e;){var i=(s=A[t++])>>16&248|s>>13&7,s=s>>5&224|s>>3&31;r[n++]=i,r[n++]=s}}function AA(A,t,e,r,n){for(e=t+e;t<e;){var i=A[t++];r[n++]=255&i,r[n++]=i>>8&255,r[n++]=i>>16&255}}function tA(A,t,e,n,i,s){if(0==s)for(e=t+e;t<e;)L(n,((s=A[t++])[0]>>24|s[1]>>8&65280|s[2]<<8&16711680|s[3]<<24)>>>0),i+=32;else r(n,i,A,t,e)}function eA(t,e){A[e][0]=A[t+"0"],A[e][1]=A[t+"1"],A[e][2]=A[t+"2"],A[e][3]=A[t+"3"],A[e][4]=A[t+"4"],A[e][5]=A[t+"5"],A[e][6]=A[t+"6"],A[e][7]=A[t+"7"],A[e][8]=A[t+"8"],A[e][9]=A[t+"9"],A[e][10]=A[t+"10"],A[e][11]=A[t+"11"],A[e][12]=A[t+"12"],A[e][13]=A[t+"13"],A[e][14]=A[t+"0"],A[e][15]=A[t+"0"]}function rA(A){return A==Kr||A==Vr||A==jr||A==Gr}function nA(){this.eb=[],this.size=this.A=this.fb=0}function iA(){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 sA(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new nA,this.f.kb=new iA,this.sd=null}function oA(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function aA(){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 cA(A){return alert("todo:WebPSamplerProcessPlane"),A.T}function uA(A,t){var e=A.T,n=t.ba.f.RGBA,i=n.eb,s=n.fb+A.ka*n.A,o=Bn[t.ba.S],a=A.y,c=A.O,u=A.f,l=A.N,h=A.ea,f=A.W,d=t.cc,g=t.dc,p=t.Mc,B=t.Nc,w=A.ka,m=A.ka+A.T,y=A.U,v=y+1>>1;for(0==w?o(a,c,null,null,u,l,h,f,u,l,h,f,i,s,null,null,y):(o(t.ec,t.fc,a,c,d,g,p,B,u,l,h,f,i,s-n.A,i,s,y),++e);w+2<m;w+=2)d=u,g=l,p=h,B=f,l+=A.Rc,f+=A.Rc,s+=2*n.A,o(a,(c+=2*A.fa)-A.fa,a,c,d,g,p,B,u,l,h,f,i,s-n.A,i,s,y);return c+=A.fa,A.j+m<A.o?(r(t.ec,t.fc,a,c,y),r(t.cc,t.dc,u,l,v),r(t.Mc,t.Nc,h,f,v),e--):1&m||o(a,c,null,null,u,l,h,f,u,l,h,f,i,s+n.A,null,null,y),e}function lA(A,e,r){var n=A.F,i=[A.J];if(null!=n){var s=A.U,o=e.ba.S,a=o==Mr||o==jr;e=e.ba.f.RGBA;var c=[0],u=A.ka;c[0]=A.T,A.Kb&&(0==u?--c[0]:(--u,i[0]-=A.width),A.j+A.ka+A.T==A.o&&(c[0]=A.o-A.j-u));var l=e.eb;u=e.fb+u*e.A;A=Qr(n,i[0],A.width,s,c,l,u+(a?0:3),e.A),t(r==c),A&&rA(o)&&br(l,u,a,s,c,e.A)}return 0}function hA(A){var t=A.ma,e=t.ba.S,r=11>e,n=e==Tr||e==kr||e==Mr||e==Dr||12==e||rA(e);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!Oe(t.Oa,A,n?11:12))return 0;if(n&&rA(e)&&we(),A.da)alert("todo:use_scaling");else{if(r){if(t.Ib=cA,A.Kb){if(e=A.U+1>>1,t.memory=i(A.U+2*e),null==t.memory)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+A.U,t.Mc=t.cc,t.Nc=t.dc+e,t.Ib=uA,we()}}else alert("todo:EmitYUV");n&&(t.Jb=lA,r&&pe())}if(r&&!In){for(A=0;256>A;++A)Nn[A]=89858*(A-128)+Un>>Fn,On[A]=-22014*(A-128)+Un,Pn[A]=-45773*(A-128),Hn[A]=113618*(A-128)+Un>>Fn;for(A=xn;A<En;++A)t=76283*(A-16)+Un>>Fn,Tn[A-xn]=GA(t,255),_n[A-xn]=GA(t+8>>4,15);In=1}return 1}function fA(A){var e=A.ma,r=A.U,n=A.T;return t(!(1&A.ka)),0>=r||0>=n?0:(r=e.Ib(A,e),null!=e.Jb&&e.Jb(A,e,r),e.Dc+=r,1)}function dA(A){A.ma.memory=null}function gA(A,t,e,r){return 47!=m(A,8)?0:(t[0]=m(A,14)+1,e[0]=m(A,14)+1,r[0]=m(A,1),0!=m(A,3)?0:!A.h)}function pA(A,t){if(4>A)return A+1;var e=A-2>>1;return(2+(1&A)<<e)+m(t,e)+1}function BA(A,t){return 120<t?t-120:1<=(e=((e=Jr[t-1])>>4)*A+(8-(15&e)))?e:1;var e}function wA(A,t,e){var r=b(e),n=A[t+=255&r].g-8;return 0<n&&(Q(e,e.u+8),r=b(e),t+=A[t].value,t+=r&(1<<n)-1),Q(e,e.u+A[t].g),A[t].value}function mA(A,e,r){return r.g+=A.g,r.value+=A.value<<e>>>0,t(8>=r.g),A.g}function yA(A,e,r){var n=A.xc;return t((e=0==n?0:A.vc[A.md*(r>>n)+(e>>n)])<A.Wb),A.Ya[e]}function vA(A,e,n,i){var s=A.ab,o=A.c*e,a=A.C;e=a+e;var c=n,u=i;for(i=A.Ta,n=A.Ua;0<s--;){var l=A.gc[s],h=a,f=e,d=c,g=u,p=(u=i,c=n,l.Ea);switch(t(h<f),t(f<=l.nc),l.hc){case 2:qe(d,g,(f-h)*p,u,c);break;case 0:var B=h,w=f,m=u,y=c,v=(U=l).Ea;0==B&&(je(d,g,null,null,1,m,y),G(d,g+1,0,0,v-1,m,y+1),g+=v,y+=v,++B);for(var b=1<<U.b,C=b-1,Q=_(v,U.b),F=U.K,U=U.w+(B>>U.b)*Q;B<w;){var x=F,E=U,L=1;for(Ge(d,g,m,y-v,1,m,y);L<v;){var S=(L&~C)+b;S>v&&(S=v),(0,Je[x[E++]>>8&15])(d,g+ +L,m,y+L-v,S-L,m,y+L),L=S}g+=v,y+=v,++B&C||(U+=Q)}f!=l.nc&&r(u,c-p,u,c+(f-h-1)*p,p);break;case 1:for(p=d,w=g,v=(d=l.Ea)-(y=d&~(m=(g=1<<l.b)-1)),B=_(d,l.b),b=l.K,l=l.w+(h>>l.b)*B;h<f;){for(C=b,Q=l,F=new D,U=w+y,x=w+d;w<U;)X(C[Q++],F),Ze(F,p,w,g,u,c),w+=g,c+=g;w<x&&(X(C[Q++],F),Ze(F,p,w,v,u,c),w+=v,c+=v),++h&m||(l+=B)}break;case 3:if(d==u&&g==c&&0<l.b){for(w=u,d=p=c+(f-h)*p-(y=(f-h)*_(l.Ea,l.b)),g=u,m=c,B=[],y=(v=y)-1;0<=y;--y)B[y]=g[m+y];for(y=v-1;0<=y;--y)w[d+y]=B[y];Xe(l,h,f,u,p,u,c)}else Xe(l,h,f,d,g,u,c)}c=i,u=n}u!=n&&r(i,n,c,u,o)}function bA(A,e){var r=A.V,n=A.Ba+A.c*A.C,i=e-A.C;if(t(e<=A.l.o),t(16>=i),0<i){var s=A.l,o=A.Ta,a=A.Ua,c=s.width;if(vA(A,i,r,n),i=a=[a],t((r=A.C)<(n=e)),t(s.v<s.va),n>s.o&&(n=s.o),r<s.j){var u=s.j-r;r=s.j;i[0]+=u*c}if(r>=n?r=0:(i[0]+=4*s.v,s.ka=r-s.j,s.U=s.va-s.v,s.T=n-r,r=1),r){if(a=a[0],11>(r=A.ca).S){var l=r.f.RGBA,h=(n=r.S,i=s.U,s=s.T,u=l.eb,l.A),f=s;for(l=l.fb+A.Ma*l.A;0<f--;){var d=o,g=a,p=i,B=u,w=l;switch(n){case Or:$e(d,g,p,B,w);break;case Tr:Ar(d,g,p,B,w);break;case Kr:Ar(d,g,p,B,w),br(B,w,0,p,1,0);break;case _r:rr(d,g,p,B,w);break;case kr:tA(d,g,p,B,w,1);break;case Vr:tA(d,g,p,B,w,1),br(B,w,0,p,1,0);break;case Mr:tA(d,g,p,B,w,0);break;case jr:tA(d,g,p,B,w,0),br(B,w,1,p,1,0);break;case Dr:tr(d,g,p,B,w);break;case Gr:tr(d,g,p,B,w),Cr(B,w,p,1,0);break;case Rr:er(d,g,p,B,w);break;default:t(0)}a+=c,l+=h}A.Ma+=s}else alert("todo:EmitRescaledRowsYUVA");t(A.Ma<=r.height)}}A.C=e,t(A.C<=A.i)}function CA(A){var t;if(0<A.ua)return 0;for(t=0;t<A.Wb;++t){var e=A.Ya[t].G,r=A.Ya[t].H;if(0<e[1][r[1]+0].g||0<e[2][r[2]+0].g||0<e[3][r[3]+0].g)return 0}return 1}function QA(A,e,r,n,i,s){if(0!=A.Z){var o=A.qd,a=A.rd;for(t(null!=pn[A.Z]);e<r;++e)pn[A.Z](o,a,n,i,n,i,s),o=n,a=i,i+=s;A.qd=o,A.rd=a}}function FA(A,e){var r=A.l.ma,n=0==r.Z||1==r.Z?A.l.j:A.C;n=A.C<n?n:A.C;if(t(e<=A.l.o),e>n){var i=A.l.width,s=r.ca,o=r.tb+i*n,a=A.V,c=A.Ba+A.c*n,u=A.gc;t(1==A.ab),t(3==u[0].hc),We(u[0],n,e,a,c,s,o),QA(r,n,e,s,o,i)}A.C=A.Ma=e}function UA(A,e,r,n,i,s,o){var a=A.$/n,c=A.$%n,u=A.m,l=A.s,h=r+A.$,f=h;i=r+n*i;var d=r+n*s,g=280+l.ua,p=A.Pb?a:16777216,B=0<l.ua?l.Wa:null,w=l.wc,m=h<d?yA(l,c,a):null;t(A.C<s),t(d<=i);var y=!1;A:for(;;){for(;y||h<d;){var v=0;if(a>=p){var U=h-r;t((p=A).Pb),p.wd=p.m,p.xd=U,0<p.s.ua&&P(p.s.Wa,p.s.vb),p=a+$r}if(c&w||(m=yA(l,c,a)),t(null!=m),m.Qb&&(e[h]=m.qb,y=!0),!y)if(F(u),m.jc){v=u,U=e;var x=h,E=m.pd[b(v)&ke-1];t(m.jc),256>E.g?(Q(v,v.u+E.g),U[x]=E.value,v=0):(Q(v,v.u+E.g-256),t(256<=E.value),v=E.value),0==v&&(y=!0)}else v=wA(m.G[0],m.H[0],u);if(u.h)break;if(y||256>v){if(!y)if(m.nd)e[h]=(m.qb|v<<8)>>>0;else{if(F(u),y=wA(m.G[1],m.H[1],u),F(u),U=wA(m.G[2],m.H[2],u),x=wA(m.G[3],m.H[3],u),u.h)break;e[h]=(x<<24|y<<16|v<<8|U)>>>0}if(y=!1,++h,++c>=n&&(c=0,++a,null!=o&&a<=s&&!(a%16)&&o(A,a),null!=B))for(;f<h;)v=e[f++],B.X[(506832829*v&4294967295)>>>B.Mb]=v}else if(280>v){if(v=pA(v-256,u),U=wA(m.G[4],m.H[4],u),F(u),U=BA(n,U=pA(U,u)),u.h)break;if(h-r<U||i-h<v)break A;for(x=0;x<v;++x)e[h+x]=e[h+x-U];for(h+=v,c+=v;c>=n;)c-=n,++a,null!=o&&a<=s&&!(a%16)&&o(A,a);if(t(h<=i),c&w&&(m=yA(l,c,a)),null!=B)for(;f<h;)v=e[f++],B.X[(506832829*v&4294967295)>>>B.Mb]=v}else{if(!(v<g))break A;for(y=v-280,t(null!=B);f<h;)v=e[f++],B.X[(506832829*v&4294967295)>>>B.Mb]=v;v=h,t(!(y>>>(U=B).Xa)),e[v]=U.X[y],y=!0}y||t(u.h==C(u))}if(A.Pb&&u.h&&h<i)t(A.m.h),A.a=5,A.m=A.wd,A.$=A.xd,0<A.s.ua&&P(A.s.vb,A.s.Wa);else{if(u.h)break A;null!=o&&o(A,a>s?s:a),A.a=0,A.$=h-r}return 1}return A.a=3,0}function xA(A){t(null!=A),A.vc=null,A.yc=null,A.Ya=null;var e=A.Wa;null!=e&&(e.X=null),A.vb=null,t(null!=A)}function EA(){var t=new se;return null==t?null:(t.a=0,t.xb=gn,eA("Predictor","VP8LPredictors"),eA("Predictor","VP8LPredictors_C"),eA("PredictorAdd","VP8LPredictorsAdd"),eA("PredictorAdd","VP8LPredictorsAdd_C"),qe=q,Ze=z,$e=Y,Ar=J,tr=Z,er=$,rr=AA,A.VP8LMapColor32b=ze,A.VP8LMapColor8b=Ye,t)}function LA(A,e,r,o,a){var c=1,h=[A],d=[e],g=o.m,p=o.s,B=null,w=0;A:for(;;){if(r)for(;c&&m(g,1);){var y=h,v=d,C=o,U=1,x=C.m,E=C.gc[C.ab],L=m(x,2);if(C.Oc&1<<L)c=0;else{switch(C.Oc|=1<<L,E.hc=L,E.Ea=y[0],E.nc=v[0],E.K=[null],++C.ab,t(4>=C.ab),L){case 0:case 1:E.b=m(x,3)+2,U=LA(_(E.Ea,E.b),_(E.nc,E.b),0,C,E.K),E.K=E.K[0];break;case 3:var S,I=m(x,8)+1,N=16<I?0:4<I?1:2<I?2:3;if(y[0]=_(E.Ea,N),E.b=N,S=U=LA(I,1,0,C,E.K)){var P,O=I,T=E,M=1<<(8>>T.b),D=i(M);if(null==D)S=0;else{var R=T.K[0],K=T.w;for(D[0]=T.K[0][0],P=1;P<1*O;++P)D[P]=k(R[K+P],D[P-1]);for(;P<4*M;++P)D[P]=0;T.K[0]=null,T.K[0]=D,S=1}}U=S;break;case 2:break;default:t(0)}c=U}}if(h=h[0],d=d[0],c&&m(g,1)&&!(c=1<=(w=m(g,4))&&11>=w)){o.a=3;break A}var V;if(V=c)t:{var j,G,q,X=o,z=h,W=d,Y=w,J=r,Z=X.m,$=X.s,AA=[null],tA=1,eA=0,rA=Zr[Y];e:for(;;){if(J&&m(Z,1)){var nA=m(Z,3)+2,iA=_(z,nA),sA=_(W,nA),oA=iA*sA;if(!LA(iA,sA,0,X,AA))break e;for(AA=AA[0],$.xc=nA,j=0;j<oA;++j){var aA=AA[j]>>8&65535;AA[j]=aA,aA>=tA&&(tA=aA+1)}}if(Z.h)break e;for(G=0;5>G;++G){var cA=zr[G];!G&&0<Y&&(cA+=1<<Y),eA<cA&&(eA=cA)}var uA=s(tA*rA,l),lA=tA,hA=s(lA,f);if(null==hA)var fA=null;else t(65536>=lA),fA=hA;var dA=i(eA);if(null==fA||null==dA||null==uA){X.a=1;break e}var gA=uA;for(j=q=0;j<tA;++j){var pA=fA[j],BA=pA.G,wA=pA.H,yA=0,vA=1,bA=0;for(G=0;5>G;++G){cA=zr[G],BA[G]=gA,wA[G]=q,!G&&0<Y&&(cA+=1<<Y);r:{var CA,QA=cA,FA=X,EA=dA,SA=gA,IA=q,NA=0,HA=FA.m,PA=m(HA,1);if(n(EA,0,0,QA),PA){var OA=m(HA,1)+1,TA=m(HA,1),_A=m(HA,0==TA?1:8);EA[_A]=1,2==OA&&(EA[_A=m(HA,8)]=1);var kA=1}else{var MA=i(19),DA=m(HA,4)+4;if(19<DA){FA.a=3;var RA=0;break r}for(CA=0;CA<DA;++CA)MA[Yr[CA]]=m(HA,3);var KA=void 0,VA=void 0,jA=FA,GA=MA,qA=QA,XA=EA,zA=0,WA=jA.m,YA=8,JA=s(128,l);n:for(;u(JA,0,7,GA,19);){if(m(WA,1)){var ZA=2+2*m(WA,3);if((KA=2+m(WA,ZA))>qA)break n}else KA=qA;for(VA=0;VA<qA&&KA--;){F(WA);var $A=JA[0+(127&b(WA))];Q(WA,WA.u+$A.g);var At=$A.value;if(16>At)XA[VA++]=At,0!=At&&(YA=At);else{var tt=16==At,et=At-16,rt=Xr[et],nt=m(WA,qr[et])+rt;if(VA+nt>qA)break n;for(var it=tt?YA:0;0<nt--;)XA[VA++]=it}}zA=1;break n}zA||(jA.a=3),kA=zA}(kA=kA&&!HA.h)&&(NA=u(SA,IA,8,EA,QA)),kA&&0!=NA?RA=NA:(FA.a=3,RA=0)}if(0==RA)break e;if(vA&&1==Wr[G]&&(vA=0==gA[q].g),yA+=gA[q].g,q+=RA,3>=G){var st,ot=dA[0];for(st=1;st<cA;++st)dA[st]>ot&&(ot=dA[st]);bA+=ot}}if(pA.nd=vA,pA.Qb=0,vA&&(pA.qb=(BA[3][wA[3]+0].value<<24|BA[1][wA[1]+0].value<<16|BA[2][wA[2]+0].value)>>>0,0==yA&&256>BA[0][wA[0]+0].value&&(pA.Qb=1,pA.qb+=BA[0][wA[0]+0].value<<8)),pA.jc=!pA.Qb&&6>bA,pA.jc){var at,ct=pA;for(at=0;at<ke;++at){var ut=at,lt=ct.pd[ut],ht=ct.G[0][ct.H[0]+ut];256<=ht.value?(lt.g=ht.g+256,lt.value=ht.value):(lt.g=0,lt.value=0,ut>>=mA(ht,8,lt),ut>>=mA(ct.G[1][ct.H[1]+ut],16,lt),ut>>=mA(ct.G[2][ct.H[2]+ut],0,lt),mA(ct.G[3][ct.H[3]+ut],24,lt))}}}$.vc=AA,$.Wb=tA,$.Ya=fA,$.yc=uA,V=1;break t}V=0}if(!(c=V)){o.a=3;break A}if(0<w){if(p.ua=1<<w,!H(p.Wa,w)){o.a=1,c=0;break A}}else p.ua=0;var ft=o,dt=h,gt=d,pt=ft.s,Bt=pt.xc;if(ft.c=dt,ft.i=gt,pt.md=_(dt,Bt),pt.wc=0==Bt?-1:(1<<Bt)-1,r){o.xb=dn;break A}if(null==(B=i(h*d))){o.a=1,c=0;break A}c=(c=UA(o,B,0,h,d,d,null))&&!g.h;break A}return c?(null!=a?a[0]=B:(t(null==B),t(r)),o.$=0,r||xA(p)):xA(p),c}function SA(A,e){var r=A.c*A.i,n=r+e+16*e;return t(A.c<=e),A.V=i(n),null==A.V?(A.Ta=null,A.Ua=0,A.a=1,0):(A.Ta=A.V,A.Ua=A.Ba+r+e,1)}function IA(A,e){var r=A.C,n=e-r,i=A.V,s=A.Ba+A.c*r;for(t(e<=A.l.o);0<n;){var o=16<n?16:n,a=A.l.ma,c=A.l.width,u=c*o,l=a.ca,h=a.tb+c*r,f=A.Ta,d=A.Ua;vA(A,o,i,s),Fr(f,d,l,h,u),QA(a,r,r+o,l,h,c),n-=o,i+=o*A.c,r+=o}t(r==e),A.C=A.Ma=e}function NA(){this.ub=this.yd=this.td=this.Rb=0}function HA(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function PA(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function OA(){this.Yb=function(){var A=[];return function A(t,e,r){for(var n=r[e],i=0;i<n&&(t.push(r.length>e+1?[]:0),!(r.length<e+1));i++)A(t[i],e+1,r)}(A,0,[3,11]),A}()}function TA(){this.jb=i(3),this.Wc=o([4,8],OA),this.Xc=o([4,17],OA)}function _A(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function kA(){this.ld=this.La=this.dd=this.tc=0}function MA(){this.Na=this.la=0}function DA(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function RA(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function KA(){this.uc=this.M=this.Nb=0,this.wa=Array(new kA),this.Y=0,this.ya=Array(new RA),this.aa=0,this.l=new qA}function VA(){this.y=i(16),this.f=i(8),this.ea=i(8)}function jA(){this.cb=this.a=0,this.sc="",this.m=new y,this.Od=new NA,this.Kc=new HA,this.ed=new _A,this.Qa=new PA,this.Ic=this.$c=this.Aa=0,this.D=new KA,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,y),this.ia=0,this.pb=s(4,DA),this.Pa=new TA,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new VA),this.Hd=0,this.rb=Array(new MA),this.sb=0,this.wa=Array(new kA),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 RA),this.L=this.aa=0,this.gd=o([4,2],kA),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 GA(A,t){return 0>A?0:A>t?t:A}function qA(){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 XA(){var A=new jA;return null!=A&&(A.a=0,A.sc="OK",A.cb=0,A.Xb=0,en||(en=JA)),A}function zA(A,t,e){return 0==A.a&&(A.a=t,A.sc=e,A.cb=0),0}function WA(A,t,e){return 3<=e&&157==A[t+0]&&1==A[t+1]&&42==A[t+2]}function YA(A,e){if(null==A)return 0;if(A.a=0,A.sc="OK",null==e)return zA(A,2,"null VP8Io passed to VP8GetHeaders()");var r=e.data,i=e.w,s=e.ha;if(4>s)return zA(A,7,"Truncated header.");var o=r[i+0]|r[i+1]<<8|r[i+2]<<16,a=A.Od;if(a.Rb=!(1&o),a.td=o>>1&7,a.yd=o>>4&1,a.ub=o>>5,3<a.td)return zA(A,3,"Incorrect keyframe parameters.");if(!a.yd)return zA(A,4,"Frame not displayable.");i+=3,s-=3;var c=A.Kc;if(a.Rb){if(7>s)return zA(A,7,"cannot parse picture header");if(!WA(r,i,s))return zA(A,3,"Bad code word");c.c=16383&(r[i+4]<<8|r[i+3]),c.Td=r[i+4]>>6,c.i=16383&(r[i+6]<<8|r[i+5]),c.Ud=r[i+6]>>6,i+=7,s-=7,A.za=c.c+15>>4,A.Ub=c.i+15>>4,e.width=c.c,e.height=c.i,e.Da=0,e.j=0,e.v=0,e.va=e.width,e.o=e.height,e.da=0,e.ib=e.width,e.hb=e.height,e.U=e.width,e.T=e.height,n((o=A.Pa).jb,0,255,o.jb.length),t(null!=(o=A.Qa)),o.Cb=0,o.Bb=0,o.Fb=1,n(o.Zb,0,0,o.Zb.length),n(o.Lb,0,0,o.Lb)}if(a.ub>s)return zA(A,7,"bad partition length");d(o=A.m,r,i,a.ub),i+=a.ub,s-=a.ub,a.Rb&&(c.Ld=x(o),c.Kd=x(o)),c=A.Qa;var u,l=A.Pa;if(t(null!=o),t(null!=c),c.Cb=x(o),c.Cb){if(c.Bb=x(o),x(o)){for(c.Fb=x(o),u=0;4>u;++u)c.Zb[u]=x(o)?p(o,7):0;for(u=0;4>u;++u)c.Lb[u]=x(o)?p(o,6):0}if(c.Bb)for(u=0;3>u;++u)l.jb[u]=x(o)?g(o,8):255}else c.Bb=0;if(o.Ka)return zA(A,3,"cannot parse segment header");if((c=A.ed).zd=x(o),c.Tb=g(o,6),c.wb=g(o,3),c.Pc=x(o),c.Pc&&x(o)){for(l=0;4>l;++l)x(o)&&(c.vd[l]=p(o,6));for(l=0;4>l;++l)x(o)&&(c.od[l]=p(o,6))}if(A.L=0==c.Tb?0:c.zd?1:2,o.Ka)return zA(A,3,"cannot parse filter header");var h=s;if(s=u=i,i=u+h,c=h,A.Xb=(1<<g(A.m,2))-1,h<3*(l=A.Xb))r=7;else{for(u+=3*l,c-=3*l,h=0;h<l;++h){var f=r[s+0]|r[s+1]<<8|r[s+2]<<16;f>c&&(f=c),d(A.Jc[+h],r,u,f),u+=f,c-=f,s+=3}d(A.Jc[+l],r,u,c),r=u<i?0:5}if(0!=r)return zA(A,r,"cannot parse partitions");for(r=g(u=A.m,7),s=x(u)?p(u,4):0,i=x(u)?p(u,4):0,c=x(u)?p(u,4):0,l=x(u)?p(u,4):0,u=x(u)?p(u,4):0,h=A.Qa,f=0;4>f;++f){if(h.Cb){var B=h.Zb[f];h.Fb||(B+=r)}else{if(0<f){A.pb[f]=A.pb[0];continue}B=r}var w=A.pb[f];w.Sc[0]=An[GA(B+s,127)],w.Sc[1]=tn[GA(B+0,127)],w.Eb[0]=2*An[GA(B+i,127)],w.Eb[1]=101581*tn[GA(B+c,127)]>>16,8>w.Eb[1]&&(w.Eb[1]=8),w.Qc[0]=An[GA(B+l,117)],w.Qc[1]=tn[GA(B+u,127)],w.lc=B+u}if(!a.Rb)return zA(A,4,"Not a key frame.");for(x(o),a=A.Pa,r=0;4>r;++r){for(s=0;8>s;++s)for(i=0;3>i;++i)for(c=0;11>c;++c)l=E(o,cn[r][s][i][c])?g(o,8):on[r][s][i][c],a.Wc[r][s].Yb[i][c]=l;for(s=0;17>s;++s)a.Xc[r][s]=a.Wc[r][un[s]]}return A.kc=x(o),A.kc&&(A.Bd=g(o,8)),A.cb=1}function JA(A,t,e,r,n,i,s){var o=t[n].Yb[e];for(e=0;16>n;++n){if(!E(A,o[e+0]))return n;for(;!E(A,o[e+1]);)if(o=t[++n].Yb[0],e=0,16==n)return 16;var a=t[n+1].Yb;if(E(A,o[e+2])){var c=A,u=0;if(E(c,(h=o)[(l=e)+3]))if(E(c,h[l+6])){for(o=0,l=2*(u=E(c,h[l+8]))+(h=E(c,h[l+9+u])),u=0,h=rn[l];h[o];++o)u+=u+E(c,h[o]);u+=3+(8<<l)}else E(c,h[l+7])?(u=7+2*E(c,165),u+=E(c,145)):u=5+E(c,159);else u=E(c,h[l+4])?3+E(c,h[l+5]):2;o=a[2]}else u=1,o=a[1];a=s+nn[n],0>(c=A).b&&U(c);var l,h=c.b,f=(l=c.Ca>>1)-(c.I>>h)>>31;--c.b,c.Ca+=f,c.Ca|=1,c.I-=(l+1&f)<<h,i[a]=((u^f)-f)*r[(0<n)+0]}return 16}function ZA(A){var t=A.rb[A.sb-1];t.la=0,t.Na=0,n(A.zc,0,0,A.zc.length),A.ja=0}function $A(A,e){if(null==A)return 0;if(null==e)return zA(A,2,"NULL VP8Io parameter in VP8Decode().");if(!A.cb&&!YA(A,e))return 0;if(t(A.cb),null==e.ac||e.ac(e)){e.ob&&(A.L=0);var o=Mn[A.L];if(2==A.L?(A.yb=0,A.zb=0):(A.yb=e.v-o>>4,A.zb=e.j-o>>4,0>A.yb&&(A.yb=0),0>A.zb&&(A.zb=0)),A.Va=e.o+15+o>>4,A.Hb=e.va+15+o>>4,A.Hb>A.za&&(A.Hb=A.za),A.Va>A.Ub&&(A.Va=A.Ub),0<A.L){var a=A.ed;for(o=0;4>o;++o){var c;if(A.Qa.Cb){var u=A.Qa.Lb[o];A.Qa.Fb||(u+=a.Tb)}else u=a.Tb;for(c=0;1>=c;++c){var l=A.gd[o][c],h=u;if(a.Pc&&(h+=a.vd[0],c&&(h+=a.od[0])),0<(h=0>h?0:63<h?63:h)){var f=h;0<a.wb&&((f=4<a.wb?f>>2:f>>1)>9-a.wb&&(f=9-a.wb)),1>f&&(f=1),l.dd=f,l.tc=2*h+f,l.ld=40<=h?2:15<=h?1:0}else l.tc=0;l.La=c}}}o=0}else zA(A,6,"Frame setup failed"),o=A.a;if(o=0==o){if(o){A.$c=0,0<A.Aa||(A.Ic=Rn);A:{o=A.Ic;a=4*(f=A.za);var d=32*f,g=f+1,p=0<A.L?f*(0<A.Aa?2:1):0,B=(2==A.Aa?2:1)*f;if((l=a+832+(c=3*(16*o+Mn[A.L])/2*d)+(u=null!=A.Fa&&0<A.Fa.length?A.Kc.c*A.Kc.i:0))!=l)o=0;else{if(l>A.Vb){if(A.Vb=0,A.Ec=i(l),A.Fc=0,null==A.Ec){o=zA(A,1,"no memory during frame initialization.");break A}A.Vb=l}l=A.Ec,h=A.Fc,A.Ac=l,A.Bc=h,h+=a,A.Gd=s(d,VA),A.Hd=0,A.rb=s(g+1,MA),A.sb=1,A.wa=p?s(p,kA):null,A.Y=0,A.D.Nb=0,A.D.wa=A.wa,A.D.Y=A.Y,0<A.Aa&&(A.D.Y+=f),t(!0),A.oc=l,A.pc=h,h+=832,A.ya=s(B,RA),A.aa=0,A.D.ya=A.ya,A.D.aa=A.aa,2==A.Aa&&(A.D.aa+=f),A.R=16*f,A.B=8*f,f=(d=Mn[A.L])*A.R,d=d/2*A.B,A.sa=l,A.ta=h+f,A.qa=A.sa,A.ra=A.ta+16*o*A.R+d,A.Ha=A.qa,A.Ia=A.ra+8*o*A.B+d,A.$c=0,h+=c,A.mb=u?l:null,A.nb=u?h:null,t(h+u<=A.Fc+A.Vb),ZA(A),n(A.Ac,A.Bc,0,a),o=1}}if(o){if(e.ka=0,e.y=A.sa,e.O=A.ta,e.f=A.qa,e.N=A.ra,e.ea=A.Ha,e.Vd=A.Ia,e.fa=A.R,e.Rc=A.B,e.F=null,e.J=0,!Sr){for(o=-255;255>=o;++o)Ur[255+o]=0>o?-o:o;for(o=-1020;1020>=o;++o)xr[1020+o]=-128>o?-128:127<o?127:o;for(o=-112;112>=o;++o)Er[112+o]=-16>o?-16:15<o?15:o;for(o=-255;510>=o;++o)Lr[255+o]=0>o?0:255<o?255:o;Sr=1}nr=ct,ir=it,or=st,ar=ot,cr=at,sr=nt,ur=zt,lr=Wt,hr=Zt,fr=$t,dr=Yt,gr=Jt,pr=Ae,Br=te,wr=Kt,mr=Vt,yr=jt,vr=Gt,hn[0]=Qt,hn[1]=lt,hn[2]=bt,hn[3]=Ct,hn[4]=Ft,hn[5]=xt,hn[6]=Ut,hn[7]=Et,hn[8]=St,hn[9]=Lt,ln[0]=Bt,ln[1]=ft,ln[2]=dt,ln[3]=gt,ln[4]=wt,ln[5]=mt,ln[6]=yt,fn[0]=Pt,fn[1]=ht,fn[2]=It,fn[3]=Nt,fn[4]=Tt,fn[5]=Ot,fn[6]=_t,o=1}else o=0}o&&(o=function(A,e){for(A.M=0;A.M<A.Va;++A.M){var s,o=A.Jc[A.M&A.Xb],a=A.m,c=A;for(s=0;s<c.za;++s){var u=a,l=c,h=l.Ac,f=l.Bc+4*s,d=l.zc,g=l.ya[l.aa+s];if(l.Qa.Bb?g.$b=E(u,l.Pa.jb[0])?2+E(u,l.Pa.jb[2]):E(u,l.Pa.jb[1]):g.$b=0,l.kc&&(g.Ad=E(u,l.Bd)),g.Za=!E(u,145)+0,g.Za){var p=g.Ob,B=0;for(l=0;4>l;++l){var w,m=d[0+l];for(w=0;4>w;++w){m=an[h[f+w]][m];for(var y=sn[E(u,m[0])];0<y;)y=sn[2*y+E(u,m[y])];m=-y,h[f+w]=m}r(p,B,h,f,4),B+=4,d[0+l]=m}}else m=E(u,156)?E(u,128)?1:3:E(u,163)?2:0,g.Ob[0]=m,n(h,f,m,4),n(d,0,m,4);g.Dd=E(u,142)?E(u,114)?E(u,183)?1:3:2:0}if(c.m.Ka)return zA(A,7,"Premature end-of-partition0 encountered.");for(;A.ja<A.za;++A.ja){if(c=o,u=(a=A).rb[a.sb-1],h=a.rb[a.sb+a.ja],s=a.ya[a.aa+a.ja],f=a.kc?s.Ad:0)u.la=h.la=0,s.Za||(u.Na=h.Na=0),s.Hc=0,s.Gc=0,s.ia=0;else{var v,b;if(u=h,h=c,f=a.Pa.Xc,d=a.ya[a.aa+a.ja],g=a.pb[d.$b],l=d.ad,p=0,B=a.rb[a.sb-1],m=w=0,n(l,p,0,384),d.Za)var C=0,Q=f[3];else{y=i(16);var F=u.Na+B.Na;if(F=en(h,f[1],F,g.Eb,0,y,0),u.Na=B.Na=(0<F)+0,1<F)nr(y,0,l,p);else{var U=y[0]+3>>3;for(y=0;256>y;y+=16)l[p+y]=U}C=1,Q=f[0]}var x=15&u.la,L=15&B.la;for(y=0;4>y;++y){var S=1&L;for(U=b=0;4>U;++U)x=x>>1|(S=(F=en(h,Q,F=S+(1&x),g.Sc,C,l,p))>C)<<7,b=b<<2|(3<F?3:1<F?2:0!=l[p+0]),p+=16;x>>=4,L=L>>1|S<<7,w=(w<<8|b)>>>0}for(Q=x,C=L>>4,v=0;4>v;v+=2){for(b=0,x=u.la>>4+v,L=B.la>>4+v,y=0;2>y;++y){for(S=1&L,U=0;2>U;++U)F=S+(1&x),x=x>>1|(S=0<(F=en(h,f[2],F,g.Qc,0,l,p)))<<3,b=b<<2|(3<F?3:1<F?2:0!=l[p+0]),p+=16;x>>=2,L=L>>1|S<<5}m|=b<<4*v,Q|=x<<4<<v,C|=(240&L)<<v}u.la=Q,B.la=C,d.Hc=w,d.Gc=m,d.ia=43690&m?0:g.ia,f=!(w|m)}if(0<a.L&&(a.wa[a.Y+a.ja]=a.gd[s.$b][s.Za],a.wa[a.Y+a.ja].La|=!f),c.Ka)return zA(A,7,"Premature end-of-file encountered.")}if(ZA(A),a=e,c=1,s=(o=A).D,u=0<o.L&&o.M>=o.zb&&o.M<=o.Va,0==o.Aa)A:{if(s.M=o.M,s.uc=u,He(o,s),c=1,s=(b=o.D).Nb,u=(m=Mn[o.L])*o.R,h=m/2*o.B,y=16*s*o.R,U=8*s*o.B,f=o.sa,d=o.ta-u+y,g=o.qa,l=o.ra-h+U,p=o.Ha,B=o.Ia-h+U,L=0==(x=b.M),w=x>=o.Va-1,2==o.Aa&&He(o,b),b.uc)for(S=(F=o).D.M,t(F.D.uc),b=F.yb;b<F.Hb;++b){C=b,Q=S;var I=(N=(R=F).D).Nb;v=R.R;var N=N.wa[N.Y+C],H=R.sa,P=R.ta+16*I*v+16*C,O=N.dd,T=N.tc;if(0!=T)if(t(3<=T),1==R.L)0<C&&mr(H,P,v,T+4),N.La&&vr(H,P,v,T),0<Q&&wr(H,P,v,T+4),N.La&&yr(H,P,v,T);else{var _=R.B,k=R.qa,M=R.ra+8*I*_+8*C,D=R.Ha,R=R.Ia+8*I*_+8*C;I=N.ld,0<C&&(lr(H,P,v,T+4,O,I),fr(k,M,D,R,_,T+4,O,I)),N.La&&(gr(H,P,v,T,O,I),Br(k,M,D,R,_,T,O,I)),0<Q&&(ur(H,P,v,T+4,O,I),hr(k,M,D,R,_,T+4,O,I)),N.La&&(dr(H,P,v,T,O,I),pr(k,M,D,R,_,T,O,I))}}if(o.ia&&alert("todo:DitherRow"),null!=a.put){if(b=16*x,x=16*(x+1),L?(a.y=o.sa,a.O=o.ta+y,a.f=o.qa,a.N=o.ra+U,a.ea=o.Ha,a.W=o.Ia+U):(b-=m,a.y=f,a.O=d,a.f=g,a.N=l,a.ea=p,a.W=B),w||(x-=m),x>a.o&&(x=a.o),a.F=null,a.J=null,null!=o.Fa&&0<o.Fa.length&&b<x&&(a.J=le(o,a,b,x-b),a.F=o.mb,null==a.F&&0==a.F.length)){c=zA(o,3,"Could not decode alpha data.");break A}b<a.j&&(m=a.j-b,b=a.j,t(!(1&m)),a.O+=o.R*m,a.N+=o.B*(m>>1),a.W+=o.B*(m>>1),null!=a.F&&(a.J+=a.width*m)),b<x&&(a.O+=a.v,a.N+=a.v>>1,a.W+=a.v>>1,null!=a.F&&(a.J+=a.v),a.ka=b-a.j,a.U=a.va-a.v,a.T=x-b,c=a.put(a))}s+1!=o.Ic||w||(r(o.sa,o.ta-u,f,d+16*o.R,u),r(o.qa,o.ra-h,g,l+8*o.B,h),r(o.Ha,o.Ia-h,p,B+8*o.B,h))}if(!c)return zA(A,6,"Output aborted.")}return 1}(A,e)),null!=e.bc&&e.bc(e),o&=1}return o?(A.cb=0,o):0}function At(A,t,e,r,n){n=A[t+e+32*r]+(n>>3),A[t+e+32*r]=-256&n?0>n?0:255:n}function tt(A,t,e,r,n,i){At(A,t,0,e,r+n),At(A,t,1,e,r+i),At(A,t,2,e,r-i),At(A,t,3,e,r-n)}function et(A){return(20091*A>>16)+A}function rt(A,t,e,r){var n,s=0,o=i(16);for(n=0;4>n;++n){var a=A[t+0]+A[t+8],c=A[t+0]-A[t+8],u=(35468*A[t+4]>>16)-et(A[t+12]),l=et(A[t+4])+(35468*A[t+12]>>16);o[s+0]=a+l,o[s+1]=c+u,o[s+2]=c-u,o[s+3]=a-l,s+=4,t++}for(n=s=0;4>n;++n)a=(A=o[s+0]+4)+o[s+8],c=A-o[s+8],u=(35468*o[s+4]>>16)-et(o[s+12]),At(e,r,0,0,a+(l=et(o[s+4])+(35468*o[s+12]>>16))),At(e,r,1,0,c+u),At(e,r,2,0,c-u),At(e,r,3,0,a-l),s++,r+=32}function nt(A,t,e,r){var n=A[t+0]+4,i=35468*A[t+4]>>16,s=et(A[t+4]),o=35468*A[t+1]>>16;tt(e,r,0,n+s,A=et(A[t+1]),o),tt(e,r,1,n+i,A,o),tt(e,r,2,n-i,A,o),tt(e,r,3,n-s,A,o)}function it(A,t,e,r,n){rt(A,t,e,r),n&&rt(A,t+16,e,r+4)}function st(A,t,e,r){ir(A,t+0,e,r,1),ir(A,t+32,e,r+128,1)}function ot(A,t,e,r){var n;for(A=A[t+0]+4,n=0;4>n;++n)for(t=0;4>t;++t)At(e,r,t,n,A)}function at(A,t,e,r){A[t+0]&&ar(A,t+0,e,r),A[t+16]&&ar(A,t+16,e,r+4),A[t+32]&&ar(A,t+32,e,r+128),A[t+48]&&ar(A,t+48,e,r+128+4)}function ct(A,t,e,r){var n,s=i(16);for(n=0;4>n;++n){var o=A[t+0+n]+A[t+12+n],a=A[t+4+n]+A[t+8+n],c=A[t+4+n]-A[t+8+n],u=A[t+0+n]-A[t+12+n];s[0+n]=o+a,s[8+n]=o-a,s[4+n]=u+c,s[12+n]=u-c}for(n=0;4>n;++n)o=(A=s[0+4*n]+3)+s[3+4*n],a=s[1+4*n]+s[2+4*n],c=s[1+4*n]-s[2+4*n],u=A-s[3+4*n],e[r+0]=o+a>>3,e[r+16]=u+c>>3,e[r+32]=o-a>>3,e[r+48]=u-c>>3,r+=64}function ut(A,t,e){var r,n=t-32,i=Hr,s=255-A[n-1];for(r=0;r<e;++r){var o,a=i,c=s+A[t-1];for(o=0;o<e;++o)A[t+o]=a[c+A[n+o]];t+=32}}function lt(A,t){ut(A,t,4)}function ht(A,t){ut(A,t,8)}function ft(A,t){ut(A,t,16)}function dt(A,t){var e;for(e=0;16>e;++e)r(A,t+32*e,A,t-32,16)}function gt(A,t){var e;for(e=16;0<e;--e)n(A,t,A[t-1],16),t+=32}function pt(A,t,e){var r;for(r=0;16>r;++r)n(t,e+32*r,A,16)}function Bt(A,t){var e,r=16;for(e=0;16>e;++e)r+=A[t-1+32*e]+A[t+e-32];pt(r>>5,A,t)}function wt(A,t){var e,r=8;for(e=0;16>e;++e)r+=A[t-1+32*e];pt(r>>4,A,t)}function mt(A,t){var e,r=8;for(e=0;16>e;++e)r+=A[t+e-32];pt(r>>4,A,t)}function yt(A,t){pt(128,A,t)}function vt(A,t,e){return A+2*t+e+2>>2}function bt(A,t){var e,n=t-32;n=new Uint8Array([vt(A[n-1],A[n+0],A[n+1]),vt(A[n+0],A[n+1],A[n+2]),vt(A[n+1],A[n+2],A[n+3]),vt(A[n+2],A[n+3],A[n+4])]);for(e=0;4>e;++e)r(A,t+32*e,n,0,n.length)}function Ct(A,t){var e=A[t-1],r=A[t-1+32],n=A[t-1+64],i=A[t-1+96];L(A,t+0,16843009*vt(A[t-1-32],e,r)),L(A,t+32,16843009*vt(e,r,n)),L(A,t+64,16843009*vt(r,n,i)),L(A,t+96,16843009*vt(n,i,i))}function Qt(A,t){var e,r=4;for(e=0;4>e;++e)r+=A[t+e-32]+A[t-1+32*e];for(r>>=3,e=0;4>e;++e)n(A,t+32*e,r,4)}function Ft(A,t){var e=A[t-1+0],r=A[t-1+32],n=A[t-1+64],i=A[t-1-32],s=A[t+0-32],o=A[t+1-32],a=A[t+2-32],c=A[t+3-32];A[t+0+96]=vt(r,n,A[t-1+96]),A[t+1+96]=A[t+0+64]=vt(e,r,n),A[t+2+96]=A[t+1+64]=A[t+0+32]=vt(i,e,r),A[t+3+96]=A[t+2+64]=A[t+1+32]=A[t+0+0]=vt(s,i,e),A[t+3+64]=A[t+2+32]=A[t+1+0]=vt(o,s,i),A[t+3+32]=A[t+2+0]=vt(a,o,s),A[t+3+0]=vt(c,a,o)}function Ut(A,t){var e=A[t+1-32],r=A[t+2-32],n=A[t+3-32],i=A[t+4-32],s=A[t+5-32],o=A[t+6-32],a=A[t+7-32];A[t+0+0]=vt(A[t+0-32],e,r),A[t+1+0]=A[t+0+32]=vt(e,r,n),A[t+2+0]=A[t+1+32]=A[t+0+64]=vt(r,n,i),A[t+3+0]=A[t+2+32]=A[t+1+64]=A[t+0+96]=vt(n,i,s),A[t+3+32]=A[t+2+64]=A[t+1+96]=vt(i,s,o),A[t+3+64]=A[t+2+96]=vt(s,o,a),A[t+3+96]=vt(o,a,a)}function xt(A,t){var e=A[t-1+0],r=A[t-1+32],n=A[t-1+64],i=A[t-1-32],s=A[t+0-32],o=A[t+1-32],a=A[t+2-32],c=A[t+3-32];A[t+0+0]=A[t+1+64]=i+s+1>>1,A[t+1+0]=A[t+2+64]=s+o+1>>1,A[t+2+0]=A[t+3+64]=o+a+1>>1,A[t+3+0]=a+c+1>>1,A[t+0+96]=vt(n,r,e),A[t+0+64]=vt(r,e,i),A[t+0+32]=A[t+1+96]=vt(e,i,s),A[t+1+32]=A[t+2+96]=vt(i,s,o),A[t+2+32]=A[t+3+96]=vt(s,o,a),A[t+3+32]=vt(o,a,c)}function Et(A,t){var e=A[t+0-32],r=A[t+1-32],n=A[t+2-32],i=A[t+3-32],s=A[t+4-32],o=A[t+5-32],a=A[t+6-32],c=A[t+7-32];A[t+0+0]=e+r+1>>1,A[t+1+0]=A[t+0+64]=r+n+1>>1,A[t+2+0]=A[t+1+64]=n+i+1>>1,A[t+3+0]=A[t+2+64]=i+s+1>>1,A[t+0+32]=vt(e,r,n),A[t+1+32]=A[t+0+96]=vt(r,n,i),A[t+2+32]=A[t+1+96]=vt(n,i,s),A[t+3+32]=A[t+2+96]=vt(i,s,o),A[t+3+64]=vt(s,o,a),A[t+3+96]=vt(o,a,c)}function Lt(A,t){var e=A[t-1+0],r=A[t-1+32],n=A[t-1+64],i=A[t-1+96];A[t+0+0]=e+r+1>>1,A[t+2+0]=A[t+0+32]=r+n+1>>1,A[t+2+32]=A[t+0+64]=n+i+1>>1,A[t+1+0]=vt(e,r,n),A[t+3+0]=A[t+1+32]=vt(r,n,i),A[t+3+32]=A[t+1+64]=vt(n,i,i),A[t+3+64]=A[t+2+64]=A[t+0+96]=A[t+1+96]=A[t+2+96]=A[t+3+96]=i}function St(A,t){var e=A[t-1+0],r=A[t-1+32],n=A[t-1+64],i=A[t-1+96],s=A[t-1-32],o=A[t+0-32],a=A[t+1-32],c=A[t+2-32];A[t+0+0]=A[t+2+32]=e+s+1>>1,A[t+0+32]=A[t+2+64]=r+e+1>>1,A[t+0+64]=A[t+2+96]=n+r+1>>1,A[t+0+96]=i+n+1>>1,A[t+3+0]=vt(o,a,c),A[t+2+0]=vt(s,o,a),A[t+1+0]=A[t+3+32]=vt(e,s,o),A[t+1+32]=A[t+3+64]=vt(r,e,s),A[t+1+64]=A[t+3+96]=vt(n,r,e),A[t+1+96]=vt(i,n,r)}function It(A,t){var e;for(e=0;8>e;++e)r(A,t+32*e,A,t-32,8)}function Nt(A,t){var e;for(e=0;8>e;++e)n(A,t,A[t-1],8),t+=32}function Ht(A,t,e){var r;for(r=0;8>r;++r)n(t,e+32*r,A,8)}function Pt(A,t){var e,r=8;for(e=0;8>e;++e)r+=A[t+e-32]+A[t-1+32*e];Ht(r>>4,A,t)}function Ot(A,t){var e,r=4;for(e=0;8>e;++e)r+=A[t+e-32];Ht(r>>3,A,t)}function Tt(A,t){var e,r=4;for(e=0;8>e;++e)r+=A[t-1+32*e];Ht(r>>3,A,t)}function _t(A,t){Ht(128,A,t)}function kt(A,t,e){var r=A[t-e],n=A[t+0],i=3*(n-r)+Ir[1020+A[t-2*e]-A[t+e]],s=Nr[112+(i+4>>3)];A[t-e]=Hr[255+r+Nr[112+(i+3>>3)]],A[t+0]=Hr[255+n-s]}function Mt(A,t,e,r){var n=A[t+0],i=A[t+e];return Pr[255+A[t-2*e]-A[t-e]]>r||Pr[255+i-n]>r}function Dt(A,t,e,r){return 4*Pr[255+A[t-e]-A[t+0]]+Pr[255+A[t-2*e]-A[t+e]]<=r}function Rt(A,t,e,r,n){var i=A[t-3*e],s=A[t-2*e],o=A[t-e],a=A[t+0],c=A[t+e],u=A[t+2*e],l=A[t+3*e];return 4*Pr[255+o-a]+Pr[255+s-c]>r?0:Pr[255+A[t-4*e]-i]<=n&&Pr[255+i-s]<=n&&Pr[255+s-o]<=n&&Pr[255+l-u]<=n&&Pr[255+u-c]<=n&&Pr[255+c-a]<=n}function Kt(A,t,e,r){var n=2*r+1;for(r=0;16>r;++r)Dt(A,t+r,e,n)&&kt(A,t+r,e)}function Vt(A,t,e,r){var n=2*r+1;for(r=0;16>r;++r)Dt(A,t+r*e,1,n)&&kt(A,t+r*e,1)}function jt(A,t,e,r){var n;for(n=3;0<n;--n)Kt(A,t+=4*e,e,r)}function Gt(A,t,e,r){var n;for(n=3;0<n;--n)Vt(A,t+=4,e,r)}function qt(A,t,e,r,n,i,s,o){for(i=2*i+1;0<n--;){if(Rt(A,t,e,i,s))if(Mt(A,t,e,o))kt(A,t,e);else{var a=A,c=t,u=e,l=a[c-2*u],h=a[c-u],f=a[c+0],d=a[c+u],g=a[c+2*u],p=27*(w=Ir[1020+3*(f-h)+Ir[1020+l-d]])+63>>7,B=18*w+63>>7,w=9*w+63>>7;a[c-3*u]=Hr[255+a[c-3*u]+w],a[c-2*u]=Hr[255+l+B],a[c-u]=Hr[255+h+p],a[c+0]=Hr[255+f-p],a[c+u]=Hr[255+d-B],a[c+2*u]=Hr[255+g-w]}t+=r}}function Xt(A,t,e,r,n,i,s,o){for(i=2*i+1;0<n--;){if(Rt(A,t,e,i,s))if(Mt(A,t,e,o))kt(A,t,e);else{var a=A,c=t,u=e,l=a[c-u],h=a[c+0],f=a[c+u],d=Nr[112+((g=3*(h-l))+4>>3)],g=Nr[112+(g+3>>3)],p=d+1>>1;a[c-2*u]=Hr[255+a[c-2*u]+p],a[c-u]=Hr[255+l+g],a[c+0]=Hr[255+h-d],a[c+u]=Hr[255+f-p]}t+=r}}function zt(A,t,e,r,n,i){qt(A,t,e,1,16,r,n,i)}function Wt(A,t,e,r,n,i){qt(A,t,1,e,16,r,n,i)}function Yt(A,t,e,r,n,i){var s;for(s=3;0<s;--s)Xt(A,t+=4*e,e,1,16,r,n,i)}function Jt(A,t,e,r,n,i){var s;for(s=3;0<s;--s)Xt(A,t+=4,1,e,16,r,n,i)}function Zt(A,t,e,r,n,i,s,o){qt(A,t,n,1,8,i,s,o),qt(e,r,n,1,8,i,s,o)}function $t(A,t,e,r,n,i,s,o){qt(A,t,1,n,8,i,s,o),qt(e,r,1,n,8,i,s,o)}function Ae(A,t,e,r,n,i,s,o){Xt(A,t+4*n,n,1,8,i,s,o),Xt(e,r+4*n,n,1,8,i,s,o)}function te(A,t,e,r,n,i,s,o){Xt(A,t+4,1,n,8,i,s,o),Xt(e,r+4,1,n,8,i,s,o)}function ee(){this.ba=new sA,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new aA,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function re(){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 ne(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ie(){this.ua=0,this.Wa=new O,this.vb=new O,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new f,this.yc=new l}function se(){this.xb=this.a=0,this.l=new qA,this.ca=new sA,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new v,this.Pb=0,this.wd=new v,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ie,this.ab=0,this.gc=s(4,ne),this.Oc=0}function oe(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new qA,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ae(A,t,e,r,n,i,s){for(A=null==A?0:A[t+0],t=0;t<s;++t)n[i+t]=A+e[r+t]&255,A=n[i+t]}function ce(A,t,e,r,n,i,s){var o;if(null==A)ae(null,null,e,r,n,i,s);else for(o=0;o<s;++o)n[i+o]=A[t+o]+e[r+o]&255}function ue(A,t,e,r,n,i,s){if(null==A)ae(null,null,e,r,n,i,s);else{var o,a=A[t+0],c=a,u=a;for(o=0;o<s;++o)c=u+(a=A[t+o])-c,u=e[r+o]+(-256&c?0>c?0:255:c)&255,c=a,n[i+o]=u}}function le(A,e,n,s){var o=e.width,a=e.o;if(t(null!=A&&null!=e),0>n||0>=s||n+s>a)return null;if(!A.Cc){if(null==A.ga){var c;if(A.ga=new oe,(c=null==A.ga)||(c=e.width*e.o,t(0==A.Gb.length),A.Gb=i(c),A.Uc=0,null==A.Gb?c=0:(A.mb=A.Gb,A.nb=A.Uc,A.rc=null,c=1),c=!c),!c){c=A.ga;var u=A.Fa,l=A.P,h=A.qc,f=A.mb,d=A.nb,g=l+1,p=h-1,w=c.l;if(t(null!=u&&null!=f&&null!=e),pn[0]=null,pn[1]=ae,pn[2]=ce,pn[3]=ue,c.ca=f,c.tb=d,c.c=e.width,c.i=e.height,t(0<c.c&&0<c.i),1>=h)e=0;else if(c.$a=3&u[l+0],c.Z=u[l+0]>>2&3,c.Lc=u[l+0]>>4&3,l=u[l+0]>>6&3,0>c.$a||1<c.$a||4<=c.Z||1<c.Lc||l)e=0;else if(w.put=fA,w.ac=hA,w.bc=dA,w.ma=c,w.width=e.width,w.height=e.height,w.Da=e.Da,w.v=e.v,w.va=e.va,w.j=e.j,w.o=e.o,c.$a)A:{t(1==c.$a),e=EA();t:for(;;){if(null==e){e=0;break A}if(t(null!=c),c.mc=e,e.c=c.c,e.i=c.i,e.l=c.l,e.l.ma=c,e.l.width=c.c,e.l.height=c.i,e.a=0,B(e.m,u,g,p),!LA(c.c,c.i,1,e,null))break t;if(1==e.ab&&3==e.gc[0].hc&&CA(e.s)?(c.ic=1,u=e.c*e.i,e.Ta=null,e.Ua=0,e.V=i(u),e.Ba=0,null==e.V?(e.a=1,e=0):e=1):(c.ic=0,e=SA(e,c.c)),!e)break t;e=1;break A}c.mc=null,e=0}else e=p>=c.c*c.i;c=!e}if(c)return null;1!=A.ga.Lc?A.Ga=0:s=a-n}t(null!=A.ga),t(n+s<=a);A:{if(e=(u=A.ga).c,a=u.l.o,0==u.$a){if(g=A.rc,p=A.Vc,w=A.Fa,l=A.P+1+n*e,h=A.mb,f=A.nb+n*e,t(l<=A.P+A.qc),0!=u.Z)for(t(null!=pn[u.Z]),c=0;c<s;++c)pn[u.Z](g,p,w,l,h,f,e),g=h,p=f,f+=e,l+=e;else for(c=0;c<s;++c)r(h,f,w,l,e),g=h,p=f,f+=e,l+=e;A.rc=g,A.Vc=p}else{if(t(null!=u.mc),e=n+s,t(null!=(c=u.mc)),t(e<=c.i),c.C>=e)e=1;else if(u.ic||pe(),u.ic){u=c.V,g=c.Ba,p=c.c;var m=c.i,y=(w=1,l=c.$/p,h=c.$%p,f=c.m,d=c.s,c.$),v=p*m,b=p*e,Q=d.wc,U=y<b?yA(d,h,l):null;t(y<=v),t(e<=m),t(CA(d));t:for(;;){for(;!f.h&&y<b;){if(h&Q||(U=yA(d,h,l)),t(null!=U),F(f),256>(m=wA(U.G[0],U.H[0],f)))u[g+y]=m,++y,++h>=p&&(h=0,++l<=e&&!(l%16)&&FA(c,l));else{if(!(280>m)){w=0;break t}m=pA(m-256,f);var x,E=wA(U.G[4],U.H[4],f);if(F(f),!(y>=(E=BA(p,E=pA(E,f)))&&v-y>=m)){w=0;break t}for(x=0;x<m;++x)u[g+y+x]=u[g+y+x-E];for(y+=m,h+=m;h>=p;)h-=p,++l<=e&&!(l%16)&&FA(c,l);y<b&&h&Q&&(U=yA(d,h,l))}t(f.h==C(f))}FA(c,l>e?e:l);break t}!w||f.h&&y<v?(w=0,c.a=f.h?5:3):c.$=y,e=w}else e=UA(c,c.V,c.Ba,c.c,c.i,e,IA);if(!e){s=0;break A}}n+s>=a&&(A.Cc=1),s=1}if(!s)return null;if(A.Cc&&(null!=(s=A.ga)&&(s.mc=null),A.ga=null,0<A.Ga))return alert("todo:WebPDequantizeLevels"),null}return A.nb+n*o}function he(A,t,e,r,n,i){for(;0<n--;){var s,o=A,a=t+(e?1:0),c=A,u=t+(e?0:3);for(s=0;s<r;++s){var l=c[u+4*s];255!=l&&(l*=32897,o[a+4*s+0]=o[a+4*s+0]*l>>23,o[a+4*s+1]=o[a+4*s+1]*l>>23,o[a+4*s+2]=o[a+4*s+2]*l>>23)}t+=i}}function fe(A,t,e,r,n){for(;0<r--;){var i;for(i=0;i<e;++i){var s=A[t+2*i+0],o=15&(c=A[t+2*i+1]),a=4369*o,c=(240&c|c>>4)*a>>16;A[t+2*i+0]=(240&s|s>>4)*a>>16&240|(15&s|s<<4)*a>>16>>4&15,A[t+2*i+1]=240&c|o}t+=n}}function de(A,t,e,r,n,i,s,o){var a,c,u=255;for(c=0;c<n;++c){for(a=0;a<r;++a){var l=A[t+a];i[s+4*a]=l,u&=l}t+=e,s+=o}return 255!=u}function ge(A,t,e,r,n){var i;for(i=0;i<n;++i)e[r+i]=A[t+i]>>8}function pe(){br=he,Cr=fe,Qr=de,Fr=ge}function Be(e,r,n){A[e]=function(A,e,i,s,o,a,c,u,l,h,f,d,g,p,B,w,m){var y,v=m-1>>1,b=o[a+0]|c[u+0]<<16,C=l[h+0]|f[d+0]<<16;t(null!=A);var Q=3*b+C+131074>>2;for(r(A[e+0],255&Q,Q>>16,g,p),null!=i&&(Q=3*C+b+131074>>2,r(i[s+0],255&Q,Q>>16,B,w)),y=1;y<=v;++y){var F=o[a+y]|c[u+y]<<16,U=l[h+y]|f[d+y]<<16,x=b+F+C+U+524296,E=x+2*(F+C)>>3;Q=E+b>>1,b=(x=x+2*(b+U)>>3)+F>>1,r(A[e+2*y-1],255&Q,Q>>16,g,p+(2*y-1)*n),r(A[e+2*y-0],255&b,b>>16,g,p+(2*y-0)*n),null!=i&&(Q=x+C>>1,b=E+U>>1,r(i[s+2*y-1],255&Q,Q>>16,B,w+(2*y-1)*n),r(i[s+2*y+0],255&b,b>>16,B,w+(2*y+0)*n)),b=F,C=U}1&m||(Q=3*b+C+131074>>2,r(A[e+m-1],255&Q,Q>>16,g,p+(m-1)*n),null!=i&&(Q=3*C+b+131074>>2,r(i[s+m-1],255&Q,Q>>16,B,w+(m-1)*n)))}}function we(){Bn[Or]=wn,Bn[Tr]=yn,Bn[_r]=mn,Bn[kr]=vn,Bn[Mr]=bn,Bn[Dr]=Cn,Bn[Rr]=Qn,Bn[Kr]=yn,Bn[Vr]=vn,Bn[jr]=bn,Bn[Gr]=Cn}function me(A){return A&~Sn?0>A?0:255:A>>Ln}function ye(A,t){return me((19077*A>>8)+(26149*t>>8)-14234)}function ve(A,t,e){return me((19077*A>>8)-(6419*t>>8)-(13320*e>>8)+8708)}function be(A,t){return me((19077*A>>8)+(33050*t>>8)-17685)}function Ce(A,t,e,r,n){r[n+0]=ye(A,e),r[n+1]=ve(A,t,e),r[n+2]=be(A,t)}function Qe(A,t,e,r,n){r[n+0]=be(A,t),r[n+1]=ve(A,t,e),r[n+2]=ye(A,e)}function Fe(A,t,e,r,n){var i=ve(A,t,e);t=i<<3&224|be(A,t)>>3,r[n+0]=248&ye(A,e)|i>>5,r[n+1]=t}function Ue(A,t,e,r,n){var i=240&be(A,t)|15;r[n+0]=240&ye(A,e)|ve(A,t,e)>>4,r[n+1]=i}function xe(A,t,e,r,n){r[n+0]=255,Ce(A,t,e,r,n+1)}function Ee(A,t,e,r,n){Qe(A,t,e,r,n),r[n+3]=255}function Le(A,t,e,r,n){Ce(A,t,e,r,n),r[n+3]=255}function GA(A,t){return 0>A?0:A>t?t:A}function Se(t,e,r){A[t]=function(A,t,n,i,s,o,a,c,u){for(var l=c+(-2&u)*r;c!=l;)e(A[t+0],n[i+0],s[o+0],a,c),e(A[t+1],n[i+0],s[o+0],a,c+r),t+=2,++i,++o,c+=2*r;1&u&&e(A[t+0],n[i+0],s[o+0],a,c)}}function Ie(A,t,e){return 0==e?0==A?0==t?6:5:0==t?4:0:e}function Ne(A,t,e,r,n){switch(A>>>30){case 3:ir(t,e,r,n,0);break;case 2:sr(t,e,r,n);break;case 1:ar(t,e,r,n)}}function He(A,t){var e,i,s=t.M,o=t.Nb,a=A.oc,c=A.pc+40,u=A.oc,l=A.pc+584,h=A.oc,f=A.pc+600;for(e=0;16>e;++e)a[c+32*e-1]=129;for(e=0;8>e;++e)u[l+32*e-1]=129,h[f+32*e-1]=129;for(0<s?a[c-1-32]=u[l-1-32]=h[f-1-32]=129:(n(a,c-32-1,127,21),n(u,l-32-1,127,9),n(h,f-32-1,127,9)),i=0;i<A.za;++i){var d=t.ya[t.aa+i];if(0<i){for(e=-1;16>e;++e)r(a,c+32*e-4,a,c+32*e+12,4);for(e=-1;8>e;++e)r(u,l+32*e-4,u,l+32*e+4,4),r(h,f+32*e-4,h,f+32*e+4,4)}var g=A.Gd,p=A.Hd+i,B=d.ad,w=d.Hc;if(0<s&&(r(a,c-32,g[p].y,0,16),r(u,l-32,g[p].f,0,8),r(h,f-32,g[p].ea,0,8)),d.Za){var m=a,y=c-32+16;for(0<s&&(i>=A.za-1?n(m,y,g[p].y[15],4):r(m,y,g[p+1].y,0,4)),e=0;4>e;e++)m[y+128+e]=m[y+256+e]=m[y+384+e]=m[y+0+e];for(e=0;16>e;++e,w<<=2)m=a,y=c+kn[e],hn[d.Ob[e]](m,y),Ne(w,B,16*+e,m,y)}else if(m=Ie(i,s,d.Ob[0]),ln[m](a,c),0!=w)for(e=0;16>e;++e,w<<=2)Ne(w,B,16*+e,a,c+kn[e]);for(e=d.Gc,m=Ie(i,s,d.Dd),fn[m](u,l),fn[m](h,f),w=B,m=u,y=l,255&(d=e|0)&&(170&d?or(w,256,m,y):cr(w,256,m,y)),d=h,w=f,255&(e>>=8)&&(170&e?or(B,320,d,w):cr(B,320,d,w)),s<A.Ub-1&&(r(g[p].y,0,a,c+480,16),r(g[p].f,0,u,l+224,8),r(g[p].ea,0,h,f+224,8)),e=8*o*A.B,g=A.sa,p=A.ta+16*i+16*o*A.R,B=A.qa,d=A.ra+8*i+e,w=A.Ha,m=A.Ia+8*i+e,e=0;16>e;++e)r(g,p+e*A.R,a,c+32*e,16);for(e=0;8>e;++e)r(B,d+e*A.B,u,l+32*e,8),r(w,m+e*A.B,h,f+32*e,8)}}function Pe(A,r,n,i,s,o,a,c,u){var l=[0],h=[0],f=0,d=null!=u?u.kd:0,g=null!=u?u:new re;if(null==A||12>n)return 7;g.data=A,g.w=r,g.ha=n,r=[r],n=[n],g.gb=[g.gb];A:{var p=r,w=n,m=g.gb;if(t(null!=A),t(null!=w),t(null!=m),m[0]=0,12<=w[0]&&!e(A,p[0],"RIFF")){if(e(A,p[0]+8,"WEBP")){m=3;break A}var y=N(A,p[0]+4);if(12>y||4294967286<y){m=3;break A}if(d&&y>w[0]-8){m=7;break A}m[0]=y,p[0]+=12,w[0]-=12}m=0}if(0!=m)return m;for(y=0<g.gb[0],n=n[0];;){A:{var b=A;w=r,m=n;var C=l,Q=h,F=p=[0];if((E=f=[f])[0]=0,8>m[0])m=7;else{if(!e(b,w[0],"VP8X")){if(10!=N(b,w[0]+4)){m=3;break A}if(18>m[0]){m=7;break A}var U=N(b,w[0]+8),x=1+I(b,w[0]+12);if(2147483648<=x*(b=1+I(b,w[0]+15))){m=3;break A}null!=F&&(F[0]=U),null!=C&&(C[0]=x),null!=Q&&(Q[0]=b),w[0]+=18,m[0]-=18,E[0]=1}m=0}}if(f=f[0],p=p[0],0!=m)return m;if(w=!!(2&p),!y&&f)return 3;if(null!=o&&(o[0]=!!(16&p)),null!=a&&(a[0]=w),null!=c&&(c[0]=0),a=l[0],p=h[0],f&&w&&null==u){m=0;break}if(4>n){m=7;break}if(y&&f||!y&&!f&&!e(A,r[0],"ALPH")){n=[n],g.na=[g.na],g.P=[g.P],g.Sa=[g.Sa];A:{U=A,m=r,y=n;var E=g.gb;C=g.na,Q=g.P,F=g.Sa;x=22,t(null!=U),t(null!=y),b=m[0];var L=y[0];for(t(null!=C),t(null!=F),C[0]=null,Q[0]=null,F[0]=0;;){if(m[0]=b,y[0]=L,8>L){m=7;break A}var S=N(U,b+4);if(4294967286<S){m=3;break A}var H=8+S+1&-2;if(x+=H,0<E&&x>E){m=3;break A}if(!e(U,b,"VP8 ")||!e(U,b,"VP8L")){m=0;break A}if(L[0]<H){m=7;break A}e(U,b,"ALPH")||(C[0]=U,Q[0]=b+8,F[0]=S),b+=H,L-=H}}if(n=n[0],g.na=g.na[0],g.P=g.P[0],g.Sa=g.Sa[0],0!=m)break}n=[n],g.Ja=[g.Ja],g.xa=[g.xa];A:if(E=A,m=r,y=n,C=g.gb[0],Q=g.Ja,F=g.xa,U=m[0],b=!e(E,U,"VP8 "),x=!e(E,U,"VP8L"),t(null!=E),t(null!=y),t(null!=Q),t(null!=F),8>y[0])m=7;else{if(b||x){if(E=N(E,U+4),12<=C&&E>C-12){m=3;break A}if(d&&E>y[0]-8){m=7;break A}Q[0]=E,m[0]+=8,y[0]-=8,F[0]=x}else F[0]=5<=y[0]&&47==E[U+0]&&!(E[U+4]>>5),Q[0]=y[0];m=0}if(n=n[0],g.Ja=g.Ja[0],g.xa=g.xa[0],r=r[0],0!=m)break;if(4294967286<g.Ja)return 3;if(null==c||w||(c[0]=g.xa?2:1),a=[a],p=[p],g.xa){if(5>n){m=7;break}c=a,d=p,w=o,null==A||5>n?A=0:5<=n&&47==A[r+0]&&!(A[r+4]>>5)?(y=[0],E=[0],C=[0],B(Q=new v,A,r,n),gA(Q,y,E,C)?(null!=c&&(c[0]=y[0]),null!=d&&(d[0]=E[0]),null!=w&&(w[0]=C[0]),A=1):A=0):A=0}else{if(10>n){m=7;break}c=p,null==A||10>n||!WA(A,r+3,n-3)?A=0:(d=A[r+0]|A[r+1]<<8|A[r+2]<<16,w=16383&(A[r+7]<<8|A[r+6]),A=16383&(A[r+9]<<8|A[r+8]),1&d||3<(d>>1&7)||!(d>>4&1)||d>>5>=g.Ja||!w||!A?A=0:(a&&(a[0]=w),c&&(c[0]=A),A=1))}if(!A)return 3;if(a=a[0],p=p[0],f&&(l[0]!=a||h[0]!=p))return 3;null!=u&&(u[0]=g,u.offset=r-u.w,t(4294967286>r-u.w),t(u.offset==u.ha-n));break}return 0==m||7==m&&f&&null==u?(null!=o&&(o[0]|=null!=g.na&&0<g.na.length),null!=i&&(i[0]=a),null!=s&&(s[0]=p),0):m}function Oe(A,t,e){var r=t.width,n=t.height,i=0,s=0,o=r,a=n;if(t.Da=null!=A&&0<A.Da,t.Da&&(o=A.cd,a=A.bd,i=A.v,s=A.j,11>e||(i&=-2,s&=-2),0>i||0>s||0>=o||0>=a||i+o>r||s+a>n))return 0;if(t.v=i,t.j=s,t.va=i+o,t.o=s+a,t.U=o,t.T=a,t.da=null!=A&&0<A.da,t.da){if(!T(o,a,e=[A.ib],i=[A.hb]))return 0;t.ib=e[0],t.hb=i[0]}return t.ob=null!=A&&A.ob,t.Kb=null==A||!A.Sd,t.da&&(t.ob=t.ib<3*r/4&&t.hb<3*n/4,t.Kb=0),1}function Te(A){if(null==A)return 2;if(11>A.S){var t=A.f.RGBA;t.fb+=(A.height-1)*t.A,t.A=-t.A}else t=A.f.kb,A=A.height,t.O+=(A-1)*t.fa,t.fa=-t.fa,t.N+=(A-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(A-1>>1)*t.Db,t.Db=-t.Db,null!=t.F&&(t.J+=(A-1)*t.lb,t.lb=-t.lb);return 0}function _e(A,t,e,r){if(null==r||0>=A||0>=t)return 2;if(null!=e){if(e.Da){var n=e.cd,s=e.bd,o=-2&e.v,a=-2&e.j;if(0>o||0>a||0>=n||0>=s||o+n>A||a+s>t)return 2;A=n,t=s}if(e.da){if(!T(A,t,n=[e.ib],s=[e.hb]))return 2;A=n[0],t=s[0]}}r.width=A,r.height=t;A:{var c=r.width,u=r.height;if(A=r.S,0>=c||0>=u||!(A>=Or&&13>A))A=2;else{if(0>=r.Rd&&null==r.sd){o=s=n=t=0;var l=(a=c*Kn[A])*u;if(11>A||(s=(u+1)/2*(t=(c+1)/2),12==A&&(o=(n=c)*u)),null==(u=i(l+2*s+o))){A=1;break A}r.sd=u,11>A?((c=r.f.RGBA).eb=u,c.fb=0,c.A=a,c.size=l):((c=r.f.kb).y=u,c.O=0,c.fa=a,c.Fd=l,c.f=u,c.N=0+l,c.Ab=t,c.Cd=s,c.ea=u,c.W=0+l+s,c.Db=t,c.Ed=s,12==A&&(c.F=u,c.J=0+l+2*s),c.Tc=o,c.lb=n)}if(t=1,n=r.S,s=r.width,o=r.height,n>=Or&&13>n)if(11>n)A=r.f.RGBA,t&=(a=Math.abs(A.A))*(o-1)+s<=A.size,t&=a>=s*Kn[n],t&=null!=A.eb;else{A=r.f.kb,a=(s+1)/2,l=(o+1)/2,c=Math.abs(A.fa);u=Math.abs(A.Ab);var h=Math.abs(A.Db),f=Math.abs(A.lb),d=f*(o-1)+s;t&=c*(o-1)+s<=A.Fd,t&=u*(l-1)+a<=A.Cd,t=(t&=h*(l-1)+a<=A.Ed)&c>=s&u>=a&h>=a,t&=null!=A.y,t&=null!=A.f,t&=null!=A.ea,12==n&&(t&=f>=s,t&=d<=A.Tc,t&=null!=A.F)}else t=0;A=t?0:2}}return 0!=A||null!=e&&e.fd&&(A=Te(r)),A}var ke=64,Me=[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],De=24,Re=32,Ke=8,Ve=[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];M("Predictor0","PredictorAdd0"),A.Predictor0=function(){return 4278190080},A.Predictor1=function(A){return A},A.Predictor2=function(A,t,e){return t[e+0]},A.Predictor3=function(A,t,e){return t[e+1]},A.Predictor4=function(A,t,e){return t[e-1]},A.Predictor5=function(A,t,e){return R(R(A,t[e+1]),t[e+0])},A.Predictor6=function(A,t,e){return R(A,t[e-1])},A.Predictor7=function(A,t,e){return R(A,t[e+0])},A.Predictor8=function(A,t,e){return R(t[e-1],t[e+0])},A.Predictor9=function(A,t,e){return R(t[e+0],t[e+1])},A.Predictor10=function(A,t,e){return R(R(A,t[e-1]),R(t[e+0],t[e+1]))},A.Predictor11=function(A,t,e){var r=t[e+0];return 0>=j(r>>24&255,A>>24&255,(t=t[e-1])>>24&255)+j(r>>16&255,A>>16&255,t>>16&255)+j(r>>8&255,A>>8&255,t>>8&255)+j(255&r,255&A,255&t)?r:A},A.Predictor12=function(A,t,e){var r=t[e+0];return(K((A>>24&255)+(r>>24&255)-((t=t[e-1])>>24&255))<<24|K((A>>16&255)+(r>>16&255)-(t>>16&255))<<16|K((A>>8&255)+(r>>8&255)-(t>>8&255))<<8|K((255&A)+(255&r)-(255&t)))>>>0},A.Predictor13=function(A,t,e){var r=t[e-1];return(V((A=R(A,t[e+0]))>>24&255,r>>24&255)<<24|V(A>>16&255,r>>16&255)<<16|V(A>>8&255,r>>8&255)<<8|V(255&A,255&r))>>>0};var je=A.PredictorAdd0;A.PredictorAdd1=G,M("Predictor2","PredictorAdd2"),M("Predictor3","PredictorAdd3"),M("Predictor4","PredictorAdd4"),M("Predictor5","PredictorAdd5"),M("Predictor6","PredictorAdd6"),M("Predictor7","PredictorAdd7"),M("Predictor8","PredictorAdd8"),M("Predictor9","PredictorAdd9"),M("Predictor10","PredictorAdd10"),M("Predictor11","PredictorAdd11"),M("Predictor12","PredictorAdd12"),M("Predictor13","PredictorAdd13");var Ge=A.PredictorAdd2;W("ColorIndexInverseTransform","MapARGB","32b",(function(A){return A>>8&255}),(function(A){return A})),W("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(A){return A}),(function(A){return A>>8&255}));var qe,Xe=A.ColorIndexInverseTransform,ze=A.MapARGB,We=A.VP8LColorIndexInverseTransformAlpha,Ye=A.MapAlpha,Je=A.VP8LPredictorsAdd=[];Je.length=16,(A.VP8LPredictors=[]).length=16,(A.VP8LPredictorsAdd_C=[]).length=16,(A.VP8LPredictors_C=[]).length=16;var Ze,$e,Ar,tr,er,rr,nr,ir,sr,or,ar,cr,ur,lr,hr,fr,dr,gr,pr,Br,wr,mr,yr,vr,br,Cr,Qr,Fr,Ur=i(511),xr=i(2041),Er=i(225),Lr=i(767),Sr=0,Ir=xr,Nr=Er,Hr=Lr,Pr=Ur,Or=0,Tr=1,_r=2,kr=3,Mr=4,Dr=5,Rr=6,Kr=7,Vr=8,jr=9,Gr=10,qr=[2,3,7],Xr=[3,3,11],zr=[280,256,256,256,40],Wr=[0,1,1,1,0],Yr=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Jr=[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],Zr=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],$r=8,An=[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],tn=[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],en=null,rn=[[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]],nn=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],sn=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],on=[[[[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]]]],an=[[[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]]],cn=[[[[255,255,255,255,255,255,255,255,255,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]]]],un=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ln=[],hn=[],fn=[],dn=1,gn=2,pn=[],Bn=[];Be("UpsampleRgbLinePair",Ce,3),Be("UpsampleBgrLinePair",Qe,3),Be("UpsampleRgbaLinePair",Le,4),Be("UpsampleBgraLinePair",Ee,4),Be("UpsampleArgbLinePair",xe,4),Be("UpsampleRgba4444LinePair",Ue,2),Be("UpsampleRgb565LinePair",Fe,2);var wn=A.UpsampleRgbLinePair,mn=A.UpsampleBgrLinePair,yn=A.UpsampleRgbaLinePair,vn=A.UpsampleBgraLinePair,bn=A.UpsampleArgbLinePair,Cn=A.UpsampleRgba4444LinePair,Qn=A.UpsampleRgb565LinePair,Fn=16,Un=1<<Fn-1,xn=-227,En=482,Ln=6,Sn=(256<<Ln)-1,In=0,Nn=i(256),Hn=i(256),Pn=i(256),On=i(256),Tn=i(En-xn),_n=i(En-xn);Se("YuvToRgbRow",Ce,3),Se("YuvToBgrRow",Qe,3),Se("YuvToRgbaRow",Le,4),Se("YuvToBgraRow",Ee,4),Se("YuvToArgbRow",xe,4),Se("YuvToRgba4444Row",Ue,2),Se("YuvToRgb565Row",Fe,2);var kn=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Mn=[0,2,8],Dn=[8,7,6,4,4,2,2,2,1,1,1,1],Rn=1;this.WebPDecodeRGBA=function(A,e,r,n,i){var s=Tr,o=new ee,a=new sA;o.ba=a,a.S=s,a.width=[a.width],a.height=[a.height];var c=a.width,u=a.height,l=new oA;if(null==l||null==A)var h=2;else t(null!=l),h=Pe(A,e,r,l.width,l.height,l.Pd,l.Qd,l.format,null);if(0!=h?c=0:(null!=c&&(c[0]=l.width[0]),null!=u&&(u[0]=l.height[0]),c=1),c){a.width=a.width[0],a.height=a.height[0],null!=n&&(n[0]=a.width),null!=i&&(i[0]=a.height);A:{if(n=new qA,(i=new re).data=A,i.w=e,i.ha=r,i.kd=1,e=[0],t(null!=i),(0==(A=Pe(i.data,i.w,i.ha,null,null,null,e,null,i))||7==A)&&e[0]&&(A=4),0==(e=A)){if(t(null!=o),n.data=i.data,n.w=i.w+i.offset,n.ha=i.ha-i.offset,n.put=fA,n.ac=hA,n.bc=dA,n.ma=o,i.xa){if(null==(A=EA())){o=1;break A}if(function(A,e){var r=[0],n=[0],i=[0];t:for(;;){if(null==A)return 0;if(null==e)return A.a=2,0;if(A.l=e,A.a=0,B(A.m,e.data,e.w,e.ha),!gA(A.m,r,n,i)){A.a=3;break t}if(A.xb=gn,e.width=r[0],e.height=n[0],!LA(r[0],n[0],1,A,null))break t;return 1}return t(0!=A.a),0}(A,n)){if(n=0==(e=_e(n.width,n.height,o.Oa,o.ba))){t:{n=A;e:for(;;){if(null==n){n=0;break t}if(t(null!=n.s.yc),t(null!=n.s.Ya),t(0<n.s.Wb),t(null!=(r=n.l)),t(null!=(i=r.ma)),0!=n.xb){if(n.ca=i.ba,n.tb=i.tb,t(null!=n.ca),!Oe(i.Oa,r,kr)){n.a=2;break e}if(!SA(n,r.width))break e;if(r.da)break e;if((r.da||rA(n.ca.S))&&pe(),11>n.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=n.ca.f.kb.F&&pe()),n.Pb&&0<n.s.ua&&null==n.s.vb.X&&!H(n.s.vb,n.s.Wa.Xa)){n.a=1;break e}n.xb=0}if(!UA(n,n.V,n.Ba,n.c,n.i,r.o,bA))break e;i.Dc=n.Ma,n=1;break t}t(0!=n.a),n=0}n=!n}n&&(e=A.a)}else e=A.a}else{if(null==(A=new XA)){o=1;break A}if(A.Fa=i.na,A.P=i.P,A.qc=i.Sa,YA(A,n)){if(0==(e=_e(n.width,n.height,o.Oa,o.ba))){if(A.Aa=0,r=o.Oa,t(null!=(i=A)),null!=r){if(0<(c=0>(c=r.Md)?0:100<c?255:255*c/100)){for(u=l=0;4>u;++u)12>(h=i.pb[u]).lc&&(h.ia=c*Dn[0>h.lc?0:h.lc]>>3),l|=h.ia;l&&(alert("todo:VP8InitRandom"),i.ia=1)}i.Ga=r.Id,100<i.Ga?i.Ga=100:0>i.Ga&&(i.Ga=0)}$A(A,n)||(e=A.a)}}else e=A.a}0==e&&null!=o.Oa&&o.Oa.fd&&(e=Te(o.ba))}o=e}s=0!=o?null:11>s?a.f.RGBA.eb:a.f.kb.y}else s=null;return s};var Kn=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(A,t){for(var e="",r=0;r<4;r++)e+=String.fromCharCode(A[t++]);return e}function u(A,t){return A[t+0]|A[t+1]<<8}function l(A,t){return(A[t+0]|A[t+1]<<8|A[t+2]<<16)>>>0}function h(A,t){return(A[t+0]|A[t+1]<<8|A[t+2]<<16|A[t+3]<<24)>>>0}new a;var f=[0],d=[0],g=[],p=new a,B=A,w=function(A,t){var e={},r=0,n=!1,i=0,s=0;if(e.frames=[],!
|
|
236
|
+
/** @license
|
|
237
|
+
* Copyright (c) 2017 Dominik Homberger
|
|
238
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
239
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
240
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
241
|
+
https://webpjs.appspot.com
|
|
242
|
+
WebPRiffParser dominikhlbg@gmail.com
|
|
243
|
+
*/
|
|
244
|
+
function(A,t,e,r){for(var n=0;n<r;n++)if(A[t+n]!=e.charCodeAt(n))return!0;return!1}(A,t,"RIFF",4)){for(h(A,t+=4),t+=8;t<A.length;){var o=c(A,t),a=h(A,t+=4);t+=4;var f=a+(1&a);switch(o){case"VP8 ":case"VP8L":void 0===e.frames[r]&&(e.frames[r]={}),(p=e.frames[r]).src_off=n?s:t-8,p.src_size=i+a+8,r++,n&&(n=!1,i=0,s=0);break;case"VP8X":(p=e.header={}).feature_flags=A[t];var d=t+4;p.canvas_width=1+l(A,d),d+=3,p.canvas_height=1+l(A,d),d+=3;break;case"ALPH":n=!0,i=f+8,s=t-8;break;case"ANIM":(p=e.header).bgcolor=h(A,t),d=t+4,p.loop_count=u(A,d),d+=2;break;case"ANMF":var g,p;(p=e.frames[r]={}).offset_x=2*l(A,t),t+=3,p.offset_y=2*l(A,t),t+=3,p.width=1+l(A,t),t+=3,p.height=1+l(A,t),t+=3,p.duration=l(A,t),t+=3,g=A[t++],p.dispose=1&g,p.blend=g>>1&1}"ANMF"!=o&&(t+=f)}return e}}(B,0);w.response=B,w.rgbaoutput=!0,w.dataurl=!1;var m=w.header?w.header:null,y=w.frames?w.frames:null;if(m){m.loop_counter=m.loop_count,f=[m.canvas_height],d=[m.canvas_width];for(var v=0;v<y.length&&0!=y[v].blend;v++);}var b=y[0],C=p.WebPDecodeRGBA(B,b.src_off,b.src_size,d,f);b.rgba=C,b.imgwidth=d[0],b.imgheight=f[0];for(var Q=0;Q<d[0]*f[0]*4;Q++)g[Q]=C[Q];return this.width=d,this.height=f,this.data=g,this}!function(A){var t=function(){return!0},e=function(t,e,n,c){var u=4,l=s;switch(c){case A.image_compression.FAST:u=1,l=i;break;case A.image_compression.MEDIUM:u=6,l=o;break;case A.image_compression.SLOW:u=9,l=a}var h=K(t=r(t,e,n,l),{level:u});return A.__addimage__.arrayBufferToBinaryString(h)},r=function(A,t,e,r){for(var n,i,s,o=A.length/t,a=new Uint8Array(A.length+o),c=u(),h=0;h<o;h+=1){if(s=h*t,n=A.subarray(s,s+t),r)a.set(r(n,e,i),s+h);else{for(var f,d=c.length,g=[];f<d;f+=1)g[f]=c[f](n,e,i);var p=l(g.concat());a.set(g[p],s+h)}i=n}return a},n=function(A){var t=Array.apply([],A);return t.unshift(0),t},i=function(A,t){var e,r=[],n=A.length;r[0]=1;for(var i=0;i<n;i+=1)e=A[i-t]||0,r[i+1]=A[i]-e+256&255;return r},s=function(A,t,e){var r,n=[],i=A.length;n[0]=2;for(var s=0;s<i;s+=1)r=e&&e[s]||0,n[s+1]=A[s]-r+256&255;return n},o=function(A,t,e){var r,n,i=[],s=A.length;i[0]=3;for(var o=0;o<s;o+=1)r=A[o-t]||0,n=e&&e[o]||0,i[o+1]=A[o]+256-(r+n>>>1)&255;return i},a=function(A,t,e){var r,n,i,s,o=[],a=A.length;o[0]=4;for(var u=0;u<a;u+=1)r=A[u-t]||0,n=e&&e[u]||0,i=e&&e[u-t]||0,s=c(r,n,i),o[u+1]=A[u]-s+256&255;return o},c=function(A,t,e){if(A===t&&t===e)return A;var r=Math.abs(t-e),n=Math.abs(A-e),i=Math.abs(A+t-e-e);return r<=n&&r<=i?A:n<=i?t:e},u=function(){return[n,i,s,o,a]},l=function(A){var t=A.map((function(A){return A.reduce((function(A,t){return A+Math.abs(t)}),0)}));return t.indexOf(Math.min.apply(null,t))};A.processPNG=function(r,n,i,s){var o,a,c,u,l,h,f,d,g,p,B,w,m,y,v,b=this.decode.FLATE_DECODE,C="";if(this.__addimage__.isArrayBuffer(r)&&(r=new Uint8Array(r)),this.__addimage__.isArrayBufferView(r)){if(r=(c=new Tt(r)).imgData,a=c.bits,o=c.colorSpace,l=c.colors,-1!==[4,6].indexOf(c.colorType)){if(8===c.bits){g=(d=32==c.pixelBitlength?new Uint32Array(c.decodePixels().buffer):16==c.pixelBitlength?new Uint16Array(c.decodePixels().buffer):new Uint8Array(c.decodePixels().buffer)).length,B=new Uint8Array(g*c.colors),p=new Uint8Array(g);var Q,F=c.pixelBitlength-c.bits;for(y=0,v=0;y<g;y++){for(m=d[y],Q=0;Q<F;)B[v++]=m>>>Q&255,Q+=c.bits;p[y]=m>>>Q&255}}if(16===c.bits){g=(d=new Uint32Array(c.decodePixels().buffer)).length,B=new Uint8Array(g*(32/c.pixelBitlength)*c.colors),p=new Uint8Array(g*(32/c.pixelBitlength)),w=c.colors>1,y=0,v=0;for(var U=0;y<g;)m=d[y++],B[v++]=m>>>0&255,w&&(B[v++]=m>>>16&255,m=d[y++],B[v++]=m>>>0&255),p[U++]=m>>>16&255;a=8}s!==A.image_compression.NONE&&t()?(r=e(B,c.width*c.colors,c.colors,s),f=e(p,c.width,1,s)):(r=B,f=p,b=void 0)}if(3===c.colorType&&(o=this.color_spaces.INDEXED,h=c.palette,c.transparency.indexed)){var x=c.transparency.indexed,E=0;for(y=0,g=x.length;y<g;++y)E+=x[y];if((E/=255)===g-1&&-1!==x.indexOf(0))u=[x.indexOf(0)];else if(E!==g){for(d=c.decodePixels(),p=new Uint8Array(d.length),y=0,g=d.length;y<g;y++)p[y]=x[d[y]];f=e(p,c.width,1)}}var L=function(t){var e;switch(t){case A.image_compression.FAST:e=11;break;case A.image_compression.MEDIUM:e=13;break;case A.image_compression.SLOW:e=14;break;default:e=12}return e}(s);return b===this.decode.FLATE_DECODE&&(C="/Predictor "+L+" "),C+="/Colors "+l+" /BitsPerComponent "+a+" /Columns "+c.width,(this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r))&&(r=this.__addimage__.arrayBufferToBinaryString(r)),(f&&this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),{alias:i,data:r,index:n,filter:b,decodeParameters:C,transparency:u,palette:h,sMask:f,predictor:L,width:c.width,height:c.height,bitsPerComponent:a,colorSpace:o}}}}(CA.API),function(A){A.processGIF89A=function(t,e,r,n){var i=new _t(t),s=i.width,o=i.height,a=[];i.decodeAndBlitFrameRGBA(0,a);var c={data:a,width:s,height:o},u=new Mt(100).encode(c,100);return A.processJPEG.call(this,u,e,r,n)},A.processGIF87A=A.processGIF89A}(CA.API),Dt.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,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var A=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(A);for(var t=0;t<A;t++){var e=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:n,green:r,blue:e,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Dt.prototype.parseBGR=function(){this.pos=this.offset;try{var A="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[A]()}catch(A){q.log("bit decode error:"+A)}},Dt.prototype.bit1=function(){var A,t=Math.ceil(this.width/8),e=t%4;for(A=this.height-1;A>=0;A--){for(var r=this.bottom_up?A:this.height-1-A,n=0;n<t;n++)for(var i=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+8*n*4,o=0;o<8&&8*n+o<this.width;o++){var a=this.palette[i>>7-o&1];this.data[s+4*o]=a.blue,this.data[s+4*o+1]=a.green,this.data[s+4*o+2]=a.red,this.data[s+4*o+3]=255}0!==e&&(this.pos+=4-e)}},Dt.prototype.bit4=function(){for(var A=Math.ceil(this.width/2),t=A%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<A;n++){var i=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+2*n*4,o=i>>4,a=15&i,c=this.palette[o];if(this.data[s]=c.blue,this.data[s+1]=c.green,this.data[s+2]=c.red,this.data[s+3]=255,2*n+1>=this.width)break;c=this.palette[a],this.data[s+4]=c.blue,this.data[s+4+1]=c.green,this.data[s+4+2]=c.red,this.data[s+4+3]=255}0!==t&&(this.pos+=4-t)}},Dt.prototype.bit8=function(){for(var A=this.width%4,t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=e*this.width*4+4*r;if(n<this.palette.length){var s=this.palette[n];this.data[i]=s.red,this.data[i+1]=s.green,this.data[i+2]=s.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}0!==A&&(this.pos+=4-A)}},Dt.prototype.bit15=function(){for(var A=this.width%3,t=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(i&t)/t*255|0,o=(i>>5&t)/t*255|0,a=(i>>10&t)/t*255|0,c=i>>15?255:0,u=r*this.width*4+4*n;this.data[u]=a,this.data[u+1]=o,this.data[u+2]=s,this.data[u+3]=c}this.pos+=A}},Dt.prototype.bit16=function(){for(var A=this.width%3,t=parseInt("11111",2),e=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(s&t)/t*255|0,a=(s>>5&e)/e*255|0,c=(s>>11)/t*255|0,u=n*this.width*4+4*i;this.data[u]=c,this.data[u+1]=a,this.data[u+2]=o,this.data[u+3]=255}this.pos+=A}},Dt.prototype.bit24=function(){for(var A=this.height-1;A>=0;A--){for(var t=this.bottom_up?A:this.height-1-A,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*e;this.data[s]=i,this.data[s+1]=n,this.data[s+2]=r,this.data[s+3]=255}this.pos+=this.width%4}},Dt.prototype.bit32=function(){for(var A=this.height-1;A>=0;A--)for(var t=this.bottom_up?A:this.height-1-A,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*e;this.data[o]=i,this.data[o+1]=n,this.data[o+2]=r,this.data[o+3]=s}},Dt.prototype.getData=function(){return this.data},
|
|
245
|
+
/**
|
|
246
|
+
* @license
|
|
247
|
+
* Copyright (c) 2018 Aras Abbasi
|
|
248
|
+
*
|
|
249
|
+
* Licensed under the MIT License.
|
|
250
|
+
* http://opensource.org/licenses/mit-license
|
|
251
|
+
*/
|
|
252
|
+
function(A){A.processBMP=function(t,e,r,n){var i=new Dt(t,!1),s=i.width,o=i.height,a={data:i.getData(),width:s,height:o},c=new Mt(100).encode(a,100);return A.processJPEG.call(this,c,e,r,n)}}(CA.API),Rt.prototype.getData=function(){return this.data},
|
|
253
|
+
/**
|
|
254
|
+
* @license
|
|
255
|
+
* Copyright (c) 2019 Aras Abbasi
|
|
256
|
+
*
|
|
257
|
+
* Licensed under the MIT License.
|
|
258
|
+
* http://opensource.org/licenses/mit-license
|
|
259
|
+
*/
|
|
260
|
+
function(A){A.processWEBP=function(t,e,r,n){var i=new Rt(t),s=i.width,o=i.height,a={data:i.getData(),width:s,height:o},c=new Mt(100).encode(a,100);return A.processJPEG.call(this,c,e,r,n)}}(CA.API),CA.API.processRGBA=function(A,t,e){for(var r=A.data,n=r.length,i=new Uint8Array(n/4*3),s=new Uint8Array(n/4),o=0,a=0,c=0;c<n;c+=4){var u=r[c],l=r[c+1],h=r[c+2],f=r[c+3];i[o++]=u,i[o++]=l,i[o++]=h,s[a++]=f}var d=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:d,index:t,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:A.width,height:A.height}},CA.API.setLanguage=function(A){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={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"}[A]&&(this.internal.languageSettings.languageCode=A,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},It=CA.API,Nt=It.getCharWidthsArray=function(A,t){var r,n,i=(t=t||{}).font||this.internal.getFont(),s=t.fontSize||this.internal.getFontSize(),o=t.charSpace||this.internal.getCharSpace(),a=t.widths?t.widths:i.metadata.Unicode.widths,c=a.fof?a.fof:1,u=t.kerning?t.kerning:i.metadata.Unicode.kerning,l=u.fof?u.fof:1,h=!1!==t.doKerning,f=0,d=A.length,g=0,p=a[0]||c,B=[];for(r=0;r<d;r++)n=A.charCodeAt(r),"function"==typeof i.metadata.widthOfString?B.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(n))+o*(1e3/s)||0)/1e3):(f=h&&"object"===e(u[n])&&!isNaN(parseInt(u[n][g],10))?u[n][g]/l:0,B.push((a[n]||p)/c+f)),g=n;return B},Ht=It.getStringUnitWidth=function(A,t){var e=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),n=t.charSpace||this.internal.getCharSpace();return It.processArabic&&(A=It.processArabic(A)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(A,e,n)/e:Nt.apply(this,arguments).reduce((function(A,t){return A+t}),0)},Pt=function(A,t,e,r){for(var n=[],i=0,s=A.length,o=0;i!==s&&o+t[i]<e;)o+=t[i],i++;n.push(A.slice(0,i));var a=i;for(o=0;i!==s;)o+t[i]>r&&(n.push(A.slice(a,i)),o=0,a=i),o+=t[i],i++;return a!==i&&n.push(A.slice(a,i)),n},Ot=function(A,t,e){e||(e={});var r,n,i,s,o,a,c,u=[],l=[u],h=e.textIndent||0,f=0,d=0,g=A.split(" "),p=Nt.apply(this,[" ",e])[0];if(a=-1===e.lineIndent?g[0].length+2:e.lineIndent||0){var B=Array(a).join(" "),w=[];g.map((function(A){(A=A.split(/\s*\n/)).length>1?w=w.concat(A.map((function(A,t){return(t&&A.length?"\n":"")+A}))):w.push(A[0])})),g=w,a=Ht.apply(this,[B,e])}for(i=0,s=g.length;i<s;i++){var m=0;if(r=g[i],a&&"\n"==r[0]&&(r=r.substr(1),m=1),h+f+(d=(n=Nt.apply(this,[r,e])).reduce((function(A,t){return A+t}),0))>t||m){if(d>t){for(o=Pt.apply(this,[r,n,t-(h+f),t]),u.push(o.shift()),u=[o.pop()];o.length;)l.push([o.shift()]);d=n.slice(r.length-(u[0]?u[0].length:0)).reduce((function(A,t){return A+t}),0)}else u=[r];l.push(u),h=d+a,f=p}else u.push(r),h+=f+d,f=p}return c=a?function(A,t){return(t?B:"")+A.join(" ")}:function(A){return A.join(" ")},l.map(c)},It.splitTextToSize=function(A,t,e){var r,n=(e=e||{}).fontSize||this.internal.getFontSize(),i=function(A){if(A.widths&&A.kerning)return{widths:A.widths,kerning:A.kerning};var t=this.internal.getFont(A.fontName,A.fontStyle),e="Unicode";return t.metadata[e]?{widths:t.metadata[e].widths||{0:1},kerning:t.metadata[e].kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,e);r=Array.isArray(A)?A:String(A).split(/\r?\n/);var s=1*this.internal.scaleFactor*t/n;i.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=e.lineIndent;var o,a,c=[];for(o=0,a=r.length;o<a;o++)c=c.concat(Ot.apply(this,[r[o],s,i]));return c},function(A){A.__fontmetrics__=A.__fontmetrics__||{};for(var t="0123456789abcdef",r="klmnopqrstuvwxyz",n={},i={},s=0;s<16;s++)n[r[s]]=t[s],i[t[s]]=r[s];var o=function(A){return"0x"+parseInt(A,10).toString(16)},a=A.__fontmetrics__.compress=function(A){var t,r,n,s,c=["{"];for(var u in A){if(t=A[u],isNaN(parseInt(u,10))?r="'"+u+"'":(u=parseInt(u,10),r=(r=o(u).slice(2)).slice(0,-1)+i[r.slice(-1)]),"number"==typeof t)t<0?(n=o(t).slice(3),s="-"):(n=o(t).slice(2),s=""),n=s+n.slice(0,-1)+i[n.slice(-1)];else{if("object"!==e(t))throw new Error("Don't know what to do with value type "+e(t)+".");n=a(t)}c.push(r+n)}return c.push("}"),c.join("")},c=A.__fontmetrics__.uncompress=function(A){if("string"!=typeof A)throw new Error("Invalid argument passed to uncompress.");for(var t,e,r,i,s={},o=1,a=s,c=[],u="",l="",h=A.length-1,f=1;f<h;f+=1)"'"==(i=A[f])?t?(r=t.join(""),t=void 0):t=[]:t?t.push(i):"{"==i?(c.push([a,r]),a={},r=void 0):"}"==i?((e=c.pop())[0][e[1]]=a,r=void 0,a=e[0]):"-"==i?o=-1:void 0===r?n.hasOwnProperty(i)?(u+=n[i],r=parseInt(u,16)*o,o=1,u=""):u+=i:n.hasOwnProperty(i)?(l+=n[i],a[r]=parseInt(l,16)*o,o=1,r=void 0,l=""):l+=i;return s},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},l={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},h={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'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":c("{'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:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'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:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'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":c("{'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:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'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":c("{'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":c("{'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}}}")}};A.events.push(["addFont",function(A){var t=A.font,e=h.Unicode[t.postScriptName];e&&(t.metadata.Unicode={},t.metadata.Unicode.widths=e.widths,t.metadata.Unicode.kerning=e.kerning);var r=l.Unicode[t.postScriptName];r&&(t.metadata.Unicode.encoding=r,t.encoding=r.codePages[0])}])}(CA.API),
|
|
261
|
+
/**
|
|
262
|
+
* @license
|
|
263
|
+
* Licensed under the MIT License.
|
|
264
|
+
* http://opensource.org/licenses/mit-license
|
|
265
|
+
*/
|
|
266
|
+
function(A){var t=function(A){for(var t=A.length,e=new Uint8Array(t),r=0;r<t;r++)e[r]=A.charCodeAt(r);return e};A.API.events.push(["addFont",function(e){var r=void 0,n=e.font,i=e.instance;if(!n.isStandardFont){if(void 0===i)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if("string"!=typeof(r=!1===i.existsFileInVFS(n.postScriptName)?i.loadFile(n.postScriptName):i.getFileFromVFS(n.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");!function(e,r){r=/^\x00\x01\x00\x00/.test(r)?t(r):t(Y(r)),e.metadata=A.API.TTFFont.open(r),e.metadata.Unicode=e.metadata.Unicode||{encoding:{},kerning:{},widths:[]},e.metadata.glyIdsUsed=[0]}(n,r)}}])}(CA),CA.API.addSvgAsImage=function(A,t,e,r,n,i,s,o){if(isNaN(t)||isNaN(e))throw q.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(n))throw q.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var a=document.createElement("canvas");a.width=r,a.height=n;var c=a.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,a.width,a.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},l=this;return(j.canvg?Promise.resolve(j.canvg):Promise.resolve().then((function(){return Av}))).catch((function(A){return Promise.reject(new Error("Could not load canvg: "+A))})).then((function(A){return A.default?A.default:A})).then((function(t){return t.fromString(c,A,u)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(A){return A.render(u)})).then((function(){l.addImage(a.toDataURL("image/jpeg",1),t,e,r,n,s,o)}))},CA.API.putTotalPages=function(A){var t,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(A,"g"),e=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(A,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var n=0;n<this.internal.pages[r].length;n++)this.internal.pages[r][n]=this.internal.pages[r][n].replace(t,e);return this},CA.API.viewerPreferences=function(A,t){var r;A=A||{},t=t||!1;var n,i,s,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(o),c=[],u=0,l=0,h=0;function f(A,t){var e,r=!1;for(e=0;e<A.length;e+=1)A[e]===t&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,"reset"===A||!0===t){var d=a.length;for(h=0;h<d;h+=1)r[a[h]].value=r[a[h]].defaultValue,r[a[h]].explicitSet=!1}if("object"===e(A))for(i in A)if(s=A[i],f(a,i)&&void 0!==s){if("boolean"===r[i].type&&"boolean"==typeof s)r[i].value=s;else if("name"===r[i].type&&f(r[i].valueSet,s))r[i].value=s;else if("integer"===r[i].type&&Number.isInteger(s))r[i].value=s;else if("array"===r[i].type){for(u=0;u<s.length;u+=1)if(n=!0,1===s[u].length&&"number"==typeof s[u][0])c.push(String(s[u]-1));else if(s[u].length>1){for(l=0;l<s[u].length;l+=1)"number"!=typeof s[u][l]&&(n=!1);!0===n&&c.push([s[u][0]-1,s[u][1]-1].join(" "))}r[i].value="["+c.join(" ")+"]"}else r[i].value=r[i].defaultValue;r[i].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var A,t=[];for(A in r)!0===r[A].explicitSet&&("name"===r[A].type?t.push("/"+A+" /"+r[A].value):t.push("/"+A+" "+r[A].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},
|
|
267
|
+
/** ====================================================================
|
|
268
|
+
* @license
|
|
269
|
+
* jsPDF XMP metadata plugin
|
|
270
|
+
* Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
|
|
271
|
+
*
|
|
272
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
273
|
+
* a copy of this software and associated documentation files (the
|
|
274
|
+
* "Software"), to deal in the Software without restriction, including
|
|
275
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
276
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
277
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
278
|
+
* the following conditions:
|
|
279
|
+
*
|
|
280
|
+
* The above copyright notice and this permission notice shall be
|
|
281
|
+
* included in all copies or substantial portions of the Software.
|
|
282
|
+
*
|
|
283
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
284
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
285
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
286
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
287
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
288
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
289
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
290
|
+
* ====================================================================
|
|
291
|
+
*/
|
|
292
|
+
function(A){var t=function(){var A='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',t=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),e=unescape(encodeURIComponent(A)),r=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),n=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),i=unescape(encodeURIComponent("</x:xmpmeta>")),s=e.length+r.length+n.length+t.length+i.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+s+" >>"),this.internal.write("stream"),this.internal.write(t+e+r+n+i),this.internal.write("endstream"),this.internal.write("endobj")},e=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};A.addMetadata=function(A,r){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:A,namespaceuri:r||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",e),this.internal.events.subscribe("postPutResources",t)),this}}(CA.API),function(A){var t=A.API,e=t.pdfEscape16=function(A,t){for(var e,r=t.metadata.Unicode.widths,n=["","0","00","000","0000"],i=[""],s=0,o=A.length;s<o;++s){if(e=t.metadata.characterToGlyph(A.charCodeAt(s)),t.metadata.glyIdsUsed.push(e),t.metadata.toUnicode[e]=A.charCodeAt(s),-1==r.indexOf(e)&&(r.push(e),r.push([parseInt(t.metadata.widthOfGlyph(e),10)])),"0"==e)return i.join("");e=e.toString(16),i.push(n[4-e.length],e)}return i.join("")},r=function(A){var t,e,r,n,i,s,o;for(i="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",e=Object.keys(A).sort((function(A,t){return A-t})),r=[],s=0,o=e.length;s<o;s++)t=e[s],r.length>=100&&(i+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==A[t]&&null!==A[t]&&"function"==typeof A[t].toString&&(n=("0000"+A[t].toString(16)).slice(-4),t=("0000"+(+t).toString(16)).slice(-4),r.push("<"+t+"><"+n+">"));return r.length&&(i+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),i+="endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(t){!function(t){var e=t.font,n=t.out,i=t.newObject,s=t.putStream;if(e.metadata instanceof A.API.TTFFont&&"Identity-H"===e.encoding){for(var o=e.metadata.Unicode.widths,a=e.metadata.subset.encode(e.metadata.glyIdsUsed,1),c="",u=0;u<a.length;u++)c+=String.fromCharCode(a[u]);var l=i();s({data:c,addLength1:!0,objectId:l}),n("endobj");var h=i();s({data:r(e.metadata.toUnicode),addLength1:!0,objectId:h}),n("endobj");var f=i();n("<<"),n("/Type /FontDescriptor"),n("/FontName /"+BA(e.fontName)),n("/FontFile2 "+l+" 0 R"),n("/FontBBox "+A.API.PDFObject.convert(e.metadata.bbox)),n("/Flags "+e.metadata.flags),n("/StemV "+e.metadata.stemV),n("/ItalicAngle "+e.metadata.italicAngle),n("/Ascent "+e.metadata.ascender),n("/Descent "+e.metadata.decender),n("/CapHeight "+e.metadata.capHeight),n(">>"),n("endobj");var d=i();n("<<"),n("/Type /Font"),n("/BaseFont /"+BA(e.fontName)),n("/FontDescriptor "+f+" 0 R"),n("/W "+A.API.PDFObject.convert(o)),n("/CIDToGIDMap /Identity"),n("/DW 1000"),n("/Subtype /CIDFontType2"),n("/CIDSystemInfo"),n("<<"),n("/Supplement 0"),n("/Registry (Adobe)"),n("/Ordering ("+e.encoding+")"),n(">>"),n(">>"),n("endobj"),e.objectNumber=i(),n("<<"),n("/Type /Font"),n("/Subtype /Type0"),n("/ToUnicode "+h+" 0 R"),n("/BaseFont /"+BA(e.fontName)),n("/Encoding /"+e.encoding),n("/DescendantFonts ["+d+" 0 R]"),n(">>"),n("endobj"),e.isAlreadyPutted=!0}}(t)}]);t.events.push(["putFont",function(t){!function(t){var e=t.font,n=t.out,i=t.newObject,s=t.putStream;if(e.metadata instanceof A.API.TTFFont&&"WinAnsiEncoding"===e.encoding){for(var o=e.metadata.rawData,a="",c=0;c<o.length;c++)a+=String.fromCharCode(o[c]);var u=i();s({data:a,addLength1:!0,objectId:u}),n("endobj");var l=i();s({data:r(e.metadata.toUnicode),addLength1:!0,objectId:l}),n("endobj");var h=i();n("<<"),n("/Descent "+e.metadata.decender),n("/CapHeight "+e.metadata.capHeight),n("/StemV "+e.metadata.stemV),n("/Type /FontDescriptor"),n("/FontFile2 "+u+" 0 R"),n("/Flags 96"),n("/FontBBox "+A.API.PDFObject.convert(e.metadata.bbox)),n("/FontName /"+BA(e.fontName)),n("/ItalicAngle "+e.metadata.italicAngle),n("/Ascent "+e.metadata.ascender),n(">>"),n("endobj"),e.objectNumber=i();for(var f=0;f<e.metadata.hmtx.widths.length;f++)e.metadata.hmtx.widths[f]=parseInt(e.metadata.hmtx.widths[f]*(1e3/e.metadata.head.unitsPerEm));n("<</Subtype/TrueType/Type/Font/ToUnicode "+l+" 0 R/BaseFont/"+BA(e.fontName)+"/FontDescriptor "+h+" 0 R/Encoding/"+e.encoding+" /FirstChar 29 /LastChar 255 /Widths "+A.API.PDFObject.convert(e.metadata.hmtx.widths)+">>"),n("endobj"),e.isAlreadyPutted=!0}}(t)}]);var n=function(A){var t,r=A.text||"",n=A.x,i=A.y,s=A.options||{},o=A.mutex||{},a=o.pdfEscape,c=o.activeFontKey,u=o.fonts,l=c,h="",f=0,d="",g=u[l].encoding;if("Identity-H"!==u[l].encoding)return{text:r,x:n,y:i,options:s,mutex:o};for(d=r,l=c,Array.isArray(r)&&(d=r[0]),f=0;f<d.length;f+=1)u[l].metadata.hasOwnProperty("cmap")&&(t=u[l].metadata.cmap.unicode.codeMap[d[f].charCodeAt(0)]),t||d[f].charCodeAt(0)<256&&u[l].metadata.hasOwnProperty("Unicode")?h+=d[f]:h+="";var p="";return parseInt(l.slice(1))<14||"WinAnsiEncoding"===g?p=a(h,l).split("").map((function(A){return A.charCodeAt(0).toString(16)})).join(""):"Identity-H"===g&&(p=e(h,u[l])),o.isHex=!0,{text:p,x:n,y:i,options:s,mutex:o}};t.events.push(["postProcessText",function(A){var t=A.text||"",e=[],r={text:t,x:A.x,y:A.y,options:A.options,mutex:A.mutex};if(Array.isArray(t)){var i=0;for(i=0;i<t.length;i+=1)Array.isArray(t[i])&&3===t[i].length?e.push([n(Object.assign({},r,{text:t[i][0]})).text,t[i][1],t[i][2]]):e.push(n(Object.assign({},r,{text:t[i]})).text);A.text=e}else A.text=n(Object.assign({},r,{text:t})).text}])}(CA),
|
|
293
|
+
/**
|
|
294
|
+
* @license
|
|
295
|
+
* jsPDF virtual FileSystem functionality
|
|
296
|
+
*
|
|
297
|
+
* Licensed under the MIT License.
|
|
298
|
+
* http://opensource.org/licenses/mit-license
|
|
299
|
+
*/
|
|
300
|
+
function(A){var t=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};A.existsFileInVFS=function(A){return t.call(this),void 0!==this.internal.vFS[A]},A.addFileToVFS=function(A,e){return t.call(this),this.internal.vFS[A]=e,this},A.getFileFromVFS=function(A){return t.call(this),void 0!==this.internal.vFS[A]?this.internal.vFS[A]:null}}(CA.API),
|
|
301
|
+
/**
|
|
302
|
+
* @license
|
|
303
|
+
* Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
|
|
304
|
+
* MIT License
|
|
305
|
+
*/
|
|
306
|
+
function(A){A.__bidiEngine__=A.prototype.__bidiEngine__=function(A){var e,r,n,i,s,o,a,c=t,u=[[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]],l=[[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]],h={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=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],g=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)$/),p=!1,B=0;this.__bidiEngine__={};var w=function(A){var t=A.charCodeAt(),e=t>>8,r=f[e];return void 0!==r?c[256*r+(255&t)]:252===e||253===e?"AL":g.test(e)?"L":8===e?"R":"N"},m=function(A){for(var t,e=0;e<A.length;e++){if("L"===(t=w(A.charAt(e))))return!1;if("R"===t)return!0}return!1},y=function(A,t,s,o){var a,c,u,l,h=t[o];switch(h){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":p=!1;break;case"N":case"AN":break;case"EN":p&&(h="AN");break;case"AL":p=!0,h="R";break;case"WS":case"BN":h="N";break;case"CS":o<1||o+1>=t.length||"EN"!==(a=s[o-1])&&"AN"!==a||"EN"!==(c=t[o+1])&&"AN"!==c?h="N":p&&(c="AN"),h=c===a?c:"N";break;case"ES":h="EN"===(a=o>0?s[o-1]:"B")&&o+1<t.length&&"EN"===t[o+1]?"EN":"N";break;case"ET":if(o>0&&"EN"===s[o-1]){h="EN";break}if(p){h="N";break}for(u=o+1,l=t.length;u<l&&"ET"===t[u];)u++;h=u<l&&"EN"===t[u]?"EN":"N";break;case"NSM":if(n&&!i){for(l=t.length,u=o+1;u<l&&"NSM"===t[u];)u++;if(u<l){var f=A[o],d=f>=1425&&f<=2303||64286===f;if(a=t[u],d&&("R"===a||"AL"===a)){h="R";break}}}h=o<1||"B"===(a=t[o-1])?"N":s[o-1];break;case"B":p=!1,e=!0,h=B;break;case"S":r=!0,h="N"}return h},v=function(A,t,e){var r=A.split("");return e&&b(r,e,{hiLevel:B}),r.reverse(),t&&t.reverse(),r.join("")},b=function(A,t,n){var i,s,o,a,c,f=-1,d=A.length,g=0,m=[],v=B?l:u,b=[];for(p=!1,e=!1,r=!1,s=0;s<d;s++)b[s]=w(A[s]);for(o=0;o<d;o++){if(c=g,m[o]=y(A,b,m,o),i=240&(g=v[c][h[m[o]]]),g&=15,t[o]=a=v[g][5],i>0)if(16===i){for(s=f;s<o;s++)t[s]=1;f=-1}else f=-1;if(v[g][6])-1===f&&(f=o);else if(f>-1){for(s=f;s<o;s++)t[s]=a;f=-1}"B"===b[o]&&(t[o]=0),n.hiLevel|=a}r&&function(A,t,e){for(var r=0;r<e;r++)if("S"===A[r]){t[r]=B;for(var n=r-1;n>=0&&"WS"===A[n];n--)t[n]=B}}(b,t,d)},C=function(A,t,r,n,i){if(!(i.hiLevel<A)){if(1===A&&1===B&&!e)return t.reverse(),void(r&&r.reverse());for(var s,o,a,c,u=t.length,l=0;l<u;){if(n[l]>=A){for(a=l+1;a<u&&n[a]>=A;)a++;for(c=l,o=a-1;c<o;c++,o--)s=t[c],t[c]=t[o],t[o]=s,r&&(s=r[c],r[c]=r[o],r[o]=s);l=a}l++}}},Q=function(A,t,e){var r=A.split(""),n={hiLevel:B};return e||(e=[]),b(r,e,n),function(A,t,e){if(0!==e.hiLevel&&a)for(var r,n=0;n<A.length;n++)1===t[n]&&(r=d.indexOf(A[n]))>=0&&(A[n]=d[r+1])}(r,e,n),C(2,r,t,e,n),C(1,r,t,e,n),r.join("")};return this.__bidiEngine__.doBidiReorder=function(A,t,e){if(function(A,t){if(t)for(var e=0;e<A.length;e++)t[e]=e;void 0===i&&(i=m(A)),void 0===o&&(o=m(A))}(A,t),n||!s||o)if(n&&s&&i^o)B=i?1:0,A=v(A,t,e);else if(!n&&s&&o)B=i?1:0,A=Q(A,t,e),A=v(A,t);else if(!n||i||s||o){if(n&&!s&&i^o)A=v(A,t),i?(B=0,A=Q(A,t,e)):(B=1,A=Q(A,t,e),A=v(A,t));else if(n&&i&&!s&&o)B=1,A=Q(A,t,e),A=v(A,t);else if(!n&&!s&&i^o){var r=a;i?(B=1,A=Q(A,t,e),B=0,a=!1,A=Q(A,t,e),a=r):(B=0,A=Q(A,t,e),A=v(A,t),B=1,a=!1,A=Q(A,t,e),a=r,A=v(A,t))}}else B=0,A=Q(A,t,e);else B=i?1:0,A=Q(A,t,e);return A},this.__bidiEngine__.setOptions=function(A){A&&(n=A.isInputVisual,s=A.isOutputVisual,i=A.isInputRtl,o=A.isOutputRtl,a=A.isSymmetricSwapping)},this.__bidiEngine__.setOptions(A),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],e=new A.__bidiEngine__({isInputVisual:!0});A.API.events.push(["postProcessText",function(A){var t=A.text;A.x,A.y;var r=A.options||{};A.mutex,r.lang;var n=[];if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,e.setOptions(r),"[object Array]"===Object.prototype.toString.call(t)){var i=0;for(n=[],i=0;i<t.length;i+=1)"[object Array]"===Object.prototype.toString.call(t[i])?n.push([e.doBidiReorder(t[i][0]),t[i][1],t[i][2]]):n.push([e.doBidiReorder(t[i])]);A.text=n}else A.text=e.doBidiReorder(t);e.setOptions({isInputVisual:!0})}])}(CA),CA.API.TTFFont=function(){function A(A){var t;if(this.rawData=A,t=this.contents=new Vt(A),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new ae(this),this.registerTTF()}return A.open=function(t){return new A(t)},A.prototype.parse=function(){return this.directory=new jt(this.contents),this.head=new Xt(this),this.name=new Ae(this),this.cmap=new Wt(this),this.toUnicode={},this.hhea=new Yt(this),this.maxp=new te(this),this.hmtx=new ee(this),this.post=new Zt(this),this.os2=new Jt(this),this.loca=new oe(this),this.glyf=new ne(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]},A.prototype.registerTTF=function(){var A,t,e,r,n;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,e,r,n;for(n=[],t=0,e=(r=this.bbox).length;t<e;t++)A=r[t],n.push(Math.round(A*this.scaleFactor));return n}.call(this),this.stemV=0,this.post.exists?(e=255&(r=this.post.italic_angle),32768&(t=r>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+e)):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=1===(n=this.familyClass)||2===n||3===n||4===n||5===n||7===n,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},A.prototype.characterToGlyph=function(A){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[A]:void 0)||0},A.prototype.widthOfGlyph=function(A){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(A).advance*t},A.prototype.widthOfString=function(A,t,e){var r,n,i,s;for(i=0,n=0,s=(A=""+A).length;0<=s?n<s:n>s;n=0<=s?++n:--n)r=A.charCodeAt(n),i+=this.widthOfGlyph(this.characterToGlyph(r))+e*(1e3/t)||0;return i*(t/1e3)},A.prototype.lineHeight=function(A,t){var e;return null==t&&(t=!1),e=t?this.lineGap:0,(this.ascender+e-this.decender)/1e3*A},A}();var Kt,Vt=function(){function A(A){this.data=null!=A?A:[],this.pos=0,this.length=this.data.length}return A.prototype.readByte=function(){return this.data[this.pos++]},A.prototype.writeByte=function(A){return this.data[this.pos++]=A},A.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},A.prototype.writeUInt32=function(A){return this.writeByte(A>>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A)},A.prototype.readInt32=function(){var A;return(A=this.readUInt32())>=2147483648?A-4294967296:A},A.prototype.writeInt32=function(A){return A<0&&(A+=4294967296),this.writeUInt32(A)},A.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},A.prototype.writeUInt16=function(A){return this.writeByte(A>>8&255),this.writeByte(255&A)},A.prototype.readInt16=function(){var A;return(A=this.readUInt16())>=32768?A-65536:A},A.prototype.writeInt16=function(A){return A<0&&(A+=65536),this.writeUInt16(A)},A.prototype.readString=function(A){var t,e;for(e=[],t=0;0<=A?t<A:t>A;t=0<=A?++t:--t)e[t]=String.fromCharCode(this.readByte());return e.join("")},A.prototype.writeString=function(A){var t,e,r;for(r=[],t=0,e=A.length;0<=e?t<e:t>e;t=0<=e?++t:--t)r.push(this.writeByte(A.charCodeAt(t)));return r},A.prototype.readShort=function(){return this.readInt16()},A.prototype.writeShort=function(A){return this.writeInt16(A)},A.prototype.readLongLong=function(){var A,t,e,r,n,i,s,o;return A=this.readByte(),t=this.readByte(),e=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),s=this.readByte(),o=this.readByte(),128&A?-1*(72057594037927940*(255^A)+281474976710656*(255^t)+1099511627776*(255^e)+4294967296*(255^r)+16777216*(255^n)+65536*(255^i)+256*(255^s)+(255^o)+1):72057594037927940*A+281474976710656*t+1099511627776*e+4294967296*r+16777216*n+65536*i+256*s+o},A.prototype.writeLongLong=function(A){var t,e;return t=Math.floor(A/4294967296),e=4294967295&A,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},A.prototype.readInt=function(){return this.readInt32()},A.prototype.writeInt=function(A){return this.writeInt32(A)},A.prototype.read=function(A){var t,e;for(t=[],e=0;0<=A?e<A:e>A;e=0<=A?++e:--e)t.push(this.readByte());return t},A.prototype.write=function(A){var t,e,r,n;for(n=[],e=0,r=A.length;e<r;e++)t=A[e],n.push(this.writeByte(t));return n},A}(),jt=function(){var A;function t(A){var t,e,r;for(this.scalarType=A.readInt(),this.tableCount=A.readShort(),this.searchRange=A.readShort(),this.entrySelector=A.readShort(),this.rangeShift=A.readShort(),this.tables={},e=0,r=this.tableCount;0<=r?e<r:e>r;e=0<=r?++e:--e)t={tag:A.readString(4),checksum:A.readInt(),offset:A.readInt(),length:A.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var e,r,n,i,s,o,a,c,u,l,h,f,d;for(d in h=Object.keys(t).length,o=Math.log(2),u=16*Math.floor(Math.log(h)/o),i=Math.floor(u/o),c=16*h-u,(r=new Vt).writeInt(this.scalarType),r.writeShort(h),r.writeShort(u),r.writeShort(i),r.writeShort(c),n=16*h,a=r.pos+n,s=null,f=[],t)for(l=t[d],r.writeString(d),r.writeInt(A(l)),r.writeInt(a),r.writeInt(l.length),f=f.concat(l),"head"===d&&(s=a),a+=l.length;a%4;)f.push(0),a++;return r.write(f),e=2981146554-A(r.data),r.pos=s+8,r.writeUInt32(e),r.data},A=function(A){var t,e,r,n;for(A=re.call(A);A.length%4;)A.push(0);for(r=new Vt(A),e=0,t=0,n=A.length;t<n;t=t+=4)e+=r.readUInt32();return 4294967295&e},t}(),Gt={}.hasOwnProperty,qt=function(A,t){for(var e in t)Gt.call(t,e)&&(A[e]=t[e]);function r(){this.constructor=A}return r.prototype=t.prototype,A.prototype=new r,A.__super__=t.prototype,A};Kt=function(){function A(A){var t;this.file=A,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return A.prototype.parse=function(){},A.prototype.encode=function(){},A.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},A}();var Xt=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return qt(A,Kt),A.prototype.tag="head",A.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.revision=A.readInt(),this.checkSumAdjustment=A.readInt(),this.magicNumber=A.readInt(),this.flags=A.readShort(),this.unitsPerEm=A.readShort(),this.created=A.readLongLong(),this.modified=A.readLongLong(),this.xMin=A.readShort(),this.yMin=A.readShort(),this.xMax=A.readShort(),this.yMax=A.readShort(),this.macStyle=A.readShort(),this.lowestRecPPEM=A.readShort(),this.fontDirectionHint=A.readShort(),this.indexToLocFormat=A.readShort(),this.glyphDataFormat=A.readShort()},A.prototype.encode=function(A){var t;return(t=new Vt).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(A),t.writeShort(this.glyphDataFormat),t.data},A}(),zt=function(){function A(A,t){var e,r,n,i,s,o,a,c,u,l,h,f,d,g,p,B,w;switch(this.platformID=A.readUInt16(),this.encodingID=A.readShort(),this.offset=t+A.readInt(),u=A.pos,A.pos=this.offset,this.format=A.readUInt16(),this.length=A.readUInt16(),this.language=A.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(o=0;o<256;++o)this.codeMap[o]=A.readByte();break;case 4:for(h=A.readUInt16(),l=h/2,A.pos+=6,n=function(){var t,e;for(e=[],o=t=0;0<=l?t<l:t>l;o=0<=l?++t:--t)e.push(A.readUInt16());return e}(),A.pos+=2,d=function(){var t,e;for(e=[],o=t=0;0<=l?t<l:t>l;o=0<=l?++t:--t)e.push(A.readUInt16());return e}(),a=function(){var t,e;for(e=[],o=t=0;0<=l?t<l:t>l;o=0<=l?++t:--t)e.push(A.readUInt16());return e}(),c=function(){var t,e;for(e=[],o=t=0;0<=l?t<l:t>l;o=0<=l?++t:--t)e.push(A.readUInt16());return e}(),r=(this.length-A.pos+this.offset)/2,s=function(){var t,e;for(e=[],o=t=0;0<=r?t<r:t>r;o=0<=r?++t:--t)e.push(A.readUInt16());return e}(),o=p=0,w=n.length;p<w;o=++p)for(g=n[o],e=B=f=d[o];f<=g?B<=g:B>=g;e=f<=g?++B:--B)0===c[o]?i=e+a[o]:0!==(i=s[c[o]/2+(e-f)-(l-o)]||0)&&(i+=a[o]),this.codeMap[e]=65535&i}A.pos=u}return A.encode=function(A,t){var e,r,n,i,s,o,a,c,u,l,h,f,d,g,p,B,w,m,y,v,b,C,Q,F,U,x,E,L,S,I,N,H,P,O,T,_,k,M,D,R,K,V,j,G,q,X;switch(L=new Vt,i=Object.keys(A).sort((function(A,t){return A-t})),t){case"macroman":for(d=0,g=function(){var A=[];for(f=0;f<256;++f)A.push(0);return A}(),B={0:0},n={},S=0,P=i.length;S<P;S++)null==B[j=A[r=i[S]]]&&(B[j]=++d),n[r]={old:A[r],new:B[A[r]]},g[r]=B[A[r]];return L.writeUInt16(1),L.writeUInt16(0),L.writeUInt32(12),L.writeUInt16(0),L.writeUInt16(262),L.writeUInt16(0),L.write(g),{charMap:n,subtable:L.data,maxGlyphID:d+1};case"unicode":for(x=[],u=[],w=0,B={},e={},p=a=null,I=0,O=i.length;I<O;I++)null==B[y=A[r=i[I]]]&&(B[y]=++w),e[r]={old:y,new:B[y]},s=B[y]-r,null!=p&&s===a||(p&&u.push(p),x.push(r),a=s),p=r;for(p&&u.push(p),u.push(65535),x.push(65535),F=2*(Q=x.length),C=2*Math.pow(Math.log(Q)/Math.LN2,2),l=Math.log(C/2)/Math.LN2,b=2*Q-C,o=[],v=[],h=[],f=N=0,T=x.length;N<T;f=++N){if(U=x[f],c=u[f],65535===U){o.push(0),v.push(0);break}if(U-(E=e[U].new)>=32768)for(o.push(0),v.push(2*(h.length+Q-f)),r=H=U;U<=c?H<=c:H>=c;r=U<=c?++H:--H)h.push(e[r].new);else o.push(E-U),v.push(0)}for(L.writeUInt16(3),L.writeUInt16(1),L.writeUInt32(12),L.writeUInt16(4),L.writeUInt16(16+8*Q+2*h.length),L.writeUInt16(0),L.writeUInt16(F),L.writeUInt16(C),L.writeUInt16(l),L.writeUInt16(b),K=0,_=u.length;K<_;K++)r=u[K],L.writeUInt16(r);for(L.writeUInt16(0),V=0,k=x.length;V<k;V++)r=x[V],L.writeUInt16(r);for(G=0,M=o.length;G<M;G++)s=o[G],L.writeUInt16(s);for(q=0,D=v.length;q<D;q++)m=v[q],L.writeUInt16(m);for(X=0,R=h.length;X<R;X++)d=h[X],L.writeUInt16(d);return{charMap:e,subtable:L.data,maxGlyphID:w+1}}},A}(),Wt=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return qt(A,Kt),A.prototype.tag="cmap",A.prototype.parse=function(A){var t,e,r;for(A.pos=this.offset,this.version=A.readUInt16(),r=A.readUInt16(),this.tables=[],this.unicode=null,e=0;0<=r?e<r:e>r;e=0<=r?++e:--e)t=new zt(A,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},A.encode=function(A,t){var e,r;return null==t&&(t="macroman"),e=zt.encode(A,t),(r=new Vt).writeUInt16(0),r.writeUInt16(1),e.table=r.data.concat(e.subtable),e},A}(),Yt=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return qt(A,Kt),A.prototype.tag="hhea",A.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.ascender=A.readShort(),this.decender=A.readShort(),this.lineGap=A.readShort(),this.advanceWidthMax=A.readShort(),this.minLeftSideBearing=A.readShort(),this.minRightSideBearing=A.readShort(),this.xMaxExtent=A.readShort(),this.caretSlopeRise=A.readShort(),this.caretSlopeRun=A.readShort(),this.caretOffset=A.readShort(),A.pos+=8,this.metricDataFormat=A.readShort(),this.numberOfMetrics=A.readUInt16()},A}(),Jt=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return qt(A,Kt),A.prototype.tag="OS/2",A.prototype.parse=function(A){if(A.pos=this.offset,this.version=A.readUInt16(),this.averageCharWidth=A.readShort(),this.weightClass=A.readUInt16(),this.widthClass=A.readUInt16(),this.type=A.readShort(),this.ySubscriptXSize=A.readShort(),this.ySubscriptYSize=A.readShort(),this.ySubscriptXOffset=A.readShort(),this.ySubscriptYOffset=A.readShort(),this.ySuperscriptXSize=A.readShort(),this.ySuperscriptYSize=A.readShort(),this.ySuperscriptXOffset=A.readShort(),this.ySuperscriptYOffset=A.readShort(),this.yStrikeoutSize=A.readShort(),this.yStrikeoutPosition=A.readShort(),this.familyClass=A.readShort(),this.panose=function(){var t,e;for(e=[],t=0;t<10;++t)e.push(A.readByte());return e}(),this.charRange=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(A.readInt());return e}(),this.vendorID=A.readString(4),this.selection=A.readShort(),this.firstCharIndex=A.readShort(),this.lastCharIndex=A.readShort(),this.version>0&&(this.ascent=A.readShort(),this.descent=A.readShort(),this.lineGap=A.readShort(),this.winAscent=A.readShort(),this.winDescent=A.readShort(),this.codePageRange=function(){var t,e;for(e=[],t=0;t<2;t=++t)e.push(A.readInt());return e}(),this.version>1))return this.xHeight=A.readShort(),this.capHeight=A.readShort(),this.defaultChar=A.readShort(),this.breakChar=A.readShort(),this.maxContext=A.readShort()},A}(),Zt=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return qt(A,Kt),A.prototype.tag="post",A.prototype.parse=function(A){var t,e,r;switch(A.pos=this.offset,this.format=A.readInt(),this.italicAngle=A.readInt(),this.underlinePosition=A.readShort(),this.underlineThickness=A.readShort(),this.isFixedPitch=A.readInt(),this.minMemType42=A.readInt(),this.maxMemType42=A.readInt(),this.minMemType1=A.readInt(),this.maxMemType1=A.readInt(),this.format){case 65536:case 196608:break;case 131072:var n;for(e=A.readUInt16(),this.glyphNameIndex=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)this.glyphNameIndex.push(A.readUInt16());for(this.names=[],r=[];A.pos<this.offset+this.length;)t=A.readByte(),r.push(this.names.push(A.readString(t)));return r;case 151552:return e=A.readUInt16(),this.offsets=A.read(e);case 262144:return this.map=function(){var t,e,r;for(r=[],n=t=0,e=this.file.maxp.numGlyphs;0<=e?t<e:t>e;n=0<=e?++t:--t)r.push(A.readUInt32());return r}.call(this)}},A}(),$t=function(A,t){this.raw=A,this.length=A.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},Ae=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return qt(A,Kt),A.prototype.tag="name",A.prototype.parse=function(A){var t,e,r,n,i,s,o,a,c,u,l;for(A.pos=this.offset,A.readShort(),t=A.readShort(),s=A.readShort(),e=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)e.push({platformID:A.readShort(),encodingID:A.readShort(),languageID:A.readShort(),nameID:A.readShort(),length:A.readShort(),offset:this.offset+s+A.readShort()});for(o={},n=c=0,u=e.length;c<u;n=++c)r=e[n],A.pos=r.offset,a=A.readString(r.length),i=new $t(a,r),null==o[l=r.nameID]&&(o[l]=[]),o[r.nameID].push(i);this.strings=o,this.copyright=o[0],this.fontFamily=o[1],this.fontSubfamily=o[2],this.uniqueSubfamily=o[3],this.fontName=o[4],this.version=o[5];try{this.postscriptName=o[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(A){this.postscriptName=o[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=o[7],this.manufacturer=o[8],this.designer=o[9],this.description=o[10],this.vendorUrl=o[11],this.designerUrl=o[12],this.license=o[13],this.licenseUrl=o[14],this.preferredFamily=o[15],this.preferredSubfamily=o[17],this.compatibleFull=o[18],this.sampleText=o[19]},A}(),te=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return qt(A,Kt),A.prototype.tag="maxp",A.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.numGlyphs=A.readUInt16(),this.maxPoints=A.readUInt16(),this.maxContours=A.readUInt16(),this.maxCompositePoints=A.readUInt16(),this.maxComponentContours=A.readUInt16(),this.maxZones=A.readUInt16(),this.maxTwilightPoints=A.readUInt16(),this.maxStorage=A.readUInt16(),this.maxFunctionDefs=A.readUInt16(),this.maxInstructionDefs=A.readUInt16(),this.maxStackElements=A.readUInt16(),this.maxSizeOfInstructions=A.readUInt16(),this.maxComponentElements=A.readUInt16(),this.maxComponentDepth=A.readUInt16()},A}(),ee=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return qt(A,Kt),A.prototype.tag="hmtx",A.prototype.parse=function(A){var t,e,r,n,i,s,o;for(A.pos=this.offset,this.metrics=[],t=0,s=this.file.hhea.numberOfMetrics;0<=s?t<s:t>s;t=0<=s?++t:--t)this.metrics.push({advance:A.readUInt16(),lsb:A.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var e,n;for(n=[],t=e=0;0<=r?e<r:e>r;t=0<=r?++e:--e)n.push(A.readInt16());return n}(),this.widths=function(){var A,t,e,r;for(r=[],A=0,t=(e=this.metrics).length;A<t;A++)n=e[A],r.push(n.advance);return r}.call(this),e=this.widths[this.widths.length-1],o=[],t=i=0;0<=r?i<r:i>r;t=0<=r?++i:--i)o.push(this.widths.push(e));return o},A.prototype.forGlyph=function(A){return A in this.metrics?this.metrics[A]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[A-this.metrics.length]}},A}(),re=[].slice,ne=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return qt(A,Kt),A.prototype.tag="glyf",A.prototype.parse=function(){return this.cache={}},A.prototype.glyphFor=function(A){var t,e,r,n,i,s,o,a,c,u;return A in this.cache?this.cache[A]:(n=this.file.loca,t=this.file.contents,e=n.indexOf(A),0===(r=n.lengthOf(A))?this.cache[A]=null:(t.pos=this.offset+e,i=(s=new Vt(t.read(r))).readShort(),a=s.readShort(),u=s.readShort(),o=s.readShort(),c=s.readShort(),this.cache[A]=-1===i?new se(s,a,u,o,c):new ie(s,i,a,u,o,c),this.cache[A]))},A.prototype.encode=function(A,t,e){var r,n,i,s,o;for(i=[],n=[],s=0,o=t.length;s<o;s++)r=A[t[s]],n.push(i.length),r&&(i=i.concat(r.encode(e)));return n.push(i.length),{table:i,offsets:n}},A}(),ie=function(){function A(A,t,e,r,n,i){this.raw=A,this.numberOfContours=t,this.xMin=e,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!1}return A.prototype.encode=function(){return this.raw.data},A}(),se=function(){function A(A,t,e,r,n){var i,s;for(this.raw=A,this.xMin=t,this.yMin=e,this.xMax=r,this.yMax=n,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;s=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&s;)i.pos+=1&s?4:2,128&s?i.pos+=8:64&s?i.pos+=4:8&s&&(i.pos+=2)}return A.prototype.encode=function(){var A,t,e;for(t=new Vt(re.call(this.raw.data)),A=0,e=this.glyphIDs.length;A<e;++A)t.pos=this.glyphOffsets[A];return t.data},A}(),oe=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return qt(A,Kt),A.prototype.tag="loca",A.prototype.parse=function(A){var t,e;return A.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,r;for(r=[],e=0,t=this.length;e<t;e+=2)r.push(2*A.readUInt16());return r}.call(this):function(){var t,r;for(r=[],e=0,t=this.length;e<t;e+=4)r.push(A.readUInt32());return r}.call(this)},A.prototype.indexOf=function(A){return this.offsets[A]},A.prototype.lengthOf=function(A){return this.offsets[A+1]-this.offsets[A]},A.prototype.encode=function(A,t){for(var e=new Uint32Array(this.offsets.length),r=0,n=0,i=0;i<e.length;++i)if(e[i]=r,n<t.length&&t[n]==i){++n,e[i]=r;var s=this.offsets[i],o=this.offsets[i+1]-s;o>0&&(r+=o)}for(var a=new Array(4*e.length),c=0;c<e.length;++c)a[4*c+3]=255&e[c],a[4*c+2]=(65280&e[c])>>8,a[4*c+1]=(16711680&e[c])>>16,a[4*c]=(4278190080&e[c])>>24;return a},A}(),ae=function(){function A(A){this.font=A,this.subset={},this.unicodes={},this.next=33}return A.prototype.generateCmap=function(){var A,t,e,r,n;for(t in r=this.font.cmap.tables[0].codeMap,A={},n=this.subset)e=n[t],A[t]=r[e];return A},A.prototype.glyphsFor=function(A){var t,e,r,n,i,s,o;for(r={},i=0,s=A.length;i<s;i++)r[n=A[i]]=this.font.glyf.glyphFor(n);for(n in t=[],r)(null!=(e=r[n])?e.compound:void 0)&&t.push.apply(t,e.glyphIDs);if(t.length>0)for(n in o=this.glyphsFor(t))e=o[n],r[n]=e;return r},A.prototype.encode=function(A,t){var e,r,n,i,s,o,a,c,u,l,h,f,d,g,p;for(r in e=Wt.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(A),h={0:0},p=e.charMap)h[(o=p[r]).old]=o.new;for(f in l=e.maxGlyphID,i)f in h||(h[f]=l++);return c=function(A){var t,e;for(t in e={},A)e[A[t]]=t;return e}(h),u=Object.keys(c).sort((function(A,t){return A-t})),d=function(){var A,t,e;for(e=[],A=0,t=u.length;A<t;A++)s=u[A],e.push(c[s]);return e}(),n=this.font.glyf.encode(i,d,h),a=this.font.loca.encode(n.offsets,d),g={cmap:this.font.cmap.raw(),glyf:n.table,loca:a,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(t)},this.font.os2.exists&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},A}();CA.API.PDFObject=function(){var A;function t(){}return A=function(A,t){return(Array(t+1).join("0")+A).slice(-t)},t.convert=function(e){var r,n,i,s;if(Array.isArray(e))return"["+function(){var A,n,i;for(i=[],A=0,n=e.length;A<n;A++)r=e[A],i.push(t.convert(r));return i}().join(" ")+"]";if("string"==typeof e)return"/"+e;if(null!=e?e.isString:void 0)return"("+e+")";if(e instanceof Date)return"(D:"+A(e.getUTCFullYear(),4)+A(e.getUTCMonth(),2)+A(e.getUTCDate(),2)+A(e.getUTCHours(),2)+A(e.getUTCMinutes(),2)+A(e.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(e)){for(n in i=["<<"],e)s=e[n],i.push("/"+n+" "+t.convert(s));return i.push(">>"),i.join("\n")}return""+e},t}();
|
|
307
|
+
/**
|
|
308
|
+
* ExportPDF plugin
|
|
309
|
+
*
|
|
310
|
+
* @copyright NEURONET - Rafal Pospiech
|
|
311
|
+
* @author Rafal Pospiech <neuronet.io@gmail.com>
|
|
312
|
+
* @module gantt-schedule-timeline-calendar
|
|
313
|
+
* @link https://github.com/neuronetio/gantt-schedule-timeline-calendar
|
|
314
|
+
* @link https://gantt-schedule-timeline-calendar.neuronet.io
|
|
315
|
+
* @version 3.37.5
|
|
316
|
+
* @released 2024-07-19
|
|
317
|
+
* @license SEE LICENSE IN LICENSE FILE
|
|
318
|
+
*/
|
|
319
|
+
const ce="ExportPDF",ue="config.plugin."+ce;class le{constructor(A,t){this.unsub=[],this.shots=[],this.options=A,this.vido=t,this.state=t.state,this.api=t.api,this.api.plugins[ce]={download:this.download.bind(this),downloadFull:this.downloadFull.bind(this),takeShot:this.takeShot.bind(this),clearPDF:this.clearPDF.bind(this),getPDF:this.getPDF.bind(this)},this.destroy=this.destroy.bind(this),this.state.update(ue,this.options),this.unsub.push(this.state.subscribe(ue,(A=>this.options=A))),this.api.pluginInitialized(ce)}clearPDF(){const A=this.state.get("$data.elements.main"),t=A.offsetWidth,e=A.offsetHeight;this.doc=new CA({unit:"px",format:[t,e],orientation:"l",putOnlyUsedFonts:!0,hotfixes:["px_scaling"]})}takeShot(){return t(this,void 0,void 0,(function*(){void 0===this.doc&&this.clearPDF();const A=this.state.get("$data.elements.main"),t=A.offsetWidth,e=A.offsetHeight,r=yield this.vido.api.plugins.ExportImage.getImage("jpeg");return yield this.doc.addImage(r,"JPEG",0,0,t,e),yield this.doc.addPage(),r}))}getPDF(A="timeline.pdf"){return t(this,void 0,void 0,(function*(){return this.doc.deletePage(this.doc.getNumberOfPages()),this.doc.save(A,{returnPromise:!0})}))}download(A="timeline.pdf"){const t=this.state.get("$data.elements.main"),e=t.offsetWidth,r=t.offsetHeight,n=new CA({unit:"px",format:[e,r],orientation:"l",putOnlyUsedFonts:!0,hotfixes:["px_scaling"]});return new Promise((t=>{this.vido.api.plugins.ExportImage.getImage("jpeg").then((i=>{n.addImage(i,"JPEG",0,0,e,r),n.save(A,{returnPromise:!0}).then((()=>{t(null)}))}))}))}downloadFull(A="timeline.pdf"){return t(this,void 0,void 0,(function*(){const t=this.state.get("$data.elements.main"),e=t.offsetWidth,r=t.offsetHeight,n=new CA({unit:"px",format:[e,r],orientation:"l",putOnlyUsedFonts:!0,hotfixes:["px_scaling"]}),i=this.state.get("$data.chart"),s=Math.ceil(i.time.totalViewDurationPx/i.dimensions.width),o=i.dimensions.width,a=this.state.get("$data.scroll.vertical"),c=Math.ceil(a.absoluteSize/i.dimensions.innerHeight),u=i.dimensions.innerHeight;for(let A=0;A<c;A++)for(let t=0;t<s;t++){this.api.setScrollLeftByPixels(t*o),this.api.setScrollTopByPixels(A*u),yield new Promise((A=>setTimeout(A,1)));const i=yield this.vido.api.plugins.ExportImage.getImage("jpeg");yield n.addImage(i,"JPEG",0,0,e,r),(A<c-1||t<s-1)&&(yield n.addPage())}return n.save(A,{returnPromise:!0})}))}destroy(){this.unsub.forEach((A=>A())),this.vido.api.pluginDestroyed(ce)}}function he(A={}){return function(t){if(!t.api.isPluginInitialized("ExportImage"))throw new Error("ExportImage plugin must be initialized before ExportPDF plugin.");const e=t.state.get(ue);e&&(A=t.api.mergeDeep({},A,e));return new le(A,t).destroy}}var fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},de={exports:{}};de.exports=function(){
|
|
320
|
+
/*! *****************************************************************************
|
|
321
|
+
Copyright (c) Microsoft Corporation.
|
|
322
|
+
|
|
323
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
324
|
+
purpose with or without fee is hereby granted.
|
|
325
|
+
|
|
326
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
327
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
328
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
329
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
330
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
331
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
332
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
333
|
+
***************************************************************************** */
|
|
334
|
+
var A=function(t,e){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,t){A.__proto__=t}||function(A,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(A[e]=t[e])},A(t,e)};function t(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}A(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var e=function(){return e=Object.assign||function(A){for(var t,e=1,r=arguments.length;e<r;e++)for(var n in t=arguments[e])Object.prototype.hasOwnProperty.call(t,n)&&(A[n]=t[n]);return A},e.apply(this,arguments)};function r(A,t,e,r){function n(A){return A instanceof e?A:new e((function(t){t(A)}))}return new(e||(e=Promise))((function(e,i){function s(A){try{a(r.next(A))}catch(A){i(A)}}function o(A){try{a(r.throw(A))}catch(A){i(A)}}function a(A){A.done?e(A.value):n(A.value).then(s,o)}a((r=r.apply(A,t||[])).next())}))}function n(A,t){var e,r,n,i,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(A){return function(t){return a([A,t])}}function a(i){if(e)throw new TypeError("Generator is already executing.");for(;s;)try{if(e=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((n=(n=s.trys).length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){s.label=i[1];break}if(6===i[0]&&s.label<n[1]){s.label=n[1],n=i;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(i);break}n[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(A,s)}catch(A){i=[6,A],r=0}finally{e=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}}function i(A,t,e){if(e||2===arguments.length)for(var r,n=0,i=t.length;n<i;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return A.concat(r||t)}for(var s=function(){function A(A,t,e,r){this.left=A,this.top=t,this.width=e,this.height=r}return A.prototype.add=function(t,e,r,n){return new A(this.left+t,this.top+e,this.width+r,this.height+n)},A.fromClientRect=function(t,e){return new A(e.left+t.windowBounds.left,e.top+t.windowBounds.top,e.width,e.height)},A.fromDOMRectList=function(t,e){var r=Array.from(e).find((function(A){return 0!==A.width}));return r?new A(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A}(),o=function(A,t){return s.fromClientRect(A,t.getBoundingClientRect())},a=function(A){var t=A.body,e=A.documentElement;if(!t||!e)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,e.scrollWidth),Math.max(t.offsetWidth,e.offsetWidth),Math.max(t.clientWidth,e.clientWidth)),n=Math.max(Math.max(t.scrollHeight,e.scrollHeight),Math.max(t.offsetHeight,e.offsetHeight),Math.max(t.clientHeight,e.clientHeight));return new s(0,0,r,n)},c=function(A){for(var t=[],e=0,r=A.length;e<r;){var n=A.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){var i=A.charCodeAt(e++);56320==(64512&i)?t.push(((1023&n)<<10)+(1023&i)+65536):(t.push(n),e--)}else t.push(n)}return t},u=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var e=A.length;if(!e)return"";for(var r=[],n=-1,i="";++n<e;){var s=A[n];s<=65535?r.push(s):(s-=65536,r.push(55296+(s>>10),s%1024+56320)),(n+1===e||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="undefined"==typeof Uint8Array?[]:new Uint8Array(256),f=0;f<l.length;f++)h[l.charCodeAt(f)]=f;for(var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g="undefined"==typeof Uint8Array?[]:new Uint8Array(256),p=0;p<d.length;p++)g[d.charCodeAt(p)]=p;for(var B=function(A){var t,e,r,n,i,s=.75*A.length,o=A.length,a=0;"="===A[A.length-1]&&(s--,"="===A[A.length-2]&&s--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),u=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<o;t+=4)e=g[A.charCodeAt(t)],r=g[A.charCodeAt(t+1)],n=g[A.charCodeAt(t+2)],i=g[A.charCodeAt(t+3)],u[a++]=e<<2|r>>4,u[a++]=(15&r)<<4|n>>2,u[a++]=(3&n)<<6|63&i;return c},w=function(A){for(var t=A.length,e=[],r=0;r<t;r+=2)e.push(A[r+1]<<8|A[r]);return e},m=function(A){for(var t=A.length,e=[],r=0;r<t;r+=4)e.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return e},y=5,v=11,b=2,C=65536>>y,Q=(1<<y)-1,F=C+(1024>>y)+32,U=65536>>v,x=(1<<v-y)-1,E=function(A,t,e){return A.slice?A.slice(t,e):new Uint16Array(Array.prototype.slice.call(A,t,e))},L=function(A,t,e){return A.slice?A.slice(t,e):new Uint32Array(Array.prototype.slice.call(A,t,e))},S=function(A,t){var e=B(A),r=Array.isArray(e)?m(e):new Uint32Array(e),n=Array.isArray(e)?w(e):new Uint16Array(e),i=24,s=E(n,i/2,r[4]/2),o=2===r[5]?E(n,(i+r[4])/2):L(r,Math.ceil((i+r[4])/4));return new I(r[0],r[1],r[2],r[3],s,o)},I=function(){function A(A,t,e,r,n,i){this.initialValue=A,this.errorValue=t,this.highStart=e,this.highValueIndex=r,this.index=n,this.data=i}return A.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return t=((t=this.index[A>>y])<<b)+(A&Q),this.data[t];if(A<=65535)return t=((t=this.index[C+(A-55296>>y)])<<b)+(A&Q),this.data[t];if(A<this.highStart)return t=F-U+(A>>v),t=this.index[t],t+=A>>y&x,t=((t=this.index[t])<<b)+(A&Q),this.data[t];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",H="undefined"==typeof Uint8Array?[]:new Uint8Array(256),P=0;P<N.length;P++)H[N.charCodeAt(P)]=P;var O=50,T=1,_=2,k=3,M=4,D=5,R=7,K=8,V=9,j=10,G=11,q=12,X=13,z=14,W=15,Y=16,J=17,Z=18,$=19,AA=20,tA=21,eA=22,rA=23,nA=24,iA=25,sA=26,oA=27,aA=28,cA=29,uA=30,lA=31,hA=32,fA=33,dA=34,gA=35,pA=36,BA=37,wA=38,mA=39,yA=40,vA=41,bA=42,CA=43,QA=[9001,65288],FA="!",UA="×",xA="÷",EA=S("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),LA=[uA,pA],SA=[T,_,k,D],IA=[j,K],NA=[oA,sA],HA=SA.concat(IA),PA=[wA,mA,yA,dA,gA],OA=[W,X],TA=function(A,t){void 0===t&&(t="strict");var e=[],r=[],n=[];return A.forEach((function(A,i){var s=EA.get(A);if(s>O?(n.push(!0),s-=O):n.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(A))return r.push(i),e.push(Y);if(s===M||s===G){if(0===i)return r.push(i),e.push(uA);var o=e[i-1];return-1===HA.indexOf(o)?(r.push(r[i-1]),e.push(o)):(r.push(i),e.push(uA))}return r.push(i),s===lA?e.push("strict"===t?tA:BA):s===bA||s===cA?e.push(uA):s===CA?A>=131072&&A<=196605||A>=196608&&A<=262141?e.push(BA):e.push(uA):void e.push(s)})),[r,e,n]},_A=function(A,t,e,r){var n=r[e];if(Array.isArray(A)?-1!==A.indexOf(n):A===n)for(var i=e;i<=r.length;){if((a=r[++i])===t)return!0;if(a!==j)break}if(n===j)for(i=e;i>0;){var s=r[--i];if(Array.isArray(A)?-1!==A.indexOf(s):A===s)for(var o=e;o<=r.length;){var a;if((a=r[++o])===t)return!0;if(a!==j)break}if(s!==j)break}return!1},kA=function(A,t){for(var e=A;e>=0;){var r=t[e];if(r!==j)return r;e--}return 0},MA=function(A,t,e,r,n){if(0===e[r])return UA;var i=r-1;if(Array.isArray(n)&&!0===n[i])return UA;var s=i-1,o=i+1,a=t[i],c=s>=0?t[s]:0,u=t[o];if(a===_&&u===k)return UA;if(-1!==SA.indexOf(a))return FA;if(-1!==SA.indexOf(u))return UA;if(-1!==IA.indexOf(u))return UA;if(kA(i,t)===K)return xA;if(EA.get(A[i])===G)return UA;if((a===hA||a===fA)&&EA.get(A[o])===G)return UA;if(a===R||u===R)return UA;if(a===V)return UA;if(-1===[j,X,W].indexOf(a)&&u===V)return UA;if(-1!==[J,Z,$,nA,aA].indexOf(u))return UA;if(kA(i,t)===eA)return UA;if(_A(rA,eA,i,t))return UA;if(_A([J,Z],tA,i,t))return UA;if(_A(q,q,i,t))return UA;if(a===j)return xA;if(a===rA||u===rA)return UA;if(u===Y||a===Y)return xA;if(-1!==[X,W,tA].indexOf(u)||a===z)return UA;if(c===pA&&-1!==OA.indexOf(a))return UA;if(a===aA&&u===pA)return UA;if(u===AA)return UA;if(-1!==LA.indexOf(u)&&a===iA||-1!==LA.indexOf(a)&&u===iA)return UA;if(a===oA&&-1!==[BA,hA,fA].indexOf(u)||-1!==[BA,hA,fA].indexOf(a)&&u===sA)return UA;if(-1!==LA.indexOf(a)&&-1!==NA.indexOf(u)||-1!==NA.indexOf(a)&&-1!==LA.indexOf(u))return UA;if(-1!==[oA,sA].indexOf(a)&&(u===iA||-1!==[eA,W].indexOf(u)&&t[o+1]===iA)||-1!==[eA,W].indexOf(a)&&u===iA||a===iA&&-1!==[iA,aA,nA].indexOf(u))return UA;if(-1!==[iA,aA,nA,J,Z].indexOf(u))for(var l=i;l>=0;){if((h=t[l])===iA)return UA;if(-1===[aA,nA].indexOf(h))break;l--}if(-1!==[oA,sA].indexOf(u))for(l=-1!==[J,Z].indexOf(a)?s:i;l>=0;){var h;if((h=t[l])===iA)return UA;if(-1===[aA,nA].indexOf(h))break;l--}if(wA===a&&-1!==[wA,mA,dA,gA].indexOf(u)||-1!==[mA,dA].indexOf(a)&&-1!==[mA,yA].indexOf(u)||-1!==[yA,gA].indexOf(a)&&u===yA)return UA;if(-1!==PA.indexOf(a)&&-1!==[AA,sA].indexOf(u)||-1!==PA.indexOf(u)&&a===oA)return UA;if(-1!==LA.indexOf(a)&&-1!==LA.indexOf(u))return UA;if(a===nA&&-1!==LA.indexOf(u))return UA;if(-1!==LA.concat(iA).indexOf(a)&&u===eA&&-1===QA.indexOf(A[o])||-1!==LA.concat(iA).indexOf(u)&&a===Z)return UA;if(a===vA&&u===vA){for(var f=e[i],d=1;f>0&&t[--f]===vA;)d++;if(d%2!=0)return UA}return a===hA&&u===fA?UA:xA},DA=function(A,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var e=TA(A,t.lineBreak),r=e[0],n=e[1],i=e[2];"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(n=n.map((function(A){return-1!==[iA,uA,bA].indexOf(A)?BA:A})));var s="keep-all"===t.wordBreak?i.map((function(t,e){return t&&A[e]>=19968&&A[e]<=40959})):void 0;return[r,n,s]},RA=function(){function A(A,t,e,r){this.codePoints=A,this.required=t===FA,this.start=e,this.end=r}return A.prototype.slice=function(){return u.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),KA=function(A,t){var e=c(A),r=DA(e,t),n=r[0],i=r[1],s=r[2],o=e.length,a=0,u=0;return{next:function(){if(u>=o)return{done:!0,value:null};for(var A=UA;u<o&&(A=MA(e,i,n,++u,s))===UA;);if(A!==UA||u===o){var t=new RA(e,A,a,u);return a=u,{value:t,done:!1}}return{done:!0,value:null}}}},VA=1,jA=2,GA=4,qA=8,XA=10,zA=47,WA=92,YA=9,JA=32,ZA=34,$A=61,At=35,tt=36,et=37,rt=39,nt=40,it=41,st=95,ot=45,at=33,ct=60,ut=62,lt=64,ht=91,ft=93,dt=61,gt=123,pt=63,Bt=125,wt=124,mt=126,yt=128,vt=65533,bt=42,Ct=43,Qt=44,Ft=58,Ut=59,xt=46,Et=0,Lt=8,St=11,It=14,Nt=31,Ht=127,Pt=-1,Ot=48,Tt=97,_t=101,kt=102,Mt=117,Dt=122,Rt=65,Kt=69,Vt=70,jt=85,Gt=90,qt=function(A){return A>=Ot&&A<=57},Xt=function(A){return A>=55296&&A<=57343},zt=function(A){return qt(A)||A>=Rt&&A<=Vt||A>=Tt&&A<=kt},Wt=function(A){return A>=Tt&&A<=Dt},Yt=function(A){return A>=Rt&&A<=Gt},Jt=function(A){return Wt(A)||Yt(A)},Zt=function(A){return A>=yt},$t=function(A){return A===XA||A===YA||A===JA},Ae=function(A){return Jt(A)||Zt(A)||A===st},te=function(A){return Ae(A)||qt(A)||A===ot},ee=function(A){return A>=Et&&A<=Lt||A===St||A>=It&&A<=Nt||A===Ht},re=function(A,t){return A===WA&&t!==XA},ne=function(A,t,e){return A===ot?Ae(t)||re(t,e):!!Ae(A)||!(A!==WA||!re(A,t))},ie=function(A,t,e){return A===Ct||A===ot?!!qt(t)||t===xt&&qt(e):qt(A===xt?t:A)},se=function(A){var t=0,e=1;A[t]!==Ct&&A[t]!==ot||(A[t]===ot&&(e=-1),t++);for(var r=[];qt(A[t]);)r.push(A[t++]);var n=r.length?parseInt(u.apply(void 0,r),10):0;A[t]===xt&&t++;for(var i=[];qt(A[t]);)i.push(A[t++]);var s=i.length,o=s?parseInt(u.apply(void 0,i),10):0;A[t]!==Kt&&A[t]!==_t||t++;var a=1;A[t]!==Ct&&A[t]!==ot||(A[t]===ot&&(a=-1),t++);for(var c=[];qt(A[t]);)c.push(A[t++]);var l=c.length?parseInt(u.apply(void 0,c),10):0;return e*(n+o*Math.pow(10,-s))*Math.pow(10,a*l)},oe={type:2},ae={type:3},ce={type:4},ue={type:13},le={type:8},he={type:21},fe={type:9},de={type:10},ge={type:11},pe={type:12},Be={type:14},we={type:23},me={type:1},ye={type:25},ve={type:24},be={type:26},Ce={type:27},Qe={type:28},Fe={type:29},Ue={type:31},xe={type:32},Ee=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(c(A))},A.prototype.read=function(){for(var A=[],t=this.consumeToken();t!==xe;)A.push(t),t=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case ZA:return this.consumeStringToken(ZA);case At:var t=this.peekCodePoint(0),e=this.peekCodePoint(1),r=this.peekCodePoint(2);if(te(t)||re(e,r)){var n=ne(t,e,r)?jA:VA;return{type:5,value:this.consumeName(),flags:n}}break;case tt:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),ue;break;case rt:return this.consumeStringToken(rt);case nt:return oe;case it:return ae;case bt:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),Be;break;case Ct:if(ie(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Qt:return ce;case ot:var i=A,s=this.peekCodePoint(0),o=this.peekCodePoint(1);if(ie(i,s,o))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(ne(i,s,o))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(s===ot&&o===ut)return this.consumeCodePoint(),this.consumeCodePoint(),ve;break;case xt:if(ie(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case zA:if(this.peekCodePoint(0)===bt)for(this.consumeCodePoint();;){var a=this.consumeCodePoint();if(a===bt&&(a=this.consumeCodePoint())===zA)return this.consumeToken();if(a===Pt)return this.consumeToken()}break;case Ft:return be;case Ut:return Ce;case ct:if(this.peekCodePoint(0)===at&&this.peekCodePoint(1)===ot&&this.peekCodePoint(2)===ot)return this.consumeCodePoint(),this.consumeCodePoint(),ye;break;case lt:var c=this.peekCodePoint(0),l=this.peekCodePoint(1),h=this.peekCodePoint(2);if(ne(c,l,h))return{type:7,value:this.consumeName()};break;case ht:return Qe;case WA:if(re(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case ft:return Fe;case dt:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),le;break;case gt:return ge;case Bt:return pe;case Mt:case jt:var f=this.peekCodePoint(0),d=this.peekCodePoint(1);return f!==Ct||!zt(d)&&d!==pt||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case wt:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),fe;if(this.peekCodePoint(0)===wt)return this.consumeCodePoint(),he;break;case mt:if(this.peekCodePoint(0)===$A)return this.consumeCodePoint(),de;break;case Pt:return xe}return $t(A)?(this.consumeWhiteSpace(),Ue):qt(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):Ae(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:u(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return void 0===A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){for(var A=[],t=this.consumeCodePoint();zt(t)&&A.length<6;)A.push(t),t=this.consumeCodePoint();for(var e=!1;t===pt&&A.length<6;)A.push(t),t=this.consumeCodePoint(),e=!0;if(e)return{type:30,start:parseInt(u.apply(void 0,A.map((function(A){return A===pt?Ot:A}))),16),end:parseInt(u.apply(void 0,A.map((function(A){return A===pt?Vt:A}))),16)};var r=parseInt(u.apply(void 0,A),16);if(this.peekCodePoint(0)===ot&&zt(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var n=[];zt(t)&&n.length<6;)n.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(u.apply(void 0,n),16)}}return{type:30,start:r,end:r}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&this.peekCodePoint(0)===nt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===nt?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Pt)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===rt||t===ZA){var e=this.consumeStringToken(this.consumeCodePoint());return 0===e.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Pt||this.peekCodePoint(0)===it)?(this.consumeCodePoint(),{type:22,value:e.value}):(this.consumeBadUrlRemnants(),we)}for(;;){var r=this.consumeCodePoint();if(r===Pt||r===it)return{type:22,value:u.apply(void 0,A)};if($t(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Pt||this.peekCodePoint(0)===it?(this.consumeCodePoint(),{type:22,value:u.apply(void 0,A)}):(this.consumeBadUrlRemnants(),we);if(r===ZA||r===rt||r===nt||ee(r))return this.consumeBadUrlRemnants(),we;if(r===WA){if(!re(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),we;A.push(this.consumeEscapedCodePoint())}else A.push(r)}},A.prototype.consumeWhiteSpace=function(){for(;$t(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===it||A===Pt)return;re(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){for(var t=5e4,e="";A>0;){var r=Math.min(t,A);e+=u.apply(void 0,this._value.splice(0,r)),A-=r}return this._value.shift(),e},A.prototype.consumeStringToken=function(A){for(var t="",e=0;;){var r=this._value[e];if(r===Pt||void 0===r||r===A)return{type:0,value:t+=this.consumeStringSlice(e)};if(r===XA)return this._value.splice(0,e),me;if(r===WA){var n=this._value[e+1];n!==Pt&&void 0!==n&&(n===XA?(t+=this.consumeStringSlice(e),e=-1,this._value.shift()):re(r,n)&&(t+=this.consumeStringSlice(e),t+=u(this.consumeEscapedCodePoint()),e=-1))}e++}},A.prototype.consumeNumber=function(){var A=[],t=GA,e=this.peekCodePoint(0);for(e!==Ct&&e!==ot||A.push(this.consumeCodePoint());qt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());e=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(e===xt&&qt(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=qA;qt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());e=this.peekCodePoint(0),r=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((e===Kt||e===_t)&&((r===Ct||r===ot)&&qt(n)||qt(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=qA;qt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[se(A),t]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),t=A[0],e=A[1],r=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);return ne(r,n,i)?{type:15,number:t,flags:e,unit:this.consumeName()}:r===et?(this.consumeCodePoint(),{type:16,number:t,flags:e}):{type:17,number:t,flags:e}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(zt(A)){for(var t=u(A);zt(this.peekCodePoint(0))&&t.length<6;)t+=u(this.consumeCodePoint());$t(this.peekCodePoint(0))&&this.consumeCodePoint();var e=parseInt(t,16);return 0===e||Xt(e)||e>1114111?vt:e}return A===Pt?vt:A},A.prototype.consumeName=function(){for(var A="";;){var t=this.consumeCodePoint();if(te(t))A+=u(t);else{if(!re(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),A;A+=u(this.consumeEscapedCodePoint())}}},A}(),Le=function(){function A(A){this._tokens=A}return A.create=function(t){var e=new Ee;return e.write(t),new A(e.read())},A.parseValue=function(t){return A.create(t).parseComponentValue()},A.parseValues=function(t){return A.create(t).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var A=this.consumeToken();31===A.type;)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var t=this.consumeComponentValue();do{A=this.consumeToken()}while(31===A.type);if(32===A.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var A=[];;){var t=this.consumeComponentValue();if(32===t.type)return A;A.push(t),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){for(var t={type:A,values:[]},e=this.consumeToken();;){if(32===e.type||ke(e,A))return t;this.reconsumeToken(e),t.values.push(this.consumeComponentValue()),e=this.consumeToken()}},A.prototype.consumeFunction=function(A){for(var t={name:A.value,values:[],type:18};;){var e=this.consumeToken();if(32===e.type||3===e.type)return t;this.reconsumeToken(e),t.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return void 0===A?xe:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),Se=function(A){return 15===A.type},Ie=function(A){return 17===A.type},Ne=function(A){return 20===A.type},He=function(A){return 0===A.type},Pe=function(A,t){return Ne(A)&&A.value===t},Oe=function(A){return 31!==A.type},Te=function(A){return 31!==A.type&&4!==A.type},_e=function(A){var t=[],e=[];return A.forEach((function(A){if(4===A.type){if(0===e.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(e),void(e=[])}31!==A.type&&e.push(A)})),e.length&&t.push(e),t},ke=function(A,t){return 11===t&&12===A.type||28===t&&29===A.type||2===t&&3===A.type},Me=function(A){return 17===A.type||15===A.type},De=function(A){return 16===A.type||Me(A)},Re=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},Ke={type:17,number:0,flags:GA},Ve={type:16,number:50,flags:GA},je={type:16,number:100,flags:GA},Ge=function(A,t,e){var r=A[0],n=A[1];return[qe(r,t),qe(void 0!==n?n:r,e)]},qe=function(A,t){if(16===A.type)return A.number/100*t;if(Se(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},Xe="deg",ze="grad",We="rad",Ye="turn",Je={name:"angle",parse:function(A,t){if(15===t.type)switch(t.unit){case Xe:return Math.PI*t.number/180;case ze:return Math.PI/200*t.number;case We:return t.number;case Ye:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")}},Ze=function(A){return 15===A.type&&(A.unit===Xe||A.unit===ze||A.unit===We||A.unit===Ye)},$e=function(A){switch(A.filter(Ne).map((function(A){return A.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Ke,Ke];case"to top":case"bottom":return Ar(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Ke,je];case"to right":case"left":return Ar(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[je,je];case"to bottom":case"top":return Ar(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[je,Ke];case"to left":case"right":return Ar(270)}return 0},Ar=function(A){return Math.PI*A/180},tr={name:"color",parse:function(A,t){if(18===t.type){var e=cr[t.name];if(void 0===e)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return e(A,t.values)}if(5===t.type){if(3===t.value.length){var r=t.value.substring(0,1),n=t.value.substring(1,2),i=t.value.substring(2,3);return nr(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(4===t.value.length){r=t.value.substring(0,1),n=t.value.substring(1,2),i=t.value.substring(2,3);var s=t.value.substring(3,4);return nr(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(s+s,16)/255)}if(6===t.value.length)return r=t.value.substring(0,2),n=t.value.substring(2,4),i=t.value.substring(4,6),nr(parseInt(r,16),parseInt(n,16),parseInt(i,16),1);if(8===t.value.length)return r=t.value.substring(0,2),n=t.value.substring(2,4),i=t.value.substring(4,6),s=t.value.substring(6,8),nr(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(s,16)/255)}if(20===t.type){var o=lr[t.value.toUpperCase()];if(void 0!==o)return o}return lr.TRANSPARENT}},er=function(A){return!(255&A)},rr=function(A){var t=255&A,e=255&A>>8,r=255&A>>16,n=255&A>>24;return t<255?"rgba("+n+","+r+","+e+","+t/255+")":"rgb("+n+","+r+","+e+")"},nr=function(A,t,e,r){return(A<<24|t<<16|e<<8|Math.round(255*r))>>>0},ir=function(A,t){if(17===A.type)return A.number;if(16===A.type){var e=3===t?1:255;return 3===t?A.number/100*e:Math.round(A.number/100*e)}return 0},sr=function(A,t){var e=t.filter(Te);if(3===e.length){var r=e.map(ir),n=r[0],i=r[1],s=r[2];return nr(n,i,s,1)}if(4===e.length){var o=e.map(ir),a=(n=o[0],i=o[1],s=o[2],o[3]);return nr(n,i,s,a)}return 0};function or(A,t,e){return e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(t-A)*e*6+A:e<.5?t:e<2/3?6*(t-A)*(2/3-e)+A:A}var ar=function(A,t){var e=t.filter(Te),r=e[0],n=e[1],i=e[2],s=e[3],o=(17===r.type?Ar(r.number):Je.parse(A,r))/(2*Math.PI),a=De(n)?n.number/100:0,c=De(i)?i.number/100:0,u=void 0!==s&&De(s)?qe(s,1):1;if(0===a)return nr(255*c,255*c,255*c,1);var l=c<=.5?c*(a+1):c+a-c*a,h=2*c-l,f=or(h,l,o+1/3),d=or(h,l,o),g=or(h,l,o-1/3);return nr(255*f,255*d,255*g,u)},cr={hsl:ar,hsla:ar,rgb:sr,rgba:sr},ur=function(A,t){return tr.parse(A,Le.create(t).parseComponentValue())},lr={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},hr={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,t){return t.map((function(A){if(Ne(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},fr={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},dr=function(A,t){var e=tr.parse(A,t[0]),r=t[1];return r&&De(r)?{color:e,stop:r}:{color:e,stop:null}},gr=function(A,t){var e=A[0],r=A[A.length-1];null===e.stop&&(e.stop=Ke),null===r.stop&&(r.stop=je);for(var n=[],i=0,s=0;s<A.length;s++){var o=A[s].stop;if(null!==o){var a=qe(o,t);a>i?n.push(a):n.push(i),i=a}else n.push(null)}var c=null;for(s=0;s<n.length;s++){var u=n[s];if(null===u)null===c&&(c=s);else if(null!==c){for(var l=s-c,h=(u-n[c-1])/(l+1),f=1;f<=l;f++)n[c+f-1]=h*f;c=null}}return A.map((function(A,e){return{color:A.color,stop:Math.max(Math.min(1,n[e]/t),0)}}))},pr=function(A,t,e){var r=t/2,n=e/2,i=qe(A[0],t)-r,s=n-qe(A[1],e);return(Math.atan2(s,i)+2*Math.PI)%(2*Math.PI)},Br=function(A,t,e){var r="number"==typeof A?A:pr(A,t,e),n=Math.abs(t*Math.sin(r))+Math.abs(e*Math.cos(r)),i=t/2,s=e/2,o=n/2,a=Math.sin(r-Math.PI/2)*o,c=Math.cos(r-Math.PI/2)*o;return[n,i-c,i+c,s-a,s+a]},wr=function(A,t){return Math.sqrt(A*A+t*t)},mr=function(A,t,e,r,n){return[[0,0],[0,t],[A,0],[A,t]].reduce((function(A,t){var i=t[0],s=t[1],o=wr(e-i,r-s);return(n?o<A.optimumDistance:o>A.optimumDistance)?{optimumCorner:t,optimumDistance:o}:A}),{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},yr=function(A,t,e,r,n){var i=0,s=0;switch(A.size){case 0:0===A.shape?i=s=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(e),Math.abs(e-n)):1===A.shape&&(i=Math.min(Math.abs(t),Math.abs(t-r)),s=Math.min(Math.abs(e),Math.abs(e-n)));break;case 2:if(0===A.shape)i=s=Math.min(wr(t,e),wr(t,e-n),wr(t-r,e),wr(t-r,e-n));else if(1===A.shape){var o=Math.min(Math.abs(e),Math.abs(e-n))/Math.min(Math.abs(t),Math.abs(t-r)),a=mr(r,n,t,e,!0),c=a[0],u=a[1];s=o*(i=wr(c-t,(u-e)/o))}break;case 1:0===A.shape?i=s=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(e),Math.abs(e-n)):1===A.shape&&(i=Math.max(Math.abs(t),Math.abs(t-r)),s=Math.max(Math.abs(e),Math.abs(e-n)));break;case 3:if(0===A.shape)i=s=Math.max(wr(t,e),wr(t,e-n),wr(t-r,e),wr(t-r,e-n));else if(1===A.shape){o=Math.max(Math.abs(e),Math.abs(e-n))/Math.max(Math.abs(t),Math.abs(t-r));var l=mr(r,n,t,e,!1);c=l[0],u=l[1],s=o*(i=wr(c-t,(u-e)/o))}}return Array.isArray(A.size)&&(i=qe(A.size[0],r),s=2===A.size.length?qe(A.size[1],n):i),[i,s]},vr=function(A,t){var e=Ar(180),r=[];return _e(t).forEach((function(t,n){if(0===n){var i=t[0];if(20===i.type&&"to"===i.value)return void(e=$e(t));if(Ze(i))return void(e=Je.parse(A,i))}var s=dr(A,t);r.push(s)})),{angle:e,stops:r,type:1}},br=function(A,t){var e=Ar(180),r=[];return _e(t).forEach((function(t,n){if(0===n){var i=t[0];if(20===i.type&&-1!==["top","left","right","bottom"].indexOf(i.value))return void(e=$e(t));if(Ze(i))return void(e=(Je.parse(A,i)+Ar(270))%Ar(360))}var s=dr(A,t);r.push(s)})),{angle:e,stops:r,type:1}},Cr=function(A,t){var e=Ar(180),r=[],n=1,i=0,s=3,o=[];return _e(t).forEach((function(t,e){var i=t[0];if(0===e){if(Ne(i)&&"linear"===i.value)return void(n=1);if(Ne(i)&&"radial"===i.value)return void(n=2)}if(18===i.type)if("from"===i.name){var s=tr.parse(A,i.values[0]);r.push({stop:Ke,color:s})}else if("to"===i.name)s=tr.parse(A,i.values[0]),r.push({stop:je,color:s});else if("color-stop"===i.name){var o=i.values.filter(Te);if(2===o.length){s=tr.parse(A,o[1]);var a=o[0];Ie(a)&&r.push({stop:{type:16,number:100*a.number,flags:a.flags},color:s})}}})),1===n?{angle:(e+Ar(180))%Ar(360),stops:r,type:n}:{size:s,shape:i,stops:r,position:o,type:n}},Qr="closest-side",Fr="farthest-side",Ur="closest-corner",xr="farthest-corner",Er="circle",Lr="ellipse",Sr="cover",Ir="contain",Nr=function(A,t){var e=0,r=3,n=[],i=[];return _e(t).forEach((function(t,s){var o=!0;if(0===s){var a=!1;o=t.reduce((function(A,t){if(a)if(Ne(t))switch(t.value){case"center":return i.push(Ve),A;case"top":case"left":return i.push(Ke),A;case"right":case"bottom":return i.push(je),A}else(De(t)||Me(t))&&i.push(t);else if(Ne(t))switch(t.value){case Er:return e=0,!1;case Lr:return e=1,!1;case"at":return a=!0,!1;case Qr:return r=0,!1;case Sr:case Fr:return r=1,!1;case Ir:case Ur:return r=2,!1;case xr:return r=3,!1}else if(Me(t)||De(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return A}),o)}if(o){var c=dr(A,t);n.push(c)}})),{size:r,shape:e,stops:n,position:i,type:2}},Hr=function(A,t){var e=0,r=3,n=[],i=[];return _e(t).forEach((function(t,s){var o=!0;if(0===s?o=t.reduce((function(A,t){if(Ne(t))switch(t.value){case"center":return i.push(Ve),!1;case"top":case"left":return i.push(Ke),!1;case"right":case"bottom":return i.push(je),!1}else if(De(t)||Me(t))return i.push(t),!1;return A}),o):1===s&&(o=t.reduce((function(A,t){if(Ne(t))switch(t.value){case Er:return e=0,!1;case Lr:return e=1,!1;case Ir:case Qr:return r=0,!1;case Fr:return r=1,!1;case Ur:return r=2,!1;case Sr:case xr:return r=3,!1}else if(Me(t)||De(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return A}),o)),o){var a=dr(A,t);n.push(a)}})),{size:r,shape:e,stops:n,position:i,type:2}},Pr=function(A){return 1===A.type},Or=function(A){return 2===A.type},Tr={name:"image",parse:function(A,t){if(22===t.type){var e={url:t.value,type:0};return A.cache.addImage(t.value),e}if(18===t.type){var r=Mr[t.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(A,t.values)}throw new Error("Unsupported image type "+t.type)}};function _r(A){return!(20===A.type&&"none"===A.value||18===A.type&&!Mr[A.name])}var kr,Mr={"linear-gradient":vr,"-moz-linear-gradient":br,"-ms-linear-gradient":br,"-o-linear-gradient":br,"-webkit-linear-gradient":br,"radial-gradient":Nr,"-moz-radial-gradient":Hr,"-ms-radial-gradient":Hr,"-o-radial-gradient":Hr,"-webkit-radial-gradient":Hr,"-webkit-gradient":Cr},Dr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,t){if(0===t.length)return[];var e=t[0];return 20===e.type&&"none"===e.value?[]:t.filter((function(A){return Te(A)&&_r(A)})).map((function(t){return Tr.parse(A,t)}))}},Rr={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,t){return t.map((function(A){if(Ne(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Kr={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,t){return _e(t).map((function(A){return A.filter(De)})).map(Re)}},Vr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,t){return _e(t).map((function(A){return A.filter(Ne).map((function(A){return A.value})).join(" ")})).map(jr)}},jr=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"}(kr||(kr={}));var Gr,qr={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,t){return _e(t).map((function(A){return A.filter(Xr)}))}},Xr=function(A){return Ne(A)||De(A)},zr=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Wr=zr("top"),Yr=zr("right"),Jr=zr("bottom"),Zr=zr("left"),$r=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,t){return Re(t.filter(De))}}},An=$r("top-left"),tn=$r("top-right"),en=$r("bottom-right"),rn=$r("bottom-left"),nn=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},sn=nn("top"),on=nn("right"),an=nn("bottom"),cn=nn("left"),un=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return Se(t)?t.number:0}}},ln=un("top"),hn=un("right"),fn=un("bottom"),dn=un("left"),gn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},pn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,t){return"rtl"===t?1:0}},Bn={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,t){return t.filter(Ne).reduce((function(A,t){return A|wn(t.value)}),0)}},wn=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},mn={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},yn={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};!function(A){A.NORMAL="normal",A.STRICT="strict"}(Gr||(Gr={}));var vn,bn={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){return"strict"===t?Gr.STRICT:Gr.NORMAL}},Cn={name:"line-height",initialValue:"normal",prefix:!1,type:4},Qn=function(A,t){return Ne(A)&&"normal"===A.value?1.2*t:17===A.type?t*A.number:De(A)?qe(A,t):t},Fn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,t){return 20===t.type&&"none"===t.value?null:Tr.parse(A,t)}},Un={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,t){return"inside"===t?0:1}},xn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},En=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},Ln=En("top"),Sn=En("right"),In=En("bottom"),Nn=En("left"),Hn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,t){return t.filter(Ne).map((function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}}))}},Pn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){return"break-word"===t?"break-word":"normal"}},On=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Tn=On("top"),_n=On("right"),kn=On("bottom"),Mn=On("left"),Dn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,t){switch(t){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Rn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Kn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return 1===t.length&&Pe(t[0],"none")?[]:_e(t).map((function(t){for(var e={color:lr.TRANSPARENT,offsetX:Ke,offsetY:Ke,blur:Ke},r=0,n=0;n<t.length;n++){var i=t[n];Me(i)?(0===r?e.offsetX=i:1===r?e.offsetY=i:e.blur=i,r++):e.color=tr.parse(A,i)}return e}))}},Vn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},jn={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,t){if(20===t.type&&"none"===t.value)return null;if(18===t.type){var e=Xn[t.name];if(void 0===e)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return e(t.values)}return null}},Gn=function(A){var t=A.filter((function(A){return 17===A.type})).map((function(A){return A.number}));return 6===t.length?t:null},qn=function(A){var t=A.filter((function(A){return 17===A.type})).map((function(A){return A.number})),e=t[0],r=t[1];t[2],t[3];var n=t[4],i=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var s=t[12],o=t[13];return t[14],t[15],16===t.length?[e,r,n,i,s,o]:null},Xn={matrix:Gn,matrix3d:qn},zn={type:16,number:50,flags:GA},Wn=[zn,zn],Yn={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,t){var e=t.filter(De);return 2!==e.length?Wn:[e[0],e[1]]}},Jn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"hidden":return 1;case"collapse":return 2;default:return 0}}};!function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"}(vn||(vn={}));for(var Zn={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"break-all":return vn.BREAK_ALL;case"keep-all":return vn.KEEP_ALL;default:return vn.NORMAL}}},$n={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,t){if(20===t.type)return{auto:!0,order:0};if(Ie(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},Ai={name:"time",parse:function(A,t){if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},ti={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,t){return Ie(t)?t.number:1}},ei={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ri={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,t){return t.filter(Ne).map((function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(A){return 0!==A}))}},ni={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,t){var e=[],r=[];return t.forEach((function(A){switch(A.type){case 20:case 0:e.push(A.value);break;case 17:e.push(A.number.toString());break;case 4:r.push(e.join(" ")),e.length=0}})),e.length&&r.push(e.join(" ")),r.map((function(A){return-1===A.indexOf(" ")?A:"'"+A+"'"}))}},ii={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},si={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,t){return Ie(t)?t.number:Ne(t)&&"bold"===t.value?700:400}},oi={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return t.filter(Ne).map((function(A){return A.value}))}},ai={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},ci=function(A,t){return!!(A&t)},ui={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,t){if(0===t.length)return[];var e=t[0];return 20===e.type&&"none"===e.value?[]:t}},li={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(0===t.length)return null;var e=t[0];if(20===e.type&&"none"===e.value)return null;for(var r=[],n=t.filter(Oe),i=0;i<n.length;i++){var s=n[i],o=n[i+1];if(20===s.type){var a=o&&Ie(o)?o.number:1;r.push({counter:s.value,increment:a})}}return r}},hi={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(0===t.length)return[];for(var e=[],r=t.filter(Oe),n=0;n<r.length;n++){var i=r[n],s=r[n+1];if(Ne(i)&&"none"!==i.value){var o=s&&Ie(s)?s.number:0;e.push({counter:i.value,reset:o})}}return e}},fi={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,t){return t.filter(Se).map((function(t){return Ai.parse(A,t)}))}},di={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(0===t.length)return null;var e=t[0];if(20===e.type&&"none"===e.value)return null;var r=[],n=t.filter(He);if(n.length%2!=0)return null;for(var i=0;i<n.length;i+=2){var s=n[i].value,o=n[i+1].value;r.push({open:s,close:o})}return r}},gi=function(A,t,e){if(!A)return"";var r=A[Math.min(t,A.length-1)];return r?e?r.open:r.close:""},pi={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return 1===t.length&&Pe(t[0],"none")?[]:_e(t).map((function(t){for(var e={color:255,offsetX:Ke,offsetY:Ke,blur:Ke,spread:Ke,inset:!1},r=0,n=0;n<t.length;n++){var i=t[n];Pe(i,"inset")?e.inset=!0:Me(i)?(0===r?e.offsetX=i:1===r?e.offsetY=i:2===r?e.blur=i:e.spread=i,r++):e.color=tr.parse(A,i)}return e}))}},Bi={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,t){var e=[0,1,2],r=[];return t.filter(Ne).forEach((function(A){switch(A.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2)}})),e.forEach((function(A){-1===r.indexOf(A)&&r.push(A)})),r}},wi={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},mi={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return Se(t)?t.number:0}},yi=function(){function A(A,t){var e,r;this.animationDuration=Ci(A,fi,t.animationDuration),this.backgroundClip=Ci(A,hr,t.backgroundClip),this.backgroundColor=Ci(A,fr,t.backgroundColor),this.backgroundImage=Ci(A,Dr,t.backgroundImage),this.backgroundOrigin=Ci(A,Rr,t.backgroundOrigin),this.backgroundPosition=Ci(A,Kr,t.backgroundPosition),this.backgroundRepeat=Ci(A,Vr,t.backgroundRepeat),this.backgroundSize=Ci(A,qr,t.backgroundSize),this.borderTopColor=Ci(A,Wr,t.borderTopColor),this.borderRightColor=Ci(A,Yr,t.borderRightColor),this.borderBottomColor=Ci(A,Jr,t.borderBottomColor),this.borderLeftColor=Ci(A,Zr,t.borderLeftColor),this.borderTopLeftRadius=Ci(A,An,t.borderTopLeftRadius),this.borderTopRightRadius=Ci(A,tn,t.borderTopRightRadius),this.borderBottomRightRadius=Ci(A,en,t.borderBottomRightRadius),this.borderBottomLeftRadius=Ci(A,rn,t.borderBottomLeftRadius),this.borderTopStyle=Ci(A,sn,t.borderTopStyle),this.borderRightStyle=Ci(A,on,t.borderRightStyle),this.borderBottomStyle=Ci(A,an,t.borderBottomStyle),this.borderLeftStyle=Ci(A,cn,t.borderLeftStyle),this.borderTopWidth=Ci(A,ln,t.borderTopWidth),this.borderRightWidth=Ci(A,hn,t.borderRightWidth),this.borderBottomWidth=Ci(A,fn,t.borderBottomWidth),this.borderLeftWidth=Ci(A,dn,t.borderLeftWidth),this.boxShadow=Ci(A,pi,t.boxShadow),this.color=Ci(A,gn,t.color),this.direction=Ci(A,pn,t.direction),this.display=Ci(A,Bn,t.display),this.float=Ci(A,mn,t.cssFloat),this.fontFamily=Ci(A,ni,t.fontFamily),this.fontSize=Ci(A,ii,t.fontSize),this.fontStyle=Ci(A,ai,t.fontStyle),this.fontVariant=Ci(A,oi,t.fontVariant),this.fontWeight=Ci(A,si,t.fontWeight),this.letterSpacing=Ci(A,yn,t.letterSpacing),this.lineBreak=Ci(A,bn,t.lineBreak),this.lineHeight=Ci(A,Cn,t.lineHeight),this.listStyleImage=Ci(A,Fn,t.listStyleImage),this.listStylePosition=Ci(A,Un,t.listStylePosition),this.listStyleType=Ci(A,xn,t.listStyleType),this.marginTop=Ci(A,Ln,t.marginTop),this.marginRight=Ci(A,Sn,t.marginRight),this.marginBottom=Ci(A,In,t.marginBottom),this.marginLeft=Ci(A,Nn,t.marginLeft),this.opacity=Ci(A,ti,t.opacity);var n=Ci(A,Hn,t.overflow);this.overflowX=n[0],this.overflowY=n[n.length>1?1:0],this.overflowWrap=Ci(A,Pn,t.overflowWrap),this.paddingTop=Ci(A,Tn,t.paddingTop),this.paddingRight=Ci(A,_n,t.paddingRight),this.paddingBottom=Ci(A,kn,t.paddingBottom),this.paddingLeft=Ci(A,Mn,t.paddingLeft),this.paintOrder=Ci(A,Bi,t.paintOrder),this.position=Ci(A,Rn,t.position),this.textAlign=Ci(A,Dn,t.textAlign),this.textDecorationColor=Ci(A,ei,null!==(e=t.textDecorationColor)&&void 0!==e?e:t.color),this.textDecorationLine=Ci(A,ri,null!==(r=t.textDecorationLine)&&void 0!==r?r:t.textDecoration),this.textShadow=Ci(A,Kn,t.textShadow),this.textTransform=Ci(A,Vn,t.textTransform),this.transform=Ci(A,jn,t.transform),this.transformOrigin=Ci(A,Yn,t.transformOrigin),this.visibility=Ci(A,Jn,t.visibility),this.webkitTextStrokeColor=Ci(A,wi,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ci(A,mi,t.webkitTextStrokeWidth),this.wordBreak=Ci(A,Zn,t.wordBreak),this.zIndex=Ci(A,$n,t.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},A.prototype.isTransparent=function(){return er(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return 0!==this.position},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return 0!==this.float},A.prototype.isInlineLevel=function(){return ci(this.display,4)||ci(this.display,33554432)||ci(this.display,268435456)||ci(this.display,536870912)||ci(this.display,67108864)||ci(this.display,134217728)},A}(),vi=function(){function A(A,t){this.content=Ci(A,ui,t.content),this.quotes=Ci(A,di,t.quotes)}return A}(),bi=function(){function A(A,t){this.counterIncrement=Ci(A,li,t.counterIncrement),this.counterReset=Ci(A,hi,t.counterReset)}return A}(),Ci=function(A,t,e){var r=new Ee,n=null!=e?e.toString():t.initialValue;r.write(n);var i=new Le(r.read());switch(t.type){case 2:var s=i.parseComponentValue();return t.parse(A,Ne(s)?s.value:t.initialValue);case 0:return t.parse(A,i.parseComponentValue());case 1:return t.parse(A,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return Je.parse(A,i.parseComponentValue());case"color":return tr.parse(A,i.parseComponentValue());case"image":return Tr.parse(A,i.parseComponentValue());case"length":var o=i.parseComponentValue();return Me(o)?o:Ke;case"length-percentage":var a=i.parseComponentValue();return De(a)?a:Ke;case"time":return Ai.parse(A,i.parseComponentValue())}}},Qi="data-html2canvas-debug",Fi=function(A){switch(A.getAttribute(Qi)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Ui=function(A,t){var e=Fi(A);return 1===e||t===e},xi=function(){function A(A,t){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Ui(t,3),this.styles=new yi(A,window.getComputedStyle(t,null)),go(t)&&(this.styles.animationDuration.some((function(A){return A>0}))&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=o(this.context,t),Ui(t,4)&&(this.flags|=16)}return A}(),Ei="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Li="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Si="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Ii=0;Ii<Li.length;Ii++)Si[Li.charCodeAt(Ii)]=Ii;for(var Ni=function(A){var t,e,r,n,i,s=.75*A.length,o=A.length,a=0;"="===A[A.length-1]&&(s--,"="===A[A.length-2]&&s--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),u=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<o;t+=4)e=Si[A.charCodeAt(t)],r=Si[A.charCodeAt(t+1)],n=Si[A.charCodeAt(t+2)],i=Si[A.charCodeAt(t+3)],u[a++]=e<<2|r>>4,u[a++]=(15&r)<<4|n>>2,u[a++]=(3&n)<<6|63&i;return c},Hi=function(A){for(var t=A.length,e=[],r=0;r<t;r+=2)e.push(A[r+1]<<8|A[r]);return e},Pi=function(A){for(var t=A.length,e=[],r=0;r<t;r+=4)e.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return e},Oi=5,Ti=11,_i=2,ki=65536>>Oi,Mi=(1<<Oi)-1,Di=ki+(1024>>Oi)+32,Ri=65536>>Ti,Ki=(1<<Ti-Oi)-1,Vi=function(A,t,e){return A.slice?A.slice(t,e):new Uint16Array(Array.prototype.slice.call(A,t,e))},ji=function(A,t,e){return A.slice?A.slice(t,e):new Uint32Array(Array.prototype.slice.call(A,t,e))},Gi=function(A,t){var e=Ni(A),r=Array.isArray(e)?Pi(e):new Uint32Array(e),n=Array.isArray(e)?Hi(e):new Uint16Array(e),i=24,s=Vi(n,i/2,r[4]/2),o=2===r[5]?Vi(n,(i+r[4])/2):ji(r,Math.ceil((i+r[4])/4));return new qi(r[0],r[1],r[2],r[3],s,o)},qi=function(){function A(A,t,e,r,n,i){this.initialValue=A,this.errorValue=t,this.highStart=e,this.highValueIndex=r,this.index=n,this.data=i}return A.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return t=((t=this.index[A>>Oi])<<_i)+(A&Mi),this.data[t];if(A<=65535)return t=((t=this.index[ki+(A-55296>>Oi)])<<_i)+(A&Mi),this.data[t];if(A<this.highStart)return t=Di-Ri+(A>>Ti),t=this.index[t],t+=A>>Oi&Ki,t=((t=this.index[t])<<_i)+(A&Mi),this.data[t];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),Xi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zi="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Wi=0;Wi<Xi.length;Wi++)zi[Xi.charCodeAt(Wi)]=Wi;var Yi,Ji=1,Zi=2,$i=3,As=4,ts=5,es=7,rs=8,ns=9,is=10,ss=11,os=12,as=13,cs=14,us=15,ls=function(A){for(var t=[],e=0,r=A.length;e<r;){var n=A.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){var i=A.charCodeAt(e++);56320==(64512&i)?t.push(((1023&n)<<10)+(1023&i)+65536):(t.push(n),e--)}else t.push(n)}return t},hs=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var e=A.length;if(!e)return"";for(var r=[],n=-1,i="";++n<e;){var s=A[n];s<=65535?r.push(s):(s-=65536,r.push(55296+(s>>10),s%1024+56320)),(n+1===e||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},fs=Gi(Ei),ds="×",gs="÷",ps=function(A){return fs.get(A)},Bs=function(A,t,e){var r=e-2,n=t[r],i=t[e-1],s=t[e];if(i===Zi&&s===$i)return ds;if(i===Zi||i===$i||i===As)return gs;if(s===Zi||s===$i||s===As)return gs;if(i===rs&&-1!==[rs,ns,ss,os].indexOf(s))return ds;if(!(i!==ss&&i!==ns||s!==ns&&s!==is))return ds;if((i===os||i===is)&&s===is)return ds;if(s===as||s===ts)return ds;if(s===es)return ds;if(i===Ji)return ds;if(i===as&&s===cs){for(;n===ts;)n=t[--r];if(n===cs)return ds}if(i===us&&s===us){for(var o=0;n===us;)o++,n=t[--r];if(o%2==0)return ds}return gs},ws=function(A){var t=ls(A),e=t.length,r=0,n=0,i=t.map(ps);return{next:function(){if(r>=e)return{done:!0,value:null};for(var A=ds;r<e&&(A=Bs(t,i,++r))===ds;);if(A!==ds||r===e){var s=hs.apply(null,t.slice(n,r));return n=r,{value:s,done:!1}}return{done:!0,value:null}}}},ms=function(A){for(var t,e=ws(A),r=[];!(t=e.next()).done;)t.value&&r.push(t.value.slice());return r},ys=function(A){var t=123;if(A.createRange){var e=A.createRange();if(e.getBoundingClientRect){var r=A.createElement("boundtest");r.style.height=t+"px",r.style.display="block",A.body.appendChild(r),e.selectNode(r);var n=e.getBoundingClientRect(),i=Math.round(n.height);if(A.body.removeChild(r),i===t)return!0}}return!1},vs=function(A){var t=A.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",A.body.appendChild(t);var e=A.createRange();t.innerHTML="function"==typeof"".repeat?"👨".repeat(10):"";var r=t.firstChild,n=c(r.data).map((function(A){return u(A)})),i=0,s={},o=n.every((function(A,t){e.setStart(r,i),e.setEnd(r,i+A.length);var n=e.getBoundingClientRect();i+=A.length;var o=n.x>s.x||n.y>s.y;return s=n,0===t||o}));return A.body.removeChild(t),o},bs=function(){return void 0!==(new Image).crossOrigin},Cs=function(){return"string"==typeof(new XMLHttpRequest).responseType},Qs=function(A){var t=new Image,e=A.createElement("canvas"),r=e.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),e.toDataURL()}catch(A){return!1}return!0},Fs=function(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]},Us=function(A){var t=A.createElement("canvas"),e=100;t.width=e,t.height=e;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,e,e);var n=new Image,i=t.toDataURL();n.src=i;var s=xs(e,e,0,0,n);return r.fillStyle="red",r.fillRect(0,0,e,e),Es(s).then((function(t){r.drawImage(t,0,0);var n=r.getImageData(0,0,e,e).data;r.fillStyle="red",r.fillRect(0,0,e,e);var s=A.createElement("div");return s.style.backgroundImage="url("+i+")",s.style.height=e+"px",Fs(n)?Es(xs(e,e,0,0,s)):Promise.reject(!1)})).then((function(A){return r.drawImage(A,0,0),Fs(r.getImageData(0,0,e,e).data)})).catch((function(){return!1}))},xs=function(A,t,e,r,n){var i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return s.setAttributeNS(null,"width",A.toString()),s.setAttributeNS(null,"height",t.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",e.toString()),o.setAttributeNS(null,"y",r.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(n),s},Es=function(A){return new Promise((function(t,e){var r=new Image;r.onload=function(){return t(r)},r.onerror=e,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},Ls={get SUPPORT_RANGE_BOUNDS(){var A=ys(document);return Object.defineProperty(Ls,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=Ls.SUPPORT_RANGE_BOUNDS&&vs(document);return Object.defineProperty(Ls,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=Qs(document);return Object.defineProperty(Ls,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?Us(document):Promise.resolve(!1);return Object.defineProperty(Ls,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=bs();return Object.defineProperty(Ls,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=Cs();return Object.defineProperty(Ls,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ls,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Ls,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Ss=function(){function A(A,t){this.text=A,this.bounds=t}return A}(),Is=function(A,t,e,r){var n=Ts(t,e),i=[],o=0;return n.forEach((function(t){if(e.textDecorationLine.length||t.trim().length>0)if(Ls.SUPPORT_RANGE_BOUNDS){var n=Hs(r,o,t.length).getClientRects();if(n.length>1){var a=Ps(t),c=0;a.forEach((function(t){i.push(new Ss(t,s.fromDOMRectList(A,Hs(r,c+o,t.length).getClientRects()))),c+=t.length}))}else i.push(new Ss(t,s.fromDOMRectList(A,n)))}else{var u=r.splitText(t.length);i.push(new Ss(t,Ns(A,r))),r=u}else Ls.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));o+=t.length})),i},Ns=function(A,t){var e=t.ownerDocument;if(e){var r=e.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var n=t.parentNode;if(n){n.replaceChild(r,t);var i=o(A,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return s.EMPTY},Hs=function(A,t,e){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(A,t),n.setEnd(A,t+e),n},Ps=function(A){if(Ls.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(A)).map((function(A){return A.segment}))}return ms(A)},Os=function(A,t){if(Ls.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(A)).map((function(A){return A.segment}))}return ks(A,t)},Ts=function(A,t){return 0!==t.letterSpacing?Ps(A):Os(A,t)},_s=[32,160,4961,65792,65793,4153,4241],ks=function(A,t){for(var e,r=KA(A,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),n=[],i=function(){if(e.value){var A=e.value.slice(),t=c(A),r="";t.forEach((function(A){-1===_s.indexOf(A)?r+=u(A):(r.length&&n.push(r),n.push(u(A)),r="")})),r.length&&n.push(r)}};!(e=r.next()).done;)i();return n},Ms=function(){function A(A,t,e){this.text=Ds(t.data,e.textTransform),this.textBounds=Is(A,this.text,e,t)}return A}(),Ds=function(A,t){switch(t){case 1:return A.toLowerCase();case 3:return A.replace(Rs,Ks);case 2:return A.toUpperCase();default:return A}},Rs=/(^|\s|:|-|\(|\))([a-z])/g,Ks=function(A,t,e){return A.length>0?t+e.toUpperCase():A},Vs=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r.src=e.currentSrc||e.src,r.intrinsicWidth=e.naturalWidth,r.intrinsicHeight=e.naturalHeight,r.context.cache.addImage(r.src),r}return t(e,A),e}(xi),js=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r.canvas=e,r.intrinsicWidth=e.width,r.intrinsicHeight=e.height,r}return t(e,A),e}(xi),Gs=function(A){function e(t,e){var r=A.call(this,t,e)||this,n=new XMLSerializer,i=o(t,e);return e.setAttribute("width",i.width+"px"),e.setAttribute("height",i.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(e)),r.intrinsicWidth=e.width.baseVal.value,r.intrinsicHeight=e.height.baseVal.value,r.context.cache.addImage(r.svg),r}return t(e,A),e}(xi),qs=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r.value=e.value,r}return t(e,A),e}(xi),Xs=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r.start=e.start,r.reversed="boolean"==typeof e.reversed&&!0===e.reversed,r}return t(e,A),e}(xi),zs=[{type:15,flags:0,unit:"px",number:3}],Ws=[{type:16,flags:0,number:50}],Ys=function(A){return A.width>A.height?new s(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new s(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},Js=function(A){var t=A.type===Ao?new Array(A.value.length+1).join("•"):A.value;return 0===t.length?A.placeholder||"":t},Zs="checkbox",$s="radio",Ao="password",to=707406591,eo=function(A){function e(t,e){var r=A.call(this,t,e)||this;switch(r.type=e.type.toLowerCase(),r.checked=e.checked,r.value=Js(e),r.type!==Zs&&r.type!==$s||(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=Ys(r.bounds)),r.type){case Zs:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=zs;break;case $s:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=Ws}return r}return t(e,A),e}(xi),ro=function(A){function e(t,e){var r=A.call(this,t,e)||this,n=e.options[e.selectedIndex||0];return r.value=n&&n.text||"",r}return t(e,A),e}(xi),no=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r.value=e.value,r}return t(e,A),e}(xi),io=function(A){function e(t,e){var r=A.call(this,t,e)||this;r.src=e.src,r.width=parseInt(e.width,10)||0,r.height=parseInt(e.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement){r.tree=co(t,e.contentWindow.document.documentElement);var n=e.contentWindow.document.documentElement?ur(t,getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):lr.TRANSPARENT,i=e.contentWindow.document.body?ur(t,getComputedStyle(e.contentWindow.document.body).backgroundColor):lr.TRANSPARENT;r.backgroundColor=er(n)?er(i)?r.styles.backgroundColor:i:n}}catch(A){}return r}return t(e,A),e}(xi),so=["OL","UL","MENU"],oo=function(A,t,e,r){for(var n=t.firstChild,i=void 0;n;n=i)if(i=n.nextSibling,ho(n)&&n.data.trim().length>0)e.textNodes.push(new Ms(A,n,e.styles));else if(fo(n))if(Io(n)&&n.assignedNodes)n.assignedNodes().forEach((function(t){return oo(A,t,e,r)}));else{var s=ao(A,n);s.styles.isVisible()&&(uo(n,s,r)?s.flags|=4:lo(s.styles)&&(s.flags|=2),-1!==so.indexOf(n.tagName)&&(s.flags|=8),e.elements.push(s),n.slot,n.shadowRoot?oo(A,n.shadowRoot,s,r):Lo(n)||vo(n)||So(n)||oo(A,n,s,r))}},ao=function(A,t){return Fo(t)?new Vs(A,t):Co(t)?new js(A,t):vo(t)?new Gs(A,t):Bo(t)?new qs(A,t):wo(t)?new Xs(A,t):mo(t)?new eo(A,t):So(t)?new ro(A,t):Lo(t)?new no(A,t):Uo(t)?new io(A,t):new xi(A,t)},co=function(A,t){var e=ao(A,t);return e.flags|=4,oo(A,t,e,e),e},uo=function(A,t,e){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||bo(A)&&e.styles.isTransparent()},lo=function(A){return A.isPositioned()||A.isFloating()},ho=function(A){return A.nodeType===Node.TEXT_NODE},fo=function(A){return A.nodeType===Node.ELEMENT_NODE},go=function(A){return fo(A)&&void 0!==A.style&&!po(A)},po=function(A){return"object"==typeof A.className},Bo=function(A){return"LI"===A.tagName},wo=function(A){return"OL"===A.tagName},mo=function(A){return"INPUT"===A.tagName},yo=function(A){return"HTML"===A.tagName},vo=function(A){return"svg"===A.tagName},bo=function(A){return"BODY"===A.tagName},Co=function(A){return"CANVAS"===A.tagName},Qo=function(A){return"VIDEO"===A.tagName},Fo=function(A){return"IMG"===A.tagName},Uo=function(A){return"IFRAME"===A.tagName},xo=function(A){return"STYLE"===A.tagName},Eo=function(A){return"SCRIPT"===A.tagName},Lo=function(A){return"TEXTAREA"===A.tagName},So=function(A){return"SELECT"===A.tagName},Io=function(A){return"SLOT"===A.tagName},No=function(A){return A.tagName.indexOf("-")>0},Ho=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var t=this.counters[A];return t&&t.length?t[t.length-1]:1},A.prototype.getCounterValues=function(A){var t=this.counters[A];return t||[]},A.prototype.pop=function(A){var t=this;A.forEach((function(A){return t.counters[A].pop()}))},A.prototype.parse=function(A){var t=this,e=A.counterIncrement,r=A.counterReset,n=!0;null!==e&&e.forEach((function(A){var e=t.counters[A.counter];e&&0!==A.increment&&(n=!1,e.length||e.push(1),e[Math.max(0,e.length-1)]+=A.increment)}));var i=[];return n&&r.forEach((function(A){var e=t.counters[A.counter];i.push(A.counter),e||(e=t.counters[A.counter]=[]),e.push(A.reset)})),i},A}(),Po={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Oo={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},To={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},_o={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ko=function(A,t,e,r,n,i){return A<t||A>e?Jo(A,n,i.length>0):r.integers.reduce((function(t,e,n){for(;A>=e;)A-=e,t+=r.values[n];return t}),"")+i},Mo=function(A,t,e,r){var n="";do{e||A--,n=r(A)+n,A/=t}while(A*t>=t);return n},Do=function(A,t,e,r,n){var i=e-t+1;return(A<0?"-":"")+(Mo(Math.abs(A),i,r,(function(A){return u(Math.floor(A%i)+t)}))+n)},Ro=function(A,t,e){void 0===e&&(e=". ");var r=t.length;return Mo(Math.abs(A),r,!1,(function(A){return t[Math.floor(A%r)]}))+e},Ko=1,Vo=2,jo=4,Go=8,qo=function(A,t,e,r,n,i){if(A<-9999||A>9999)return Jo(A,4,n.length>0);var s=Math.abs(A),o=n;if(0===s)return t[0]+o;for(var a=0;s>0&&a<=4;a++){var c=s%10;0===c&&ci(i,Ko)&&""!==o?o=t[c]+o:c>1||1===c&&0===a||1===c&&1===a&&ci(i,Vo)||1===c&&1===a&&ci(i,jo)&&A>100||1===c&&a>1&&ci(i,Go)?o=t[c]+(a>0?e[a-1]:"")+o:1===c&&a>0&&(o=e[a-1]+o),s=Math.floor(s/10)}return(A<0?r:"")+o},Xo="十百千萬",zo="拾佰仟萬",Wo="マイナス",Yo="마이너스",Jo=function(A,t,e){var r=e?". ":"",n=e?"、":"",i=e?", ":"",s=e?" ":"";switch(t){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=Do(A,48,57,!0,r);return o.length<4?"0"+o:o;case 4:return Ro(A,"〇一二三四五六七八九",n);case 6:return ko(A,1,3999,Po,3,r).toLowerCase();case 7:return ko(A,1,3999,Po,3,r);case 8:return Do(A,945,969,!1,r);case 9:return Do(A,97,122,!1,r);case 10:return Do(A,65,90,!1,r);case 11:return Do(A,1632,1641,!0,r);case 12:case 49:return ko(A,1,9999,Oo,3,r);case 35:return ko(A,1,9999,Oo,3,r).toLowerCase();case 13:return Do(A,2534,2543,!0,r);case 14:case 30:return Do(A,6112,6121,!0,r);case 15:return Ro(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Ro(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return qo(A,"零一二三四五六七八九",Xo,"負",n,Vo|jo|Go);case 47:return qo(A,"零壹貳參肆伍陸柒捌玖",zo,"負",n,Ko|Vo|jo|Go);case 42:return qo(A,"零一二三四五六七八九",Xo,"负",n,Vo|jo|Go);case 41:return qo(A,"零壹贰叁肆伍陆柒捌玖",zo,"负",n,Ko|Vo|jo|Go);case 26:return qo(A,"〇一二三四五六七八九","十百千万",Wo,n,0);case 25:return qo(A,"零壱弐参四伍六七八九","拾百千万",Wo,n,Ko|Vo|jo);case 31:return qo(A,"영일이삼사오육칠팔구","십백천만",Yo,i,Ko|Vo|jo);case 33:return qo(A,"零一二三四五六七八九","十百千萬",Yo,i,0);case 32:return qo(A,"零壹貳參四五六七八九","拾百千",Yo,i,Ko|Vo|jo);case 18:return Do(A,2406,2415,!0,r);case 20:return ko(A,1,19999,_o,3,r);case 21:return Do(A,2790,2799,!0,r);case 22:return Do(A,2662,2671,!0,r);case 22:return ko(A,1,10999,To,3,r);case 23:return Ro(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ro(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Do(A,3302,3311,!0,r);case 28:return Ro(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Ro(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return Do(A,3792,3801,!0,r);case 37:return Do(A,6160,6169,!0,r);case 38:return Do(A,4160,4169,!0,r);case 39:return Do(A,2918,2927,!0,r);case 40:return Do(A,1776,1785,!0,r);case 43:return Do(A,3046,3055,!0,r);case 44:return Do(A,3174,3183,!0,r);case 45:return Do(A,3664,3673,!0,r);case 46:return Do(A,3872,3881,!0,r);default:return Do(A,48,57,!0,r)}},Zo="data-html2canvas-ignore",$o=function(){function A(A,t,e){if(this.context=A,this.options=e,this.scrolledElements=[],this.referenceElement=t,this.counters=new Ho,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(A,t){var e=this,i=ta(A,t);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var s=A.defaultView.pageXOffset,o=A.defaultView.pageYOffset,a=i.contentWindow,c=a.document,u=na(i).then((function(){return r(e,void 0,void 0,(function(){var A,e;return n(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(ca),a&&(a.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||a.scrollY===t.top&&a.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-t.left,a.scrollY-t.top,0,0))),A=this.options.onclone,void 0===(e=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,ra(c)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof A?[2,Promise.resolve().then((function(){return A(c,e)})).then((function(){return i}))]:[2,i]}}))}))}));return c.open(),c.write(oa(document.doctype)+"<html></html>"),aa(this.referenceElement.ownerDocument,s,o),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},A.prototype.createElementClone=function(A){if(Ui(A,2),Co(A))return this.createCanvasClone(A);if(Qo(A))return this.createVideoClone(A);if(xo(A))return this.createStyleClone(A);var t=A.cloneNode(!1);return Fo(t)&&(Fo(A)&&A.currentSrc&&A.currentSrc!==A.src&&(t.src=A.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),No(t)?this.createCustomElementClone(t):t},A.prototype.createCustomElementClone=function(A){var t=document.createElement("html2canvascustomelement");return sa(A.style,t),t},A.prototype.createStyleClone=function(A){try{var t=A.sheet;if(t&&t.cssRules){var e=[].slice.call(t.cssRules,0).reduce((function(A,t){return t&&"string"==typeof t.cssText?A+t.cssText:A}),""),r=A.cloneNode(!1);return r.textContent=e,r}}catch(A){if(this.context.logger.error("Unable to access cssRules property",A),"SecurityError"!==A.name)throw A}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){var t;if(this.options.inlineImages&&A.ownerDocument){var e=A.ownerDocument.createElement("img");try{return e.src=A.toDataURL(),e}catch(t){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var r=A.cloneNode(!1);try{r.width=A.width,r.height=A.height;var n=A.getContext("2d"),i=r.getContext("2d");if(i)if(!this.options.allowTaint&&n)i.putImageData(n.getImageData(0,0,A.width,A.height),0,0);else{var s=null!==(t=A.getContext("webgl2"))&&void 0!==t?t:A.getContext("webgl");if(s){var o=s.getContextAttributes();!1===(null==o?void 0:o.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}i.drawImage(A,0,0)}return r}catch(t){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return r},A.prototype.createVideoClone=function(A){var t=A.ownerDocument.createElement("canvas");t.width=A.offsetWidth,t.height=A.offsetHeight;var e=t.getContext("2d");try{return e&&(e.drawImage(A,0,0,t.width,t.height),this.options.allowTaint||e.getImageData(0,0,t.width,t.height)),t}catch(t){this.context.logger.info("Unable to clone video as it is tainted",A)}var r=A.ownerDocument.createElement("canvas");return r.width=A.offsetWidth,r.height=A.offsetHeight,r},A.prototype.appendChildNode=function(A,t,e){fo(t)&&(Eo(t)||t.hasAttribute(Zo)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&fo(t)&&xo(t)||A.appendChild(this.cloneNode(t,e))},A.prototype.cloneChildNodes=function(A,t,e){for(var r=this,n=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;n;n=n.nextSibling)if(fo(n)&&Io(n)&&"function"==typeof n.assignedNodes){var i=n.assignedNodes();i.length&&i.forEach((function(A){return r.appendChildNode(t,A,e)}))}else this.appendChildNode(t,n,e)},A.prototype.cloneNode=function(A,t){if(ho(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var e=A.ownerDocument.defaultView;if(e&&fo(A)&&(go(A)||po(A))){var r=this.createElementClone(A);r.style.transitionProperty="none";var n=e.getComputedStyle(A),i=e.getComputedStyle(A,":before"),s=e.getComputedStyle(A,":after");this.referenceElement===A&&go(r)&&(this.clonedReferenceElement=r),bo(r)&&ga(r);var o=this.counters.parse(new bi(this.context,n)),a=this.resolvePseudoContent(A,r,i,Yi.BEFORE);No(A)&&(t=!0),Qo(A)||this.cloneChildNodes(A,r,t),a&&r.insertBefore(a,r.firstChild);var c=this.resolvePseudoContent(A,r,s,Yi.AFTER);return c&&r.appendChild(c),this.counters.pop(o),(n&&(this.options.copyStyles||po(A))&&!Uo(A)||t)&&sa(n,r),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(Lo(A)||So(A))&&(Lo(r)||So(r))&&(r.value=A.value),r}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,t,e,r){var n=this;if(e){var i=e.content,s=t.ownerDocument;if(s&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==e.display){this.counters.parse(new bi(this.context,e));var o=new vi(this.context,e),a=s.createElement("html2canvaspseudoelement");sa(e,a),o.content.forEach((function(t){if(0===t.type)a.appendChild(s.createTextNode(t.value));else if(22===t.type){var e=s.createElement("img");e.src=t.value,e.style.opacity="1",a.appendChild(e)}else if(18===t.type){if("attr"===t.name){var r=t.values.filter(Ne);r.length&&a.appendChild(s.createTextNode(A.getAttribute(r[0].value)||""))}else if("counter"===t.name){var i=t.values.filter(Te),c=i[0],u=i[1];if(c&&Ne(c)){var l=n.counters.getCounterValue(c.value),h=u&&Ne(u)?xn.parse(n.context,u.value):3;a.appendChild(s.createTextNode(Jo(l,h,!1)))}}else if("counters"===t.name){var f=t.values.filter(Te),d=(c=f[0],f[1]);if(u=f[2],c&&Ne(c)){var g=n.counters.getCounterValues(c.value),p=u&&Ne(u)?xn.parse(n.context,u.value):3,B=d&&0===d.type?d.value:"",w=g.map((function(A){return Jo(A,p,!1)})).join(B);a.appendChild(s.createTextNode(w))}}}else if(20===t.type)switch(t.value){case"open-quote":a.appendChild(s.createTextNode(gi(o.quotes,n.quoteDepth++,!0)));break;case"close-quote":a.appendChild(s.createTextNode(gi(o.quotes,--n.quoteDepth,!1)));break;default:a.appendChild(s.createTextNode(t.value))}})),a.className=ha+" "+fa;var c=r===Yi.BEFORE?" "+ha:" "+fa;return po(t)?t.className.baseValue+=c:t.className+=c,a}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}();!function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"}(Yi||(Yi={}));var Aa,ta=function(A,t){var e=A.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=t.width.toString(),e.height=t.height.toString(),e.scrolling="no",e.setAttribute(Zo,"true"),A.body.appendChild(e),e},ea=function(A){return new Promise((function(t){A.complete?t():A.src?(A.onload=t,A.onerror=t):t()}))},ra=function(A){return Promise.all([].slice.call(A.images,0).map(ea))},na=function(A){return new Promise((function(t,e){var r=A.contentWindow;if(!r)return e("No window assigned for iframe");var n=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var e=setInterval((function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(e),t(A))}),50)}}))},ia=["all","d","content"],sa=function(A,t){for(var e=A.length-1;e>=0;e--){var r=A.item(e);-1===ia.indexOf(r)&&t.style.setProperty(r,A.getPropertyValue(r))}return t},oa=function(A){var t="";return A&&(t+="<!DOCTYPE ",A.name&&(t+=A.name),A.internalSubset&&(t+=A.internalSubset),A.publicId&&(t+='"'+A.publicId+'"'),A.systemId&&(t+='"'+A.systemId+'"'),t+=">"),t},aa=function(A,t,e){A&&A.defaultView&&(t!==A.defaultView.pageXOffset||e!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(t,e)},ca=function(A){var t=A[0],e=A[1],r=A[2];t.scrollLeft=e,t.scrollTop=r},ua=":before",la=":after",ha="___html2canvas___pseudoelement_before",fa="___html2canvas___pseudoelement_after",da='{\n content: "" !important;\n display: none !important;\n}',ga=function(A){pa(A,"."+ha+ua+da+"\n ."+fa+la+da)},pa=function(A,t){var e=A.ownerDocument;if(e){var r=e.createElement("style");r.textContent=t,A.appendChild(r)}},Ba=function(){function A(){}return A.getOrigin=function(t){var e=A._link;return e?(e.href=t,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},A.isSameOrigin=function(t){return A.getOrigin(t)===A._origin},A.setContext=function(t){A._link=t.document.createElement("a"),A._origin=A.getOrigin(t.location.href)},A._origin="about:blank",A}(),wa=function(){function A(A,t){this.context=A,this._options=t,this._cache={}}return A.prototype.addImage=function(A){var t=Promise.resolve();return this.has(A)?t:Fa(A)||ba(A)?((this._cache[A]=this.loadImage(A)).catch((function(){})),t):t},A.prototype.match=function(A){return this._cache[A]},A.prototype.loadImage=function(A){return r(this,void 0,void 0,(function(){var t,e,r,i,s=this;return n(this,(function(n){switch(n.label){case 0:return t=Ba.isSameOrigin(A),e=!Ca(A)&&!0===this._options.useCORS&&Ls.SUPPORT_CORS_IMAGES&&!t,r=!Ca(A)&&!t&&!Fa(A)&&"string"==typeof this._options.proxy&&Ls.SUPPORT_CORS_XHR&&!e,t||!1!==this._options.allowTaint||Ca(A)||Fa(A)||r||e?(i=A,r?[4,this.proxy(i)]:[3,2]):[2];case 1:i=n.sent(),n.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise((function(A,t){var r=new Image;r.onload=function(){return A(r)},r.onerror=t,(Qa(i)||e)&&(r.crossOrigin="anonymous"),r.src=i,!0===r.complete&&setTimeout((function(){return A(r)}),500),s._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+s._options.imageTimeout+"ms) loading image")}),s._options.imageTimeout)}))];case 3:return[2,n.sent()]}}))}))},A.prototype.has=function(A){return void 0!==this._cache[A]},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var t=this,e=this._options.proxy;if(!e)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise((function(n,i){var s=Ls.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(200===o.status)if("text"===s)n(o.response);else{var A=new FileReader;A.addEventListener("load",(function(){return n(A.result)}),!1),A.addEventListener("error",(function(A){return i(A)}),!1),A.readAsDataURL(o.response)}else i("Failed to proxy resource "+r+" with status code "+o.status)},o.onerror=i;var a=e.indexOf("?")>-1?"&":"?";if(o.open("GET",""+e+a+"url="+encodeURIComponent(A)+"&responseType="+s),"text"!==s&&o instanceof XMLHttpRequest&&(o.responseType=s),t._options.imageTimeout){var c=t._options.imageTimeout;o.timeout=c,o.ontimeout=function(){return i("Timed out ("+c+"ms) proxying "+r)}}o.send()}))},A}(),ma=/^data:image\/svg\+xml/i,ya=/^data:image\/.*;base64,/i,va=/^data:image\/.*/i,ba=function(A){return Ls.SUPPORT_SVG_DRAWING||!Ua(A)},Ca=function(A){return va.test(A)},Qa=function(A){return ya.test(A)},Fa=function(A){return"blob"===A.substr(0,4)},Ua=function(A){return"svg"===A.substr(-3).toLowerCase()||ma.test(A)},xa=function(){function A(A,t){this.type=0,this.x=A,this.y=t}return A.prototype.add=function(t,e){return new A(this.x+t,this.y+e)},A}(),Ea=function(A,t,e){return new xa(A.x+(t.x-A.x)*e,A.y+(t.y-A.y)*e)},La=function(){function A(A,t,e,r){this.type=1,this.start=A,this.startControl=t,this.endControl=e,this.end=r}return A.prototype.subdivide=function(t,e){var r=Ea(this.start,this.startControl,t),n=Ea(this.startControl,this.endControl,t),i=Ea(this.endControl,this.end,t),s=Ea(r,n,t),o=Ea(n,i,t),a=Ea(s,o,t);return e?new A(this.start,r,s,a):new A(a,o,i,this.end)},A.prototype.add=function(t,e){return new A(this.start.add(t,e),this.startControl.add(t,e),this.endControl.add(t,e),this.end.add(t,e))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),Sa=function(A){return 1===A.type},Ia=function(){function A(A){var t=A.styles,e=A.bounds,r=Ge(t.borderTopLeftRadius,e.width,e.height),n=r[0],i=r[1],s=Ge(t.borderTopRightRadius,e.width,e.height),o=s[0],a=s[1],c=Ge(t.borderBottomRightRadius,e.width,e.height),u=c[0],l=c[1],h=Ge(t.borderBottomLeftRadius,e.width,e.height),f=h[0],d=h[1],g=[];g.push((n+o)/e.width),g.push((f+u)/e.width),g.push((i+d)/e.height),g.push((a+l)/e.height);var p=Math.max.apply(Math,g);p>1&&(n/=p,i/=p,o/=p,a/=p,u/=p,l/=p,f/=p,d/=p);var B=e.width-o,w=e.height-l,m=e.width-u,y=e.height-d,v=t.borderTopWidth,b=t.borderRightWidth,C=t.borderBottomWidth,Q=t.borderLeftWidth,F=qe(t.paddingTop,A.bounds.width),U=qe(t.paddingRight,A.bounds.width),x=qe(t.paddingBottom,A.bounds.width),E=qe(t.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||i>0?Na(e.left+Q/3,e.top+v/3,n-Q/3,i-v/3,Aa.TOP_LEFT):new xa(e.left+Q/3,e.top+v/3),this.topRightBorderDoubleOuterBox=n>0||i>0?Na(e.left+B,e.top+v/3,o-b/3,a-v/3,Aa.TOP_RIGHT):new xa(e.left+e.width-b/3,e.top+v/3),this.bottomRightBorderDoubleOuterBox=u>0||l>0?Na(e.left+m,e.top+w,u-b/3,l-C/3,Aa.BOTTOM_RIGHT):new xa(e.left+e.width-b/3,e.top+e.height-C/3),this.bottomLeftBorderDoubleOuterBox=f>0||d>0?Na(e.left+Q/3,e.top+y,f-Q/3,d-C/3,Aa.BOTTOM_LEFT):new xa(e.left+Q/3,e.top+e.height-C/3),this.topLeftBorderDoubleInnerBox=n>0||i>0?Na(e.left+2*Q/3,e.top+2*v/3,n-2*Q/3,i-2*v/3,Aa.TOP_LEFT):new xa(e.left+2*Q/3,e.top+2*v/3),this.topRightBorderDoubleInnerBox=n>0||i>0?Na(e.left+B,e.top+2*v/3,o-2*b/3,a-2*v/3,Aa.TOP_RIGHT):new xa(e.left+e.width-2*b/3,e.top+2*v/3),this.bottomRightBorderDoubleInnerBox=u>0||l>0?Na(e.left+m,e.top+w,u-2*b/3,l-2*C/3,Aa.BOTTOM_RIGHT):new xa(e.left+e.width-2*b/3,e.top+e.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=f>0||d>0?Na(e.left+2*Q/3,e.top+y,f-2*Q/3,d-2*C/3,Aa.BOTTOM_LEFT):new xa(e.left+2*Q/3,e.top+e.height-2*C/3),this.topLeftBorderStroke=n>0||i>0?Na(e.left+Q/2,e.top+v/2,n-Q/2,i-v/2,Aa.TOP_LEFT):new xa(e.left+Q/2,e.top+v/2),this.topRightBorderStroke=n>0||i>0?Na(e.left+B,e.top+v/2,o-b/2,a-v/2,Aa.TOP_RIGHT):new xa(e.left+e.width-b/2,e.top+v/2),this.bottomRightBorderStroke=u>0||l>0?Na(e.left+m,e.top+w,u-b/2,l-C/2,Aa.BOTTOM_RIGHT):new xa(e.left+e.width-b/2,e.top+e.height-C/2),this.bottomLeftBorderStroke=f>0||d>0?Na(e.left+Q/2,e.top+y,f-Q/2,d-C/2,Aa.BOTTOM_LEFT):new xa(e.left+Q/2,e.top+e.height-C/2),this.topLeftBorderBox=n>0||i>0?Na(e.left,e.top,n,i,Aa.TOP_LEFT):new xa(e.left,e.top),this.topRightBorderBox=o>0||a>0?Na(e.left+B,e.top,o,a,Aa.TOP_RIGHT):new xa(e.left+e.width,e.top),this.bottomRightBorderBox=u>0||l>0?Na(e.left+m,e.top+w,u,l,Aa.BOTTOM_RIGHT):new xa(e.left+e.width,e.top+e.height),this.bottomLeftBorderBox=f>0||d>0?Na(e.left,e.top+y,f,d,Aa.BOTTOM_LEFT):new xa(e.left,e.top+e.height),this.topLeftPaddingBox=n>0||i>0?Na(e.left+Q,e.top+v,Math.max(0,n-Q),Math.max(0,i-v),Aa.TOP_LEFT):new xa(e.left+Q,e.top+v),this.topRightPaddingBox=o>0||a>0?Na(e.left+Math.min(B,e.width-b),e.top+v,B>e.width+b?0:Math.max(0,o-b),Math.max(0,a-v),Aa.TOP_RIGHT):new xa(e.left+e.width-b,e.top+v),this.bottomRightPaddingBox=u>0||l>0?Na(e.left+Math.min(m,e.width-Q),e.top+Math.min(w,e.height-C),Math.max(0,u-b),Math.max(0,l-C),Aa.BOTTOM_RIGHT):new xa(e.left+e.width-b,e.top+e.height-C),this.bottomLeftPaddingBox=f>0||d>0?Na(e.left+Q,e.top+Math.min(y,e.height-C),Math.max(0,f-Q),Math.max(0,d-C),Aa.BOTTOM_LEFT):new xa(e.left+Q,e.top+e.height-C),this.topLeftContentBox=n>0||i>0?Na(e.left+Q+E,e.top+v+F,Math.max(0,n-(Q+E)),Math.max(0,i-(v+F)),Aa.TOP_LEFT):new xa(e.left+Q+E,e.top+v+F),this.topRightContentBox=o>0||a>0?Na(e.left+Math.min(B,e.width+Q+E),e.top+v+F,B>e.width+Q+E?0:o-Q+E,a-(v+F),Aa.TOP_RIGHT):new xa(e.left+e.width-(b+U),e.top+v+F),this.bottomRightContentBox=u>0||l>0?Na(e.left+Math.min(m,e.width-(Q+E)),e.top+Math.min(w,e.height+v+F),Math.max(0,u-(b+U)),l-(C+x),Aa.BOTTOM_RIGHT):new xa(e.left+e.width-(b+U),e.top+e.height-(C+x)),this.bottomLeftContentBox=f>0||d>0?Na(e.left+Q+E,e.top+y,Math.max(0,f-(Q+E)),d-(C+x),Aa.BOTTOM_LEFT):new xa(e.left+Q+E,e.top+e.height-(C+x))}return A}();!function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Aa||(Aa={}));var Na=function(A,t,e,r,n){var i=(Math.sqrt(2)-1)/3*4,s=e*i,o=r*i,a=A+e,c=t+r;switch(n){case Aa.TOP_LEFT:return new La(new xa(A,c),new xa(A,c-o),new xa(a-s,t),new xa(a,t));case Aa.TOP_RIGHT:return new La(new xa(A,t),new xa(A+s,t),new xa(a,c-o),new xa(a,c));case Aa.BOTTOM_RIGHT:return new La(new xa(a,t),new xa(a,t+o),new xa(A+s,c),new xa(A,c));case Aa.BOTTOM_LEFT:default:return new La(new xa(a,c),new xa(a-s,c),new xa(A,t+o),new xa(A,t))}},Ha=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},Pa=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},Oa=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},Ta=function(){function A(A,t,e){this.offsetX=A,this.offsetY=t,this.matrix=e,this.type=0,this.target=6}return A}(),_a=function(){function A(A,t){this.path=A,this.target=t,this.type=1}return A}(),ka=function(){function A(A){this.opacity=A,this.type=2,this.target=6}return A}(),Ma=function(A){return 0===A.type},Da=function(A){return 1===A.type},Ra=function(A){return 2===A.type},Ka=function(A,t){return A.length===t.length&&A.some((function(A,e){return A===t[e]}))},Va=function(A,t,e,r,n){return A.map((function(A,i){switch(i){case 0:return A.add(t,e);case 1:return A.add(t+r,e);case 2:return A.add(t+r,e+n);case 3:return A.add(t,e+n)}return A}))},ja=function(){function A(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A}(),Ga=function(){function A(A,t){if(this.container=A,this.parent=t,this.effects=[],this.curves=new Ia(this.container),this.container.styles.opacity<1&&this.effects.push(new ka(this.container.styles.opacity)),null!==this.container.styles.transform){var e=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,n=this.container.styles.transform;this.effects.push(new Ta(e,r,n))}if(0!==this.container.styles.overflowX){var i=Ha(this.curves),s=Oa(this.curves);Ka(i,s)?this.effects.push(new _a(i,6)):(this.effects.push(new _a(i,2)),this.effects.push(new _a(s,4)))}}return A.prototype.getEffects=function(A){for(var t=-1===[2,3].indexOf(this.container.styles.position),e=this.parent,r=this.effects.slice(0);e;){var n=e.effects.filter((function(A){return!Da(A)}));if(t||0!==e.container.styles.position||!e.parent){if(r.unshift.apply(r,n),t=-1===[2,3].indexOf(e.container.styles.position),0!==e.container.styles.overflowX){var i=Ha(e.curves),s=Oa(e.curves);Ka(i,s)||r.unshift(new _a(s,6))}}else r.unshift.apply(r,n);e=e.parent}return r.filter((function(t){return ci(t.target,A)}))},A}(),qa=function(A,t,e,r){A.container.elements.forEach((function(n){var i=ci(n.flags,4),s=ci(n.flags,2),o=new Ga(n,A);ci(n.styles.display,2048)&&r.push(o);var a=ci(n.flags,8)?[]:r;if(i||s){var c=i||n.styles.isPositioned()?e:t,u=new ja(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var l=n.styles.zIndex.order;if(l<0){var h=0;c.negativeZIndex.some((function(A,t){return l>A.element.container.styles.zIndex.order?(h=t,!1):h>0})),c.negativeZIndex.splice(h,0,u)}else if(l>0){var f=0;c.positiveZIndex.some((function(A,t){return l>=A.element.container.styles.zIndex.order?(f=t+1,!1):f>0})),c.positiveZIndex.splice(f,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else n.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);qa(o,u,i?u:e,a)}else n.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),qa(o,t,e,a);ci(n.flags,8)&&Xa(n,a)}))},Xa=function(A,t){for(var e=A instanceof Xs?A.start:1,r=A instanceof Xs&&A.reversed,n=0;n<t.length;n++){var i=t[n];i.container instanceof qs&&"number"==typeof i.container.value&&0!==i.container.value&&(e=i.container.value),i.listValue=Jo(e,i.container.styles.listStyleType,!0),e+=r?-1:1}},za=function(A){var t=new Ga(A,null),e=new ja(t),r=[];return qa(t,e,e,r),Xa(t.container,r),e},Wa=function(A,t){switch(t){case 0:return Ac(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return Ac(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return Ac(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return Ac(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},Ya=function(A,t){switch(t){case 0:return Ac(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return Ac(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return Ac(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return Ac(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},Ja=function(A,t){switch(t){case 0:return Ac(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return Ac(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return Ac(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return Ac(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},Za=function(A,t){switch(t){case 0:return $a(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return $a(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return $a(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return $a(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},$a=function(A,t){var e=[];return Sa(A)?e.push(A.subdivide(.5,!1)):e.push(A),Sa(t)?e.push(t.subdivide(.5,!0)):e.push(t),e},Ac=function(A,t,e,r){var n=[];return Sa(A)?n.push(A.subdivide(.5,!1)):n.push(A),Sa(e)?n.push(e.subdivide(.5,!0)):n.push(e),Sa(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),Sa(t)?n.push(t.subdivide(.5,!1).reverse()):n.push(t),n},tc=function(A){var t=A.bounds,e=A.styles;return t.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},ec=function(A){var t=A.styles,e=A.bounds,r=qe(t.paddingLeft,e.width),n=qe(t.paddingRight,e.width),i=qe(t.paddingTop,e.width),s=qe(t.paddingBottom,e.width);return e.add(r+t.borderLeftWidth,i+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+n),-(t.borderTopWidth+t.borderBottomWidth+i+s))},rc=function(A,t){return 0===A?t.bounds:2===A?ec(t):tc(t)},nc=function(A,t){return 0===A?t.bounds:2===A?ec(t):tc(t)},ic=function(A,t,e){var r=rc(cc(A.styles.backgroundOrigin,t),A),n=nc(cc(A.styles.backgroundClip,t),A),i=ac(cc(A.styles.backgroundSize,t),e,r),s=i[0],o=i[1],a=Ge(cc(A.styles.backgroundPosition,t),r.width-s,r.height-o);return[uc(cc(A.styles.backgroundRepeat,t),a,i,r,n),Math.round(r.left+a[0]),Math.round(r.top+a[1]),s,o]},sc=function(A){return Ne(A)&&A.value===kr.AUTO},oc=function(A){return"number"==typeof A},ac=function(A,t,e){var r=t[0],n=t[1],i=t[2],s=A[0],o=A[1];if(!s)return[0,0];if(De(s)&&o&&De(o))return[qe(s,e.width),qe(o,e.height)];var a=oc(i);if(Ne(s)&&(s.value===kr.CONTAIN||s.value===kr.COVER))return oc(i)?e.width/e.height<i!=(s.value===kr.COVER)?[e.width,e.width/i]:[e.height*i,e.height]:[e.width,e.height];var c=oc(r),u=oc(n),l=c||u;if(sc(s)&&(!o||sc(o)))return c&&u?[r,n]:a||l?l&&a?[c?r:n*i,u?n:r/i]:[c?r:e.width,u?n:e.height]:[e.width,e.height];if(a){var h=0,f=0;return De(s)?h=qe(s,e.width):De(o)&&(f=qe(o,e.height)),sc(s)?h=f*i:o&&!sc(o)||(f=h/i),[h,f]}var d=null,g=null;if(De(s)?d=qe(s,e.width):o&&De(o)&&(g=qe(o,e.height)),null===d||o&&!sc(o)||(g=c&&u?d/r*n:e.height),null!==g&&sc(s)&&(d=c&&u?g/n*r:e.width),null!==d&&null!==g)return[d,g];throw new Error("Unable to calculate background-size for element")},cc=function(A,t){var e=A[t];return void 0===e?A[0]:e},uc=function(A,t,e,r,n){var i=t[0],s=t[1],o=e[0],a=e[1];switch(A){case 2:return[new xa(Math.round(r.left),Math.round(r.top+s)),new xa(Math.round(r.left+r.width),Math.round(r.top+s)),new xa(Math.round(r.left+r.width),Math.round(a+r.top+s)),new xa(Math.round(r.left),Math.round(a+r.top+s))];case 3:return[new xa(Math.round(r.left+i),Math.round(r.top)),new xa(Math.round(r.left+i+o),Math.round(r.top)),new xa(Math.round(r.left+i+o),Math.round(r.height+r.top)),new xa(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new xa(Math.round(r.left+i),Math.round(r.top+s)),new xa(Math.round(r.left+i+o),Math.round(r.top+s)),new xa(Math.round(r.left+i+o),Math.round(r.top+s+a)),new xa(Math.round(r.left+i),Math.round(r.top+s+a))];default:return[new xa(Math.round(n.left),Math.round(n.top)),new xa(Math.round(n.left+n.width),Math.round(n.top)),new xa(Math.round(n.left+n.width),Math.round(n.height+n.top)),new xa(Math.round(n.left),Math.round(n.height+n.top))]}},lc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",hc="Hidden Text",fc=function(){function A(A){this._data={},this._document=A}return A.prototype.parseMetrics=function(A,t){var e=this._document.createElement("div"),r=this._document.createElement("img"),n=this._document.createElement("span"),i=this._document.body;e.style.visibility="hidden",e.style.fontFamily=A,e.style.fontSize=t,e.style.margin="0",e.style.padding="0",e.style.whiteSpace="nowrap",i.appendChild(e),r.src=lc,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",n.style.fontFamily=A,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(hc)),e.appendChild(n),e.appendChild(r);var s=r.offsetTop-n.offsetTop+2;e.removeChild(n),e.appendChild(this._document.createTextNode(hc)),e.style.lineHeight="normal",r.style.verticalAlign="super";var o=r.offsetTop-e.offsetTop+2;return i.removeChild(e),{baseline:s,middle:o}},A.prototype.getMetrics=function(A,t){var e=A+" "+t;return void 0===this._data[e]&&(this._data[e]=this.parseMetrics(A,t)),this._data[e]},A}(),dc=function(){function A(A,t){this.context=A,this.options=t}return A}(),gc=1e4,pc=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r._activeEffects=[],r.canvas=e.canvas?e.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),e.canvas||(r.canvas.width=Math.floor(e.width*e.scale),r.canvas.height=Math.floor(e.height*e.scale),r.canvas.style.width=e.width+"px",r.canvas.style.height=e.height+"px"),r.fontMetrics=new fc(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-e.x,-e.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+e.width+"x"+e.height+") with scale "+e.scale),r}return t(e,A),e.prototype.applyEffects=function(A){for(var t=this;this._activeEffects.length;)this.popEffect();A.forEach((function(A){return t.applyEffect(A)}))},e.prototype.applyEffect=function(A){this.ctx.save(),Ra(A)&&(this.ctx.globalAlpha=A.opacity),Ma(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),Da(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(A){return r(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return A.element.container.styles.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},e.prototype.renderNode=function(A){return r(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return ci(A.container.flags,16),A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(A)];case 2:t.sent(),t.label=3;case 3:return[2]}}))}))},e.prototype.renderTextWithLetterSpacing=function(A,t,e){var r=this;0===t?this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+e):Ps(A.text).reduce((function(t,n){return r.ctx.fillText(n,t,A.bounds.top+e),t+r.ctx.measureText(n).width}),A.bounds.left)},e.prototype.createFontStyle=function(A){var t=A.fontVariant.filter((function(A){return"normal"===A||"small-caps"===A})).join(""),e=vc(A.fontFamily).join(", "),r=Se(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,t,A.fontWeight,r,e].join(" "),e,r]},e.prototype.renderTextNode=function(A,t){return r(this,void 0,void 0,(function(){var e,r,i,s,o,a,c,u,l=this;return n(this,(function(n){return e=this.createFontStyle(t),r=e[0],i=e[1],s=e[2],this.ctx.font=r,this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(i,s),a=o.baseline,c=o.middle,u=t.paintOrder,A.textBounds.forEach((function(A){u.forEach((function(e){switch(e){case 0:l.ctx.fillStyle=rr(t.color),l.renderTextWithLetterSpacing(A,t.letterSpacing,a);var r=t.textShadow;r.length&&A.text.trim().length&&(r.slice(0).reverse().forEach((function(e){l.ctx.shadowColor=rr(e.color),l.ctx.shadowOffsetX=e.offsetX.number*l.options.scale,l.ctx.shadowOffsetY=e.offsetY.number*l.options.scale,l.ctx.shadowBlur=e.blur.number,l.renderTextWithLetterSpacing(A,t.letterSpacing,a)})),l.ctx.shadowColor="",l.ctx.shadowOffsetX=0,l.ctx.shadowOffsetY=0,l.ctx.shadowBlur=0),t.textDecorationLine.length&&(l.ctx.fillStyle=rr(t.textDecorationColor||t.color),t.textDecorationLine.forEach((function(t){switch(t){case 1:l.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top+a),A.bounds.width,1);break;case 2:l.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top),A.bounds.width,1);break;case 3:l.ctx.fillRect(A.bounds.left,Math.ceil(A.bounds.top+c),A.bounds.width,1)}})));break;case 1:t.webkitTextStrokeWidth&&A.text.trim().length&&(l.ctx.strokeStyle=rr(t.webkitTextStrokeColor),l.ctx.lineWidth=t.webkitTextStrokeWidth,l.ctx.lineJoin=window.chrome?"miter":"round",l.ctx.strokeText(A.text,A.bounds.left,A.bounds.top+a)),l.ctx.strokeStyle="",l.ctx.lineWidth=0,l.ctx.lineJoin="miter"}}))})),[2]}))}))},e.prototype.renderReplacedElement=function(A,t,e){if(e&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var r=ec(A),n=Oa(t);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(e,0,0,A.intrinsicWidth,A.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(A){return r(this,void 0,void 0,(function(){var t,r,i,o,a,c,u,l,h,f,d,g,p,B,w,m,y,v;return n(this,(function(n){switch(n.label){case 0:this.applyEffects(A.getEffects(4)),t=A.container,r=A.curves,i=t.styles,o=0,a=t.textNodes,n.label=1;case 1:return o<a.length?(c=a[o],[4,this.renderTextNode(c,i)]):[3,4];case 2:n.sent(),n.label=3;case 3:return o++,[3,1];case 4:if(!(t instanceof Vs))return[3,8];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return w=n.sent(),this.renderReplacedElement(t,r,w),[3,8];case 7:return n.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof js&&this.renderReplacedElement(t,r,t.canvas),!(t instanceof Gs))return[3,12];n.label=9;case 9:return n.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return w=n.sent(),this.renderReplacedElement(t,r,w),[3,12];case 11:return n.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof io&&t.tree?[4,new e(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}).render(t.tree)]:[3,14];case 13:u=n.sent(),t.width&&t.height&&this.ctx.drawImage(u,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),n.label=14;case 14:if(t instanceof eo&&(l=Math.min(t.bounds.width,t.bounds.height),t.type===Zs?t.checked&&(this.ctx.save(),this.path([new xa(t.bounds.left+.39363*l,t.bounds.top+.79*l),new xa(t.bounds.left+.16*l,t.bounds.top+.5549*l),new xa(t.bounds.left+.27347*l,t.bounds.top+.44071*l),new xa(t.bounds.left+.39694*l,t.bounds.top+.5649*l),new xa(t.bounds.left+.72983*l,t.bounds.top+.23*l),new xa(t.bounds.left+.84*l,t.bounds.top+.34085*l),new xa(t.bounds.left+.39363*l,t.bounds.top+.79*l)]),this.ctx.fillStyle=rr(to),this.ctx.fill(),this.ctx.restore()):t.type===$s&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+l/2,t.bounds.top+l/2,l/4,0,2*Math.PI,!0),this.ctx.fillStyle=rr(to),this.ctx.fill(),this.ctx.restore())),Bc(t)&&t.value.length){switch(h=this.createFontStyle(i),y=h[0],f=h[1],d=this.fontMetrics.getMetrics(y,f).baseline,this.ctx.font=y,this.ctx.fillStyle=rr(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=mc(t.styles.textAlign),v=ec(t),g=0,t.styles.textAlign){case 1:g+=v.width/2;break;case 2:g+=v.width}p=v.add(g,0,0,-v.height/2+1),this.ctx.save(),this.path([new xa(v.left,v.top),new xa(v.left+v.width,v.top),new xa(v.left+v.width,v.top+v.height),new xa(v.left,v.top+v.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ss(t.value,p),i.letterSpacing,d),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!ci(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(0!==(B=t.styles.listStyleImage).type)return[3,18];w=void 0,m=B.url,n.label=15;case 15:return n.trys.push([15,17,,18]),[4,this.context.cache.match(m)];case 16:return w=n.sent(),this.ctx.drawImage(w,t.bounds.left-(w.width+10),t.bounds.top),[3,18];case 17:return n.sent(),this.context.logger.error("Error loading list-style-image "+m),[3,18];case 18:return[3,20];case 19:A.listValue&&-1!==t.styles.listStyleType&&(y=this.createFontStyle(i)[0],this.ctx.font=y,this.ctx.fillStyle=rr(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",v=new s(t.bounds.left,t.bounds.top+qe(t.styles.paddingTop,t.bounds.width),t.bounds.width,Qn(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ss(A.listValue,v),i.letterSpacing,Qn(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),n.label=20;case 20:return[2]}}))}))},e.prototype.renderStackContent=function(A){return r(this,void 0,void 0,(function(){var t,e,r,i,s,o,a,c,u,l,h,f,d,g,p;return n(this,(function(n){switch(n.label){case 0:return ci(A.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:n.sent(),t=0,e=A.negativeZIndex,n.label=2;case 2:return t<e.length?(p=e[t],[4,this.renderStack(p)]):[3,5];case 3:n.sent(),n.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:n.sent(),r=0,i=A.nonInlineLevel,n.label=7;case 7:return r<i.length?(p=i[r],[4,this.renderNode(p)]):[3,10];case 8:n.sent(),n.label=9;case 9:return r++,[3,7];case 10:s=0,o=A.nonPositionedFloats,n.label=11;case 11:return s<o.length?(p=o[s],[4,this.renderStack(p)]):[3,14];case 12:n.sent(),n.label=13;case 13:return s++,[3,11];case 14:a=0,c=A.nonPositionedInlineLevel,n.label=15;case 15:return a<c.length?(p=c[a],[4,this.renderStack(p)]):[3,18];case 16:n.sent(),n.label=17;case 17:return a++,[3,15];case 18:u=0,l=A.inlineLevel,n.label=19;case 19:return u<l.length?(p=l[u],[4,this.renderNode(p)]):[3,22];case 20:n.sent(),n.label=21;case 21:return u++,[3,19];case 22:h=0,f=A.zeroOrAutoZIndexOrTransformedOrOpacity,n.label=23;case 23:return h<f.length?(p=f[h],[4,this.renderStack(p)]):[3,26];case 24:n.sent(),n.label=25;case 25:return h++,[3,23];case 26:d=0,g=A.positiveZIndex,n.label=27;case 27:return d<g.length?(p=g[d],[4,this.renderStack(p)]):[3,30];case 28:n.sent(),n.label=29;case 29:return d++,[3,27];case 30:return[2]}}))}))},e.prototype.mask=function(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},e.prototype.formatPath=function(A){var t=this;A.forEach((function(A,e){var r=Sa(A)?A.start:A;0===e?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),Sa(A)&&t.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)}))},e.prototype.renderRepeat=function(A,t,e,r){this.path(A),this.ctx.fillStyle=t,this.ctx.translate(e,r),this.ctx.fill(),this.ctx.translate(-e,-r)},e.prototype.resizeImage=function(A,t,e){var r;if(A.width===t&&A.height===e)return A;var n=(null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document).createElement("canvas");return n.width=Math.max(1,t),n.height=Math.max(1,e),n.getContext("2d").drawImage(A,0,0,A.width,A.height,0,0,t,e),n},e.prototype.renderBackgroundImage=function(A){return r(this,void 0,void 0,(function(){var t,e,r,i,s,o;return n(this,(function(a){switch(a.label){case 0:t=A.styles.backgroundImage.length-1,e=function(e){var i,s,o,a,c,u,l,h,f,d,g,p,B,w,m,y,v,b,C,Q,F,U,x,E,L,S,I,N,H,P,O;return n(this,(function(n){switch(n.label){case 0:if(0!==e.type)return[3,5];i=void 0,s=e.url,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,r.context.cache.match(s)];case 2:return i=n.sent(),[3,4];case 3:return n.sent(),r.context.logger.error("Error loading background-image "+s),[3,4];case 4:return i&&(o=ic(A,t,[i.width,i.height,i.width/i.height]),y=o[0],U=o[1],x=o[2],C=o[3],Q=o[4],w=r.ctx.createPattern(r.resizeImage(i,C,Q),"repeat"),r.renderRepeat(y,w,U,x)),[3,6];case 5:Pr(e)?(a=ic(A,t,[null,null,null]),y=a[0],U=a[1],x=a[2],C=a[3],Q=a[4],c=Br(e.angle,C,Q),u=c[0],l=c[1],h=c[2],f=c[3],d=c[4],(g=document.createElement("canvas")).width=C,g.height=Q,p=g.getContext("2d"),B=p.createLinearGradient(l,f,h,d),gr(e.stops,u).forEach((function(A){return B.addColorStop(A.stop,rr(A.color))})),p.fillStyle=B,p.fillRect(0,0,C,Q),C>0&&Q>0&&(w=r.ctx.createPattern(g,"repeat"),r.renderRepeat(y,w,U,x))):Or(e)&&(m=ic(A,t,[null,null,null]),y=m[0],v=m[1],b=m[2],C=m[3],Q=m[4],F=0===e.position.length?[Ve]:e.position,U=qe(F[0],C),x=qe(F[F.length-1],Q),E=yr(e,U,x,C,Q),L=E[0],S=E[1],L>0&&S>0&&(I=r.ctx.createRadialGradient(v+U,b+x,0,v+U,b+x,L),gr(e.stops,2*L).forEach((function(A){return I.addColorStop(A.stop,rr(A.color))})),r.path(y),r.ctx.fillStyle=I,L!==S?(N=A.bounds.left+.5*A.bounds.width,H=A.bounds.top+.5*A.bounds.height,O=1/(P=S/L),r.ctx.save(),r.ctx.translate(N,H),r.ctx.transform(1,0,0,P,0,0),r.ctx.translate(-N,-H),r.ctx.fillRect(v,O*(b-H)+H,C,Q*O),r.ctx.restore()):r.ctx.fill())),n.label=6;case 6:return t--,[2]}}))},r=this,i=0,s=A.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return i<s.length?(o=s[i],[5,e(o)]):[3,4];case 2:a.sent(),a.label=3;case 3:return i++,[3,1];case 4:return[2]}}))}))},e.prototype.renderSolidBorder=function(A,t,e){return r(this,void 0,void 0,(function(){return n(this,(function(r){return this.path(Wa(e,t)),this.ctx.fillStyle=rr(A),this.ctx.fill(),[2]}))}))},e.prototype.renderDoubleBorder=function(A,t,e,i){return r(this,void 0,void 0,(function(){var r,s;return n(this,(function(n){switch(n.label){case 0:return t<3?[4,this.renderSolidBorder(A,e,i)]:[3,2];case 1:return n.sent(),[2];case 2:return r=Ya(i,e),this.path(r),this.ctx.fillStyle=rr(A),this.ctx.fill(),s=Ja(i,e),this.path(s),this.ctx.fill(),[2]}}))}))},e.prototype.renderNodeBackgroundAndBorders=function(A){return r(this,void 0,void 0,(function(){var t,e,r,i,s,o,a,c,u=this;return n(this,(function(n){switch(n.label){case 0:return this.applyEffects(A.getEffects(2)),t=A.container.styles,e=!er(t.backgroundColor)||t.backgroundImage.length,r=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],i=wc(cc(t.backgroundClip,0),A.curves),e||t.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),er(t.backgroundColor)||(this.ctx.fillStyle=rr(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:n.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach((function(t){u.ctx.save();var e=Ha(A.curves),r=t.inset?0:gc,n=Va(e,-r+(t.inset?1:-1)*t.spread.number,(t.inset?1:-1)*t.spread.number,t.spread.number*(t.inset?-2:2),t.spread.number*(t.inset?-2:2));t.inset?(u.path(e),u.ctx.clip(),u.mask(n)):(u.mask(e),u.ctx.clip(),u.path(n)),u.ctx.shadowOffsetX=t.offsetX.number+r,u.ctx.shadowOffsetY=t.offsetY.number,u.ctx.shadowColor=rr(t.color),u.ctx.shadowBlur=t.blur.number,u.ctx.fillStyle=t.inset?rr(t.color):"rgba(0,0,0,1)",u.ctx.fill(),u.ctx.restore()})),n.label=2;case 2:s=0,o=0,a=r,n.label=3;case 3:return o<a.length?0!==(c=a[o]).style&&!er(c.color)&&c.width>0?2!==c.style?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,s,A.curves,2)]:[3,11]:[3,13];case 4:return n.sent(),[3,11];case 5:return 3!==c.style?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,s,A.curves,3)];case 6:return n.sent(),[3,11];case 7:return 4!==c.style?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,s,A.curves)];case 8:return n.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,s,A.curves)];case 10:n.sent(),n.label=11;case 11:s++,n.label=12;case 12:return o++,[3,3];case 13:return[2]}}))}))},e.prototype.renderDashedDottedBorder=function(A,t,e,i,s){return r(this,void 0,void 0,(function(){var r,o,a,c,u,l,h,f,d,g,p,B,w,m,y,v;return n(this,(function(n){return this.ctx.save(),r=Za(i,e),o=Wa(i,e),2===s&&(this.path(o),this.ctx.clip()),Sa(o[0])?(a=o[0].start.x,c=o[0].start.y):(a=o[0].x,c=o[0].y),Sa(o[1])?(u=o[1].end.x,l=o[1].end.y):(u=o[1].x,l=o[1].y),h=0===e||2===e?Math.abs(a-u):Math.abs(c-l),this.ctx.beginPath(),3===s?this.formatPath(r):this.formatPath(o.slice(0,2)),f=t<3?3*t:2*t,d=t<3?2*t:t,3===s&&(f=t,d=t),g=!0,h<=2*f?g=!1:h<=2*f+d?(f*=p=h/(2*f+d),d*=p):(B=Math.floor((h+d)/(f+d)),w=(h-B*f)/(B-1),d=(m=(h-(B+1)*f)/B)<=0||Math.abs(d-w)<Math.abs(d-m)?w:m),g&&(3===s?this.ctx.setLineDash([0,f+d]):this.ctx.setLineDash([f,d])),3===s?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=rr(A),this.ctx.stroke(),this.ctx.setLineDash([]),2===s&&(Sa(o[0])&&(y=o[3],v=o[0],this.ctx.beginPath(),this.formatPath([new xa(y.end.x,y.end.y),new xa(v.start.x,v.start.y)]),this.ctx.stroke()),Sa(o[1])&&(y=o[1],v=o[2],this.ctx.beginPath(),this.formatPath([new xa(y.end.x,y.end.y),new xa(v.start.x,v.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},e.prototype.render=function(A){return r(this,void 0,void 0,(function(){var t;return n(this,(function(e){switch(e.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=rr(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=za(A),[4,this.renderStack(t)];case 1:return e.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},e}(dc),Bc=function(A){return A instanceof no||A instanceof ro||A instanceof eo&&A.type!==$s&&A.type!==Zs},wc=function(A,t){switch(A){case 0:return Ha(t);case 2:return Pa(t);default:return Oa(t)}},mc=function(A){switch(A){case 1:return"center";case 2:return"right";default:return"left"}},yc=["-apple-system","system-ui"],vc=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter((function(A){return-1===yc.indexOf(A)})):A},bc=function(A){function e(t,e){var r=A.call(this,t,e)||this;return r.canvas=e.canvas?e.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=e,r.canvas.width=Math.floor(e.width*e.scale),r.canvas.height=Math.floor(e.height*e.scale),r.canvas.style.width=e.width+"px",r.canvas.style.height=e.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-e.x,-e.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale),r}return t(e,A),e.prototype.render=function(A){return r(this,void 0,void 0,(function(){var t,e;return n(this,(function(r){switch(r.label){case 0:return t=xs(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),[4,Cc(t)];case 1:return e=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=rr(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(e,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},e}(dc),Cc=function(A){return new Promise((function(t,e){var r=new Image;r.onload=function(){t(r)},r.onerror=e,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},Qc=function(){function A(A){var t=A.id,e=A.enabled;this.id=t,this.enabled=e,this.start=Date.now()}return A.prototype.debug=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,i([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,i([this.id,this.getTime()+"ms"],A))},A.prototype.warn=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,i([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.prototype.error=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,i([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.instances={},A}(),Fc=function(){function A(t,e){var r;this.windowBounds=e,this.instanceName="#"+A.instanceCount++,this.logger=new Qc({id:this.instanceName,enabled:t.logging}),this.cache=null!==(r=t.cache)&&void 0!==r?r:new wa(this,t)}return A.instanceCount=1,A}(),Uc=function(A,t){return void 0===t&&(t={}),xc(A,t)};"undefined"!=typeof window&&Ba.setContext(window);var xc=function(A,t){return r(void 0,void 0,void 0,(function(){var r,i,c,u,l,h,f,d,g,p,B,w,m,y,v,b,C,Q,F,U,x,E,L,S,I,N,H,P,O,T,_,k,M,D,R,K,V,j;return n(this,(function(n){switch(n.label){case 0:if(!A||"object"!=typeof A)return[2,Promise.reject("Invalid element provided as first argument")];if(!(r=A.ownerDocument))throw new Error("Element is not attached to a Document");if(!(i=r.defaultView))throw new Error("Document is not attached to a Window");return c={allowTaint:null!==(E=t.allowTaint)&&void 0!==E&&E,imageTimeout:null!==(L=t.imageTimeout)&&void 0!==L?L:15e3,proxy:t.proxy,useCORS:null!==(S=t.useCORS)&&void 0!==S&&S},u=e({logging:null===(I=t.logging)||void 0===I||I,cache:t.cache},c),l={windowWidth:null!==(N=t.windowWidth)&&void 0!==N?N:i.innerWidth,windowHeight:null!==(H=t.windowHeight)&&void 0!==H?H:i.innerHeight,scrollX:null!==(P=t.scrollX)&&void 0!==P?P:i.pageXOffset,scrollY:null!==(O=t.scrollY)&&void 0!==O?O:i.pageYOffset},h=new s(l.scrollX,l.scrollY,l.windowWidth,l.windowHeight),f=new Fc(u,h),d=null!==(T=t.foreignObjectRendering)&&void 0!==T&&T,g={allowTaint:null!==(_=t.allowTaint)&&void 0!==_&&_,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:d,copyStyles:d},f.logger.debug("Starting document clone with size "+h.width+"x"+h.height+" scrolled to "+-h.left+","+-h.top),p=new $o(f,A,g),(B=p.clonedReferenceElement)?[4,p.toIFrame(r,h)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return w=n.sent(),m=bo(B)||yo(B)?a(B.ownerDocument):o(f,B),y=m.width,v=m.height,b=m.left,C=m.top,Q=Ec(f,B,t.backgroundColor),F={canvas:t.canvas,backgroundColor:Q,scale:null!==(M=null!==(k=t.scale)&&void 0!==k?k:i.devicePixelRatio)&&void 0!==M?M:1,x:(null!==(D=t.x)&&void 0!==D?D:0)+b,y:(null!==(R=t.y)&&void 0!==R?R:0)+C,width:null!==(K=t.width)&&void 0!==K?K:Math.ceil(y),height:null!==(V=t.height)&&void 0!==V?V:Math.ceil(v)},d?(f.logger.debug("Document cloned, using foreign object rendering"),[4,new bc(f,F).render(B)]):[3,3];case 2:return U=n.sent(),[3,5];case 3:return f.logger.debug("Document cloned, element located at "+b+","+C+" with size "+y+"x"+v+" using computed rendering"),f.logger.debug("Starting DOM parsing"),x=co(f,B),Q===x.styles.backgroundColor&&(x.styles.backgroundColor=lr.TRANSPARENT),f.logger.debug("Starting renderer for element at "+F.x+","+F.y+" with size "+F.width+"x"+F.height),[4,new pc(f,F).render(x)];case 4:U=n.sent(),n.label=5;case 5:return(null===(j=t.removeContainer)||void 0===j||j)&&($o.destroy(w)||f.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),f.logger.debug("Finished rendering"),[2,U]}}))}))},Ec=function(A,t,e){var r=t.ownerDocument,n=r.documentElement?ur(A,getComputedStyle(r.documentElement).backgroundColor):lr.TRANSPARENT,i=r.body?ur(A,getComputedStyle(r.body).backgroundColor):lr.TRANSPARENT,s="string"==typeof e?ur(A,e):null===e?lr.TRANSPARENT:4294967295;return t===r.documentElement?er(n)?er(i)?s:i:n:s};return Uc}();var ge=A({__proto__:null,default:de.exports},[de.exports]),pe={exports:{}};pe.exports=function(){function A(t){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},A(t)}function t(A,e){return t=Object.setPrototypeOf||function(A,t){return A.__proto__=t,A},t(A,e)}function e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}function r(A,n,i){return r=e()?Reflect.construct:function(A,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(A,n));return r&&t(i,r.prototype),i},r.apply(null,arguments)}function n(A){return i(A)||s(A)||o(A)||c()}function i(A){if(Array.isArray(A))return a(A)}function s(A){if("undefined"!=typeof Symbol&&null!=A[Symbol.iterator]||null!=A["@@iterator"])return Array.from(A)}function o(A,t){if(A){if("string"==typeof A)return a(A,t);var e=Object.prototype.toString.call(A).slice(8,-1);return"Object"===e&&A.constructor&&(e=A.constructor.name),"Map"===e||"Set"===e?Array.from(A):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?a(A,t):void 0}}function a(A,t){(null==t||t>A.length)&&(t=A.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=A[e];return r}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=Object.hasOwnProperty,l=Object.setPrototypeOf,h=Object.isFrozen,f=Object.getPrototypeOf,d=Object.getOwnPropertyDescriptor,g=Object.freeze,p=Object.seal,B=Object.create,w="undefined"!=typeof Reflect&&Reflect,m=w.apply,y=w.construct;m||(m=function(A,t,e){return A.apply(t,e)}),g||(g=function(A){return A}),p||(p=function(A){return A}),y||(y=function(A,t){return r(A,n(t))});var v=N(Array.prototype.forEach),b=N(Array.prototype.pop),C=N(Array.prototype.push),Q=N(String.prototype.toLowerCase),F=N(String.prototype.toString),U=N(String.prototype.match),x=N(String.prototype.replace),E=N(String.prototype.indexOf),L=N(String.prototype.trim),S=N(RegExp.prototype.test),I=H(TypeError);function N(A){return function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return m(A,t,r)}}function H(A){return function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return y(A,e)}}function P(A,t,e){var r;e=null!==(r=e)&&void 0!==r?r:Q,l&&l(A,null);for(var n=t.length;n--;){var i=t[n];if("string"==typeof i){var s=e(i);s!==i&&(h(t)||(t[n]=s),i=s)}A[i]=!0}return A}function O(A){var t,e=B(null);for(t in A)!0===m(u,A,[t])&&(e[t]=A[t]);return e}function T(A,t){for(;null!==A;){var e=d(A,t);if(e){if(e.get)return N(e.get);if("function"==typeof e.value)return N(e.value)}A=f(A)}function r(A){return console.warn("fallback value for",A),null}return r}var _=g(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),k=g(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M=g(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=g(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),R=g(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),K=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),V=g(["#text"]),j=g(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),G=g(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),q=g(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),X=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=p(/<%[\w\W]*|[\w\W]*%>/gm),Y=p(/\${[\w\W]*}/gm),J=p(/^data-[\-\w.\u00B7-\uFFFF]/),Z=p(/^aria-[\-\w]+$/),$=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),AA=p(/^(?:\w+script|data):/i),tA=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eA=p(/^html$/i),rA=p(/^[a-z][.\w]*(-[.\w]+)+$/i),nA=function(){return"undefined"==typeof window?null:window},iA=function(t,e){if("object"!==A(t)||"function"!=typeof t.createPolicy)return null;var r=null,n="data-tt-policy-suffix";e.currentScript&&e.currentScript.hasAttribute(n)&&(r=e.currentScript.getAttribute(n));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(A){return A},createScriptURL:function(A){return A}})}catch(A){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function sA(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nA(),e=function(A){return sA(A)};if(e.version="2.5.6",e.removed=[],!t||!t.document||9!==t.document.nodeType)return e.isSupported=!1,e;var r=t.document,i=t.document,s=t.DocumentFragment,o=t.HTMLTemplateElement,a=t.Node,c=t.Element,u=t.NodeFilter,l=t.NamedNodeMap,h=void 0===l?t.NamedNodeMap||t.MozNamedAttrMap:l,f=t.HTMLFormElement,d=t.DOMParser,p=t.trustedTypes,B=c.prototype,w=T(B,"cloneNode"),m=T(B,"nextSibling"),y=T(B,"childNodes"),N=T(B,"parentNode");if("function"==typeof o){var H=i.createElement("template");H.content&&H.content.ownerDocument&&(i=H.content.ownerDocument)}var oA=iA(p,r),aA=oA?oA.createHTML(""):"",cA=i,uA=cA.implementation,lA=cA.createNodeIterator,hA=cA.createDocumentFragment,fA=cA.getElementsByTagName,dA=r.importNode,gA={};try{gA=O(i).documentMode?i.documentMode:{}}catch(A){}var pA={};e.isSupported="function"==typeof N&&uA&&void 0!==uA.createHTMLDocument&&9!==gA;var BA,wA,mA=z,yA=W,vA=Y,bA=J,CA=Z,QA=AA,FA=tA,UA=rA,xA=$,EA=null,LA=P({},[].concat(n(_),n(k),n(M),n(R),n(V))),SA=null,IA=P({},[].concat(n(j),n(G),n(q),n(X))),NA=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),HA=null,PA=null,OA=!0,TA=!0,_A=!1,kA=!0,MA=!1,DA=!0,RA=!1,KA=!1,VA=!1,jA=!1,GA=!1,qA=!1,XA=!0,zA=!1,WA="user-content-",YA=!0,JA=!1,ZA={},$A=null,At=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),tt=null,et=P({},["audio","video","img","source","image","track"]),rt=null,nt=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),it="http://www.w3.org/1998/Math/MathML",st="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml",at=ot,ct=!1,ut=null,lt=P({},[it,st,ot],F),ht=["application/xhtml+xml","text/html"],ft="text/html",dt=null,gt=i.createElement("form"),pt=function(A){return A instanceof RegExp||A instanceof Function},Bt=function(t){dt&&dt===t||(t&&"object"===A(t)||(t={}),t=O(t),BA=BA=-1===ht.indexOf(t.PARSER_MEDIA_TYPE)?ft:t.PARSER_MEDIA_TYPE,wA="application/xhtml+xml"===BA?F:Q,EA="ALLOWED_TAGS"in t?P({},t.ALLOWED_TAGS,wA):LA,SA="ALLOWED_ATTR"in t?P({},t.ALLOWED_ATTR,wA):IA,ut="ALLOWED_NAMESPACES"in t?P({},t.ALLOWED_NAMESPACES,F):lt,rt="ADD_URI_SAFE_ATTR"in t?P(O(nt),t.ADD_URI_SAFE_ATTR,wA):nt,tt="ADD_DATA_URI_TAGS"in t?P(O(et),t.ADD_DATA_URI_TAGS,wA):et,$A="FORBID_CONTENTS"in t?P({},t.FORBID_CONTENTS,wA):At,HA="FORBID_TAGS"in t?P({},t.FORBID_TAGS,wA):{},PA="FORBID_ATTR"in t?P({},t.FORBID_ATTR,wA):{},ZA="USE_PROFILES"in t&&t.USE_PROFILES,OA=!1!==t.ALLOW_ARIA_ATTR,TA=!1!==t.ALLOW_DATA_ATTR,_A=t.ALLOW_UNKNOWN_PROTOCOLS||!1,kA=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,MA=t.SAFE_FOR_TEMPLATES||!1,DA=!1!==t.SAFE_FOR_XML,RA=t.WHOLE_DOCUMENT||!1,jA=t.RETURN_DOM||!1,GA=t.RETURN_DOM_FRAGMENT||!1,qA=t.RETURN_TRUSTED_TYPE||!1,VA=t.FORCE_BODY||!1,XA=!1!==t.SANITIZE_DOM,zA=t.SANITIZE_NAMED_PROPS||!1,YA=!1!==t.KEEP_CONTENT,JA=t.IN_PLACE||!1,xA=t.ALLOWED_URI_REGEXP||xA,at=t.NAMESPACE||ot,NA=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(NA.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(NA.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(NA.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),MA&&(TA=!1),GA&&(jA=!0),ZA&&(EA=P({},n(V)),SA=[],!0===ZA.html&&(P(EA,_),P(SA,j)),!0===ZA.svg&&(P(EA,k),P(SA,G),P(SA,X)),!0===ZA.svgFilters&&(P(EA,M),P(SA,G),P(SA,X)),!0===ZA.mathMl&&(P(EA,R),P(SA,q),P(SA,X))),t.ADD_TAGS&&(EA===LA&&(EA=O(EA)),P(EA,t.ADD_TAGS,wA)),t.ADD_ATTR&&(SA===IA&&(SA=O(SA)),P(SA,t.ADD_ATTR,wA)),t.ADD_URI_SAFE_ATTR&&P(rt,t.ADD_URI_SAFE_ATTR,wA),t.FORBID_CONTENTS&&($A===At&&($A=O($A)),P($A,t.FORBID_CONTENTS,wA)),YA&&(EA["#text"]=!0),RA&&P(EA,["html","head","body"]),EA.table&&(P(EA,["tbody"]),delete HA.tbody),g&&g(t),dt=t)},wt=P({},["mi","mo","mn","ms","mtext"]),mt=P({},["foreignobject","annotation-xml"]),yt=P({},["title","style","font","a","script"]),vt=P({},k);P(vt,M),P(vt,D);var bt=P({},R);P(bt,K);var Ct=function(A){var t=N(A);t&&t.tagName||(t={namespaceURI:at,tagName:"template"});var e=Q(A.tagName),r=Q(t.tagName);return!!ut[A.namespaceURI]&&(A.namespaceURI===st?t.namespaceURI===ot?"svg"===e:t.namespaceURI===it?"svg"===e&&("annotation-xml"===r||wt[r]):Boolean(vt[e]):A.namespaceURI===it?t.namespaceURI===ot?"math"===e:t.namespaceURI===st?"math"===e&&mt[r]:Boolean(bt[e]):A.namespaceURI===ot?!(t.namespaceURI===st&&!mt[r])&&!(t.namespaceURI===it&&!wt[r])&&!bt[e]&&(yt[e]||!vt[e]):!("application/xhtml+xml"!==BA||!ut[A.namespaceURI]))},Qt=function(A){C(e.removed,{element:A});try{A.parentNode.removeChild(A)}catch(t){try{A.outerHTML=aA}catch(t){A.remove()}}},Ft=function(A,t){try{C(e.removed,{attribute:t.getAttributeNode(A),from:t})}catch(A){C(e.removed,{attribute:null,from:t})}if(t.removeAttribute(A),"is"===A&&!SA[A])if(jA||GA)try{Qt(t)}catch(A){}else try{t.setAttribute(A,"")}catch(A){}},Ut=function(A){var t,e;if(VA)A="<remove></remove>"+A;else{var r=U(A,/^[\r\n\t ]+/);e=r&&r[0]}"application/xhtml+xml"===BA&&at===ot&&(A='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+A+"</body></html>");var n=oA?oA.createHTML(A):A;if(at===ot)try{t=(new d).parseFromString(n,BA)}catch(A){}if(!t||!t.documentElement){t=uA.createDocument(at,"template",null);try{t.documentElement.innerHTML=ct?aA:n}catch(A){}}var s=t.body||t.documentElement;return A&&e&&s.insertBefore(i.createTextNode(e),s.childNodes[0]||null),at===ot?fA.call(t,RA?"html":"body")[0]:RA?t.documentElement:s},xt=function(A){return lA.call(A.ownerDocument||A,A,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null,!1)},Et=function(A){return A instanceof f&&("string"!=typeof A.nodeName||"string"!=typeof A.textContent||"function"!=typeof A.removeChild||!(A.attributes instanceof h)||"function"!=typeof A.removeAttribute||"function"!=typeof A.setAttribute||"string"!=typeof A.namespaceURI||"function"!=typeof A.insertBefore||"function"!=typeof A.hasChildNodes)},Lt=function(t){return"object"===A(a)?t instanceof a:t&&"object"===A(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},St=function(A,t,r){pA[A]&&v(pA[A],(function(A){A.call(e,t,r,dt)}))},It=function(A){var t;if(St("beforeSanitizeElements",A,null),Et(A))return Qt(A),!0;if(S(/[\u0080-\uFFFF]/,A.nodeName))return Qt(A),!0;var r=wA(A.nodeName);if(St("uponSanitizeElement",A,{tagName:r,allowedTags:EA}),A.hasChildNodes()&&!Lt(A.firstElementChild)&&(!Lt(A.content)||!Lt(A.content.firstElementChild))&&S(/<[/\w]/g,A.innerHTML)&&S(/<[/\w]/g,A.textContent))return Qt(A),!0;if("select"===r&&S(/<template/i,A.innerHTML))return Qt(A),!0;if(7===A.nodeType)return Qt(A),!0;if(DA&&8===A.nodeType&&S(/<[/\w]/g,A.data))return Qt(A),!0;if(!EA[r]||HA[r]){if(!HA[r]&&Ht(r)){if(NA.tagNameCheck instanceof RegExp&&S(NA.tagNameCheck,r))return!1;if(NA.tagNameCheck instanceof Function&&NA.tagNameCheck(r))return!1}if(YA&&!$A[r]){var n=N(A)||A.parentNode,i=y(A)||A.childNodes;if(i&&n)for(var s=i.length-1;s>=0;--s){var o=w(i[s],!0);o.__removalCount=(A.__removalCount||0)+1,n.insertBefore(o,m(A))}}return Qt(A),!0}return A instanceof c&&!Ct(A)?(Qt(A),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!S(/<\/no(script|embed|frames)/i,A.innerHTML)?(MA&&3===A.nodeType&&(t=A.textContent,t=x(t,mA," "),t=x(t,yA," "),t=x(t,vA," "),A.textContent!==t&&(C(e.removed,{element:A.cloneNode()}),A.textContent=t)),St("afterSanitizeElements",A,null),!1):(Qt(A),!0)},Nt=function(A,t,e){if(XA&&("id"===t||"name"===t)&&(e in i||e in gt))return!1;if(TA&&!PA[t]&&S(bA,t));else if(OA&&S(CA,t));else if(!SA[t]||PA[t]){if(!(Ht(A)&&(NA.tagNameCheck instanceof RegExp&&S(NA.tagNameCheck,A)||NA.tagNameCheck instanceof Function&&NA.tagNameCheck(A))&&(NA.attributeNameCheck instanceof RegExp&&S(NA.attributeNameCheck,t)||NA.attributeNameCheck instanceof Function&&NA.attributeNameCheck(t))||"is"===t&&NA.allowCustomizedBuiltInElements&&(NA.tagNameCheck instanceof RegExp&&S(NA.tagNameCheck,e)||NA.tagNameCheck instanceof Function&&NA.tagNameCheck(e))))return!1}else if(rt[t]);else if(S(xA,x(e,FA,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===A||0!==E(e,"data:")||!tt[A])if(_A&&!S(QA,x(e,FA,"")));else if(e)return!1;return!0},Ht=function(A){return"annotation-xml"!==A&&U(A,UA)},Pt=function(t){var r,n,i,s;St("beforeSanitizeAttributes",t,null);var o=t.attributes;if(o){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:SA};for(s=o.length;s--;){var c=r=o[s],u=c.name,l=c.namespaceURI;if(n="value"===u?r.value:L(r.value),i=wA(u),a.attrName=i,a.attrValue=n,a.keepAttr=!0,a.forceKeepAttr=void 0,St("uponSanitizeAttribute",t,a),n=a.attrValue,DA&&S(/((--!?|])>)|<\/(style|title)/i,n))Ft(u,t);else if(!a.forceKeepAttr&&(Ft(u,t),a.keepAttr))if(kA||!S(/\/>/i,n)){MA&&(n=x(n,mA," "),n=x(n,yA," "),n=x(n,vA," "));var h=wA(t.nodeName);if(Nt(h,i,n)){if(!zA||"id"!==i&&"name"!==i||(Ft(u,t),n=WA+n),oA&&"object"===A(p)&&"function"==typeof p.getAttributeType)if(l);else switch(p.getAttributeType(h,i)){case"TrustedHTML":n=oA.createHTML(n);break;case"TrustedScriptURL":n=oA.createScriptURL(n)}try{l?t.setAttributeNS(l,u,n):t.setAttribute(u,n),Et(t)?Qt(t):b(e.removed)}catch(A){}}}else Ft(u,t)}St("afterSanitizeAttributes",t,null)}},Ot=function A(t){var e,r=xt(t);for(St("beforeSanitizeShadowDOM",t,null);e=r.nextNode();)St("uponSanitizeShadowNode",e,null),It(e)||(e.content instanceof s&&A(e.content),Pt(e));St("afterSanitizeShadowDOM",t,null)};return e.sanitize=function(n){var i,o,c,u,l,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ct=!n)&&(n="\x3c!--\x3e"),"string"!=typeof n&&!Lt(n)){if("function"!=typeof n.toString)throw I("toString is not a function");if("string"!=typeof(n=n.toString()))throw I("dirty is not a string, aborting")}if(!e.isSupported){if("object"===A(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof n)return t.toStaticHTML(n);if(Lt(n))return t.toStaticHTML(n.outerHTML)}return n}if(KA||Bt(h),e.removed=[],"string"==typeof n&&(JA=!1),JA){if(n.nodeName){var f=wA(n.nodeName);if(!EA[f]||HA[f])throw I("root node is forbidden and cannot be sanitized in-place")}}else if(n instanceof a)1===(o=(i=Ut("\x3c!----\x3e")).ownerDocument.importNode(n,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!jA&&!MA&&!RA&&-1===n.indexOf("<"))return oA&&qA?oA.createHTML(n):n;if(!(i=Ut(n)))return jA?null:qA?aA:""}i&&VA&&Qt(i.firstChild);for(var d=xt(JA?n:i);c=d.nextNode();)3===c.nodeType&&c===u||It(c)||(c.content instanceof s&&Ot(c.content),Pt(c),u=c);if(u=null,JA)return n;if(jA){if(GA)for(l=hA.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(SA.shadowroot||SA.shadowrootmod)&&(l=dA.call(r,l,!0)),l}var g=RA?i.outerHTML:i.innerHTML;return RA&&EA["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&S(eA,i.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+g),MA&&(g=x(g,mA," "),g=x(g,yA," "),g=x(g,vA," ")),oA&&qA?oA.createHTML(g):g},e.setConfig=function(A){Bt(A),KA=!0},e.clearConfig=function(){dt=null,KA=!1},e.isValidAttribute=function(A,t,e){dt||Bt({});var r=wA(A),n=wA(t);return Nt(r,n,e)},e.addHook=function(A,t){"function"==typeof t&&(pA[A]=pA[A]||[],C(pA[A],t))},e.removeHook=function(A){if(pA[A])return b(pA[A])},e.removeHooks=function(A){pA[A]&&(pA[A]=[])},e.removeAllHooks=function(){pA={}},e}var oA=sA();return oA}();var Be=A({__proto__:null,default:pe.exports},[pe.exports]),we=function(A){return A&&A.Math===Math&&A},me=we("object"==typeof globalThis&&globalThis)||we("object"==typeof window&&window)||we("object"==typeof self&&self)||we("object"==typeof fe&&fe)||we("object"==typeof fe&&fe)||function(){return this}()||Function("return this")(),ye={},ve=function(A){try{return!!A()}catch(A){return!0}},be=!ve((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Ce=!ve((function(){var A=function(){}.bind();return"function"!=typeof A||A.hasOwnProperty("prototype")})),Qe=Ce,Fe=Function.prototype.call,Ue=Qe?Fe.bind(Fe):function(){return Fe.apply(Fe,arguments)},xe={},Ee={}.propertyIsEnumerable,Le=Object.getOwnPropertyDescriptor,Se=Le&&!Ee.call({1:2},1);xe.f=Se?function(A){var t=Le(this,A);return!!t&&t.enumerable}:Ee;var Ie,Ne,He=function(A,t){return{enumerable:!(1&A),configurable:!(2&A),writable:!(4&A),value:t}},Pe=Ce,Oe=Function.prototype,Te=Oe.call,_e=Pe&&Oe.bind.bind(Te,Te),ke=Pe?_e:function(A){return function(){return Te.apply(A,arguments)}},Me=ke,De=Me({}.toString),Re=Me("".slice),Ke=function(A){return Re(De(A),8,-1)},Ve=ve,je=Ke,Ge=Object,qe=ke("".split),Xe=Ve((function(){return!Ge("z").propertyIsEnumerable(0)}))?function(A){return"String"===je(A)?qe(A,""):Ge(A)}:Ge,ze=function(A){return null==A},We=ze,Ye=TypeError,Je=function(A){if(We(A))throw new Ye("Can't call method on "+A);return A},Ze=Xe,$e=Je,Ar=function(A){return Ze($e(A))},tr="object"==typeof document&&document.all,er=void 0===tr&&void 0!==tr?function(A){return"function"==typeof A||A===tr}:function(A){return"function"==typeof A},rr=er,nr=function(A){return"object"==typeof A?null!==A:rr(A)},ir=me,sr=er,or=function(A,t){return arguments.length<2?(e=ir[A],sr(e)?e:void 0):ir[A]&&ir[A][t];var e},ar=ke({}.isPrototypeOf),cr="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ur=me,lr=cr,hr=ur.process,fr=ur.Deno,dr=hr&&hr.versions||fr&&fr.version,gr=dr&&dr.v8;gr&&(Ne=(Ie=gr.split("."))[0]>0&&Ie[0]<4?1:+(Ie[0]+Ie[1])),!Ne&&lr&&(!(Ie=lr.match(/Edge\/(\d+)/))||Ie[1]>=74)&&(Ie=lr.match(/Chrome\/(\d+)/))&&(Ne=+Ie[1]);var pr=Ne,Br=pr,wr=ve,mr=me.String,yr=!!Object.getOwnPropertySymbols&&!wr((function(){var A=Symbol("symbol detection");return!mr(A)||!(Object(A)instanceof Symbol)||!Symbol.sham&&Br&&Br<41})),vr=yr&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,br=or,Cr=er,Qr=ar,Fr=Object,Ur=vr?function(A){return"symbol"==typeof A}:function(A){var t=br("Symbol");return Cr(t)&&Qr(t.prototype,Fr(A))},xr=String,Er=function(A){try{return xr(A)}catch(A){return"Object"}},Lr=er,Sr=Er,Ir=TypeError,Nr=function(A){if(Lr(A))return A;throw new Ir(Sr(A)+" is not a function")},Hr=Nr,Pr=ze,Or=function(A,t){var e=A[t];return Pr(e)?void 0:Hr(e)},Tr=Ue,_r=er,kr=nr,Mr=TypeError,Dr={exports:{}},Rr=me,Kr=Object.defineProperty,Vr=function(A,t){try{Kr(Rr,A,{value:t,configurable:!0,writable:!0})}catch(e){Rr[A]=t}return t},jr=me,Gr=Vr,qr="__core-js_shared__",Xr=Dr.exports=jr[qr]||Gr(qr,{});(Xr.versions||(Xr.versions=[])).push({version:"3.37.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"});var zr=Dr.exports,Wr=function(A,t){return zr[A]||(zr[A]=t||{})},Yr=Je,Jr=Object,Zr=function(A){return Jr(Yr(A))},$r=Zr,An=ke({}.hasOwnProperty),tn=Object.hasOwn||function(A,t){return An($r(A),t)},en=ke,rn=0,nn=Math.random(),sn=en(1..toString),on=function(A){return"Symbol("+(void 0===A?"":A)+")_"+sn(++rn+nn,36)},an=Wr,cn=tn,un=on,ln=yr,hn=vr,fn=me.Symbol,dn=an("wks"),gn=hn?fn.for||fn:fn&&fn.withoutSetter||un,pn=function(A){return cn(dn,A)||(dn[A]=ln&&cn(fn,A)?fn[A]:gn("Symbol."+A)),dn[A]},Bn=Ue,wn=nr,mn=Ur,yn=Or,vn=function(A,t){var e,r;if("string"===t&&_r(e=A.toString)&&!kr(r=Tr(e,A)))return r;if(_r(e=A.valueOf)&&!kr(r=Tr(e,A)))return r;if("string"!==t&&_r(e=A.toString)&&!kr(r=Tr(e,A)))return r;throw new Mr("Can't convert object to primitive value")},bn=TypeError,Cn=pn("toPrimitive"),Qn=function(A,t){if(!wn(A)||mn(A))return A;var e,r=yn(A,Cn);if(r){if(void 0===t&&(t="default"),e=Bn(r,A,t),!wn(e)||mn(e))return e;throw new bn("Can't convert object to primitive value")}return void 0===t&&(t="number"),vn(A,t)},Fn=Ur,Un=function(A){var t=Qn(A,"string");return Fn(t)?t:t+""},xn=nr,En=me.document,Ln=xn(En)&&xn(En.createElement),Sn=function(A){return Ln?En.createElement(A):{}},In=Sn,Nn=!be&&!ve((function(){return 7!==Object.defineProperty(In("div"),"a",{get:function(){return 7}}).a})),Hn=be,Pn=Ue,On=xe,Tn=He,_n=Ar,kn=Un,Mn=tn,Dn=Nn,Rn=Object.getOwnPropertyDescriptor;ye.f=Hn?Rn:function(A,t){if(A=_n(A),t=kn(t),Dn)try{return Rn(A,t)}catch(A){}if(Mn(A,t))return Tn(!Pn(On.f,A,t),A[t])};var Kn={},Vn=be&&ve((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),jn=nr,Gn=String,qn=TypeError,Xn=function(A){if(jn(A))return A;throw new qn(Gn(A)+" is not an object")},zn=be,Wn=Nn,Yn=Vn,Jn=Xn,Zn=Un,$n=TypeError,Ai=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,ei="enumerable",ri="configurable",ni="writable";Kn.f=zn?Yn?function(A,t,e){if(Jn(A),t=Zn(t),Jn(e),"function"==typeof A&&"prototype"===t&&"value"in e&&ni in e&&!e[ni]){var r=ti(A,t);r&&r[ni]&&(A[t]=e.value,e={configurable:ri in e?e[ri]:r[ri],enumerable:ei in e?e[ei]:r[ei],writable:!1})}return Ai(A,t,e)}:Ai:function(A,t,e){if(Jn(A),t=Zn(t),Jn(e),Wn)try{return Ai(A,t,e)}catch(A){}if("get"in e||"set"in e)throw new $n("Accessors not supported");return"value"in e&&(A[t]=e.value),A};var ii=Kn,si=He,oi=be?function(A,t,e){return ii.f(A,t,si(1,e))}:function(A,t,e){return A[t]=e,A},ai={exports:{}},ci=be,ui=tn,li=Function.prototype,hi=ci&&Object.getOwnPropertyDescriptor,fi=ui(li,"name"),di={EXISTS:fi,PROPER:fi&&"something"===function(){}.name,CONFIGURABLE:fi&&(!ci||ci&&hi(li,"name").configurable)},gi=ke,pi=er,Bi=Dr.exports,wi=gi(Function.toString);pi(Bi.inspectSource)||(Bi.inspectSource=function(A){return wi(A)});var mi,yi,vi,bi=Bi.inspectSource,Ci=er,Qi=me.WeakMap,Fi=Ci(Qi)&&/native code/.test(String(Qi)),Ui=on,xi=Wr("keys"),Ei=function(A){return xi[A]||(xi[A]=Ui(A))},Li={},Si=Fi,Ii=me,Ni=nr,Hi=oi,Pi=tn,Oi=Dr.exports,Ti=Ei,_i=Li,ki="Object already initialized",Mi=Ii.TypeError,Di=Ii.WeakMap;if(Si||Oi.state){var Ri=Oi.state||(Oi.state=new Di);Ri.get=Ri.get,Ri.has=Ri.has,Ri.set=Ri.set,mi=function(A,t){if(Ri.has(A))throw new Mi(ki);return t.facade=A,Ri.set(A,t),t},yi=function(A){return Ri.get(A)||{}},vi=function(A){return Ri.has(A)}}else{var Ki=Ti("state");_i[Ki]=!0,mi=function(A,t){if(Pi(A,Ki))throw new Mi(ki);return t.facade=A,Hi(A,Ki,t),t},yi=function(A){return Pi(A,Ki)?A[Ki]:{}},vi=function(A){return Pi(A,Ki)}}var Vi={set:mi,get:yi,has:vi,enforce:function(A){return vi(A)?yi(A):mi(A,{})},getterFor:function(A){return function(t){var e;if(!Ni(t)||(e=yi(t)).type!==A)throw new Mi("Incompatible receiver, "+A+" required");return e}}},ji=ke,Gi=ve,qi=er,Xi=tn,zi=be,Wi=di.CONFIGURABLE,Yi=bi,Ji=Vi.enforce,Zi=Vi.get,$i=String,As=Object.defineProperty,ts=ji("".slice),es=ji("".replace),rs=ji([].join),ns=zi&&!Gi((function(){return 8!==As((function(){}),"length",{value:8}).length})),is=String(String).split("String"),ss=ai.exports=function(A,t,e){"Symbol("===ts($i(t),0,7)&&(t="["+es($i(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(t="get "+t),e&&e.setter&&(t="set "+t),(!Xi(A,"name")||Wi&&A.name!==t)&&(zi?As(A,"name",{value:t,configurable:!0}):A.name=t),ns&&e&&Xi(e,"arity")&&A.length!==e.arity&&As(A,"length",{value:e.arity});try{e&&Xi(e,"constructor")&&e.constructor?zi&&As(A,"prototype",{writable:!1}):A.prototype&&(A.prototype=void 0)}catch(A){}var r=Ji(A);return Xi(r,"source")||(r.source=rs(is,"string"==typeof t?t:"")),A};Function.prototype.toString=ss((function(){return qi(this)&&Zi(this).source||Yi(this)}),"toString");var os=er,as=Kn,cs=ai.exports,us=Vr,ls=function(A,t,e,r){r||(r={});var n=r.enumerable,i=void 0!==r.name?r.name:t;if(os(e)&&cs(e,i,r),r.global)n?A[t]=e:us(t,e);else{try{r.unsafe?A[t]&&(n=!0):delete A[t]}catch(A){}n?A[t]=e:as.f(A,t,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return A},hs={},fs=Math.ceil,ds=Math.floor,gs=Math.trunc||function(A){var t=+A;return(t>0?ds:fs)(t)},ps=gs,Bs=function(A){var t=+A;return t!=t||0===t?0:ps(t)},ws=Bs,ms=Math.max,ys=Math.min,vs=Bs,bs=Math.min,Cs=function(A){var t=vs(A);return t>0?bs(t,9007199254740991):0},Qs=Cs,Fs=function(A){return Qs(A.length)},Us=Ar,xs=function(A,t){var e=ws(A);return e<0?ms(e+t,0):ys(e,t)},Es=Fs,Ls=function(A){return function(t,e,r){var n=Us(t),i=Es(n);if(0===i)return!A&&-1;var s,o=xs(r,i);if(A&&e!=e){for(;i>o;)if((s=n[o++])!=s)return!0}else for(;i>o;o++)if((A||o in n)&&n[o]===e)return A||o||0;return!A&&-1}},Ss={includes:Ls(!0),indexOf:Ls(!1)},Is=tn,Ns=Ar,Hs=Ss.indexOf,Ps=Li,Os=ke([].push),Ts=function(A,t){var e,r=Ns(A),n=0,i=[];for(e in r)!Is(Ps,e)&&Is(r,e)&&Os(i,e);for(;t.length>n;)Is(r,e=t[n++])&&(~Hs(i,e)||Os(i,e));return i},_s=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ks=Ts,Ms=_s.concat("length","prototype");hs.f=Object.getOwnPropertyNames||function(A){return ks(A,Ms)};var Ds={};Ds.f=Object.getOwnPropertySymbols;var Rs=or,Ks=hs,Vs=Ds,js=Xn,Gs=ke([].concat),qs=Rs("Reflect","ownKeys")||function(A){var t=Ks.f(js(A)),e=Vs.f;return e?Gs(t,e(A)):t},Xs=tn,zs=qs,Ws=ye,Ys=Kn,Js=ve,Zs=er,$s=/#|\.prototype\./,Ao=function(A,t){var e=eo[to(A)];return e===no||e!==ro&&(Zs(t)?Js(t):!!t)},to=Ao.normalize=function(A){return String(A).replace($s,".").toLowerCase()},eo=Ao.data={},ro=Ao.NATIVE="N",no=Ao.POLYFILL="P",io=Ao,so=me,oo=ye.f,ao=oi,co=ls,uo=Vr,lo=function(A,t,e){for(var r=zs(t),n=Ys.f,i=Ws.f,s=0;s<r.length;s++){var o=r[s];Xs(A,o)||e&&Xs(e,o)||n(A,o,i(t,o))}},ho=io,fo=function(A,t){var e,r,n,i,s,o=A.target,a=A.global,c=A.stat;if(e=a?so:c?so[o]||uo(o,{}):so[o]&&so[o].prototype)for(r in t){if(i=t[r],n=A.dontCallGetSet?(s=oo(e,r))&&s.value:e[r],!ho(a?r:o+(c?".":"#")+r,A.forced)&&void 0!==n){if(typeof i==typeof n)continue;lo(i,n)}(A.sham||n&&n.sham)&&ao(i,"sham",!0),co(e,r,i,A)}},go="process"===Ke(me.process),po=ke,Bo=Nr,wo=nr,mo=function(A){return wo(A)||null===A},yo=String,vo=TypeError,bo=function(A,t,e){try{return po(Bo(Object.getOwnPropertyDescriptor(A,t)[e]))}catch(A){}},Co=nr,Qo=Je,Fo=function(A){if(mo(A))return A;throw new vo("Can't set "+yo(A)+" as a prototype")},Uo=Object.setPrototypeOf||("__proto__"in{}?function(){var A,t=!1,e={};try{(A=bo(Object.prototype,"__proto__","set"))(e,[]),t=e instanceof Array}catch(A){}return function(e,r){return Qo(e),Fo(r),Co(e)?(t?A(e,r):e.__proto__=r,e):e}}():void 0),xo=Kn.f,Eo=tn,Lo=pn("toStringTag"),So=function(A,t,e){A&&!e&&(A=A.prototype),A&&!Eo(A,Lo)&&xo(A,Lo,{configurable:!0,value:t})},Io=ai.exports,No=Kn,Ho=or,Po=function(A,t,e){return e.get&&Io(e.get,t,{getter:!0}),e.set&&Io(e.set,t,{setter:!0}),No.f(A,t,e)},Oo=be,To=pn("species"),_o=ar,ko=TypeError,Mo={};Mo[pn("toStringTag")]="z";var Do="[object z]"===String(Mo),Ro=er,Ko=Ke,Vo=pn("toStringTag"),jo=Object,Go="Arguments"===Ko(function(){return arguments}()),qo=Do?Ko:function(A){var t,e,r;return void 0===A?"Undefined":null===A?"Null":"string"==typeof(e=function(A,t){try{return A[t]}catch(A){}}(t=jo(A),Vo))?e:Go?Ko(t):"Object"===(r=Ko(t))&&Ro(t.callee)?"Arguments":r},Xo=ke,zo=ve,Wo=er,Yo=qo,Jo=bi,Zo=function(){},$o=or("Reflect","construct"),Aa=/^\s*(?:class|function)\b/,ta=Xo(Aa.exec),ea=!Aa.test(Zo),ra=function(A){if(!Wo(A))return!1;try{return $o(Zo,[],A),!0}catch(A){return!1}},na=function(A){if(!Wo(A))return!1;switch(Yo(A)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ea||!!ta(Aa,Jo(A))}catch(A){return!0}};na.sham=!0;var ia,sa,oa,aa,ca=!$o||zo((function(){var A;return ra(ra.call)||!ra(Object)||!ra((function(){A=!0}))||A}))?na:ra,ua=ca,la=Er,ha=TypeError,fa=Xn,da=function(A){if(ua(A))return A;throw new ha(la(A)+" is not a constructor")},ga=ze,pa=pn("species"),Ba=function(A,t){var e,r=fa(A).constructor;return void 0===r||ga(e=fa(r)[pa])?t:da(e)},wa=Ce,ma=Function.prototype,ya=ma.apply,va=ma.call,ba="object"==typeof Reflect&&Reflect.apply||(wa?va.bind(ya):function(){return va.apply(ya,arguments)}),Ca=Ke,Qa=ke,Fa=function(A){if("Function"===Ca(A))return Qa(A)},Ua=Nr,xa=Ce,Ea=Fa(Fa.bind),La=function(A,t){return Ua(A),void 0===t?A:xa?Ea(A,t):function(){return A.apply(t,arguments)}},Sa=or("document","documentElement"),Ia=ke([].slice),Na=TypeError,Ha=/(?:ipad|iphone|ipod).*applewebkit/i.test(cr),Pa=me,Oa=ba,Ta=La,_a=er,ka=tn,Ma=ve,Da=Sa,Ra=Ia,Ka=Sn,Va=function(A,t){if(A<t)throw new Na("Not enough arguments");return A},ja=Ha,Ga=go,qa=Pa.setImmediate,Xa=Pa.clearImmediate,za=Pa.process,Wa=Pa.Dispatch,Ya=Pa.Function,Ja=Pa.MessageChannel,Za=Pa.String,$a=0,Ac={},tc="onreadystatechange";Ma((function(){ia=Pa.location}));var ec=function(A){if(ka(Ac,A)){var t=Ac[A];delete Ac[A],t()}},rc=function(A){return function(){ec(A)}},nc=function(A){ec(A.data)},ic=function(A){Pa.postMessage(Za(A),ia.protocol+"//"+ia.host)};qa&&Xa||(qa=function(A){Va(arguments.length,1);var t=_a(A)?A:Ya(A),e=Ra(arguments,1);return Ac[++$a]=function(){Oa(t,void 0,e)},sa($a),$a},Xa=function(A){delete Ac[A]},Ga?sa=function(A){za.nextTick(rc(A))}:Wa&&Wa.now?sa=function(A){Wa.now(rc(A))}:Ja&&!ja?(aa=(oa=new Ja).port2,oa.port1.onmessage=nc,sa=Ta(aa.postMessage,aa)):Pa.addEventListener&&_a(Pa.postMessage)&&!Pa.importScripts&&ia&&"file:"!==ia.protocol&&!Ma(ic)?(sa=ic,Pa.addEventListener("message",nc,!1)):sa=tc in Ka("script")?function(A){Da.appendChild(Ka("script"))[tc]=function(){Da.removeChild(this),ec(A)}}:function(A){setTimeout(rc(A),0)});var sc={set:qa,clear:Xa},oc=me,ac=be,cc=Object.getOwnPropertyDescriptor,uc=function(){this.head=null,this.tail=null};uc.prototype={add:function(A){var t={item:A,next:null},e=this.tail;e?e.next=t:this.head=t,this.tail=t},get:function(){var A=this.head;if(A)return null===(this.head=A.next)&&(this.tail=null),A.item}};var lc,hc,fc,dc,gc,pc=uc,Bc=/ipad|iphone|ipod/i.test(cr)&&"undefined"!=typeof Pebble,wc=/web0s(?!.*chrome)/i.test(cr),mc=me,yc=function(A){if(!ac)return oc[A];var t=cc(oc,A);return t&&t.value},vc=La,bc=sc.set,Cc=pc,Qc=Ha,Fc=Bc,Uc=wc,xc=go,Ec=mc.MutationObserver||mc.WebKitMutationObserver,Lc=mc.document,Sc=mc.process,Ic=mc.Promise,Nc=yc("queueMicrotask");if(!Nc){var Hc=new Cc,Pc=function(){var A,t;for(xc&&(A=Sc.domain)&&A.exit();t=Hc.get();)try{t()}catch(A){throw Hc.head&&lc(),A}A&&A.enter()};Qc||xc||Uc||!Ec||!Lc?!Fc&&Ic&&Ic.resolve?((dc=Ic.resolve(void 0)).constructor=Ic,gc=vc(dc.then,dc),lc=function(){gc(Pc)}):xc?lc=function(){Sc.nextTick(Pc)}:(bc=vc(bc,mc),lc=function(){bc(Pc)}):(hc=!0,fc=Lc.createTextNode(""),new Ec(Pc).observe(fc,{characterData:!0}),lc=function(){fc.data=hc=!hc}),Nc=function(A){Hc.head||lc(),Hc.add(A)}}var Oc=Nc,Tc=function(A){try{return{error:!1,value:A()}}catch(A){return{error:!0,value:A}}},_c=me.Promise,kc="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Mc=!kc&&!go&&"object"==typeof window&&"object"==typeof document,Dc=me,Rc=_c,Kc=er,Vc=io,jc=bi,Gc=pn,qc=Mc,Xc=kc,zc=pr;Rc&&Rc.prototype;var Wc=Gc("species"),Yc=!1,Jc=Kc(Dc.PromiseRejectionEvent),Zc=Vc("Promise",(function(){var A=jc(Rc),t=A!==String(Rc);if(!t&&66===zc)return!0;if(!zc||zc<51||!/native code/.test(A)){var e=new Rc((function(A){A(1)})),r=function(A){A((function(){}),(function(){}))};if((e.constructor={})[Wc]=r,!(Yc=e.then((function(){}))instanceof r))return!0}return!t&&(qc||Xc)&&!Jc})),$c={CONSTRUCTOR:Zc,REJECTION_EVENT:Jc,SUBCLASSING:Yc},Au={},tu=Nr,eu=TypeError,ru=function(A){var t,e;this.promise=new A((function(A,r){if(void 0!==t||void 0!==e)throw new eu("Bad Promise constructor");t=A,e=r})),this.resolve=tu(t),this.reject=tu(e)};Au.f=function(A){return new ru(A)};var nu,iu,su,ou=fo,au=go,cu=me,uu=Ue,lu=ls,hu=Uo,fu=So,du=function(A){var t=Ho(A);Oo&&t&&!t[To]&&Po(t,To,{configurable:!0,get:function(){return this}})},gu=Nr,pu=er,Bu=nr,wu=function(A,t){if(_o(t,A))return A;throw new ko("Incorrect invocation")},mu=Ba,yu=sc.set,vu=Oc,bu=function(A,t){try{1===arguments.length?console.error(A):console.error(A,t)}catch(A){}},Cu=Tc,Qu=pc,Fu=Vi,Uu=_c,xu=Au,Eu="Promise",Lu=$c.CONSTRUCTOR,Su=$c.REJECTION_EVENT,Iu=$c.SUBCLASSING,Nu=Fu.getterFor(Eu),Hu=Fu.set,Pu=Uu&&Uu.prototype,Ou=Uu,Tu=Pu,_u=cu.TypeError,ku=cu.document,Mu=cu.process,Du=xu.f,Ru=Du,Ku=!!(ku&&ku.createEvent&&cu.dispatchEvent),Vu="unhandledrejection",ju=function(A){var t;return!(!Bu(A)||!pu(t=A.then))&&t},Gu=function(A,t){var e,r,n,i=t.value,s=1===t.state,o=s?A.ok:A.fail,a=A.resolve,c=A.reject,u=A.domain;try{o?(s||(2===t.rejection&&Yu(t),t.rejection=1),!0===o?e=i:(u&&u.enter(),e=o(i),u&&(u.exit(),n=!0)),e===A.promise?c(new _u("Promise-chain cycle")):(r=ju(e))?uu(r,e,a,c):a(e)):c(i)}catch(A){u&&!n&&u.exit(),c(A)}},qu=function(A,t){A.notified||(A.notified=!0,vu((function(){for(var e,r=A.reactions;e=r.get();)Gu(e,A);A.notified=!1,t&&!A.rejection&&zu(A)})))},Xu=function(A,t,e){var r,n;Ku?((r=ku.createEvent("Event")).promise=t,r.reason=e,r.initEvent(A,!1,!0),cu.dispatchEvent(r)):r={promise:t,reason:e},!Su&&(n=cu["on"+A])?n(r):A===Vu&&bu("Unhandled promise rejection",e)},zu=function(A){uu(yu,cu,(function(){var t,e=A.facade,r=A.value;if(Wu(A)&&(t=Cu((function(){au?Mu.emit("unhandledRejection",r,e):Xu(Vu,e,r)})),A.rejection=au||Wu(A)?2:1,t.error))throw t.value}))},Wu=function(A){return 1!==A.rejection&&!A.parent},Yu=function(A){uu(yu,cu,(function(){var t=A.facade;au?Mu.emit("rejectionHandled",t):Xu("rejectionhandled",t,A.value)}))},Ju=function(A,t,e){return function(r){A(t,r,e)}},Zu=function(A,t,e){A.done||(A.done=!0,e&&(A=e),A.value=t,A.state=2,qu(A,!0))},$u=function(A,t,e){if(!A.done){A.done=!0,e&&(A=e);try{if(A.facade===t)throw new _u("Promise can't be resolved itself");var r=ju(t);r?vu((function(){var e={done:!1};try{uu(r,t,Ju($u,e,A),Ju(Zu,e,A))}catch(t){Zu(e,t,A)}})):(A.value=t,A.state=1,qu(A,!1))}catch(t){Zu({done:!1},t,A)}}};if(Lu&&(Tu=(Ou=function(A){wu(this,Tu),gu(A),uu(nu,this);var t=Nu(this);try{A(Ju($u,t),Ju(Zu,t))}catch(A){Zu(t,A)}}).prototype,(nu=function(A){Hu(this,{type:Eu,done:!1,notified:!1,parent:!1,reactions:new Qu,rejection:!1,state:0,value:void 0})}).prototype=lu(Tu,"then",(function(A,t){var e=Nu(this),r=Du(mu(this,Ou));return e.parent=!0,r.ok=!pu(A)||A,r.fail=pu(t)&&t,r.domain=au?Mu.domain:void 0,0===e.state?e.reactions.add(r):vu((function(){Gu(r,e)})),r.promise})),iu=function(){var A=new nu,t=Nu(A);this.promise=A,this.resolve=Ju($u,t),this.reject=Ju(Zu,t)},xu.f=Du=function(A){return A===Ou||undefined===A?new iu(A):Ru(A)},pu(Uu)&&Pu!==Object.prototype)){su=Pu.then,Iu||lu(Pu,"then",(function(A,t){var e=this;return new Ou((function(A,t){uu(su,e,A,t)})).then(A,t)}),{unsafe:!0});try{delete Pu.constructor}catch(A){}hu&&hu(Pu,Tu)}ou({global:!0,constructor:!0,wrap:!0,forced:Lu},{Promise:Ou}),fu(Ou,Eu,!1),du(Eu);var Al={},tl=Al,el=pn("iterator"),rl=Array.prototype,nl=qo,il=Or,sl=ze,ol=Al,al=pn("iterator"),cl=function(A){if(!sl(A))return il(A,al)||il(A,"@@iterator")||ol[nl(A)]},ul=Ue,ll=Nr,hl=Xn,fl=Er,dl=cl,gl=TypeError,pl=Ue,Bl=Xn,wl=Or,ml=La,yl=Ue,vl=Xn,bl=Er,Cl=function(A){return void 0!==A&&(tl.Array===A||rl[el]===A)},Ql=Fs,Fl=ar,Ul=function(A,t){var e=arguments.length<2?dl(A):t;if(ll(e))return hl(ul(e,A));throw new gl(fl(A)+" is not iterable")},xl=cl,El=function(A,t,e){var r,n;Bl(A);try{if(!(r=wl(A,"return"))){if("throw"===t)throw e;return e}r=pl(r,A)}catch(A){n=!0,r=A}if("throw"===t)throw e;if(n)throw r;return Bl(r),e},Ll=TypeError,Sl=function(A,t){this.stopped=A,this.result=t},Il=Sl.prototype,Nl=function(A,t,e){var r,n,i,s,o,a,c,u=e&&e.that,l=!(!e||!e.AS_ENTRIES),h=!(!e||!e.IS_RECORD),f=!(!e||!e.IS_ITERATOR),d=!(!e||!e.INTERRUPTED),g=ml(t,u),p=function(A){return r&&El(r,"normal",A),new Sl(!0,A)},B=function(A){return l?(vl(A),d?g(A[0],A[1],p):g(A[0],A[1])):d?g(A,p):g(A)};if(h)r=A.iterator;else if(f)r=A;else{if(!(n=xl(A)))throw new Ll(bl(A)+" is not iterable");if(Cl(n)){for(i=0,s=Ql(A);s>i;i++)if((o=B(A[i]))&&Fl(Il,o))return o;return new Sl(!1)}r=Ul(A,n)}for(a=h?A.next:r.next;!(c=yl(a,r)).done;){try{o=B(c.value)}catch(A){El(r,"throw",A)}if("object"==typeof o&&o&&Fl(Il,o))return o}return new Sl(!1)},Hl=pn("iterator"),Pl=!1;try{var Ol=0,Tl={next:function(){return{done:!!Ol++}},return:function(){Pl=!0}};Tl[Hl]=function(){return this},Array.from(Tl,(function(){throw 2}))}catch(A){}var _l=_c,kl=function(A,t){try{if(!t&&!Pl)return!1}catch(A){return!1}var e=!1;try{var r={};r[Hl]=function(){return{next:function(){return{done:e=!0}}}},A(r)}catch(A){}return e},Ml=$c.CONSTRUCTOR||!kl((function(A){_l.all(A).then(void 0,(function(){}))})),Dl=Ue,Rl=Nr,Kl=Au,Vl=Tc,jl=Nl;fo({target:"Promise",stat:!0,forced:Ml},{all:function(A){var t=this,e=Kl.f(t),r=e.resolve,n=e.reject,i=Vl((function(){var e=Rl(t.resolve),i=[],s=0,o=1;jl(A,(function(A){var a=s++,c=!1;o++,Dl(e,t,A).then((function(A){c||(c=!0,i[a]=A,--o||r(i))}),n)})),--o||r(i)}));return i.error&&n(i.value),e.promise}});var Gl=fo,ql=$c.CONSTRUCTOR,Xl=_c,zl=or,Wl=er,Yl=ls,Jl=Xl&&Xl.prototype;if(Gl({target:"Promise",proto:!0,forced:ql,real:!0},{catch:function(A){return this.then(void 0,A)}}),Wl(Xl)){var Zl=zl("Promise").prototype.catch;Jl.catch!==Zl&&Yl(Jl,"catch",Zl,{unsafe:!0})}var $l=Ue,Ah=Nr,th=Au,eh=Tc,rh=Nl;fo({target:"Promise",stat:!0,forced:Ml},{race:function(A){var t=this,e=th.f(t),r=e.reject,n=eh((function(){var n=Ah(t.resolve);rh(A,(function(A){$l(n,t,A).then(e.resolve,r)}))}));return n.error&&r(n.value),e.promise}});var nh=Au;fo({target:"Promise",stat:!0,forced:$c.CONSTRUCTOR},{reject:function(A){var t=nh.f(this);return(0,t.reject)(A),t.promise}});var ih=Xn,sh=nr,oh=Au,ah=fo,ch=$c.CONSTRUCTOR,uh=function(A,t){if(ih(A),sh(t)&&t.constructor===A)return t;var e=oh.f(A);return(0,e.resolve)(t),e.promise};function lh(A,t,e,r,n,i,s){try{var o=A[i](s),a=o.value}catch(A){return void e(A)}o.done?t(a):Promise.resolve(a).then(r,n)}function hh(A){return function(){var t=this,e=arguments;return new Promise((function(r,n){var i=A.apply(t,e);function s(A){lh(i,r,n,s,o,"next",A)}function o(A){lh(i,r,n,s,o,"throw",A)}s(void 0)}))}}or("Promise"),ah({target:"Promise",stat:!0,forced:ch},{resolve:function(A){return uh(this,A)}});var fh=qo,dh=String,gh=function(A){if("Symbol"===fh(A))throw new TypeError("Cannot convert a Symbol value to a string");return dh(A)},ph=Xn,Bh=function(){var A=ph(this),t="";return A.hasIndices&&(t+="d"),A.global&&(t+="g"),A.ignoreCase&&(t+="i"),A.multiline&&(t+="m"),A.dotAll&&(t+="s"),A.unicode&&(t+="u"),A.unicodeSets&&(t+="v"),A.sticky&&(t+="y"),t},wh=ve,mh=me.RegExp,yh=wh((function(){var A=mh("a","y");return A.lastIndex=2,null!==A.exec("abcd")})),vh=yh||wh((function(){return!mh("a","y").sticky})),bh={BROKEN_CARET:yh||wh((function(){var A=mh("^r","gy");return A.lastIndex=2,null!==A.exec("str")})),MISSED_STICKY:vh,UNSUPPORTED_Y:yh},Ch={},Qh=Ts,Fh=_s,Uh=Object.keys||function(A){return Qh(A,Fh)},xh=be,Eh=Vn,Lh=Kn,Sh=Xn,Ih=Ar,Nh=Uh;Ch.f=xh&&!Eh?Object.defineProperties:function(A,t){Sh(A);for(var e,r=Ih(t),n=Nh(t),i=n.length,s=0;i>s;)Lh.f(A,e=n[s++],r[e]);return A};var Hh,Ph=Xn,Oh=Ch,Th=_s,_h=Li,kh=Sa,Mh=Sn,Dh="prototype",Rh="script",Kh=Ei("IE_PROTO"),Vh=function(){},jh=function(A){return"<"+Rh+">"+A+"</"+Rh+">"},Gh=function(A){A.write(jh("")),A.close();var t=A.parentWindow.Object;return A=null,t},qh=function(){try{Hh=new ActiveXObject("htmlfile")}catch(A){}var A,t,e;qh="undefined"!=typeof document?document.domain&&Hh?Gh(Hh):(t=Mh("iframe"),e="java"+Rh+":",t.style.display="none",kh.appendChild(t),t.src=String(e),(A=t.contentWindow.document).open(),A.write(jh("document.F=Object")),A.close(),A.F):Gh(Hh);for(var r=Th.length;r--;)delete qh[Dh][Th[r]];return qh()};_h[Kh]=!0;var Xh,zh,Wh=Object.create||function(A,t){var e;return null!==A?(Vh[Dh]=Ph(A),e=new Vh,Vh[Dh]=null,e[Kh]=A):e=qh(),void 0===t?e:Oh.f(e,t)},Yh=ve,Jh=me.RegExp,Zh=Yh((function(){var A=Jh(".","s");return!(A.dotAll&&A.test("\n")&&"s"===A.flags)})),$h=ve,Af=me.RegExp,tf=$h((function(){var A=Af("(?<a>b)","g");return"b"!==A.exec("b").groups.a||"bc"!=="b".replace(A,"$<a>c")})),ef=Ue,rf=ke,nf=gh,sf=Bh,of=bh,af=Wh,cf=Vi.get,uf=Zh,lf=tf,hf=Wr("native-string-replace",String.prototype.replace),ff=RegExp.prototype.exec,df=ff,gf=rf("".charAt),pf=rf("".indexOf),Bf=rf("".replace),wf=rf("".slice),mf=(zh=/b*/g,ef(ff,Xh=/a/,"a"),ef(ff,zh,"a"),0!==Xh.lastIndex||0!==zh.lastIndex),yf=of.BROKEN_CARET,vf=void 0!==/()??/.exec("")[1];(mf||vf||yf||uf||lf)&&(df=function(A){var t,e,r,n,i,s,o,a=this,c=cf(a),u=nf(A),l=c.raw;if(l)return l.lastIndex=a.lastIndex,t=ef(df,l,u),a.lastIndex=l.lastIndex,t;var h=c.groups,f=yf&&a.sticky,d=ef(sf,a),g=a.source,p=0,B=u;if(f&&(d=Bf(d,"y",""),-1===pf(d,"g")&&(d+="g"),B=wf(u,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==gf(u,a.lastIndex-1))&&(g="(?: "+g+")",B=" "+B,p++),e=new RegExp("^(?:"+g+")",d)),vf&&(e=new RegExp("^"+g+"$(?!\\s)",d)),mf&&(r=a.lastIndex),n=ef(ff,f?e:a,B),f?n?(n.input=wf(n.input,p),n[0]=wf(n[0],p),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:mf&&n&&(a.lastIndex=a.global?n.index+n[0].length:r),vf&&n&&n.length>1&&ef(hf,n[0],e,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n&&h)for(n.groups=s=af(null),i=0;i<h.length;i++)s[(o=h[i])[0]]=n[o[1]];return n});var bf=df;fo({target:"RegExp",proto:!0,forced:/./.exec!==bf},{exec:bf});var Cf=Ue,Qf=ls,Ff=bf,Uf=ve,xf=pn,Ef=oi,Lf=xf("species"),Sf=RegExp.prototype,If=function(A,t,e,r){var n=xf(A),i=!Uf((function(){var t={};return t[n]=function(){return 7},7!==""[A](t)})),s=i&&!Uf((function(){var t=!1,e=/a/;return"split"===A&&((e={}).constructor={},e.constructor[Lf]=function(){return e},e.flags="",e[n]=/./[n]),e.exec=function(){return t=!0,null},e[n](""),!t}));if(!i||!s||e){var o=/./[n],a=t(n,""[A],(function(A,t,e,r,n){var s=t.exec;return s===Ff||s===Sf.exec?i&&!n?{done:!0,value:Cf(o,t,e,r)}:{done:!0,value:Cf(A,e,t,r)}:{done:!1}}));Qf(String.prototype,A,a[0]),Qf(Sf,n,a[1])}r&&Ef(Sf[n],"sham",!0)},Nf=ke,Hf=Bs,Pf=gh,Of=Je,Tf=Nf("".charAt),_f=Nf("".charCodeAt),kf=Nf("".slice),Mf=function(A){return function(t,e){var r,n,i=Pf(Of(t)),s=Hf(e),o=i.length;return s<0||s>=o?A?"":void 0:(r=_f(i,s))<55296||r>56319||s+1===o||(n=_f(i,s+1))<56320||n>57343?A?Tf(i,s):r:A?kf(i,s,s+2):n-56320+(r-55296<<10)+65536}},Df={codeAt:Mf(!1),charAt:Mf(!0)}.charAt,Rf=function(A,t,e){return t+(e?Df(A,t).length:1)},Kf=Ue,Vf=Xn,jf=er,Gf=Ke,qf=bf,Xf=TypeError,zf=function(A,t){var e=A.exec;if(jf(e)){var r=Kf(e,A,t);return null!==r&&Vf(r),r}if("RegExp"===Gf(A))return Kf(qf,A,t);throw new Xf("RegExp#exec called on incompatible receiver")},Wf=Ue,Yf=Xn,Jf=ze,Zf=Cs,$f=gh,Ad=Je,td=Or,ed=Rf,rd=zf;If("match",(function(A,t,e){return[function(t){var e=Ad(this),r=Jf(t)?void 0:td(t,A);return r?Wf(r,t,e):new RegExp(t)[A]($f(e))},function(A){var r=Yf(this),n=$f(A),i=e(t,r,n);if(i.done)return i.value;if(!r.global)return rd(r,n);var s=r.unicode;r.lastIndex=0;for(var o,a=[],c=0;null!==(o=rd(r,n));){var u=$f(o[0]);a[c]=u,""===u&&(r.lastIndex=ed(n,Zf(r.lastIndex),s)),c++}return 0===c?null:a}]}));var nd=ke,id=Zr,sd=Math.floor,od=nd("".charAt),ad=nd("".replace),cd=nd("".slice),ud=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ld=/\$([$&'`]|\d{1,2})/g,hd=ba,fd=Ue,dd=ke,gd=If,pd=ve,Bd=Xn,wd=er,md=ze,yd=Bs,vd=Cs,bd=gh,Cd=Je,Qd=Rf,Fd=Or,Ud=function(A,t,e,r,n,i){var s=e+A.length,o=r.length,a=ld;return void 0!==n&&(n=id(n),a=ud),ad(i,a,(function(i,a){var c;switch(od(a,0)){case"$":return"$";case"&":return A;case"`":return cd(t,0,e);case"'":return cd(t,s);case"<":c=n[cd(a,1,-1)];break;default:var u=+a;if(0===u)return i;if(u>o){var l=sd(u/10);return 0===l?i:l<=o?void 0===r[l-1]?od(a,1):r[l-1]+od(a,1):i}c=r[u-1]}return void 0===c?"":c}))},xd=zf,Ed=pn("replace"),Ld=Math.max,Sd=Math.min,Id=dd([].concat),Nd=dd([].push),Hd=dd("".indexOf),Pd=dd("".slice),Od="$0"==="a".replace(/./,"$0"),Td=!!/./[Ed]&&""===/./[Ed]("a","$0");gd("replace",(function(A,t,e){var r=Td?"$":"$0";return[function(A,e){var r=Cd(this),n=md(A)?void 0:Fd(A,Ed);return n?fd(n,A,r,e):fd(t,bd(r),A,e)},function(A,n){var i=Bd(this),s=bd(A);if("string"==typeof n&&-1===Hd(n,r)&&-1===Hd(n,"$<")){var o=e(t,i,s,n);if(o.done)return o.value}var a=wd(n);a||(n=bd(n));var c,u=i.global;u&&(c=i.unicode,i.lastIndex=0);for(var l,h=[];null!==(l=xd(i,s))&&(Nd(h,l),u);){""===bd(l[0])&&(i.lastIndex=Qd(s,vd(i.lastIndex),c))}for(var f,d="",g=0,p=0;p<h.length;p++){for(var B,w=bd((l=h[p])[0]),m=Ld(Sd(yd(l.index),s.length),0),y=[],v=1;v<l.length;v++)Nd(y,void 0===(f=l[v])?f:String(f));var b=l.groups;if(a){var C=Id([w],y,m,s);void 0!==b&&Nd(C,b),B=bd(hd(n,void 0,C))}else B=Ud(w,s,m,y,b,n);m>=g&&(d+=Pd(s,g,m)+B,g=m+w.length)}return d+Pd(s,g)}]}),!!pd((function(){var A=/./;return A.exec=function(){var A=[];return A.groups={a:"7"},A},"7"!=="".replace(A,"$<a>")}))||!Od||Td);var _d,kd=nr,Md=Ke,Dd=pn("match"),Rd=function(A){var t;return kd(A)&&(void 0!==(t=A[Dd])?!!t:"RegExp"===Md(A))},Kd=TypeError,Vd=function(A){if(Rd(A))throw new Kd("The method doesn't accept regular expressions");return A},jd=pn("match"),Gd=function(A){var t=/./;try{"/./"[A](t)}catch(e){try{return t[jd]=!1,"/./"[A](t)}catch(A){}}return!1},qd=fo,Xd=Fa,zd=ye.f,Wd=Cs,Yd=gh,Jd=Vd,Zd=Je,$d=Gd,Ag=Xd("".slice),tg=Math.min,eg=$d("startsWith");qd({target:"String",proto:!0,forced:!!(eg||(_d=zd(String.prototype,"startsWith"),!_d||_d.writable))&&!eg},{startsWith:function(A){var t=Yd(Zd(this));Jd(A);var e=Wd(tg(arguments.length>1?arguments[1]:void 0,t.length)),r=Yd(A);return Ag(t,e,e+r.length)===r}});var rg=pn,ng=Wh,ig=Kn.f,sg=rg("unscopables"),og=Array.prototype;void 0===og[sg]&&ig(og,sg,{configurable:!0,value:ng(null)});var ag,cg,ug,lg=!ve((function(){function A(){}return A.prototype.constructor=null,Object.getPrototypeOf(new A)!==A.prototype})),hg=tn,fg=er,dg=Zr,gg=lg,pg=Ei("IE_PROTO"),Bg=Object,wg=Bg.prototype,mg=gg?Bg.getPrototypeOf:function(A){var t=dg(A);if(hg(t,pg))return t[pg];var e=t.constructor;return fg(e)&&t instanceof e?e.prototype:t instanceof Bg?wg:null},yg=ve,vg=er,bg=nr,Cg=mg,Qg=ls,Fg=pn("iterator"),Ug=!1;[].keys&&("next"in(ug=[].keys())?(cg=Cg(Cg(ug)))!==Object.prototype&&(ag=cg):Ug=!0);var xg=!bg(ag)||yg((function(){var A={};return ag[Fg].call(A)!==A}));xg&&(ag={}),vg(ag[Fg])||Qg(ag,Fg,(function(){return this}));var Eg={IteratorPrototype:ag,BUGGY_SAFARI_ITERATORS:Ug},Lg=Eg.IteratorPrototype,Sg=Wh,Ig=He,Ng=So,Hg=Al,Pg=function(){return this},Og=fo,Tg=Ue,_g=er,kg=function(A,t,e,r){var n=t+" Iterator";return A.prototype=Sg(Lg,{next:Ig(+!r,e)}),Ng(A,n,!1),Hg[n]=Pg,A},Mg=mg,Dg=Uo,Rg=So,Kg=oi,Vg=ls,jg=Al,Gg=di.PROPER,qg=di.CONFIGURABLE,Xg=Eg.IteratorPrototype,zg=Eg.BUGGY_SAFARI_ITERATORS,Wg=pn("iterator"),Yg="keys",Jg="values",Zg="entries",$g=function(){return this},Ap=Ar,tp=function(A){og[sg][A]=!0},ep=Al,rp=Vi,np=Kn.f,ip=function(A,t,e,r,n,i,s){kg(e,t,r);var o,a,c,u=function(A){if(A===n&&g)return g;if(!zg&&A&&A in f)return f[A];switch(A){case Yg:case Jg:case Zg:return function(){return new e(this,A)}}return function(){return new e(this)}},l=t+" Iterator",h=!1,f=A.prototype,d=f[Wg]||f["@@iterator"]||n&&f[n],g=!zg&&d||u(n),p="Array"===t&&f.entries||d;if(p&&(o=Mg(p.call(new A)))!==Object.prototype&&o.next&&(Mg(o)!==Xg&&(Dg?Dg(o,Xg):_g(o[Wg])||Vg(o,Wg,$g)),Rg(o,l,!0)),Gg&&n===Jg&&d&&d.name!==Jg&&(qg?Kg(f,"name",Jg):(h=!0,g=function(){return Tg(d,this)})),n)if(a={values:u(Jg),keys:i?g:u(Yg),entries:u(Zg)},s)for(c in a)(zg||h||!(c in f))&&Vg(f,c,a[c]);else Og({target:t,proto:!0,forced:zg||h},a);return f[Wg]!==g&&Vg(f,Wg,g,{name:n}),jg[t]=g,a},sp=function(A,t){return{value:A,done:t}},op=be,ap="Array Iterator",cp=rp.set,up=rp.getterFor(ap),lp=ip(Array,"Array",(function(A,t){cp(this,{type:ap,target:Ap(A),index:0,kind:t})}),(function(){var A=up(this),t=A.target,e=A.index++;if(!t||e>=t.length)return A.target=void 0,sp(void 0,!0);switch(A.kind){case"keys":return sp(e,!1);case"values":return sp(t[e],!1)}return sp([e,t[e]],!1)}),"values"),hp=ep.Arguments=ep.Array;if(tp("keys"),tp("values"),tp("entries"),op&&"values"!==hp.name)try{np(hp,"name",{value:"values"})}catch(A){}var fp=Sn("span").classList,dp=fp&&fp.constructor&&fp.constructor.prototype,gp=dp===Object.prototype?void 0:dp,pp=me,Bp={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},wp=gp,mp=lp,yp=oi,vp=So,bp=pn("iterator"),Cp=mp.values,Qp=function(A,t){if(A){if(A[bp]!==Cp)try{yp(A,bp,Cp)}catch(t){A[bp]=Cp}if(vp(A,t,!0),Bp[t])for(var e in mp)if(A[e]!==mp[e])try{yp(A,e,mp[e])}catch(t){A[e]=mp[e]}}};for(var Fp in Bp)Qp(pp[Fp]&&pp[Fp].prototype,Fp);function Up(A){var t=function(A,t){if("object"!=e(A)||!A)return A;var r=A[Symbol.toPrimitive];if(void 0!==r){var n=r.call(A,t||"default");if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(A)}(A,"string");return"symbol"==e(t)?t:t+""}function xp(A,t,e){return(t=Up(t))in A?Object.defineProperty(A,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):A[t]=e,A}Qp(wp,"DOMTokenList");var Ep=Nr,Lp=Zr,Sp=Xe,Ip=Fs,Np=TypeError,Hp="Reduce of empty array with no initial value",Pp=function(A){return function(t,e,r,n){var i=Lp(t),s=Sp(i),o=Ip(i);if(Ep(e),0===o&&r<2)throw new Np(Hp);var a=A?o-1:0,c=A?-1:1;if(r<2)for(;;){if(a in s){n=s[a],a+=c;break}if(a+=c,A?a<0:o<=a)throw new Np(Hp)}for(;A?a>=0:o>a;a+=c)a in s&&(n=e(n,s[a],a,i));return n}},Op={left:Pp(!1),right:Pp(!0)},Tp=ve,_p=function(A,t){var e=[][A];return!!e&&Tp((function(){e.call(null,t||function(){return 1},1)}))},kp=Op.left;fo({target:"Array",proto:!0,forced:!go&&pr>79&&pr<83||!_p("reduce")},{reduce:function(A){var t=arguments.length;return kp(this,A,t,t>1?arguments[1]:void 0)}});var Mp=fo,Dp=Fa,Rp=ye.f,Kp=Cs,Vp=gh,jp=Vd,Gp=Je,qp=Gd,Xp=Dp("".slice),zp=Math.min,Wp=qp("endsWith"),Yp=!Wp&&!!function(){var A=Rp(String.prototype,"endsWith");return A&&!A.writable}();Mp({target:"String",proto:!0,forced:!Yp&&!Wp},{endsWith:function(A){var t=Vp(Gp(this));jp(A);var e=arguments.length>1?arguments[1]:void 0,r=t.length,n=void 0===e?r:zp(Kp(e),r),i=Vp(A);return Xp(t,n-i.length,n)===i}});var Jp=Ue,Zp=ke,$p=If,AB=Xn,tB=ze,eB=Je,rB=Ba,nB=Rf,iB=Cs,sB=gh,oB=Or,aB=zf,cB=ve,uB=bh.UNSUPPORTED_Y,lB=Math.min,hB=Zp([].push),fB=Zp("".slice),dB=!cB((function(){var A=/(?:)/,t=A.exec;A.exec=function(){return t.apply(this,arguments)};var e="ab".split(A);return 2!==e.length||"a"!==e[0]||"b"!==e[1]})),gB="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;$p("split",(function(A,t,e){var r="0".split(void 0,0).length?function(A,e){return void 0===A&&0===e?[]:Jp(t,this,A,e)}:t;return[function(t,e){var n=eB(this),i=tB(t)?void 0:oB(t,A);return i?Jp(i,t,n,e):Jp(r,sB(n),t,e)},function(A,n){var i=AB(this),s=sB(A);if(!gB){var o=e(r,i,s,n,r!==t);if(o.done)return o.value}var a=rB(i,RegExp),c=i.unicode,u=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(uB?"g":"y"),l=new a(uB?"^(?:"+i.source+")":i,u),h=void 0===n?4294967295:n>>>0;if(0===h)return[];if(0===s.length)return null===aB(l,s)?[s]:[];for(var f=0,d=0,g=[];d<s.length;){l.lastIndex=uB?0:d;var p,B=aB(l,uB?fB(s,d):s);if(null===B||(p=lB(iB(l.lastIndex+(uB?d:0)),s.length))===f)d=nB(s,d,c);else{if(hB(g,fB(s,f,d)),g.length===h)return g;for(var w=1;w<=B.length-1;w++)if(hB(g,B[w]),g.length===h)return g;d=f=p}}return hB(g,fB(s,f)),g}]}),gB||!dB,uB);var pB={exports:{}},BB={exports:{}};(function(){var A,t,e,r,n,i;"undefined"!=typeof performance&&null!==performance&&performance.now?BB.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(BB.exports=function(){return(A()-n)/1e6},t=process.hrtime,r=(A=function(){var A;return 1e9*(A=t())[0]+A[1]})(),i=1e9*process.uptime(),n=r-i):Date.now?(BB.exports=function(){return Date.now()-e},e=Date.now()):(BB.exports=function(){return(new Date).getTime()-e},e=(new Date).getTime())}).call(fe);for(var wB=BB.exports,mB="undefined"==typeof window?fe:window,yB=["moz","webkit"],vB="AnimationFrame",bB=mB["request"+vB],CB=mB["cancel"+vB]||mB["cancelRequest"+vB],QB=0;!bB&&QB<yB.length;QB++)bB=mB[yB[QB]+"Request"+vB],CB=mB[yB[QB]+"Cancel"+vB]||mB[yB[QB]+"CancelRequest"+vB];if(!bB||!CB){var FB=0,UB=0,xB=[],EB=1e3/60;bB=function(A){if(0===xB.length){var t=wB(),e=Math.max(0,EB-(t-FB));FB=e+t,setTimeout((function(){var A=xB.slice(0);xB.length=0;for(var t=0;t<A.length;t++)if(!A[t].cancelled)try{A[t].callback(FB)}catch(A){setTimeout((function(){throw A}),0)}}),Math.round(e))}return xB.push({handle:++UB,callback:A,cancelled:!1}),UB},CB=function(A){for(var t=0;t<xB.length;t++)xB[t].handle===A&&(xB[t].cancelled=!0)}}pB.exports=function(A){return bB.call(mB,A)},pB.exports.cancel=function(){CB.apply(mB,arguments)},pB.exports.polyfill=function(A){A||(A=mB),A.requestAnimationFrame=bB,A.cancelAnimationFrame=CB};var LB=pB.exports,SB="\t\n\v\f\r \u2028\u2029\ufeff",IB=Je,NB=gh,HB=SB,PB=ke("".replace),OB=RegExp("^["+HB+"]+"),TB=RegExp("(^|[^"+HB+"])["+HB+"]+$"),_B=function(A){return function(t){var e=NB(IB(t));return 1&A&&(e=PB(e,OB,"")),2&A&&(e=PB(e,TB,"$1")),e}},kB={start:_B(1),end:_B(2),trim:_B(3)},MB=di.PROPER,DB=ve,RB=SB,KB=kB.trim;fo({target:"String",proto:!0,forced:function(A){return DB((function(){return!!RB[A]()||"
"!=="
"[A]()||MB&&RB[A].name!==A}))}("trim")},{trim:function(){return KB(this)}});var VB=function(A){this.ok=!1,this.alpha=1,"#"==A.charAt(0)&&(A=A.substr(1,6)),A=(A=A.replace(/ /g,"")).toLowerCase();var t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"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",rebeccapurple:"663399",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"};A=t[A]||A;for(var e=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(A){return[parseInt(A[1]),parseInt(A[2]),parseInt(A[3]),parseFloat(A[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(A){return[parseInt(A[1]),parseInt(A[2]),parseInt(A[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(A){return[parseInt(A[1],16),parseInt(A[2],16),parseInt(A[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(A){return[parseInt(A[1]+A[1],16),parseInt(A[2]+A[2],16),parseInt(A[3]+A[3],16)]}}],r=0;r<e.length;r++){var n=e[r].re,i=e[r].process,s=n.exec(A);if(s){var o=i(s);this.r=o[0],this.g=o[1],this.b=o[2],o.length>3&&(this.alpha=o[3]),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.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var A=this.r.toString(16),t=this.g.toString(16),e=this.b.toString(16);return 1==A.length&&(A="0"+A),1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),"#"+A+t+e},this.getHelpXML=function(){for(var A=new Array,r=0;r<e.length;r++)for(var n=e[r].example,i=0;i<n.length;i++)A[A.length]=n[i];for(var s in t)A[A.length]=s;var o=document.createElement("ul");o.setAttribute("id","rgbcolor-examples");for(r=0;r<A.length;r++)try{var a=document.createElement("li"),c=new RGBColor(A[r]),u=document.createElement("div");u.style.cssText="margin: 3px; border: 1px solid black; background:"+c.toHex()+"; color:"+c.toHex(),u.appendChild(document.createTextNode("test"));var l=document.createTextNode(" "+A[r]+" -> "+c.toRGB()+" -> "+c.toHex());a.appendChild(u),a.appendChild(l),o.appendChild(a)}catch(A){}return o}},jB=fo,GB=Ss.indexOf,qB=_p,XB=Fa([].indexOf),zB=!!XB&&1/XB([1],1,-0)<0;jB({target:"Array",proto:!0,forced:zB||!qB("indexOf")},{indexOf:function(A){var t=arguments.length>1?arguments[1]:void 0;return zB?XB(this,A,t)||0:GB(this,A,t)}});var WB=fo,YB=Vd,JB=Je,ZB=gh,$B=Gd,Aw=ke("".indexOf);WB({target:"String",proto:!0,forced:!$B("includes")},{includes:function(A){return!!~Aw(ZB(JB(this)),ZB(YB(A)),arguments.length>1?arguments[1]:void 0)}});var tw=Ke,ew=fo,rw=Array.isArray||function(A){return"Array"===tw(A)},nw=ke([].reverse),iw=[1,2];ew({target:"Array",proto:!0,forced:String(iw)===String(iw.reverse())},{reverse:function(){return rw(this)&&(this.length=this.length),nw(this)}});
|
|
335
|
+
/*! *****************************************************************************
|
|
336
|
+
Copyright (c) Microsoft Corporation.
|
|
337
|
+
|
|
338
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
339
|
+
purpose with or without fee is hereby granted.
|
|
340
|
+
|
|
341
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
342
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
343
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
344
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
345
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
346
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
347
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
348
|
+
***************************************************************************** */
|
|
349
|
+
var sw=function(A,t){return(sw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,t){A.__proto__=t}||function(A,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(A[e]=t[e])})(A,t)};function ow(A,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=A}sw(A,t),A.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}function aw(A,t){var e=A[0],r=A[1];return[e*Math.cos(t)-r*Math.sin(t),e*Math.sin(t)+r*Math.cos(t)]}function cw(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];for(var e=0;e<A.length;e++)if("number"!=typeof A[e])throw new Error("assertNumbers arguments["+e+"] is not a number. "+typeof A[e]+" == typeof "+A[e]);return!0}var uw=Math.PI;function lw(A,t,e){A.lArcFlag=0===A.lArcFlag?0:1,A.sweepFlag=0===A.sweepFlag?0:1;var r=A.rX,n=A.rY,i=A.x,s=A.y;r=Math.abs(A.rX),n=Math.abs(A.rY);var o=aw([(t-i)/2,(e-s)/2],-A.xRot/180*uw),a=o[0],c=o[1],u=Math.pow(a,2)/Math.pow(r,2)+Math.pow(c,2)/Math.pow(n,2);1<u&&(r*=Math.sqrt(u),n*=Math.sqrt(u)),A.rX=r,A.rY=n;var l=Math.pow(r,2)*Math.pow(c,2)+Math.pow(n,2)*Math.pow(a,2),h=(A.lArcFlag!==A.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(n,2)-l)/l)),f=r*c/n*h,d=-n*a/r*h,g=aw([f,d],A.xRot/180*uw);A.cX=g[0]+(t+i)/2,A.cY=g[1]+(e+s)/2,A.phi1=Math.atan2((c-d)/n,(a-f)/r),A.phi2=Math.atan2((-c-d)/n,(-a-f)/r),0===A.sweepFlag&&A.phi2>A.phi1&&(A.phi2-=2*uw),1===A.sweepFlag&&A.phi2<A.phi1&&(A.phi2+=2*uw),A.phi1*=180/uw,A.phi2*=180/uw}function hw(A,t,e){cw(A,t,e);var r=A*A+t*t-e*e;if(0>r)return[];if(0===r)return[[A*e/(A*A+t*t),t*e/(A*A+t*t)]];var n=Math.sqrt(r);return[[(A*e+t*n)/(A*A+t*t),(t*e-A*n)/(A*A+t*t)],[(A*e-t*n)/(A*A+t*t),(t*e+A*n)/(A*A+t*t)]]}var fw,dw=Math.PI/180;function gw(A,t,e){return(1-e)*A+e*t}function pw(A,t,e,r){return A+Math.cos(r/180*uw)*t+Math.sin(r/180*uw)*e}function Bw(A,t,e,r){var n=1e-6,i=t-A,s=e-t,o=3*i+3*(r-e)-6*s,a=6*(s-i),c=3*i;return Math.abs(o)<n?[-c/a]:function(A,t,e){void 0===e&&(e=1e-6);var r=A*A/4-t;if(r<-e)return[];if(r<=e)return[-A/2];var n=Math.sqrt(r);return[-A/2-n,-A/2+n]}(a/o,c/o,n)}function ww(A,t,e,r,n){var i=1-n;return A*(i*i*i)+t*(3*i*i*n)+e*(3*i*n*n)+r*(n*n*n)}!function(A){function t(){return n((function(A,t,e){return A.relative&&(void 0!==A.x1&&(A.x1+=t),void 0!==A.y1&&(A.y1+=e),void 0!==A.x2&&(A.x2+=t),void 0!==A.y2&&(A.y2+=e),void 0!==A.x&&(A.x+=t),void 0!==A.y&&(A.y+=e),A.relative=!1),A}))}function e(){var A=NaN,t=NaN,e=NaN,r=NaN;return n((function(n,i,s){return n.type&Qw.SMOOTH_CURVE_TO&&(n.type=Qw.CURVE_TO,A=isNaN(A)?i:A,t=isNaN(t)?s:t,n.x1=n.relative?i-A:2*i-A,n.y1=n.relative?s-t:2*s-t),n.type&Qw.CURVE_TO?(A=n.relative?i+n.x2:n.x2,t=n.relative?s+n.y2:n.y2):(A=NaN,t=NaN),n.type&Qw.SMOOTH_QUAD_TO&&(n.type=Qw.QUAD_TO,e=isNaN(e)?i:e,r=isNaN(r)?s:r,n.x1=n.relative?i-e:2*i-e,n.y1=n.relative?s-r:2*s-r),n.type&Qw.QUAD_TO?(e=n.relative?i+n.x1:n.x1,r=n.relative?s+n.y1:n.y1):(e=NaN,r=NaN),n}))}function r(){var A=NaN,t=NaN;return n((function(e,r,n){if(e.type&Qw.SMOOTH_QUAD_TO&&(e.type=Qw.QUAD_TO,A=isNaN(A)?r:A,t=isNaN(t)?n:t,e.x1=e.relative?r-A:2*r-A,e.y1=e.relative?n-t:2*n-t),e.type&Qw.QUAD_TO){A=e.relative?r+e.x1:e.x1,t=e.relative?n+e.y1:e.y1;var i=e.x1,s=e.y1;e.type=Qw.CURVE_TO,e.x1=((e.relative?0:r)+2*i)/3,e.y1=((e.relative?0:n)+2*s)/3,e.x2=(e.x+2*i)/3,e.y2=(e.y+2*s)/3}else A=NaN,t=NaN;return e}))}function n(A){var t=0,e=0,r=NaN,n=NaN;return function(i){if(isNaN(r)&&!(i.type&Qw.MOVE_TO))throw new Error("path must start with moveto");var s=A(i,t,e,r,n);return i.type&Qw.CLOSE_PATH&&(t=r,e=n),void 0!==i.x&&(t=i.relative?t+i.x:i.x),void 0!==i.y&&(e=i.relative?e+i.y:i.y),i.type&Qw.MOVE_TO&&(r=t,n=e),s}}function i(A,t,e,r,i,s){return cw(A,t,e,r,i,s),n((function(n,o,a,c){var u=n.x1,l=n.x2,h=n.relative&&!isNaN(c),f=void 0!==n.x?n.x:h?0:o,d=void 0!==n.y?n.y:h?0:a;function g(A){return A*A}n.type&Qw.HORIZ_LINE_TO&&0!==t&&(n.type=Qw.LINE_TO,n.y=n.relative?0:a),n.type&Qw.VERT_LINE_TO&&0!==e&&(n.type=Qw.LINE_TO,n.x=n.relative?0:o),void 0!==n.x&&(n.x=n.x*A+d*e+(h?0:i)),void 0!==n.y&&(n.y=f*t+n.y*r+(h?0:s)),void 0!==n.x1&&(n.x1=n.x1*A+n.y1*e+(h?0:i)),void 0!==n.y1&&(n.y1=u*t+n.y1*r+(h?0:s)),void 0!==n.x2&&(n.x2=n.x2*A+n.y2*e+(h?0:i)),void 0!==n.y2&&(n.y2=l*t+n.y2*r+(h?0:s));var p=A*r-t*e;if(void 0!==n.xRot&&(1!==A||0!==t||0!==e||1!==r))if(0===p)delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag,n.type=Qw.LINE_TO;else{var B=n.xRot*Math.PI/180,w=Math.sin(B),m=Math.cos(B),y=1/g(n.rX),v=1/g(n.rY),b=g(m)*y+g(w)*v,C=2*w*m*(y-v),Q=g(w)*y+g(m)*v,F=b*r*r-C*t*r+Q*t*t,U=C*(A*r+t*e)-2*(b*e*r+Q*A*t),x=b*e*e-C*A*e+Q*A*A,E=(Math.atan2(U,F-x)+Math.PI)%Math.PI/2,L=Math.sin(E),S=Math.cos(E);n.rX=Math.abs(p)/Math.sqrt(F*g(S)+U*L*S+x*g(L)),n.rY=Math.abs(p)/Math.sqrt(F*g(L)-U*L*S+x*g(S)),n.xRot=180*E/Math.PI}return void 0!==n.sweepFlag&&0>p&&(n.sweepFlag=+!n.sweepFlag),n}))}A.ROUND=function(A){function t(t){return Math.round(t*A)/A}return void 0===A&&(A=1e13),cw(A),function(A){return void 0!==A.x1&&(A.x1=t(A.x1)),void 0!==A.y1&&(A.y1=t(A.y1)),void 0!==A.x2&&(A.x2=t(A.x2)),void 0!==A.y2&&(A.y2=t(A.y2)),void 0!==A.x&&(A.x=t(A.x)),void 0!==A.y&&(A.y=t(A.y)),void 0!==A.rX&&(A.rX=t(A.rX)),void 0!==A.rY&&(A.rY=t(A.rY)),A}},A.TO_ABS=t,A.TO_REL=function(){return n((function(A,t,e){return A.relative||(void 0!==A.x1&&(A.x1-=t),void 0!==A.y1&&(A.y1-=e),void 0!==A.x2&&(A.x2-=t),void 0!==A.y2&&(A.y2-=e),void 0!==A.x&&(A.x-=t),void 0!==A.y&&(A.y-=e),A.relative=!0),A}))},A.NORMALIZE_HVZ=function(A,t,e){return void 0===A&&(A=!0),void 0===t&&(t=!0),void 0===e&&(e=!0),n((function(r,n,i,s,o){if(isNaN(s)&&!(r.type&Qw.MOVE_TO))throw new Error("path must start with moveto");return t&&r.type&Qw.HORIZ_LINE_TO&&(r.type=Qw.LINE_TO,r.y=r.relative?0:i),e&&r.type&Qw.VERT_LINE_TO&&(r.type=Qw.LINE_TO,r.x=r.relative?0:n),A&&r.type&Qw.CLOSE_PATH&&(r.type=Qw.LINE_TO,r.x=r.relative?s-n:s,r.y=r.relative?o-i:o),r.type&Qw.ARC&&(0===r.rX||0===r.rY)&&(r.type=Qw.LINE_TO,delete r.rX,delete r.rY,delete r.xRot,delete r.lArcFlag,delete r.sweepFlag),r}))},A.NORMALIZE_ST=e,A.QT_TO_C=r,A.INFO=n,A.SANITIZE=function(A){void 0===A&&(A=0),cw(A);var t=NaN,e=NaN,r=NaN,i=NaN;return n((function(n,s,o,a,c){var u=Math.abs,l=!1,h=0,f=0;if(n.type&Qw.SMOOTH_CURVE_TO&&(h=isNaN(t)?0:s-t,f=isNaN(e)?0:o-e),n.type&(Qw.CURVE_TO|Qw.SMOOTH_CURVE_TO)?(t=n.relative?s+n.x2:n.x2,e=n.relative?o+n.y2:n.y2):(t=NaN,e=NaN),n.type&Qw.SMOOTH_QUAD_TO?(r=isNaN(r)?s:2*s-r,i=isNaN(i)?o:2*o-i):n.type&Qw.QUAD_TO?(r=n.relative?s+n.x1:n.x1,i=n.relative?o+n.y1:n.y2):(r=NaN,i=NaN),n.type&Qw.LINE_COMMANDS||n.type&Qw.ARC&&(0===n.rX||0===n.rY||!n.lArcFlag)||n.type&Qw.CURVE_TO||n.type&Qw.SMOOTH_CURVE_TO||n.type&Qw.QUAD_TO||n.type&Qw.SMOOTH_QUAD_TO){var d=void 0===n.x?0:n.relative?n.x:n.x-s,g=void 0===n.y?0:n.relative?n.y:n.y-o;h=isNaN(r)?void 0===n.x1?h:n.relative?n.x:n.x1-s:r-s,f=isNaN(i)?void 0===n.y1?f:n.relative?n.y:n.y1-o:i-o;var p=void 0===n.x2?0:n.relative?n.x:n.x2-s,B=void 0===n.y2?0:n.relative?n.y:n.y2-o;u(d)<=A&&u(g)<=A&&u(h)<=A&&u(f)<=A&&u(p)<=A&&u(B)<=A&&(l=!0)}return n.type&Qw.CLOSE_PATH&&u(s-a)<=A&&u(o-c)<=A&&(l=!0),l?[]:n}))},A.MATRIX=i,A.ROTATE=function(A,t,e){void 0===t&&(t=0),void 0===e&&(e=0),cw(A,t,e);var r=Math.sin(A),n=Math.cos(A);return i(n,r,-r,n,t-t*n+e*r,e-t*r-e*n)},A.TRANSLATE=function(A,t){return void 0===t&&(t=0),cw(A,t),i(1,0,0,1,A,t)},A.SCALE=function(A,t){return void 0===t&&(t=A),cw(A,t),i(A,0,0,t,0,0)},A.SKEW_X=function(A){return cw(A),i(1,0,Math.atan(A),1,0,0)},A.SKEW_Y=function(A){return cw(A),i(1,Math.atan(A),0,1,0,0)},A.X_AXIS_SYMMETRY=function(A){return void 0===A&&(A=0),cw(A),i(-1,0,0,1,A,0)},A.Y_AXIS_SYMMETRY=function(A){return void 0===A&&(A=0),cw(A),i(1,0,0,-1,0,A)},A.A_TO_C=function(){return n((function(A,t,e){return Qw.ARC===A.type?function(A,t,e){var r,n,i,s;A.cX||lw(A,t,e);for(var o=Math.min(A.phi1,A.phi2),a=Math.max(A.phi1,A.phi2)-o,c=Math.ceil(a/90),u=new Array(c),l=t,h=e,f=0;f<c;f++){var d=gw(A.phi1,A.phi2,f/c),g=gw(A.phi1,A.phi2,(f+1)/c),p=g-d,B=4/3*Math.tan(p*dw/4),w=[Math.cos(d*dw)-B*Math.sin(d*dw),Math.sin(d*dw)+B*Math.cos(d*dw)],m=w[0],y=w[1],v=[Math.cos(g*dw),Math.sin(g*dw)],b=v[0],C=v[1],Q=[b+B*Math.sin(g*dw),C-B*Math.cos(g*dw)],F=Q[0],U=Q[1];u[f]={relative:A.relative,type:Qw.CURVE_TO};var x=function(t,e){var r=aw([t*A.rX,e*A.rY],A.xRot),n=r[0],i=r[1];return[A.cX+n,A.cY+i]};r=x(m,y),u[f].x1=r[0],u[f].y1=r[1],n=x(F,U),u[f].x2=n[0],u[f].y2=n[1],i=x(b,C),u[f].x=i[0],u[f].y=i[1],A.relative&&(u[f].x1-=l,u[f].y1-=h,u[f].x2-=l,u[f].y2-=h,u[f].x-=l,u[f].y-=h),l=(s=[u[f].x,u[f].y])[0],h=s[1]}return u}(A,A.relative?0:t,A.relative?0:e):A}))},A.ANNOTATE_ARCS=function(){return n((function(A,t,e){return A.relative&&(t=0,e=0),Qw.ARC===A.type&&lw(A,t,e),A}))},A.CLONE=function(){return function(A){var t={};for(var e in A)t[e]=A[e];return t}},A.CALCULATE_BOUNDS=function(){var A=t(),i=r(),s=e(),o=n((function(t,e,r){var n=s(i(A(function(A){var t={};for(var e in A)t[e]=A[e];return t}(t))));function a(A){A>o.maxX&&(o.maxX=A),A<o.minX&&(o.minX=A)}function c(A){A>o.maxY&&(o.maxY=A),A<o.minY&&(o.minY=A)}if(n.type&Qw.DRAWING_COMMANDS&&(a(e),c(r)),n.type&Qw.HORIZ_LINE_TO&&a(n.x),n.type&Qw.VERT_LINE_TO&&c(n.y),n.type&Qw.LINE_TO&&(a(n.x),c(n.y)),n.type&Qw.CURVE_TO){a(n.x),c(n.y);for(var u=0,l=Bw(e,n.x1,n.x2,n.x);u<l.length;u++)0<(x=l[u])&&1>x&&a(ww(e,n.x1,n.x2,n.x,x));for(var h=0,f=Bw(r,n.y1,n.y2,n.y);h<f.length;h++)0<(x=f[h])&&1>x&&c(ww(r,n.y1,n.y2,n.y,x))}if(n.type&Qw.ARC){a(n.x),c(n.y),lw(n,e,r);for(var d=n.xRot/180*Math.PI,g=Math.cos(d)*n.rX,p=Math.sin(d)*n.rX,B=-Math.sin(d)*n.rY,w=Math.cos(d)*n.rY,m=n.phi1<n.phi2?[n.phi1,n.phi2]:-180>n.phi2?[n.phi2+360,n.phi1+360]:[n.phi2,n.phi1],y=m[0],v=m[1],b=function(A){var t=A[0],e=A[1],r=180*Math.atan2(e,t)/Math.PI;return r<y?r+360:r},C=0,Q=hw(B,-g,0).map(b);C<Q.length;C++)(x=Q[C])>y&&x<v&&a(pw(n.cX,g,B,x));for(var F=0,U=hw(w,-p,0).map(b);F<U.length;F++){var x;(x=U[F])>y&&x<v&&c(pw(n.cY,p,w,x))}}return t}));return o.minX=1/0,o.maxX=-1/0,o.minY=1/0,o.maxY=-1/0,o}}(fw||(fw={}));var mw,yw=function(){function A(){}return A.prototype.round=function(A){return this.transform(fw.ROUND(A))},A.prototype.toAbs=function(){return this.transform(fw.TO_ABS())},A.prototype.toRel=function(){return this.transform(fw.TO_REL())},A.prototype.normalizeHVZ=function(A,t,e){return this.transform(fw.NORMALIZE_HVZ(A,t,e))},A.prototype.normalizeST=function(){return this.transform(fw.NORMALIZE_ST())},A.prototype.qtToC=function(){return this.transform(fw.QT_TO_C())},A.prototype.aToC=function(){return this.transform(fw.A_TO_C())},A.prototype.sanitize=function(A){return this.transform(fw.SANITIZE(A))},A.prototype.translate=function(A,t){return this.transform(fw.TRANSLATE(A,t))},A.prototype.scale=function(A,t){return this.transform(fw.SCALE(A,t))},A.prototype.rotate=function(A,t,e){return this.transform(fw.ROTATE(A,t,e))},A.prototype.matrix=function(A,t,e,r,n,i){return this.transform(fw.MATRIX(A,t,e,r,n,i))},A.prototype.skewX=function(A){return this.transform(fw.SKEW_X(A))},A.prototype.skewY=function(A){return this.transform(fw.SKEW_Y(A))},A.prototype.xSymmetry=function(A){return this.transform(fw.X_AXIS_SYMMETRY(A))},A.prototype.ySymmetry=function(A){return this.transform(fw.Y_AXIS_SYMMETRY(A))},A.prototype.annotateArcs=function(){return this.transform(fw.ANNOTATE_ARCS())},A}(),vw=function(A){return" "===A||"\t"===A||"\r"===A||"\n"===A},bw=function(A){return"0".charCodeAt(0)<=A.charCodeAt(0)&&A.charCodeAt(0)<="9".charCodeAt(0)},Cw=function(A){function t(){var t=A.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return ow(t,A),t.prototype.finish=function(A){if(void 0===A&&(A=[]),this.parse(" ",A),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return A},t.prototype.parse=function(A,t){var e=this;void 0===t&&(t=[]);for(var r=function(A){t.push(A),e.curArgs.length=0,e.canParseCommandOrComma=!0},n=0;n<A.length;n++){var i=A[n],s=!(this.curCommandType!==Qw.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),o=bw(i)&&("0"===this.curNumber&&"0"===i||s);if(!bw(i)||o)if("e"!==i&&"E"!==i)if("-"!==i&&"+"!==i||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==i||this.curNumberHasExp||this.curNumberHasDecimal||s){if(this.curNumber&&-1!==this.curCommandType){var a=Number(this.curNumber);if(isNaN(a))throw new SyntaxError("Invalid number ending at "+n);if(this.curCommandType===Qw.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>a)throw new SyntaxError('Expected positive number, got "'+a+'" at index "'+n+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+n+'"');this.curArgs.push(a),this.curArgs.length===Fw[this.curCommandType]&&(Qw.HORIZ_LINE_TO===this.curCommandType?r({type:Qw.HORIZ_LINE_TO,relative:this.curCommandRelative,x:a}):Qw.VERT_LINE_TO===this.curCommandType?r({type:Qw.VERT_LINE_TO,relative:this.curCommandRelative,y:a}):this.curCommandType===Qw.MOVE_TO||this.curCommandType===Qw.LINE_TO||this.curCommandType===Qw.SMOOTH_QUAD_TO?(r({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Qw.MOVE_TO===this.curCommandType&&(this.curCommandType=Qw.LINE_TO)):this.curCommandType===Qw.CURVE_TO?r({type:Qw.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===Qw.SMOOTH_CURVE_TO?r({type:Qw.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Qw.QUAD_TO?r({type:Qw.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Qw.ARC&&r({type:Qw.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!vw(i))if(","===i&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==i&&"-"!==i&&"."!==i)if(o)this.curNumber=i,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+n+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+i+'" at index '+n+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==i&&"Z"!==i)if("h"===i||"H"===i)this.curCommandType=Qw.HORIZ_LINE_TO,this.curCommandRelative="h"===i;else if("v"===i||"V"===i)this.curCommandType=Qw.VERT_LINE_TO,this.curCommandRelative="v"===i;else if("m"===i||"M"===i)this.curCommandType=Qw.MOVE_TO,this.curCommandRelative="m"===i;else if("l"===i||"L"===i)this.curCommandType=Qw.LINE_TO,this.curCommandRelative="l"===i;else if("c"===i||"C"===i)this.curCommandType=Qw.CURVE_TO,this.curCommandRelative="c"===i;else if("s"===i||"S"===i)this.curCommandType=Qw.SMOOTH_CURVE_TO,this.curCommandRelative="s"===i;else if("q"===i||"Q"===i)this.curCommandType=Qw.QUAD_TO,this.curCommandRelative="q"===i;else if("t"===i||"T"===i)this.curCommandType=Qw.SMOOTH_QUAD_TO,this.curCommandRelative="t"===i;else{if("a"!==i&&"A"!==i)throw new SyntaxError('Unexpected character "'+i+'" at index '+n+".");this.curCommandType=Qw.ARC,this.curCommandRelative="a"===i}else t.push({type:Qw.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=i,this.curNumberHasDecimal="."===i}else this.curNumber+=i,this.curNumberHasDecimal=!0;else this.curNumber+=i;else this.curNumber+=i,this.curNumberHasExp=!0;else this.curNumber+=i,this.curNumberHasExpDigits=this.curNumberHasExp}return t},t.prototype.transform=function(A){return Object.create(this,{parse:{value:function(t,e){void 0===e&&(e=[]);for(var r=0,n=Object.getPrototypeOf(this).parse.call(this,t);r<n.length;r++){var i=n[r],s=A(i);Array.isArray(s)?e.push.apply(e,s):e.push(s)}return e}}})},t}(yw),Qw=function(A){function t(e){var r=A.call(this)||this;return r.commands="string"==typeof e?t.parse(e):e,r}return ow(t,A),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var A=fw.CALCULATE_BOUNDS();return this.transform(A),A},t.prototype.transform=function(A){for(var t=[],e=0,r=this.commands;e<r.length;e++){var n=A(r[e]);Array.isArray(n)?t.push.apply(t,n):t.push(n)}return this.commands=t,this},t.encode=function(A){return function(A){var t="";Array.isArray(A)||(A=[A]);for(var e=0;e<A.length;e++){var r=A[e];if(r.type===Qw.CLOSE_PATH)t+="z";else if(r.type===Qw.HORIZ_LINE_TO)t+=(r.relative?"h":"H")+r.x;else if(r.type===Qw.VERT_LINE_TO)t+=(r.relative?"v":"V")+r.y;else if(r.type===Qw.MOVE_TO)t+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===Qw.LINE_TO)t+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===Qw.CURVE_TO)t+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===Qw.SMOOTH_CURVE_TO)t+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===Qw.QUAD_TO)t+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===Qw.SMOOTH_QUAD_TO)t+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==Qw.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+e+".");t+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return t}(A)},t.parse=function(A){var t=new Cw,e=[];return t.parse(A,e),t.finish(e),e},t.CLOSE_PATH=1,t.MOVE_TO=2,t.HORIZ_LINE_TO=4,t.VERT_LINE_TO=8,t.LINE_TO=16,t.CURVE_TO=32,t.SMOOTH_CURVE_TO=64,t.QUAD_TO=128,t.SMOOTH_QUAD_TO=256,t.ARC=512,t.LINE_COMMANDS=t.LINE_TO|t.HORIZ_LINE_TO|t.VERT_LINE_TO,t.DRAWING_COMMANDS=t.HORIZ_LINE_TO|t.VERT_LINE_TO|t.LINE_TO|t.CURVE_TO|t.SMOOTH_CURVE_TO|t.QUAD_TO|t.SMOOTH_QUAD_TO|t.ARC,t}(yw),Fw=((mw={})[Qw.MOVE_TO]=2,mw[Qw.LINE_TO]=2,mw[Qw.HORIZ_LINE_TO]=1,mw[Qw.VERT_LINE_TO]=1,mw[Qw.CLOSE_PATH]=0,mw[Qw.QUAD_TO]=4,mw[Qw.SMOOTH_QUAD_TO]=2,mw[Qw.CURVE_TO]=6,mw[Qw.SMOOTH_CURVE_TO]=4,mw[Qw.ARC]=7,mw),Uw=Ue,xw=tn,Ew=ar,Lw=Bh,Sw=RegExp.prototype,Iw=di.PROPER,Nw=ls,Hw=Xn,Pw=gh,Ow=ve,Tw=function(A){var t=A.flags;return void 0!==t||"flags"in Sw||xw(A,"flags")||!Ew(Sw,A)?t:Uw(Lw,A)},_w="toString",kw=RegExp.prototype,Mw=kw[_w],Dw=Ow((function(){return"/a/b"!==Mw.call({source:"a",flags:"b"})})),Rw=Iw&&Mw.name!==_w;function Kw(A){return Kw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},Kw(A)}(Dw||Rw)&&Nw(kw,_w,(function(){var A=Hw(this);return"/"+Pw(A.source)+"/"+Pw(Tw(A))}),{unsafe:!0});
|
|
350
|
+
/**
|
|
351
|
+
* StackBlur - a fast almost Gaussian Blur For Canvas
|
|
352
|
+
*
|
|
353
|
+
* In case you find this class useful - especially in commercial projects -
|
|
354
|
+
* I am not totally unhappy for a small donation to my PayPal account
|
|
355
|
+
* mario@quasimondo.de
|
|
356
|
+
*
|
|
357
|
+
* Or support me on flattr:
|
|
358
|
+
* {@link https://flattr.com/thing/72791/StackBlur-a-fast-almost-Gaussian-Blur-Effect-for-CanvasJavascript}.
|
|
359
|
+
*
|
|
360
|
+
* @module StackBlur
|
|
361
|
+
* @author Mario Klingemann
|
|
362
|
+
* Contact: mario@quasimondo.com
|
|
363
|
+
* Website: {@link http://www.quasimondo.com/StackBlurForCanvas/StackBlurDemo.html}
|
|
364
|
+
* Twitter: @quasimondo
|
|
365
|
+
*
|
|
366
|
+
* @copyright (c) 2010 Mario Klingemann
|
|
367
|
+
*
|
|
368
|
+
* Permission is hereby granted, free of charge, to any person
|
|
369
|
+
* obtaining a copy of this software and associated documentation
|
|
370
|
+
* files (the "Software"), to deal in the Software without
|
|
371
|
+
* restriction, including without limitation the rights to use,
|
|
372
|
+
* copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
373
|
+
* copies of the Software, and to permit persons to whom the
|
|
374
|
+
* Software is furnished to do so, subject to the following
|
|
375
|
+
* conditions:
|
|
376
|
+
*
|
|
377
|
+
* The above copyright notice and this permission notice shall be
|
|
378
|
+
* included in all copies or substantial portions of the Software.
|
|
379
|
+
*
|
|
380
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
381
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
382
|
+
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
383
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
384
|
+
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
385
|
+
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
386
|
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
387
|
+
* OTHER DEALINGS IN THE SOFTWARE.
|
|
388
|
+
*/
|
|
389
|
+
var Vw=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],jw=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function Gw(A,t,e,r,n,i){if(!(isNaN(i)||i<1)){i|=0;var s=function(A,t,e,r,n){if("string"==typeof A&&(A=document.getElementById(A)),!A||"object"!==Kw(A)||!("getContext"in A))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var i=A.getContext("2d");try{return i.getImageData(t,e,r,n)}catch(A){throw new Error("unable to access image data: "+A)}}(A,t,e,r,n);s=function(A,t,e,r,n,i){for(var s,o=A.data,a=2*i+1,c=r-1,u=n-1,l=i+1,h=l*(l+1)/2,f=new qw,d=f,g=1;g<a;g++)d=d.next=new qw,g===l&&(s=d);d.next=f;for(var p=null,B=null,w=0,m=0,y=Vw[i],v=jw[i],b=0;b<n;b++){d=f;for(var C=o[m],Q=o[m+1],F=o[m+2],U=o[m+3],x=0;x<l;x++)d.r=C,d.g=Q,d.b=F,d.a=U,d=d.next;for(var E=0,L=0,S=0,I=0,N=l*C,H=l*Q,P=l*F,O=l*U,T=h*C,_=h*Q,k=h*F,M=h*U,D=1;D<l;D++){var R=m+((c<D?c:D)<<2),K=o[R],V=o[R+1],j=o[R+2],G=o[R+3],q=l-D;T+=(d.r=K)*q,_+=(d.g=V)*q,k+=(d.b=j)*q,M+=(d.a=G)*q,E+=K,L+=V,S+=j,I+=G,d=d.next}p=f,B=s;for(var X=0;X<r;X++){var z=M*y>>>v;if(o[m+3]=z,0!==z){var W=255/z;o[m]=(T*y>>>v)*W,o[m+1]=(_*y>>>v)*W,o[m+2]=(k*y>>>v)*W}else o[m]=o[m+1]=o[m+2]=0;T-=N,_-=H,k-=P,M-=O,N-=p.r,H-=p.g,P-=p.b,O-=p.a;var Y=X+i+1;Y=w+(Y<c?Y:c)<<2,T+=E+=p.r=o[Y],_+=L+=p.g=o[Y+1],k+=S+=p.b=o[Y+2],M+=I+=p.a=o[Y+3],p=p.next;var J=B,Z=J.r,$=J.g,AA=J.b,tA=J.a;N+=Z,H+=$,P+=AA,O+=tA,E-=Z,L-=$,S-=AA,I-=tA,B=B.next,m+=4}w+=r}for(var eA=0;eA<r;eA++){var rA=o[m=eA<<2],nA=o[m+1],iA=o[m+2],sA=o[m+3],oA=l*rA,aA=l*nA,cA=l*iA,uA=l*sA,lA=h*rA,hA=h*nA,fA=h*iA,dA=h*sA;d=f;for(var gA=0;gA<l;gA++)d.r=rA,d.g=nA,d.b=iA,d.a=sA,d=d.next;for(var pA=r,BA=0,wA=0,mA=0,yA=0,vA=1;vA<=i;vA++){m=pA+eA<<2;var bA=l-vA;lA+=(d.r=rA=o[m])*bA,hA+=(d.g=nA=o[m+1])*bA,fA+=(d.b=iA=o[m+2])*bA,dA+=(d.a=sA=o[m+3])*bA,yA+=rA,BA+=nA,wA+=iA,mA+=sA,d=d.next,vA<u&&(pA+=r)}m=eA,p=f,B=s;for(var CA=0;CA<n;CA++){var QA=m<<2;o[QA+3]=sA=dA*y>>>v,sA>0?(sA=255/sA,o[QA]=(lA*y>>>v)*sA,o[QA+1]=(hA*y>>>v)*sA,o[QA+2]=(fA*y>>>v)*sA):o[QA]=o[QA+1]=o[QA+2]=0,lA-=oA,hA-=aA,fA-=cA,dA-=uA,oA-=p.r,aA-=p.g,cA-=p.b,uA-=p.a,QA=eA+((QA=CA+l)<u?QA:u)*r<<2,lA+=yA+=p.r=o[QA],hA+=BA+=p.g=o[QA+1],fA+=wA+=p.b=o[QA+2],dA+=mA+=p.a=o[QA+3],p=p.next,oA+=rA=B.r,aA+=nA=B.g,cA+=iA=B.b,uA+=sA=B.a,yA-=rA,BA-=nA,wA-=iA,mA-=sA,B=B.next,m+=r}}return A}(s,0,0,r,n,i),A.getContext("2d").putImageData(s,t,e)}}var qw=function A(){!function(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};var Xw=Object.freeze({__proto__:null,offscreen:function(){var{DOMParser:A}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:A,createCanvas:(A,t)=>new OffscreenCanvas(A,t),createImage:A=>hh((function*(){var t=yield fetch(A),e=yield t.blob();return yield createImageBitmap(e)}))()};return"undefined"==typeof DOMParser&&void 0!==A||Reflect.deleteProperty(t,"DOMParser"),t},node:function(A){var{DOMParser:t,canvas:e,fetch:r}=A;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:r,createCanvas:e.createCanvas,createImage:e.loadImage}}});function zw(A){return A.replace(/(?!\u3000)\s+/gm," ")}function Ww(A){return A.replace(/^[\n \t]+/,"")}function Yw(A){return A.replace(/[\n \t]+$/,"")}function Jw(A){return((A||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var Zw=/^[A-Z-]+$/;function $w(A){return Zw.test(A)?A.toLowerCase():A}function Am(A){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(A)||[];return t[2]||t[3]||t[4]}function tm(A){if(!A.startsWith("rgb"))return A;var t=3;return A.replace(/\d+(\.\d+)?/g,((A,e)=>t--&&e?String(Math.round(parseFloat(A))):A))}var em=/(\[[^\]]+\])/g,rm=/(#[^\s+>~.[:]+)/g,nm=/(\.[^\s+>~.[:]+)/g,im=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,sm=/(:[\w-]+\([^)]*\))/gi,om=/(:[^\s+>~.[:]+)/g,am=/([^\s+>~.[:]+)/g;function cm(A,t){var e=t.exec(A);return e?[A.replace(t," "),e.length]:[A,0]}function um(A){var t=[0,0,0],e=A.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[e,r]=cm(e,em),t[1]+=r,[e,r]=cm(e,rm),t[0]+=r,[e,r]=cm(e,nm),t[1]+=r,[e,r]=cm(e,im),t[2]+=r,[e,r]=cm(e,sm),t[1]+=r,[e,r]=cm(e,om),t[1]+=r,e=e.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[e,r]=cm(e,am),t[2]+=r,t.join("")}var lm=1e-8;function hm(A){return Math.sqrt(Math.pow(A[0],2)+Math.pow(A[1],2))}function fm(A,t){return(A[0]*t[0]+A[1]*t[1])/(hm(A)*hm(t))}function dm(A,t){return(A[0]*t[1]<A[1]*t[0]?-1:1)*Math.acos(fm(A,t))}function gm(A){return A*A*A}function pm(A){return 3*A*A*(1-A)}function Bm(A){return 3*A*(1-A)*(1-A)}function wm(A){return(1-A)*(1-A)*(1-A)}function mm(A){return A*A}function ym(A){return 2*A*(1-A)}function vm(A){return(1-A)*(1-A)}class bm{constructor(A,t,e){this.document=A,this.name=t,this.value=e,this.isNormalizedColor=!1}static empty(A){return new bm(A,"EMPTY","")}split(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",{document:t,name:e}=this;return zw(this.getString()).trim().split(A).map((A=>new bm(t,e,A)))}hasValue(A){var{value:t}=this;return null!==t&&""!==t&&(A||0!==t)&&void 0!==t}isString(A){var{value:t}=this,e="string"==typeof t;return e&&A?A.test(t):e}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var A=this.getString();switch(!0){case A.endsWith("px"):case/^[0-9]+$/.test(A):return!0;default:return!1}}setValue(A){return this.value=A,this}getValue(A){return void 0===A||this.hasValue()?this.value:A}getNumber(A){if(!this.hasValue())return void 0===A?0:parseFloat(A);var{value:t}=this,e=parseFloat(t);return this.isString(/%$/)&&(e/=100),e}getString(A){return void 0===A||this.hasValue()?void 0===this.value?"":String(this.value):String(A)}getColor(A){var t=this.getString(A);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=tm(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(A){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[e,r]="boolean"==typeof A?[void 0,A]:[A],{viewPort:n}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(n.computeSize("x"),n.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(n.computeSize("x"),n.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*n.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*n.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&r:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*n.computeSize(e);default:var i=this.getNumber();return t&&i<1?i*n.computeSize(e):i}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var A=this.getString(),t=/#([^)'"]+)/.exec(A);return t&&(t=t[1]),t||(t=A),this.document.definitions[t]}getFillStyleDefinition(A,t){var e=this.getDefinition();if(!e)return null;if("function"==typeof e.createGradient)return e.createGradient(this.document.ctx,A,t);if("function"==typeof e.createPattern){if(e.getHrefAttribute().hasValue()){var r=e.getAttribute("patternTransform");e=e.getHrefAttribute().getDefinition(),r.hasValue()&&e.getAttribute("patternTransform",!0).setValue(r.value)}return e.createPattern(this.document.ctx,A,t)}return null}getTextBaseline(){return this.hasValue()?bm.textBaselineMapping[this.getString()]:null}addOpacity(A){for(var t=this.getColor(),e=t.length,r=0,n=0;n<e&&(","===t[n]&&r++,3!==r);n++);if(A.hasValue()&&this.isString()&&3!==r){var i=new VB(t);i.ok&&(i.alpha=A.getNumber(),t=i.toRGBA())}return new bm(this.document,this.name,t)}}bm.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class Cm{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(A,t){this.viewPorts.push({width:A,height:t})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:A}=this;return A[A.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(A){return"number"==typeof A?A:"x"===A?this.width:"y"===A?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class Qm{constructor(A,t){this.x=A,this.y=t}static parse(A){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[e=t,r=t]=Jw(A);return new Qm(e,r)}static parseScale(A){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[e=t,r=e]=Jw(A);return new Qm(e,r)}static parsePath(A){for(var t=Jw(A),e=t.length,r=[],n=0;n<e;n+=2)r.push(new Qm(t[n],t[n+1]));return r}angleTo(A){return Math.atan2(A.y-this.y,A.x-this.x)}applyTransform(A){var{x:t,y:e}=this,r=t*A[0]+e*A[2]+A[4],n=t*A[1]+e*A[3]+A[5];this.x=r,this.y=n}}class Fm{constructor(A){this.screen=A,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:A,onClick:t,onMouseMove:e}=this,r=A.ctx.canvas;r.onclick=t,r.onmousemove=e,this.working=!0}}stop(){if(this.working){var A=this.screen.ctx.canvas;this.working=!1,A.onclick=null,A.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:A,events:t,eventElements:e}=this,{style:r}=A.ctx.canvas;r&&(r.cursor=""),t.forEach(((A,t)=>{for(var{run:r}=A,n=e[t];n;)r(n),n=n.parent})),this.events=[],this.eventElements=[]}}checkPath(A,t){if(this.working&&t){var{events:e,eventElements:r}=this;e.forEach(((e,n)=>{var{x:i,y:s}=e;!r[n]&&t.isPointInPath&&t.isPointInPath(i,s)&&(r[n]=A)}))}}checkBoundingBox(A,t){if(this.working&&t){var{events:e,eventElements:r}=this;e.forEach(((e,n)=>{var{x:i,y:s}=e;!r[n]&&t.isPointInBox(i,s)&&(r[n]=A)}))}}mapXY(A,t){for(var{window:e,ctx:r}=this.screen,n=new Qm(A,t),i=r.canvas;i;)n.x-=i.offsetLeft,n.y-=i.offsetTop,i=i.offsetParent;return e.scrollX&&(n.x+=e.scrollX),e.scrollY&&(n.y+=e.scrollY),n}onClick(A){var{x:t,y:e}=this.mapXY(A.clientX,A.clientY);this.events.push({type:"onclick",x:t,y:e,run(A){A.onClick&&A.onClick()}})}onMouseMove(A){var{x:t,y:e}=this.mapXY(A.clientX,A.clientY);this.events.push({type:"onmousemove",x:t,y:e,run(A){A.onMouseMove&&A.onMouseMove()}})}}var Um="undefined"!=typeof window?window:null,xm="undefined"!=typeof fetch?fetch.bind(void 0):null;class Em{constructor(A){var{fetch:t=xm,window:e=Um}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=A,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Cm,this.mouse=new Fm(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=e,this.fetch=t}wait(A){this.waits.push(A)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var A=this.waits.every((A=>A()));return A&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=A,A}setDefaults(A){A.strokeStyle="rgba(0,0,0,0)",A.lineCap="butt",A.lineJoin="miter",A.miterLimit=4}setViewBox(A){var{document:t,ctx:e,aspectRatio:r,width:n,desiredWidth:i,height:s,desiredHeight:o,minX:a=0,minY:c=0,refX:u,refY:l,clip:h=!1,clipX:f=0,clipY:d=0}=A,g=zw(r).replace(/^defer\s/,""),[p,B]=g.split(" "),w=p||"xMidYMid",m=B||"meet",y=n/i,v=s/o,b=Math.min(y,v),C=Math.max(y,v),Q=i,F=o;"meet"===m&&(Q*=b,F*=b),"slice"===m&&(Q*=C,F*=C);var U=new bm(t,"refX",u),x=new bm(t,"refY",l),E=U.hasValue()&&x.hasValue();if(E&&e.translate(-b*U.getPixels("x"),-b*x.getPixels("y")),h){var L=b*f,S=b*d;e.beginPath(),e.moveTo(L,S),e.lineTo(n,S),e.lineTo(n,s),e.lineTo(L,s),e.closePath(),e.clip()}if(!E){var I="meet"===m&&b===v,N="slice"===m&&C===v,H="meet"===m&&b===y,P="slice"===m&&C===y;w.startsWith("xMid")&&(I||N)&&e.translate(n/2-Q/2,0),w.endsWith("YMid")&&(H||P)&&e.translate(0,s/2-F/2),w.startsWith("xMax")&&(I||N)&&e.translate(n-Q,0),w.endsWith("YMax")&&(H||P)&&e.translate(0,s-F)}switch(!0){case"none"===w:e.scale(y,v);break;case"meet"===m:e.scale(b,b);break;case"slice"===m:e.scale(C,C)}e.translate(-a,-c)}start(A){var{enableRedraw:t=!1,ignoreMouse:e=!1,ignoreAnimation:r=!1,ignoreDimensions:n=!1,ignoreClear:i=!1,forceRedraw:s,scaleWidth:o,scaleHeight:a,offsetX:c,offsetY:u}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:l,mouse:h}=this,f=1e3/l;if(this.frameDuration=f,this.readyPromise=new Promise((A=>{this.resolveReady=A})),this.isReady()&&this.render(A,n,i,o,a,c,u),t){var d=Date.now(),g=d,p=0,B=()=>{d=Date.now(),(p=d-g)>=f&&(g=d-p%f,this.shouldUpdate(r,s)&&(this.render(A,n,i,o,a,c,u),h.runEvents())),this.intervalId=LB(B)};e||h.start(),this.intervalId=LB(B)}}stop(){this.intervalId&&(LB.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(A,t){if(!A){var{frameDuration:e}=this;if(this.animations.reduce(((A,t)=>t.update(e)||A),!1))return!0}return!("function"!=typeof t||!t())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}render(A,t,e,r,n,i,s){var{CLIENT_WIDTH:o,CLIENT_HEIGHT:a,viewPort:c,ctx:u,isFirstRender:l}=this,h=u.canvas;c.clear(),h.width&&h.height?c.setCurrent(h.width,h.height):c.setCurrent(o,a);var f=A.getStyle("width"),d=A.getStyle("height");!t&&(l||"number"!=typeof r&&"number"!=typeof n)&&(f.hasValue()&&(h.width=f.getPixels("x"),h.style&&(h.style.width="".concat(h.width,"px"))),d.hasValue()&&(h.height=d.getPixels("y"),h.style&&(h.style.height="".concat(h.height,"px"))));var g=h.clientWidth||h.width,p=h.clientHeight||h.height;if(t&&f.hasValue()&&d.hasValue()&&(g=f.getPixels("x"),p=d.getPixels("y")),c.setCurrent(g,p),"number"==typeof i&&A.getAttribute("x",!0).setValue(i),"number"==typeof s&&A.getAttribute("y",!0).setValue(s),"number"==typeof r||"number"==typeof n){var B=Jw(A.getAttribute("viewBox").getString()),w=0,m=0;if("number"==typeof r){var y=A.getStyle("width");y.hasValue()?w=y.getPixels("x")/r:isNaN(B[2])||(w=B[2]/r)}if("number"==typeof n){var v=A.getStyle("height");v.hasValue()?m=v.getPixels("y")/n:isNaN(B[3])||(m=B[3]/n)}w||(w=m),m||(m=w),A.getAttribute("width",!0).setValue(r),A.getAttribute("height",!0).setValue(n);var b=A.getStyle("transform",!0,!0);b.setValue("".concat(b.getString()," scale(").concat(1/w,", ").concat(1/m,")"))}e||u.clearRect(0,0,g,p),A.render(u),l&&(this.isFirstRender=!1)}}Em.defaultWindow=Um,Em.defaultFetch=xm;var{defaultFetch:Lm}=Em,Sm="undefined"!=typeof DOMParser?DOMParser:null;class Im{constructor(){var{fetch:A=Lm,DOMParser:t=Sm}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=A,this.DOMParser=t}parse(A){var t=this;return hh((function*(){return A.startsWith("<")?t.parseFromString(A):t.load(A)}))()}parseFromString(A){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(A,"image/svg+xml"))}catch(e){return this.checkDocument(t.parseFromString(A,"text/xml"))}}checkDocument(A){var t=A.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return A}load(A){var t=this;return hh((function*(){var e=yield t.fetch(A),r=yield e.text();return t.parseFromString(r)}))()}}class Nm{constructor(A,t){this.type="translate",this.point=null,this.point=Qm.parse(t)}apply(A){var{x:t,y:e}=this.point;A.translate(t||0,e||0)}unapply(A){var{x:t,y:e}=this.point;A.translate(-1*t||0,-1*e||0)}applyToPoint(A){var{x:t,y:e}=this.point;A.applyTransform([1,0,0,1,t||0,e||0])}}class Hm{constructor(A,t,e){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var r=Jw(t);this.angle=new bm(A,"angle",r[0]),this.originX=e[0],this.originY=e[1],this.cx=r[1]||0,this.cy=r[2]||0}apply(A){var{cx:t,cy:e,originX:r,originY:n,angle:i}=this,s=t+r.getPixels("x"),o=e+n.getPixels("y");A.translate(s,o),A.rotate(i.getRadians()),A.translate(-s,-o)}unapply(A){var{cx:t,cy:e,originX:r,originY:n,angle:i}=this,s=t+r.getPixels("x"),o=e+n.getPixels("y");A.translate(s,o),A.rotate(-1*i.getRadians()),A.translate(-s,-o)}applyToPoint(A){var{cx:t,cy:e,angle:r}=this,n=r.getRadians();A.applyTransform([1,0,0,1,t||0,e||0]),A.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),A.applyTransform([1,0,0,1,-t||0,-e||0])}}class Pm{constructor(A,t,e){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var r=Qm.parseScale(t);0!==r.x&&0!==r.y||(r.x=lm,r.y=lm),this.scale=r,this.originX=e[0],this.originY=e[1]}apply(A){var{scale:{x:t,y:e},originX:r,originY:n}=this,i=r.getPixels("x"),s=n.getPixels("y");A.translate(i,s),A.scale(t,e||t),A.translate(-i,-s)}unapply(A){var{scale:{x:t,y:e},originX:r,originY:n}=this,i=r.getPixels("x"),s=n.getPixels("y");A.translate(i,s),A.scale(1/t,1/e||t),A.translate(-i,-s)}applyToPoint(A){var{x:t,y:e}=this.scale;A.applyTransform([t||0,0,0,e||0,0,0])}}class Om{constructor(A,t,e){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Jw(t),this.originX=e[0],this.originY=e[1]}apply(A){var{originX:t,originY:e,matrix:r}=this,n=t.getPixels("x"),i=e.getPixels("y");A.translate(n,i),A.transform(r[0],r[1],r[2],r[3],r[4],r[5]),A.translate(-n,-i)}unapply(A){var{originX:t,originY:e,matrix:r}=this,n=r[0],i=r[2],s=r[4],o=r[1],a=r[3],c=r[5],u=1/(n*(1*a-0*c)-i*(1*o-0*c)+s*(0*o-0*a)),l=t.getPixels("x"),h=e.getPixels("y");A.translate(l,h),A.transform(u*(1*a-0*c),u*(0*c-1*o),u*(0*s-1*i),u*(1*n-0*s),u*(i*c-s*a),u*(s*o-n*c)),A.translate(-l,-h)}applyToPoint(A){A.applyTransform(this.matrix)}}class Tm extends Om{constructor(A,t,e){super(A,t,e),this.type="skew",this.angle=null,this.angle=new bm(A,"angle",t)}}class _m extends Tm{constructor(A,t,e){super(A,t,e),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class km extends Tm{constructor(A,t,e){super(A,t,e),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}class Mm{constructor(A,t,e){this.document=A,this.transforms=[];var r=function(A){return zw(A).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(t);r.forEach((A=>{if("none"!==A){var[t,r]=function(A){var[t,e]=A.split("(");return[t.trim(),e.trim().replace(")","")]}(A),n=Mm.transformTypes[t];void 0!==n&&this.transforms.push(new n(this.document,r,e))}}))}static fromElement(A,t){var e=t.getStyle("transform",!1,!0),[r,n=r]=t.getStyle("transform-origin",!1,!0).split(),i=[r,n];return e.hasValue()?new Mm(A,e.getString(),i):null}apply(A){for(var{transforms:t}=this,e=t.length,r=0;r<e;r++)t[r].apply(A)}unapply(A){for(var{transforms:t}=this,e=t.length-1;e>=0;e--)t[e].unapply(A)}applyToPoint(A){for(var{transforms:t}=this,e=t.length,r=0;r<e;r++)t[r].applyToPoint(A)}}Mm.transformTypes={translate:Nm,rotate:Hm,scale:Pm,matrix:Om,skewX:_m,skewY:km};class Dm{constructor(A,t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=A,this.node=t,this.captureTextNodes=e,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],t&&1===t.nodeType){if(Array.from(t.attributes).forEach((t=>{var e=$w(t.nodeName);this.attributes[e]=new bm(A,e,t.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var r=this.getAttribute("style").getString().split(";").map((A=>A.trim()));r.forEach((t=>{if(t){var[e,r]=t.split(":").map((A=>A.trim()));this.styles[e]=new bm(A,e,r)}}))}var{definitions:n}=A,i=this.getAttribute("id");i.hasValue()&&(n[i.getString()]||(n[i.getString()]=this)),Array.from(t.childNodes).forEach((t=>{if(1===t.nodeType)this.addChild(t);else if(e&&(3===t.nodeType||4===t.nodeType)){var r=A.createTextNode(t);r.getText().length>0&&this.addChild(r)}}))}}getAttribute(A){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=this.attributes[A];if(!e&&t){var r=new bm(this.document,A,"");return this.attributes[A]=r,r}return e||bm.empty(this.document)}getHrefAttribute(){for(var A in this.attributes)if("href"===A||A.endsWith(":href"))return this.attributes[A];return bm.empty(this.document)}getStyle(A){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.styles[A];if(r)return r;var n=this.getAttribute(A);if(null!=n&&n.hasValue())return this.styles[A]=n,n;if(!e){var{parent:i}=this;if(i){var s=i.getStyle(A);if(null!=s&&s.hasValue())return s}}if(t){var o=new bm(this.document,A,"");return this.styles[A]=o,o}return r||bm.empty(this.document)}render(A){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(A.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(A),t.apply(A,this))}else if("none"!==this.getStyle("filter").getValue("none")){var e=this.getStyle("filter").getDefinition();e&&(this.applyEffects(A),e.apply(A,this))}else this.setContext(A),this.renderChildren(A),this.clearContext(A);A.restore()}}setContext(A){}applyEffects(A){var t=Mm.fromElement(this.document,this);t&&t.apply(A);var e=this.getStyle("clip-path",!1,!0);if(e.hasValue()){var r=e.getDefinition();r&&r.apply(A)}}clearContext(A){}renderChildren(A){this.children.forEach((t=>{t.render(A)}))}addChild(A){var t=A instanceof Dm?A:this.document.createElement(A);t.parent=this,Dm.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(A){var t,{node:e}=this;if("function"==typeof e.matches)return e.matches(A);var r=null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"class");return!(!r||""===r)&&r.split(" ").some((t=>".".concat(t)===A))}addStylesFromStyleDefinition(){var{styles:A,stylesSpecificity:t}=this.document;for(var e in A)if(!e.startsWith("@")&&this.matchesSelector(e)){var r=A[e],n=t[e];if(r)for(var i in r){var s=this.stylesSpecificity[i];void 0===s&&(s="000"),n>=s&&(this.styles[i]=r[i],this.stylesSpecificity[i]=n)}}}removeStyles(A,t){return t.reduce(((t,e)=>{var r=A.getStyle(e);if(!r.hasValue())return t;var n=r.getString();return r.setValue(""),[...t,[e,n]]}),[])}restoreStyles(A,t){t.forEach((t=>{var[e,r]=t;A.getStyle(e,!0).setValue(r)}))}isFirstChild(){var A;return 0===(null===(A=this.parent)||void 0===A?void 0:A.children.indexOf(this))}}Dm.ignoreChildTypes=["title"];class Rm extends Dm{constructor(A,t,e){super(A,t,e)}}function Km(A){var t=A.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function Vm(A){if(!A)return"";var t=A.trim().toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function jm(A){if(!A)return"";var t=A.trim().toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}class Gm{constructor(A,t,e,r,n,i){var s=i?"string"==typeof i?Gm.parse(i):i:{};this.fontFamily=n||s.fontFamily,this.fontSize=r||s.fontSize,this.fontStyle=A||s.fontStyle,this.fontWeight=e||s.fontWeight,this.fontVariant=t||s.fontVariant}static parse(){var A=arguments.length>1?arguments[1]:void 0,t="",e="",r="",n="",i="",s=zw(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),o={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return s.forEach((A=>{switch(!0){case!o.fontStyle&&Gm.styles.includes(A):"inherit"!==A&&(t=A),o.fontStyle=!0;break;case!o.fontVariant&&Gm.variants.includes(A):"inherit"!==A&&(e=A),o.fontStyle=!0,o.fontVariant=!0;break;case!o.fontWeight&&Gm.weights.includes(A):"inherit"!==A&&(r=A),o.fontStyle=!0,o.fontVariant=!0,o.fontWeight=!0;break;case!o.fontSize:"inherit"!==A&&([n]=A.split("/")),o.fontStyle=!0,o.fontVariant=!0,o.fontWeight=!0,o.fontSize=!0;break;default:"inherit"!==A&&(i+=A)}})),new Gm(t,e,r,n,i,A)}toString(){return[Vm(this.fontStyle),this.fontVariant,jm(this.fontWeight),this.fontSize,(A=this.fontFamily,"undefined"==typeof process?A:A.trim().split(",").map(Km).join(","))].join(" ").trim();var A}}Gm.styles="normal|italic|oblique|inherit",Gm.variants="normal|small-caps|inherit",Gm.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class qm{constructor(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=A,this.y1=t,this.x2=e,this.y2=r,this.addPoint(A,t),this.addPoint(e,r)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(A,t){void 0!==A&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=A,this.x2=A),A<this.x1&&(this.x1=A),A>this.x2&&(this.x2=A)),void 0!==t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))}addX(A){this.addPoint(A,null)}addY(A){this.addPoint(null,A)}addBoundingBox(A){if(A){var{x1:t,y1:e,x2:r,y2:n}=A;this.addPoint(t,e),this.addPoint(r,n)}}sumCubic(A,t,e,r,n){return Math.pow(1-A,3)*t+3*Math.pow(1-A,2)*A*e+3*(1-A)*Math.pow(A,2)*r+Math.pow(A,3)*n}bezierCurveAdd(A,t,e,r,n){var i=6*t-12*e+6*r,s=-3*t+9*e-9*r+3*n,o=3*e-3*t;if(0!==s){var a=Math.pow(i,2)-4*o*s;if(!(a<0)){var c=(-i+Math.sqrt(a))/(2*s);0<c&&c<1&&(A?this.addX(this.sumCubic(c,t,e,r,n)):this.addY(this.sumCubic(c,t,e,r,n)));var u=(-i-Math.sqrt(a))/(2*s);0<u&&u<1&&(A?this.addX(this.sumCubic(u,t,e,r,n)):this.addY(this.sumCubic(u,t,e,r,n)))}}else{if(0===i)return;var l=-o/i;0<l&&l<1&&(A?this.addX(this.sumCubic(l,t,e,r,n)):this.addY(this.sumCubic(l,t,e,r,n)))}}addBezierCurve(A,t,e,r,n,i,s,o){this.addPoint(A,t),this.addPoint(s,o),this.bezierCurveAdd(!0,A,e,n,s),this.bezierCurveAdd(!1,t,r,i,o)}addQuadraticCurve(A,t,e,r,n,i){var s=A+2/3*(e-A),o=t+2/3*(r-t),a=s+1/3*(n-A),c=o+1/3*(i-t);this.addBezierCurve(A,t,s,a,o,c,n,i)}isPointInBox(A,t){var{x1:e,y1:r,x2:n,y2:i}=this;return e<=A&&A<=n&&r<=t&&t<=i}}class Xm extends Qw{constructor(A){super(A.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Qm(0,0),this.control=new Qm(0,0),this.current=new Qm(0,0),this.points=[],this.angles=[]}isEnd(){var{i:A,commands:t}=this;return A>=t.length-1}next(){var A=this.commands[++this.i];return this.previousCommand=this.command,this.command=A,A}getPoint(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",e=new Qm(this.command[A],this.command[t]);return this.makeAbsolute(e)}getAsControlPoint(A,t){var e=this.getPoint(A,t);return this.control=e,e}getAsCurrentPoint(A,t){var e=this.getPoint(A,t);return this.current=e,e}getReflectedControlPoint(){var A=this.previousCommand.type;if(A!==Qw.CURVE_TO&&A!==Qw.SMOOTH_CURVE_TO&&A!==Qw.QUAD_TO&&A!==Qw.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:e},control:{x:r,y:n}}=this;return new Qm(2*t-r,2*e-n)}makeAbsolute(A){if(this.command.relative){var{x:t,y:e}=this.current;A.x+=t,A.y+=e}return A}addMarker(A,t,e){var{points:r,angles:n}=this;e&&n.length>0&&!n[n.length-1]&&(n[n.length-1]=r[r.length-1].angleTo(e)),this.addMarkerAngle(A,t?t.angleTo(A):null)}addMarkerAngle(A,t){this.points.push(A),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:A}=this,t=A.length,e=0;e<t;e++)if(!A[e])for(var r=e+1;r<t;r++)if(A[r]){A[e]=A[r];break}return A}}class zm extends Dm{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var A=1,t=this;t;){var e=t.getStyle("opacity",!1,!0);e.hasValue(!0)&&(A*=e.getNumber()),t=t.parent}return A}setContext(A){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t){var e=this.getStyle("fill"),r=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),i=this.getStyle("stroke-opacity");if(e.isUrlDefinition()){var s=e.getFillStyleDefinition(this,r);s&&(A.fillStyle=s)}else if(e.hasValue()){"currentColor"===e.getString()&&e.setValue(this.getStyle("color").getColor());var o=e.getColor();"inherit"!==o&&(A.fillStyle="none"===o?"rgba(0,0,0,0)":o)}if(r.hasValue()){var a=new bm(this.document,"fill",A.fillStyle).addOpacity(r).getColor();A.fillStyle=a}if(n.isUrlDefinition()){var c=n.getFillStyleDefinition(this,i);c&&(A.strokeStyle=c)}else if(n.hasValue()){"currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor());var u=n.getString();"inherit"!==u&&(A.strokeStyle="none"===u?"rgba(0,0,0,0)":u)}if(i.hasValue()){var l=new bm(this.document,"stroke",A.strokeStyle).addOpacity(i).getString();A.strokeStyle=l}var h=this.getStyle("stroke-width");if(h.hasValue()){var f=h.getPixels();A.lineWidth=f||lm}var d=this.getStyle("stroke-linecap"),g=this.getStyle("stroke-linejoin"),p=this.getStyle("stroke-miterlimit"),B=this.getStyle("stroke-dasharray"),w=this.getStyle("stroke-dashoffset");if(d.hasValue()&&(A.lineCap=d.getString()),g.hasValue()&&(A.lineJoin=g.getString()),p.hasValue()&&(A.miterLimit=p.getNumber()),B.hasValue()&&"none"!==B.getString()){var m=Jw(B.getString());void 0!==A.setLineDash?A.setLineDash(m):void 0!==A.webkitLineDash?A.webkitLineDash=m:void 0===A.mozDash||1===m.length&&0===m[0]||(A.mozDash=m);var y=w.getPixels();void 0!==A.lineDashOffset?A.lineDashOffset=y:void 0!==A.webkitLineDashOffset?A.webkitLineDashOffset=y:void 0!==A.mozDashOffset&&(A.mozDashOffset=y)}}if(this.modifiedEmSizeStack=!1,void 0!==A.font){var v=this.getStyle("font"),b=this.getStyle("font-style"),C=this.getStyle("font-variant"),Q=this.getStyle("font-weight"),F=this.getStyle("font-size"),U=this.getStyle("font-family"),x=new Gm(b.getString(),C.getString(),Q.getString(),F.hasValue()?"".concat(F.getPixels(!0),"px"):"",U.getString(),Gm.parse(v.getString(),A.font));b.setValue(x.fontStyle),C.setValue(x.fontVariant),Q.setValue(x.fontWeight),F.setValue(x.fontSize),U.setValue(x.fontFamily),A.font=x.toString(),F.isPixels()&&(this.document.emSize=F.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(A),A.globalAlpha=this.calculateOpacity())}clearContext(A){super.clearContext(A),this.modifiedEmSizeStack&&this.document.popEmSize()}}class Wm extends zm{constructor(A,t,e){super(A,t,e),this.type="path",this.pathParser=null,this.pathParser=new Xm(this.getAttribute("d").getString())}path(A){var{pathParser:t}=this,e=new qm;for(t.reset(),A&&A.beginPath();!t.isEnd();)switch(t.next().type){case Xm.MOVE_TO:this.pathM(A,e);break;case Xm.LINE_TO:this.pathL(A,e);break;case Xm.HORIZ_LINE_TO:this.pathH(A,e);break;case Xm.VERT_LINE_TO:this.pathV(A,e);break;case Xm.CURVE_TO:this.pathC(A,e);break;case Xm.SMOOTH_CURVE_TO:this.pathS(A,e);break;case Xm.QUAD_TO:this.pathQ(A,e);break;case Xm.SMOOTH_QUAD_TO:this.pathT(A,e);break;case Xm.ARC:this.pathA(A,e);break;case Xm.CLOSE_PATH:this.pathZ(A,e)}return e}getBoundingBox(A){return this.path()}getMarkers(){var{pathParser:A}=this,t=A.getMarkerPoints(),e=A.getMarkerAngles(),r=t.map(((A,t)=>[A,e[t]]));return r}renderChildren(A){this.path(A),this.document.screen.mouse.checkPath(this,A);var t=this.getStyle("fill-rule");""!==A.fillStyle&&("inherit"!==t.getString("inherit")?A.fill(t.getString()):A.fill()),""!==A.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(A.save(),A.setTransform(1,0,0,1,0,0),A.stroke(),A.restore()):A.stroke());var e=this.getMarkers();if(e){var r=e.length-1,n=this.getStyle("marker-start"),i=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(n.isUrlDefinition()){var o=n.getDefinition(),[a,c]=e[0];o.render(A,a,c)}if(i.isUrlDefinition())for(var u=i.getDefinition(),l=1;l<r;l++){var[h,f]=e[l];u.render(A,h,f)}if(s.isUrlDefinition()){var d=s.getDefinition(),[g,p]=e[r];d.render(A,g,p)}}}static pathM(A){var t=A.getAsCurrentPoint();return A.start=A.current,{point:t}}pathM(A,t){var{pathParser:e}=this,{point:r}=Wm.pathM(e),{x:n,y:i}=r;e.addMarker(r),t.addPoint(n,i),A&&A.moveTo(n,i)}static pathL(A){var{current:t}=A;return{current:t,point:A.getAsCurrentPoint()}}pathL(A,t){var{pathParser:e}=this,{current:r,point:n}=Wm.pathL(e),{x:i,y:s}=n;e.addMarker(n,r),t.addPoint(i,s),A&&A.lineTo(i,s)}static pathH(A){var{current:t,command:e}=A,r=new Qm((e.relative?t.x:0)+e.x,t.y);return A.current=r,{current:t,point:r}}pathH(A,t){var{pathParser:e}=this,{current:r,point:n}=Wm.pathH(e),{x:i,y:s}=n;e.addMarker(n,r),t.addPoint(i,s),A&&A.lineTo(i,s)}static pathV(A){var{current:t,command:e}=A,r=new Qm(t.x,(e.relative?t.y:0)+e.y);return A.current=r,{current:t,point:r}}pathV(A,t){var{pathParser:e}=this,{current:r,point:n}=Wm.pathV(e),{x:i,y:s}=n;e.addMarker(n,r),t.addPoint(i,s),A&&A.lineTo(i,s)}static pathC(A){var{current:t}=A;return{current:t,point:A.getPoint("x1","y1"),controlPoint:A.getAsControlPoint("x2","y2"),currentPoint:A.getAsCurrentPoint()}}pathC(A,t){var{pathParser:e}=this,{current:r,point:n,controlPoint:i,currentPoint:s}=Wm.pathC(e);e.addMarker(s,i,n),t.addBezierCurve(r.x,r.y,n.x,n.y,i.x,i.y,s.x,s.y),A&&A.bezierCurveTo(n.x,n.y,i.x,i.y,s.x,s.y)}static pathS(A){var{current:t}=A;return{current:t,point:A.getReflectedControlPoint(),controlPoint:A.getAsControlPoint("x2","y2"),currentPoint:A.getAsCurrentPoint()}}pathS(A,t){var{pathParser:e}=this,{current:r,point:n,controlPoint:i,currentPoint:s}=Wm.pathS(e);e.addMarker(s,i,n),t.addBezierCurve(r.x,r.y,n.x,n.y,i.x,i.y,s.x,s.y),A&&A.bezierCurveTo(n.x,n.y,i.x,i.y,s.x,s.y)}static pathQ(A){var{current:t}=A;return{current:t,controlPoint:A.getAsControlPoint("x1","y1"),currentPoint:A.getAsCurrentPoint()}}pathQ(A,t){var{pathParser:e}=this,{current:r,controlPoint:n,currentPoint:i}=Wm.pathQ(e);e.addMarker(i,n,n),t.addQuadraticCurve(r.x,r.y,n.x,n.y,i.x,i.y),A&&A.quadraticCurveTo(n.x,n.y,i.x,i.y)}static pathT(A){var{current:t}=A,e=A.getReflectedControlPoint();return A.control=e,{current:t,controlPoint:e,currentPoint:A.getAsCurrentPoint()}}pathT(A,t){var{pathParser:e}=this,{current:r,controlPoint:n,currentPoint:i}=Wm.pathT(e);e.addMarker(i,n,n),t.addQuadraticCurve(r.x,r.y,n.x,n.y,i.x,i.y),A&&A.quadraticCurveTo(n.x,n.y,i.x,i.y)}static pathA(A){var{current:t,command:e}=A,{rX:r,rY:n,xRot:i,lArcFlag:s,sweepFlag:o}=e,a=i*(Math.PI/180),c=A.getAsCurrentPoint(),u=new Qm(Math.cos(a)*(t.x-c.x)/2+Math.sin(a)*(t.y-c.y)/2,-Math.sin(a)*(t.x-c.x)/2+Math.cos(a)*(t.y-c.y)/2),l=Math.pow(u.x,2)/Math.pow(r,2)+Math.pow(u.y,2)/Math.pow(n,2);l>1&&(r*=Math.sqrt(l),n*=Math.sqrt(l));var h=(s===o?-1:1)*Math.sqrt((Math.pow(r,2)*Math.pow(n,2)-Math.pow(r,2)*Math.pow(u.y,2)-Math.pow(n,2)*Math.pow(u.x,2))/(Math.pow(r,2)*Math.pow(u.y,2)+Math.pow(n,2)*Math.pow(u.x,2)));isNaN(h)&&(h=0);var f=new Qm(h*r*u.y/n,h*-n*u.x/r),d=new Qm((t.x+c.x)/2+Math.cos(a)*f.x-Math.sin(a)*f.y,(t.y+c.y)/2+Math.sin(a)*f.x+Math.cos(a)*f.y),g=dm([1,0],[(u.x-f.x)/r,(u.y-f.y)/n]),p=[(u.x-f.x)/r,(u.y-f.y)/n],B=[(-u.x-f.x)/r,(-u.y-f.y)/n],w=dm(p,B);return fm(p,B)<=-1&&(w=Math.PI),fm(p,B)>=1&&(w=0),{currentPoint:c,rX:r,rY:n,sweepFlag:o,xAxisRotation:a,centp:d,a1:g,ad:w}}pathA(A,t){var{pathParser:e}=this,{currentPoint:r,rX:n,rY:i,sweepFlag:s,xAxisRotation:o,centp:a,a1:c,ad:u}=Wm.pathA(e),l=1-s?1:-1,h=c+l*(u/2),f=new Qm(a.x+n*Math.cos(h),a.y+i*Math.sin(h));if(e.addMarkerAngle(f,h-l*Math.PI/2),e.addMarkerAngle(r,h-l*Math.PI),t.addPoint(r.x,r.y),A&&!isNaN(c)&&!isNaN(u)){var d=n>i?n:i,g=n>i?1:n/i,p=n>i?i/n:1;A.translate(a.x,a.y),A.rotate(o),A.scale(g,p),A.arc(0,0,d,c,c+u,Boolean(1-s)),A.scale(1/g,1/p),A.rotate(-o),A.translate(-a.x,-a.y)}}static pathZ(A){A.current=A.start}pathZ(A,t){Wm.pathZ(this.pathParser),A&&t.x1!==t.x2&&t.y1!==t.y2&&A.closePath()}}class Ym extends Wm{constructor(A,t,e){super(A,t,e),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class Jm extends zm{constructor(A,t,e){super(A,t,new.target===Jm||e),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(A){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setContext(A,t);var e=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();e&&(A.textBaseline=e)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(A){if("text"!==this.type)return this.getTElementBoundingBox(A);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(A);var t=null;return this.children.forEach(((e,r)=>{var n=this.getChildBoundingBox(A,this,this,r);t?t.addBoundingBox(n):t=n})),t}getFontSize(){var{document:A,parent:t}=this,e=Gm.parse(A.ctx.font).fontSize;return t.getStyle("font-size").getNumber(e)}getTElementBoundingBox(A){var t=this.getFontSize();return new qm(this.x,this.y-t,this.x+this.measureText(A),this.y)}getGlyph(A,t,e){var r=t[e],n=null;if(A.isArabic){var i=t.length,s=t[e-1],o=t[e+1],a="isolated";if((0===e||" "===s)&&e<i-1&&" "!==o&&(a="terminal"),e>0&&" "!==s&&e<i-1&&" "!==o&&(a="medial"),e>0&&" "!==s&&(e===i-1||" "===o)&&(a="initial"),void 0!==A.glyphs[r]){var c=A.glyphs[r];n=c instanceof Ym?c:c[a]}}else n=A.glyphs[r];return n||(n=A.missingGlyph),n}getText(){return""}getTextFromNode(A){var t=A||this.node,e=Array.from(t.parentNode.childNodes),r=e.indexOf(t),n=e.length-1,i=zw(t.textContent||"");return 0===r&&(i=Ww(i)),r===n&&(i=Yw(i)),i}renderChildren(A){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(A),this.children.forEach(((t,e)=>{this.renderChild(A,this,this,e)}));var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(A))}else this.renderTElementChildren(A)}renderTElementChildren(A){var{document:t,parent:e}=this,r=this.getText(),n=e.getStyle("font-family").getDefinition();if(n)for(var{unitsPerEm:i}=n.fontFace,s=Gm.parse(t.ctx.font),o=e.getStyle("font-size").getNumber(s.fontSize),a=e.getStyle("font-style").getString(s.fontStyle),c=o/i,u=n.isRTL?r.split("").reverse().join(""):r,l=Jw(e.getAttribute("dx").getString()),h=u.length,f=0;f<h;f++){var d=this.getGlyph(n,u,f);A.translate(this.x,this.y),A.scale(c,-c);var g=A.lineWidth;A.lineWidth=A.lineWidth*i/o,"italic"===a&&A.transform(1,0,.4,1,0,0),d.render(A),"italic"===a&&A.transform(1,0,-.4,1,0,0),A.lineWidth=g,A.scale(1/c,-1/c),A.translate(-this.x,-this.y),this.x+=o*(d.horizAdvX||n.horizAdvX)/i,void 0===l[f]||isNaN(l[f])||(this.x+=l[f])}else{var{x:p,y:B}=this;A.fillStyle&&A.fillText(r,p,B),A.strokeStyle&&A.strokeText(r,p,B)}}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var A=this.leafTexts[this.textChunkStart],t=A.getStyle("text-anchor").getString("start"),e=0;e="start"===t?A.x-this.minX:"end"===t?A.x-this.maxX:A.x-(this.minX+this.maxX)/2;for(var r=this.textChunkStart;r<this.leafTexts.length;r++)this.leafTexts[r].x+=e;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(A){this.children.forEach(((t,e)=>{this.adjustChildCoordinatesRecursiveCore(A,this,this,e)})),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(A,t,e,r){var n=e.children[r];n.children.length>0?n.children.forEach(((e,r)=>{t.adjustChildCoordinatesRecursiveCore(A,t,n,r)})):this.adjustChildCoordinates(A,t,e,r)}adjustChildCoordinates(A,t,e,r){var n=e.children[r];if("function"!=typeof n.measureText)return n;A.save(),n.setContext(A,!0);var i=n.getAttribute("x"),s=n.getAttribute("y"),o=n.getAttribute("dx"),a=n.getAttribute("dy"),c=n.getStyle("font-family").getDefinition(),u=Boolean(c)&&c.isRTL;0===r&&(i.hasValue()||i.setValue(n.getInheritedAttribute("x")),s.hasValue()||s.setValue(n.getInheritedAttribute("y")),o.hasValue()||o.setValue(n.getInheritedAttribute("dx")),a.hasValue()||a.setValue(n.getInheritedAttribute("dy")));var l=n.measureText(A);return u&&(t.x-=l),i.hasValue()?(t.applyAnchoring(),n.x=i.getPixels("x"),o.hasValue()&&(n.x+=o.getPixels("x"))):(o.hasValue()&&(t.x+=o.getPixels("x")),n.x=t.x),t.x=n.x,u||(t.x+=l),s.hasValue()?(n.y=s.getPixels("y"),a.hasValue()&&(n.y+=a.getPixels("y"))):(a.hasValue()&&(t.y+=a.getPixels("y")),n.y=t.y),t.y=n.y,t.leafTexts.push(n),t.minX=Math.min(t.minX,n.x,n.x+l),t.maxX=Math.max(t.maxX,n.x,n.x+l),n.clearContext(A),A.restore(),n}getChildBoundingBox(A,t,e,r){var n=e.children[r];if("function"!=typeof n.getBoundingBox)return null;var i=n.getBoundingBox(A);return i?(n.children.forEach(((e,r)=>{var s=t.getChildBoundingBox(A,t,n,r);i.addBoundingBox(s)})),i):null}renderChild(A,t,e,r){var n=e.children[r];n.render(A),n.children.forEach(((e,r)=>{t.renderChild(A,t,n,r)}))}measureText(A){var{measureCache:t}=this;if(~t)return t;var e=this.getText(),r=this.measureTargetText(A,e);return this.measureCache=r,r}measureTargetText(A,t){if(!t.length)return 0;var{parent:e}=this,r=e.getStyle("font-family").getDefinition();if(r){for(var n=this.getFontSize(),i=r.isRTL?t.split("").reverse().join(""):t,s=Jw(e.getAttribute("dx").getString()),o=i.length,a=0,c=0;c<o;c++){a+=(this.getGlyph(r,i,c).horizAdvX||r.horizAdvX)*n/r.fontFace.unitsPerEm,void 0===s[c]||isNaN(s[c])||(a+=s[c])}return a}if(!A.measureText)return 10*t.length;A.save(),this.setContext(A,!0);var{width:u}=A.measureText(t);return this.clearContext(A),A.restore(),u}getInheritedAttribute(A){for(var t=this;t instanceof Jm&&t.isFirstChild();){var e=t.parent.getAttribute(A);if(e.hasValue(!0))return e.getValue("0");t=t.parent}return null}}class Zm extends Jm{constructor(A,t,e){super(A,t,new.target===Zm||e),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class $m extends Zm{constructor(){super(...arguments),this.type="textNode"}}class Ay extends zm{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(A){var t,{document:e}=this,{screen:r,window:n}=e,i=A.canvas;if(r.setDefaults(A),i.style&&void 0!==A.font&&n&&void 0!==n.getComputedStyle){A.font=n.getComputedStyle(i).getPropertyValue("font");var s=new bm(e,"fontSize",Gm.parse(A.font).fontSize);s.hasValue()&&(e.rootEmSize=s.getPixels("y"),e.emSize=e.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:o,height:a}=r.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var c=this.getAttribute("refX"),u=this.getAttribute("refY"),l=this.getAttribute("viewBox"),h=l.hasValue()?Jw(l.getString()):null,f=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),d=0,g=0,p=0,B=0;h&&(d=h[0],g=h[1]),this.root||(o=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y"),"marker"===this.type&&(p=d,B=g,d=0,g=0)),r.viewPort.setCurrent(o,a),!this.node||this.parent&&"foreignObject"!==(null===(t=this.node.parentNode)||void 0===t?void 0:t.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(A),A.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),h&&(o=h[2],a=h[3]),e.setViewBox({ctx:A,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:r.viewPort.width,desiredWidth:o,height:r.viewPort.height,desiredHeight:a,minX:d,minY:g,refX:c.getValue(),refY:u.getValue(),clip:f,clipX:p,clipY:B}),h&&(r.viewPort.removeCurrent(),r.viewPort.setCurrent(o,a))}clearContext(A){super.clearContext(A),this.document.screen.viewPort.removeCurrent()}resize(A){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getAttribute("width",!0),n=this.getAttribute("height",!0),i=this.getAttribute("viewBox"),s=this.getAttribute("style"),o=r.getNumber(0),a=n.getNumber(0);if(e)if("string"==typeof e)this.getAttribute("preserveAspectRatio",!0).setValue(e);else{var c=this.getAttribute("preserveAspectRatio");c.hasValue()&&c.setValue(c.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(r.setValue(A),n.setValue(t),i.hasValue()||i.setValue("0 0 ".concat(o||A," ").concat(a||t)),s.hasValue()){var u=this.getStyle("width"),l=this.getStyle("height");u.hasValue()&&u.setValue("".concat(A,"px")),l.hasValue()&&l.setValue("".concat(t,"px"))}}}class ty extends Wm{constructor(){super(...arguments),this.type="rect"}path(A){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width",!1,!0).getPixels("x"),n=this.getStyle("height",!1,!0).getPixels("y"),i=this.getAttribute("rx"),s=this.getAttribute("ry"),o=i.getPixels("x"),a=s.getPixels("y");if(i.hasValue()&&!s.hasValue()&&(a=o),s.hasValue()&&!i.hasValue()&&(o=a),o=Math.min(o,r/2),a=Math.min(a,n/2),A){var c=(Math.sqrt(2)-1)/3*4;A.beginPath(),n>0&&r>0&&(A.moveTo(t+o,e),A.lineTo(t+r-o,e),A.bezierCurveTo(t+r-o+c*o,e,t+r,e+a-c*a,t+r,e+a),A.lineTo(t+r,e+n-a),A.bezierCurveTo(t+r,e+n-a+c*a,t+r-o+c*o,e+n,t+r-o,e+n),A.lineTo(t+o,e+n),A.bezierCurveTo(t+o-c*o,e+n,t,e+n-a+c*a,t,e+n-a),A.lineTo(t,e+a),A.bezierCurveTo(t,e+a-c*a,t+o-c*o,e,t+o,e),A.closePath())}return new qm(t,e,t+r,e+n)}getMarkers(){return null}}class ey extends Wm{constructor(){super(...arguments),this.type="circle"}path(A){var t=this.getAttribute("cx").getPixels("x"),e=this.getAttribute("cy").getPixels("y"),r=this.getAttribute("r").getPixels();return A&&r>0&&(A.beginPath(),A.arc(t,e,r,0,2*Math.PI,!1),A.closePath()),new qm(t-r,e-r,t+r,e+r)}getMarkers(){return null}}class ry extends Wm{constructor(){super(...arguments),this.type="ellipse"}path(A){var t=(Math.sqrt(2)-1)/3*4,e=this.getAttribute("rx").getPixels("x"),r=this.getAttribute("ry").getPixels("y"),n=this.getAttribute("cx").getPixels("x"),i=this.getAttribute("cy").getPixels("y");return A&&e>0&&r>0&&(A.beginPath(),A.moveTo(n+e,i),A.bezierCurveTo(n+e,i+t*r,n+t*e,i+r,n,i+r),A.bezierCurveTo(n-t*e,i+r,n-e,i+t*r,n-e,i),A.bezierCurveTo(n-e,i-t*r,n-t*e,i-r,n,i-r),A.bezierCurveTo(n+t*e,i-r,n+e,i-t*r,n+e,i),A.closePath()),new qm(n-e,i-r,n+e,i+r)}getMarkers(){return null}}class ny extends Wm{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Qm(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Qm(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(A){var[{x:t,y:e},{x:r,y:n}]=this.getPoints();return A&&(A.beginPath(),A.moveTo(t,e),A.lineTo(r,n)),new qm(t,e,r,n)}getMarkers(){var[A,t]=this.getPoints(),e=A.angleTo(t);return[[A,e],[t,e]]}}class iy extends Wm{constructor(A,t,e){super(A,t,e),this.type="polyline",this.points=[],this.points=Qm.parsePath(this.getAttribute("points").getString())}path(A){var{points:t}=this,[{x:e,y:r}]=t,n=new qm(e,r);return A&&(A.beginPath(),A.moveTo(e,r)),t.forEach((t=>{var{x:e,y:r}=t;n.addPoint(e,r),A&&A.lineTo(e,r)})),n}getMarkers(){var{points:A}=this,t=A.length-1,e=[];return A.forEach(((r,n)=>{n!==t&&e.push([r,r.angleTo(A[n+1])])})),e.length>0&&e.push([A[A.length-1],e[e.length-1][1]]),e}}class sy extends iy{constructor(){super(...arguments),this.type="polygon"}path(A){var t=super.path(A),[{x:e,y:r}]=this.points;return A&&(A.lineTo(e,r),A.closePath()),t}}class oy extends Dm{constructor(){super(...arguments),this.type="pattern"}createPattern(A,t,e){var r=this.getStyle("width").getPixels("x",!0),n=this.getStyle("height").getPixels("y",!0),i=new Ay(this.document,null);i.attributes.viewBox=new bm(this.document,"viewBox",this.getAttribute("viewBox").getValue()),i.attributes.width=new bm(this.document,"width","".concat(r,"px")),i.attributes.height=new bm(this.document,"height","".concat(n,"px")),i.attributes.transform=new bm(this.document,"transform",this.getAttribute("patternTransform").getValue()),i.children=this.children;var s=this.document.createCanvas(r,n),o=s.getContext("2d"),a=this.getAttribute("x"),c=this.getAttribute("y");a.hasValue()&&c.hasValue()&&o.translate(a.getPixels("x",!0),c.getPixels("y",!0)),e.hasValue()?this.styles["fill-opacity"]=e:Reflect.deleteProperty(this.styles,"fill-opacity");for(var u=-1;u<=1;u++)for(var l=-1;l<=1;l++)o.save(),i.attributes.x=new bm(this.document,"x",u*s.width),i.attributes.y=new bm(this.document,"y",l*s.height),i.render(o),o.restore();return A.createPattern(s,"repeat")}}class ay extends Dm{constructor(){super(...arguments),this.type="marker"}render(A,t,e){if(t){var{x:r,y:n}=t,i=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");A.translate(r,n),"auto"===i&&A.rotate(e),"strokeWidth"===s&&A.scale(A.lineWidth,A.lineWidth),A.save();var o=new Ay(this.document,null);o.type=this.type,o.attributes.viewBox=new bm(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new bm(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new bm(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new bm(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new bm(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new bm(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new bm(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new bm(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(A),A.restore(),"strokeWidth"===s&&A.scale(1/A.lineWidth,1/A.lineWidth),"auto"===i&&A.rotate(-e),A.translate(-r,-n)}}}class cy extends Dm{constructor(){super(...arguments),this.type="defs"}render(){}}class uy extends zm{constructor(){super(...arguments),this.type="g"}getBoundingBox(A){var t=new qm;return this.children.forEach((e=>{t.addBoundingBox(e.getBoundingBox(A))})),t}}class ly extends Dm{constructor(A,t,e){super(A,t,e),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:r,children:n}=this;n.forEach((A=>{"stop"===A.type&&r.push(A)}))}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(A,t,e){var r=this;this.getHrefAttribute().hasValue()&&(r=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(r));var{stops:n}=r,i=this.getGradient(A,t);if(!i)return this.addParentOpacity(e,n[n.length-1].color);if(n.forEach((A=>{i.addColorStop(A.offset,this.addParentOpacity(e,A.color))})),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:o,viewPort:a}=s.screen,[c]=a.viewPorts,u=new ty(s,null);u.attributes.x=new bm(s,"x",-o/3),u.attributes.y=new bm(s,"y",-o/3),u.attributes.width=new bm(s,"width",o),u.attributes.height=new bm(s,"height",o);var l=new uy(s,null);l.attributes.transform=new bm(s,"transform",this.getAttribute("gradientTransform").getValue()),l.children=[u];var h=new Ay(s,null);h.attributes.x=new bm(s,"x",0),h.attributes.y=new bm(s,"y",0),h.attributes.width=new bm(s,"width",c.width),h.attributes.height=new bm(s,"height",c.height),h.children=[l];var f=s.createCanvas(c.width,c.height),d=f.getContext("2d");return d.fillStyle=i,h.render(d),d.createPattern(f,"no-repeat")}return i}inheritStopContainer(A){this.attributesToInherit.forEach((t=>{!this.getAttribute(t).hasValue()&&A.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(A.getAttribute(t).getValue())}))}addParentOpacity(A,t){return A.hasValue()?new bm(this.document,"color",t).addOpacity(A).getColor():t}}class hy extends ly{constructor(A,t,e){super(A,t,e),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(A,t){var e="objectBoundingBox"===this.getGradientUnits(),r=e?t.getBoundingBox(A):null;if(e&&!r)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var n=e?r.x+r.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),i=e?r.y+r.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=e?r.x+r.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=e?r.y+r.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return n===s&&i===o?null:A.createLinearGradient(n,i,s,o)}}class fy extends ly{constructor(A,t,e){super(A,t,e),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(A,t){var e="objectBoundingBox"===this.getGradientUnits(),r=t.getBoundingBox(A);if(e&&!r)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var n=e?r.x+r.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),i=e?r.y+r.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=n,o=i;this.getAttribute("fx").hasValue()&&(s=e?r.x+r.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=e?r.y+r.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var a=e?(r.width+r.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),c=this.getAttribute("fr").getPixels();return A.createRadialGradient(s,o,c,n,i,a)}}class dy extends Dm{constructor(A,t,e){super(A,t,e),this.type="stop";var r=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),n=this.getStyle("stop-opacity"),i=this.getStyle("stop-color",!0);""===i.getString()&&i.setValue("#000"),n.hasValue()&&(i=i.addOpacity(n)),this.offset=r,this.color=i.getColor()}}class gy extends Dm{constructor(A,t,e){super(A,t,e),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,A.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new bm(A,"values",null);var r=this.getAttribute("values");r.hasValue()&&this.values.setValue(r.getString().split(";"))}getProperty(){var A=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return"CSS"===A?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:A}=this,{progress:t,from:e,to:r}=this.getProgress(),n=e.getNumber()+(r.getNumber()-e.getNumber())*t;return"%"===A&&(n*=100),"".concat(n).concat(A)}update(A){var{parent:t}=this,e=this.getProperty();if(this.initialValue||(this.initialValue=e.getString(),this.initialUnits=e.getUnits()),this.duration>this.maxDuration){var r=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==r||this.frozen){if("remove"===r&&!this.removed)return this.removed=!0,e.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=e.getString();return!1}this.duration+=A;var n=!1;if(this.begin<this.duration){var i=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var o=s.getString();i="".concat(o,"(").concat(i,")")}e.setValue(i),n=!0}return n}getProgress(){var{document:A,values:t}=this,e={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var r=e.progress*(t.getValue().length-1),n=Math.floor(r),i=Math.ceil(r);e.from=new bm(A,"from",parseFloat(t.getValue()[n])),e.to=new bm(A,"to",parseFloat(t.getValue()[i])),e.progress=(r-n)/(i-n)}else e.from=this.from,e.to=this.to;return e}}class py extends gy{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:A,from:t,to:e}=this.getProgress(),r=new VB(t.getColor()),n=new VB(e.getColor());if(r.ok&&n.ok){var i=r.r+(n.r-r.r)*A,s=r.g+(n.g-r.g)*A,o=r.b+(n.b-r.b)*A;return"rgb(".concat(Math.floor(i),", ").concat(Math.floor(s),", ").concat(Math.floor(o),")")}return this.getAttribute("from").getColor()}}class By extends gy{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:A,from:t,to:e}=this.getProgress(),r=Jw(t.getString()),n=Jw(e.getString()),i=r.map(((t,e)=>t+(n[e]-t)*A)).join(" ");return i}}class wy extends Dm{constructor(A,t,e){super(A,t,e),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:r}=A,{children:n}=this;for(var i of n)switch(i.type){case"font-face":this.fontFace=i;var s=i.getStyle("font-family");s.hasValue()&&(r[s.getString()]=this);break;case"missing-glyph":this.missingGlyph=i;break;case"glyph":var o=i;o.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[o.unicode]&&(this.glyphs[o.unicode]={}),this.glyphs[o.unicode][o.arabicForm]=o):this.glyphs[o.unicode]=o}}render(){}}class my extends Dm{constructor(A,t,e){super(A,t,e),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class yy extends Wm{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class vy extends Jm{constructor(){super(...arguments),this.type="tref"}getText(){var A=this.getHrefAttribute().getDefinition();if(A){var t=A.children[0];if(t)return t.getText()}return""}}class by extends Jm{constructor(A,t,e){super(A,t,e),this.type="a";var{childNodes:r}=t,n=r[0],i=r.length>0&&Array.from(r).every((A=>3===A.nodeType));this.hasText=i,this.text=i?this.getTextFromNode(n):""}getText(){return this.text}renderChildren(A){if(this.hasText){super.renderChildren(A);var{document:t,x:e,y:r}=this,{mouse:n}=t.screen,i=new bm(t,"fontSize",Gm.parse(t.ctx.font).fontSize);n.isWorking()&&n.checkBoundingBox(this,new qm(e,r-i.getPixels("y"),e+this.measureText(A),r))}else if(this.children.length>0){var s=new uy(this.document,null);s.children=this.children,s.parent=this,s.render(A)}}onClick(){var{window:A}=this.document;A&&A.open(this.getHrefAttribute().getString())}onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}function Cy(A,t){var e=Object.keys(A);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(A);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(A,t).enumerable}))),e.push.apply(e,r)}return e}function Qy(A){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?Cy(Object(e),!0).forEach((function(t){xp(A,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(e)):Cy(Object(e)).forEach((function(t){Object.defineProperty(A,t,Object.getOwnPropertyDescriptor(e,t))}))}return A}class Fy extends Jm{constructor(A,t,e){super(A,t,e),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var r=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(r)}getText(){return this.text}path(A){var{dataArray:t}=this;A&&A.beginPath(),t.forEach((t=>{var{type:e,points:r}=t;switch(e){case Xm.LINE_TO:A&&A.lineTo(r[0],r[1]);break;case Xm.MOVE_TO:A&&A.moveTo(r[0],r[1]);break;case Xm.CURVE_TO:A&&A.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case Xm.QUAD_TO:A&&A.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case Xm.ARC:var[n,i,s,o,a,c,u,l]=r,h=s>o?s:o,f=s>o?1:s/o,d=s>o?o/s:1;A&&(A.translate(n,i),A.rotate(u),A.scale(f,d),A.arc(0,0,h,a,a+c,Boolean(1-l)),A.scale(1/f,1/d),A.rotate(-u),A.translate(-n,-i));break;case Xm.CLOSE_PATH:A&&A.closePath()}}))}renderChildren(A){this.setTextData(A),A.save();var t=this.parent.getStyle("text-decoration").getString(),e=this.getFontSize(),{glyphInfo:r}=this,n=A.fillStyle;"underline"===t&&A.beginPath(),r.forEach(((r,n)=>{var{p0:i,p1:s,rotation:o,text:a}=r;A.save(),A.translate(i.x,i.y),A.rotate(o),A.fillStyle&&A.fillText(a,0,0),A.strokeStyle&&A.strokeText(a,0,0),A.restore(),"underline"===t&&(0===n&&A.moveTo(i.x,i.y+e/8),A.lineTo(s.x,s.y+e/5))})),"underline"===t&&(A.lineWidth=e/20,A.strokeStyle=n,A.stroke(),A.closePath()),A.restore()}getLetterSpacingAt(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[A]||0}findSegmentToFitChar(A,t,e,r,n,i,s,o,a){var c=i,u=this.measureText(A,o);" "===o&&"justify"===t&&e<r&&(u+=(r-e)/n),a>-1&&(c+=this.getLetterSpacingAt(a));var l=this.textHeight/20,h=this.getEquidistantPointOnPath(c,l,0),f=this.getEquidistantPointOnPath(c+u,l,0),d={p0:h,p1:f},g=h&&f?Math.atan2(f.y-h.y,f.x-h.x):0;if(s){var p=Math.cos(Math.PI/2+g)*s,B=Math.cos(-g)*s;d.p0=Qy(Qy({},h),{},{x:h.x+p,y:h.y+B}),d.p1=Qy(Qy({},f),{},{x:f.x+p,y:f.y+B})}return{offset:c+=u,segment:d,rotation:g}}measureText(A,t){var{measuresCache:e}=this,r=t||this.getText();if(e.has(r))return e.get(r);var n=this.measureTargetText(A,r);return e.set(r,n),n}setTextData(A){if(!this.glyphInfo){var t=this.getText(),e=t.split(""),r=t.split(" ").length-1,n=this.parent.getAttribute("dx").split().map((A=>A.getPixels("x"))),i=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),o=this.getStyle("letter-spacing"),a=this.parent.getStyle("letter-spacing"),c=0;o.hasValue()&&"inherit"!==o.getValue()?o.hasValue()&&"initial"!==o.getValue()&&"unset"!==o.getValue()&&(c=o.getPixels()):c=a.getPixels();var u=[],l=t.length;this.letterSpacingCache=u;for(var h=0;h<l;h++)u.push(void 0!==n[h]?n[h]:c);var f=u.reduce(((A,t,e)=>0===e?0:A+t||0),0),d=this.measureText(A),g=Math.max(d+f,0);this.textWidth=d,this.textHeight=this.getFontSize(),this.glyphInfo=[];var p=this.getPathLength(),B=this.getStyle("startOffset").getNumber(0)*p,w=0;"middle"!==s&&"center"!==s||(w=-g/2),"end"!==s&&"right"!==s||(w=-g),w+=B,e.forEach(((t,n)=>{var{offset:o,segment:a,rotation:c}=this.findSegmentToFitChar(A,s,g,p,r,w,i,t,n);w=o,a.p0&&a.p1&&this.glyphInfo.push({text:e[n],p0:a.p0,p1:a.p1,rotation:c})}))}}parsePathData(A){if(this.pathLength=-1,!A)return[];var t=[],{pathParser:e}=A;for(e.reset();!e.isEnd();){var{current:r}=e,n=r?r.x:0,i=r?r.y:0,s=e.next(),o=s.type,a=[];switch(s.type){case Xm.MOVE_TO:this.pathM(e,a);break;case Xm.LINE_TO:o=this.pathL(e,a);break;case Xm.HORIZ_LINE_TO:o=this.pathH(e,a);break;case Xm.VERT_LINE_TO:o=this.pathV(e,a);break;case Xm.CURVE_TO:this.pathC(e,a);break;case Xm.SMOOTH_CURVE_TO:o=this.pathS(e,a);break;case Xm.QUAD_TO:this.pathQ(e,a);break;case Xm.SMOOTH_QUAD_TO:o=this.pathT(e,a);break;case Xm.ARC:a=this.pathA(e);break;case Xm.CLOSE_PATH:Wm.pathZ(e)}s.type!==Xm.CLOSE_PATH?t.push({type:o,points:a,start:{x:n,y:i},pathLength:this.calcLength(n,i,o,a)}):t.push({type:Xm.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(A,t){var{x:e,y:r}=Wm.pathM(A).point;t.push(e,r)}pathL(A,t){var{x:e,y:r}=Wm.pathL(A).point;return t.push(e,r),Xm.LINE_TO}pathH(A,t){var{x:e,y:r}=Wm.pathH(A).point;return t.push(e,r),Xm.LINE_TO}pathV(A,t){var{x:e,y:r}=Wm.pathV(A).point;return t.push(e,r),Xm.LINE_TO}pathC(A,t){var{point:e,controlPoint:r,currentPoint:n}=Wm.pathC(A);t.push(e.x,e.y,r.x,r.y,n.x,n.y)}pathS(A,t){var{point:e,controlPoint:r,currentPoint:n}=Wm.pathS(A);return t.push(e.x,e.y,r.x,r.y,n.x,n.y),Xm.CURVE_TO}pathQ(A,t){var{controlPoint:e,currentPoint:r}=Wm.pathQ(A);t.push(e.x,e.y,r.x,r.y)}pathT(A,t){var{controlPoint:e,currentPoint:r}=Wm.pathT(A);return t.push(e.x,e.y,r.x,r.y),Xm.QUAD_TO}pathA(A){var{rX:t,rY:e,sweepFlag:r,xAxisRotation:n,centp:i,a1:s,ad:o}=Wm.pathA(A);return 0===r&&o>0&&(o-=2*Math.PI),1===r&&o<0&&(o+=2*Math.PI),[i.x,i.y,t,e,s,o,n,r]}calcLength(A,t,e,r){var n=0,i=null,s=null,o=0;switch(e){case Xm.LINE_TO:return this.getLineLength(A,t,r[0],r[1]);case Xm.CURVE_TO:for(n=0,i=this.getPointOnCubicBezier(0,A,t,r[0],r[1],r[2],r[3],r[4],r[5]),o=.01;o<=1;o+=.01)s=this.getPointOnCubicBezier(o,A,t,r[0],r[1],r[2],r[3],r[4],r[5]),n+=this.getLineLength(i.x,i.y,s.x,s.y),i=s;return n;case Xm.QUAD_TO:for(n=0,i=this.getPointOnQuadraticBezier(0,A,t,r[0],r[1],r[2],r[3]),o=.01;o<=1;o+=.01)s=this.getPointOnQuadraticBezier(o,A,t,r[0],r[1],r[2],r[3]),n+=this.getLineLength(i.x,i.y,s.x,s.y),i=s;return n;case Xm.ARC:n=0;var a=r[4],c=r[5],u=r[4]+c,l=Math.PI/180;if(Math.abs(a-u)<l&&(l=Math.abs(a-u)),i=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],a,0),c<0)for(o=a-l;o>u;o-=l)s=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],o,0),n+=this.getLineLength(i.x,i.y,s.x,s.y),i=s;else for(o=a+l;o<u;o+=l)s=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],o,0),n+=this.getLineLength(i.x,i.y,s.x,s.y),i=s;return s=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],u,0),n+=this.getLineLength(i.x,i.y,s.x,s.y)}return 0}getPointOnLine(A,t,e,r,n){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:e,o=(n-e)/(r-t+lm),a=Math.sqrt(A*A/(1+o*o));r<t&&(a*=-1);var c=o*a,u=null;if(r===t)u={x:i,y:s+c};else if((s-e)/(i-t+lm)===o)u={x:i+a,y:s+c};else{var l,h,f=this.getLineLength(t,e,r,n);if(f<lm)return null;var d=(i-t)*(r-t)+(s-e)*(n-e);l=t+(d/=f*f)*(r-t),h=e+d*(n-e);var g=this.getLineLength(i,s,l,h),p=Math.sqrt(A*A-g*g);a=Math.sqrt(p*p/(1+o*o)),r<t&&(a*=-1),u={x:l+a,y:h+(c=o*a)}}return u}getPointOnPath(A){var t=this.getPathLength(),e=0,r=null;if(A<-5e-5||A-5e-5>t)return null;var{dataArray:n}=this;for(var i of n){if(!i||!(i.pathLength<5e-5||e+i.pathLength+5e-5<A)){var s=A-e,o=0;switch(i.type){case Xm.LINE_TO:r=this.getPointOnLine(s,i.start.x,i.start.y,i.points[0],i.points[1],i.start.x,i.start.y);break;case Xm.ARC:var a=i.points[4],c=i.points[5],u=i.points[4]+c;if(o=a+s/i.pathLength*c,c<0&&o<u||c>=0&&o>u)break;r=this.getPointOnEllipticalArc(i.points[0],i.points[1],i.points[2],i.points[3],o,i.points[6]);break;case Xm.CURVE_TO:(o=s/i.pathLength)>1&&(o=1),r=this.getPointOnCubicBezier(o,i.start.x,i.start.y,i.points[0],i.points[1],i.points[2],i.points[3],i.points[4],i.points[5]);break;case Xm.QUAD_TO:(o=s/i.pathLength)>1&&(o=1),r=this.getPointOnQuadraticBezier(o,i.start.x,i.start.y,i.points[0],i.points[1],i.points[2],i.points[3])}if(r)return r;break}e+=i.pathLength}return null}getLineLength(A,t,e,r){return Math.sqrt((e-A)*(e-A)+(r-t)*(r-t))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce(((A,t)=>t.pathLength>0?A+t.pathLength:A),0)),this.pathLength}getPointOnCubicBezier(A,t,e,r,n,i,s,o,a){return{x:o*gm(A)+i*pm(A)+r*Bm(A)+t*wm(A),y:a*gm(A)+s*pm(A)+n*Bm(A)+e*wm(A)}}getPointOnQuadraticBezier(A,t,e,r,n,i,s){return{x:i*mm(A)+r*ym(A)+t*vm(A),y:s*mm(A)+n*ym(A)+e*vm(A)}}getPointOnEllipticalArc(A,t,e,r,n,i){var s=Math.cos(i),o=Math.sin(i),a=e*Math.cos(n),c=r*Math.sin(n);return{x:A+(a*s-c*o),y:t+(a*o+c*s)}}buildEquidistantCache(A,t){var e=this.getPathLength(),r=t||.25,n=A||e/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==r){this.equidistantCache={step:n,precision:r,points:[]};for(var i=0,s=0;s<=e;s+=r){var o=this.getPointOnPath(s),a=this.getPointOnPath(s+r);o&&a&&((i+=this.getLineLength(o.x,o.y,a.x,a.y))>=n&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:s}),i-=n))}}}getEquidistantPointOnPath(A,t,e){if(this.buildEquidistantCache(t,e),A<0||A-this.getPathLength()>5e-5)return null;var r=Math.round(A/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[r]||null}}var Uy=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class xy extends zm{constructor(A,t,e){super(A,t,e),this.type="image",this.loaded=!1;var r=this.getHrefAttribute().getString();if(r){var n=r.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(r);A.images.push(this),n?this.loadSvg(r):this.loadImage(r),this.isSvg=n}}loadImage(A){var t=this;return hh((function*(){try{var e=yield t.document.createImage(A);t.image=e}catch(t){console.error('Error while loading image "'.concat(A,'":'),t)}t.loaded=!0}))()}loadSvg(A){var t=this;return hh((function*(){var e=Uy.exec(A);if(e){var r=e[5];"base64"===e[4]?t.image=atob(r):t.image=decodeURIComponent(r)}else try{var n=yield t.document.fetch(A),i=yield n.text();t.image=i}catch(t){console.error('Error while loading image "'.concat(A,'":'),t)}t.loaded=!0}))()}renderChildren(A){var{document:t,image:e,loaded:r}=this,n=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(r&&e&&s&&o){if(A.save(),A.translate(n,i),this.isSvg){var a=t.canvg.forkString(A,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:o});a.document.documentElement.parent=this,a.render()}else{var c=this.image;t.setViewBox({ctx:A,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:c.width,height:o,desiredHeight:c.height}),this.loaded&&(void 0===c.complete||c.complete)&&A.drawImage(c,0,0)}A.restore()}}getBoundingBox(){var A=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),e=this.getStyle("width").getPixels("x"),r=this.getStyle("height").getPixels("y");return new qm(A,t,A+e,t+r)}}class Ey extends zm{constructor(){super(...arguments),this.type="symbol"}render(A){}}class Ly{constructor(A){this.document=A,this.loaded=!1,A.fonts.push(this)}load(A,t){var e=this;return hh((function*(){try{var{document:r}=e,n=(yield r.canvg.parser.load(t)).getElementsByTagName("font");Array.from(n).forEach((t=>{var e=r.createElement(t);r.definitions[A]=e}))}catch(A){console.error('Error while loading font "'.concat(t,'":'),A)}e.loaded=!0}))()}}class Sy extends Dm{constructor(A,t,e){super(A,t,e),this.type="style";var r=zw(Array.from(t.childNodes).map((A=>A.textContent)).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,""));r.split("}").forEach((t=>{var e=t.trim();if(e){var r=e.split("{"),n=r[0].split(","),i=r[1].split(";");n.forEach((t=>{var e=t.trim();if(e){var r=A.styles[e]||{};if(i.forEach((t=>{var e=t.indexOf(":"),n=t.substr(0,e).trim(),i=t.substr(e+1,t.length-e).trim();n&&i&&(r[n]=new bm(A,n,i))})),A.styles[e]=r,A.stylesSpecificity[e]=um(e),"@font-face"===e){var n=r["font-family"].getString().replace(/"|'/g,"");r.src.getString().split(",").forEach((t=>{if(t.indexOf('format("svg")')>0){var e=Am(t);e&&new Ly(A).load(n,e)}}))}}}))}}))}}Sy.parseExternalUrl=Am;class Iy extends zm{constructor(){super(...arguments),this.type="use"}setContext(A){super.setContext(A);var t=this.getAttribute("x"),e=this.getAttribute("y");t.hasValue()&&A.translate(t.getPixels("x"),0),e.hasValue()&&A.translate(0,e.getPixels("y"))}path(A){var{element:t}=this;t&&t.path(A)}renderChildren(A){var{document:t,element:e}=this;if(e){var r=e;if("symbol"===e.type&&((r=new Ay(t,null)).attributes.viewBox=new bm(t,"viewBox",e.getAttribute("viewBox").getString()),r.attributes.preserveAspectRatio=new bm(t,"preserveAspectRatio",e.getAttribute("preserveAspectRatio").getString()),r.attributes.overflow=new bm(t,"overflow",e.getAttribute("overflow").getString()),r.children=e.children,e.styles.opacity=new bm(t,"opacity",this.calculateOpacity())),"svg"===r.type){var n=this.getStyle("width",!1,!0),i=this.getStyle("height",!1,!0);n.hasValue()&&(r.attributes.width=new bm(t,"width",n.getString())),i.hasValue()&&(r.attributes.height=new bm(t,"height",i.getString()))}var s=r.parent;r.parent=this,r.render(A),r.parent=s}}getBoundingBox(A){var{element:t}=this;return t?t.getBoundingBox(A):null}elementTransform(){var{document:A,element:t}=this;return Mm.fromElement(A,t)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function Ny(A,t,e,r,n,i){return A[e*r*4+4*t+i]}function Hy(A,t,e,r,n,i,s){A[e*r*4+4*t+i]=s}function Py(A,t,e){return A[t]*e}function Oy(A,t,e,r){return t+Math.cos(A)*e+Math.sin(A)*r}class Ty extends Dm{constructor(A,t,e){super(A,t,e),this.type="feColorMatrix";var r=Jw(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var n=r[0];r=[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var i=r[0]*Math.PI/180;r=[Oy(i,.213,.787,-.213),Oy(i,.715,-.715,-.715),Oy(i,.072,-.072,.928),0,0,Oy(i,.213,-.213,.143),Oy(i,.715,.285,.14),Oy(i,.072,-.072,-.283),0,0,Oy(i,.213,-.213,-.787),Oy(i,.715,-.715,.715),Oy(i,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.matrix=r,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(A,t,e,r,n){for(var{includeOpacity:i,matrix:s}=this,o=A.getImageData(0,0,r,n),a=0;a<n;a++)for(var c=0;c<r;c++){var u=Ny(o.data,c,a,r,0,0),l=Ny(o.data,c,a,r,0,1),h=Ny(o.data,c,a,r,0,2),f=Ny(o.data,c,a,r,0,3),d=Py(s,0,u)+Py(s,1,l)+Py(s,2,h)+Py(s,3,f)+Py(s,4,1),g=Py(s,5,u)+Py(s,6,l)+Py(s,7,h)+Py(s,8,f)+Py(s,9,1),p=Py(s,10,u)+Py(s,11,l)+Py(s,12,h)+Py(s,13,f)+Py(s,14,1),B=Py(s,15,u)+Py(s,16,l)+Py(s,17,h)+Py(s,18,f)+Py(s,19,1);i&&(d=0,g=0,p=0,B*=f/255),Hy(o.data,c,a,r,0,0,d),Hy(o.data,c,a,r,0,1,g),Hy(o.data,c,a,r,0,2,p),Hy(o.data,c,a,r,0,3,B)}A.clearRect(0,0,r,n),A.putImageData(o,0,0)}}class _y extends Dm{constructor(){super(...arguments),this.type="mask"}apply(A,t){var{document:e}=this,r=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),i=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!i&&!s){var o=new qm;this.children.forEach((t=>{o.addBoundingBox(t.getBoundingBox(A))})),r=Math.floor(o.x1),n=Math.floor(o.y1),i=Math.floor(o.width),s=Math.floor(o.height)}var a=this.removeStyles(t,_y.ignoreStyles),c=e.createCanvas(r+i,n+s),u=c.getContext("2d");e.screen.setDefaults(u),this.renderChildren(u),new Ty(e,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(u,0,0,r+i,n+s);var l=e.createCanvas(r+i,n+s),h=l.getContext("2d");e.screen.setDefaults(h),t.render(h),h.globalCompositeOperation="destination-in",h.fillStyle=u.createPattern(c,"no-repeat"),h.fillRect(0,0,r+i,n+s),A.fillStyle=h.createPattern(l,"no-repeat"),A.fillRect(0,0,r+i,n+s),this.restoreStyles(t,a)}render(A){}}_y.ignoreStyles=["mask","transform","clip-path"];var ky=()=>{};class My extends Dm{constructor(){super(...arguments),this.type="clipPath"}apply(A){var{document:t}=this,e=Reflect.getPrototypeOf(A),{beginPath:r,closePath:n}=A;e&&(e.beginPath=ky,e.closePath=ky),Reflect.apply(r,A,[]),this.children.forEach((r=>{if(void 0!==r.path){var i=void 0!==r.elementTransform?r.elementTransform():null;i||(i=Mm.fromElement(t,r)),i&&i.apply(A),r.path(A),e&&(e.closePath=n),i&&i.unapply(A)}})),Reflect.apply(n,A,[]),A.clip(),e&&(e.beginPath=r,e.closePath=n)}render(A){}}class Dy extends Dm{constructor(){super(...arguments),this.type="filter"}apply(A,t){var{document:e,children:r}=this,n=t.getBoundingBox(A);if(n){var i=0,s=0;r.forEach((A=>{var t=A.extraFilterDistance||0;i=Math.max(i,t),s=Math.max(s,t)}));var o=Math.floor(n.width),a=Math.floor(n.height),c=o+2*i,u=a+2*s;if(!(c<1||u<1)){var l=Math.floor(n.x),h=Math.floor(n.y),f=this.removeStyles(t,Dy.ignoreStyles),d=e.createCanvas(c,u),g=d.getContext("2d");e.screen.setDefaults(g),g.translate(-l+i,-h+s),t.render(g),r.forEach((A=>{"function"==typeof A.apply&&A.apply(g,0,0,c,u)})),A.drawImage(d,0,0,c,u,l-i,h-s,c,u),this.restoreStyles(t,f)}}}render(A){}}Dy.ignoreStyles=["filter","transform","clip-path"];class Ry extends Dm{constructor(A,t,e){super(A,t,e),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(A,t,e,r,n){}}class Ky extends Dm{constructor(){super(...arguments),this.type="feMorphology"}apply(A,t,e,r,n){}}class Vy extends Dm{constructor(){super(...arguments),this.type="feComposite"}apply(A,t,e,r,n){}}class jy extends Dm{constructor(A,t,e){super(A,t,e),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(A,t,e,r,n){var{document:i,blurRadius:s}=this,o=i.window?i.window.document.body:null,a=A.canvas;a.id=i.getUniqueId(),o&&(a.style.display="none",o.appendChild(a)),Gw(a,t,e,r,n,s),o&&o.removeChild(a)}}class Gy extends Dm{constructor(){super(...arguments),this.type="title"}}class qy extends Dm{constructor(){super(...arguments),this.type="desc"}}var Xy={svg:Ay,rect:ty,circle:ey,ellipse:ry,line:ny,polyline:iy,polygon:sy,path:Wm,pattern:oy,marker:ay,defs:cy,linearGradient:hy,radialGradient:fy,stop:dy,animate:gy,animateColor:py,animateTransform:By,font:wy,"font-face":my,"missing-glyph":yy,glyph:Ym,text:Jm,tspan:Zm,tref:vy,a:by,textPath:Fy,image:xy,g:uy,symbol:Ey,style:Sy,use:Iy,mask:_y,clipPath:My,filter:Dy,feDropShadow:Ry,feMorphology:Ky,feComposite:Vy,feColorMatrix:Ty,feGaussianBlur:jy,title:Gy,desc:qy};function zy(A,t){var e=Object.keys(A);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(A);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(A,t).enumerable}))),e.push.apply(e,r)}return e}function Wy(){return Wy=hh((function*(A){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=document.createElement("img");return t&&(e.crossOrigin="Anonymous"),new Promise(((t,r)=>{e.onload=()=>{t(e)},e.onerror=(A,t,e,n,i)=>{r(i)},e.src=A}))})),Wy.apply(this,arguments)}class Yy{constructor(A){var{rootEmSize:t=12,emSize:e=12,createCanvas:r=Yy.createCanvas,createImage:n=Yy.createImage,anonymousCrossOrigin:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=A,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=A.screen,this.rootEmSize=t,this.emSize=e,this.createCanvas=r,this.createImage=this.bindCreateImage(n,i),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(A,t){return"boolean"==typeof t?(e,r)=>A(e,"boolean"==typeof r?r:t):A}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:A}=this;return A[A.length-1]}set emSize(A){var{emSizeStack:t}=this;t.push(A)}popEmSize(){var{emSizeStack:A}=this;A.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every((A=>A.loaded))}isFontsLoaded(){return this.fonts.every((A=>A.loaded))}createDocumentElement(A){var t=this.createElement(A.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(A){var t=A.nodeName.replace(/^[^:]+:/,""),e=Yy.elementTypes[t];return void 0!==e?new e(this,A):new Rm(this,A)}createTextNode(A){return new $m(this,A)}setViewBox(A){this.screen.setViewBox(function(A){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?zy(Object(e),!0).forEach((function(t){xp(A,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(e)):zy(Object(e)).forEach((function(t){Object.defineProperty(A,t,Object.getOwnPropertyDescriptor(e,t))}))}return A}({document:this},A))}}function Jy(A,t){var e=Object.keys(A);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(A);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(A,t).enumerable}))),e.push.apply(e,r)}return e}function Zy(A){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?Jy(Object(e),!0).forEach((function(t){xp(A,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(e)):Jy(Object(e)).forEach((function(t){Object.defineProperty(A,t,Object.getOwnPropertyDescriptor(e,t))}))}return A}Yy.createCanvas=function(A,t){var e=document.createElement("canvas");return e.width=A,e.height=t,e},Yy.createImage=function(A){return Wy.apply(this,arguments)},Yy.elementTypes=Xy;class $y{constructor(A,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new Im(e),this.screen=new Em(A,e),this.options=e;var r=new Yy(this,e),n=r.createDocumentElement(t);this.document=r,this.documentElement=n}static from(A,t){var e=arguments;return hh((function*(){var r=e.length>2&&void 0!==e[2]?e[2]:{},n=new Im(r),i=yield n.parse(t);return new $y(A,i,r)}))()}static fromString(A,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new Im(e).parseFromString(t);return new $y(A,r,e)}fork(A,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return $y.from(A,t,Zy(Zy({},this.options),e))}forkString(A,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return $y.fromString(A,t,Zy(Zy({},this.options),e))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var A=arguments,t=this;return hh((function*(){var e=A.length>0&&void 0!==A[0]?A[0]:{};t.start(Zy({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},e)),yield t.ready(),t.stop()}))()}start(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:t,screen:e,options:r}=this;e.start(t,Zy(Zy({enableRedraw:!0},r),A))}stop(){this.screen.stop()}resize(A){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(A,t,e)}}var Av=Object.freeze({__proto__:null,AElement:by,AnimateColorElement:py,AnimateElement:gy,AnimateTransformElement:By,BoundingBox:qm,CB1:gm,CB2:pm,CB3:Bm,CB4:wm,Canvg:$y,CircleElement:ey,ClipPathElement:My,DefsElement:cy,DescElement:qy,Document:Yy,Element:Dm,EllipseElement:ry,FeColorMatrixElement:Ty,FeCompositeElement:Vy,FeDropShadowElement:Ry,FeGaussianBlurElement:jy,FeMorphologyElement:Ky,FilterElement:Dy,Font:Gm,FontElement:wy,FontFaceElement:my,GElement:uy,GlyphElement:Ym,GradientElement:ly,ImageElement:xy,LineElement:ny,LinearGradientElement:hy,MarkerElement:ay,MaskElement:_y,Matrix:Om,MissingGlyphElement:yy,Mouse:Fm,PSEUDO_ZERO:lm,Parser:Im,PathElement:Wm,PathParser:Xm,PatternElement:oy,Point:Qm,PolygonElement:sy,PolylineElement:iy,Property:bm,QB1:mm,QB2:ym,QB3:vm,RadialGradientElement:fy,RectElement:ty,RenderedElement:zm,Rotate:Hm,SVGElement:Ay,SVGFontLoader:Ly,Scale:Pm,Screen:Em,Skew:Tm,SkewX:_m,SkewY:km,StopElement:dy,StyleElement:Sy,SymbolElement:Ey,TRefElement:vy,TSpanElement:Zm,TextElement:Jm,TextPathElement:Fy,TitleElement:Gy,Transform:Mm,Translate:Nm,UnknownElement:Rm,UseElement:Iy,ViewPort:Cm,compressSpaces:zw,default:$y,getSelectorSpecificity:um,normalizeAttributeName:$w,normalizeColor:tm,parseExternalUrl:Am,presets:Xw,toNumbers:Jw,trimLeft:Ww,trimRight:Yw,vectorMagnitude:hm,vectorsAngle:dm,vectorsRatio:fm});export{he as Plugin,ce as pluginName,ue as pluginPath};
|