1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00
invoiceninja/public/js/jspdf.min.js
2013-11-26 14:45:07 +02:00

158 lines
70 KiB
JavaScript
Executable File

/*
jsPDF 0.9.0rc2 ( 2013-08-07T15:00 commit ID c9c47d1de98fabb0681ad9fba049ef644f8f22ba )
Copyright (c) 2010-2012 James Hall, james@snapshotmedia.co.uk, https://github.com/MrRio/jsPDF
Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
MIT license.
-----------------------------------------------------------------------------------------------
JavaScript PubSub library
2012 (c) ddotsenko@willowsystems.com
based on Peter Higgins (dante@dojotoolkit.org)
Loosely based on Dojo publish/subscribe API, limited in scope. Rewritten blindly.
Original is (c) Dojo Foundation 2004-2010. Released under either AFL or new BSD, see:
http://dojofoundation.org/license for more information.
-----------------------------------------------------------------------------------------------
jsPDF addImage plugin (JPEG only at this time)
Copyright (c) 2012 https://github.com/siefkenj/
jsPDF fromHTML plugin. BETA stage. API subject to change. Needs browser, jQuery
Copyright (c) 2012 2012 Willow Systems Corporation, willow-systems.com
jsPDF Silly SVG plugin
Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
jsPDF split_text_to_size plugin
Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
MIT license.
jsPDF standard_fonts_metrics plugin
Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
MIT license.
*/
var jsPDF=function(){function e(l,c,g,q){l="undefined"===typeof l?"p":l.toString().toLowerCase();"undefined"===typeof c&&(c="mm");"undefined"===typeof g&&(g="a4");"undefined"===typeof q&&"undefined"===typeof zpipe&&(q=!1);var k=g.toString().toLowerCase(),b=[],a=0,h=q;q={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],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,
792],tabloid:[792,1224]};var G="0 g",f=0,p=[],I=2,F=!1,E=[],r={},A={},z=16,w,x,u,s,J={title:"",subject:"",author:"",keywords:"",creator:""},y=0,U=0,B={},H=new m(B),C,v=function(b){return b.toFixed(2)},V=function(b){var a=b.toFixed(0);return 10>b?"0"+a:a},n=function(h){F?p[f].push(h):(b.push(h),a+=h.length+1)},O=function(){I++;E[I]=a;n(I+" 0 obj");return I},R=function(b){n("stream");n(b);n("endstream")},K,da,S,t=function(b,h){var a;a=b;var f=h,c,d,g,k,l,p;void 0===f&&(f={});c=f.sourceEncoding?c:"Unicode";
g=f.outputEncoding;if((f.autoencode||g)&&(r[w].metadata&&r[w].metadata[c]&&r[w].metadata[c].encoding)&&(c=r[w].metadata[c].encoding,!g&&r[w].encoding&&(g=r[w].encoding),!g&&c.codePages&&(g=c.codePages[0]),"string"===typeof g&&(g=c[g]),g)){l=!1;k=[];c=0;for(d=a.length;c<d;c++)(p=g[a.charCodeAt(c)])?k.push(String.fromCharCode(p)):k.push(a[c]),k[c].charCodeAt(0)>>8&&(l=!0);a=k.join("")}for(c=a.length;void 0===l&&0!==c;)a.charCodeAt(c-1)>>8&&(l=!0),c--;if(l){k=f.noBOM?[]:[254,255];c=0;for(d=a.length;c<
d;c++){p=a.charCodeAt(c);f=p>>8;if(f>>8)throw Error("Character at position "+c.toString(10)+" of string '"+a+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");k.push(f);k.push(p-(f<<8))}a=String.fromCharCode.apply(void 0,k)}return a.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},X=function(){f++;F=!0;p[f]=[];n(v(0.200025*s)+" w");n("0 G");0!==y&&n(y.toString(10)+" J");0!==U&&n(U.toString(10)+" j");H.publish("addPage",{pageNumber:f})},D=function(a,b){var h;void 0===a&&(a=r[w].fontName);
void 0===b&&(b=r[w].fontStyle);try{h=A[a][b]}catch(f){h=void 0}if(!h)throw Error("Unable to look up font label for font '"+a+"', '"+b+"'. Refer to getFontList() for available fonts.");return h},L=function(){F=!1;b=[];E=[];n("%PDF-1.3");K=u*s;da=x*s;var c,g,d,k,l;for(c=1;c<=f;c++){O();n("<</Type /Page");n("/Parent 1 0 R");n("/Resources 2 0 R");n("/Contents "+(I+1)+" 0 R>>");n("endobj");g=p[c].join("\n");O();if(h){d=[];for(k=0;k<g.length;++k)d[k]=g.charCodeAt(k);l=adler32cs.from(g);g=new Deflater(6);
g.append(new Uint8Array(d));g=g.flush();d=[new Uint8Array([120,156]),new Uint8Array(g),new Uint8Array([l&255,l>>8&255,l>>16&255,l>>24&255])];g="";for(k in d)d.hasOwnProperty(k)&&(g+=String.fromCharCode.apply(null,d[k]));n("<</Length "+g.length+" /Filter [/FlateDecode]>>")}else n("<</Length "+g.length+">>");R(g);n("endobj")}E[1]=a;n("1 0 obj");n("<</Type /Pages");S="/Kids [";for(k=0;k<f;k++)S+=3+2*k+" 0 R ";n(S+"]");n("/Count "+f);n("/MediaBox [0 0 "+v(K)+" "+v(da)+"]");n(">>");n("endobj");for(var q in r)r.hasOwnProperty(q)&&
(c=r[q],c.objectNumber=O(),n("<</BaseFont/"+c.PostScriptName+"/Type/Font"),"string"===typeof c.encoding&&n("/Encoding/"+c.encoding),n("/Subtype/Type1>>"),n("endobj"));H.publish("putResources");E[2]=a;n("2 0 obj");n("<<");n("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]");n("/Font <<");for(var e in r)r.hasOwnProperty(e)&&n("/"+e+" "+r[e].objectNumber+" 0 R");n(">>");n("/XObject <<");H.publish("putXobjectDict");n(">>");n(">>");n("endobj");H.publish("postPutResources");O();n("<<");n("/Producer (jsPDF 0.9.0rc2)");
J.title&&n("/Title ("+t(J.title)+")");J.subject&&n("/Subject ("+t(J.subject)+")");J.author&&n("/Author ("+t(J.author)+")");J.keywords&&n("/Keywords ("+t(J.keywords)+")");J.creator&&n("/Creator ("+t(J.creator)+")");q=new Date;n("/CreationDate (D:"+[q.getFullYear(),V(q.getMonth()+1),V(q.getDate()),V(q.getHours()),V(q.getMinutes()),V(q.getSeconds())].join("")+")");n(">>");n("endobj");O();n("<<");n("/Type /Catalog");n("/Pages 1 0 R");n("/OpenAction [3 0 R /FitH null]");n("/PageLayout /OneColumn");H.publish("putCatalog");
n(">>");n("endobj");q=a;n("xref");n("0 "+(I+1));n("0000000000 65535 f ");for(e=1;e<=I;e++)c=E[e].toFixed(0),c=10>c.length?Array(11-c.length).join("0")+c:c,n(c+" 00000 n ");n("trailer");n("<<");n("/Size "+(I+1));n("/Root "+I+" 0 R");n("/Info "+(I-1)+" 0 R");n(">>");n("startxref");n(q);n("%%EOF");F=!0;return b.join("\n")},Z=function(a){var b="S";if("F"===a)b="f";else if("FD"===a||"DF"===a)b="B";return b},aa=function(a,b){var h,c,f,g;switch(a){case void 0:return L();case "save":if(navigator.getUserMedia&&
(void 0===window.URL||void 0===window.URL.createObjectURL))return B.output("dataurlnewwindow");h=L();c=h.length;f=new Uint8Array(new ArrayBuffer(c));for(g=0;g<c;g++)f[g]=h.charCodeAt(g);h=new Blob([f],{type:"application/pdf"});saveAs(h,b);break;case "datauristring":case "dataurlstring":return"data:application/pdf;base64,"+btoa(L());case "datauri":case "dataurl":document.location.href="data:application/pdf;base64,"+btoa(L());break;case "dataurlnewwindow":window.open("data:application/pdf;base64,"+
btoa(L()));break;default:throw Error('Output type "'+a+'" is not supported.');}};if("pt"===c)s=1;else if("mm"===c)s=72/25.4;else if("cm"===c)s=72/2.54;else if("in"===c)s=72;else throw"Invalid unit: "+c;if(q.hasOwnProperty(k))x=q[k][1]/s,u=q[k][0]/s;else try{x=g[1],u=g[0]}catch(N){throw"Invalid format: "+g;}if("p"===l||"portrait"===l)l="p",u>x&&(l=u,u=x,x=l);else if("l"===l||"landscape"===l)l="l",x>u&&(l=u,u=x,x=l);else throw"Invalid orientation: "+l;B.internal={pdfEscape:t,getStyle:Z,getFont:function(){return r[D.apply(B,
arguments)]},getFontSize:function(){return z},getLineHeight:function(){return 1.15*z},btoa:btoa,write:function(a,b,h,c){n(1===arguments.length?a:Array.prototype.join.call(arguments," "))},getCoordinateString:function(a){return v(a*s)},getVerticalCoordinateString:function(a){return v((x-a)*s)},collections:{},newObject:O,putStream:R,events:H,scaleFactor:s,pageSize:{width:u,height:x},output:function(a,b){return aa(a,b)},getNumberOfPages:function(){return p.length-1},pages:p};B.addPage=function(){X();
return this};B.text=function(a,b,h,c){var f,g;"number"===typeof a&&(f=a,g=b,a=h,b=f,h=g);"string"===typeof a&&a.match(/[\n\r]/)&&(a=a.split(/\r\n|\r|\n/g));"undefined"===typeof c?c={noBOM:!0,autoencode:!0}:(void 0===c.noBOM&&(c.noBOM=!0),void 0===c.autoencode&&(c.autoencode=!0));if("string"===typeof a)c=t(a,c);else if(a instanceof Array){a=a.concat();for(f=a.length-1;-1!==f;f--)a[f]=t(a[f],c);c=a.join(") Tj\nT* (")}else throw Error('Type of text must be string or Array. "'+a+'" is not recognized.');
n("BT\n/"+w+" "+z+" Tf\n"+1.15*z+" TL\n"+G+"\n"+v(b*s)+" "+v((x-h)*s)+" Td\n("+c+") Tj\nET");return this};B.line=function(a,b,h,c){n(v(a*s)+" "+v((x-b)*s)+" m "+v(h*s)+" "+v((x-c)*s)+" l S");return this};B.lines=function(a,b,h,c,f,g){var k,d,l,p,q,e,I,G;"number"===typeof a&&(k=a,d=b,a=h,b=k,h=d);f=Z(f);c=void 0===c?[1,1]:c;n((b*s).toFixed(3)+" "+((x-h)*s).toFixed(3)+" m ");k=c[0];c=c[1];d=a.length;G=h;for(h=0;h<d;h++)l=a[h],2===l.length?(b=l[0]*k+b,G=l[1]*c+G,n((b*s).toFixed(3)+" "+((x-G)*s).toFixed(3)+
" l")):(p=l[0]*k+b,q=l[1]*c+G,e=l[2]*k+b,I=l[3]*c+G,b=l[4]*k+b,G=l[5]*c+G,n((p*s).toFixed(3)+" "+((x-q)*s).toFixed(3)+" "+(e*s).toFixed(3)+" "+((x-I)*s).toFixed(3)+" "+(b*s).toFixed(3)+" "+((x-G)*s).toFixed(3)+" c"));!0==g&&n(" h");n(f);return this};B.rect=function(a,b,h,c,f){f=Z(f);n([v(a*s),v((x-b)*s),v(h*s),v(-c*s),"re",f].join(" "));return this};B.triangle=function(a,b,h,c,f,g,k){this.lines([[h-a,c-b],[f-h,g-c],[a-f,b-g]],a,b,[1,1],k,!0);return this};B.roundedRect=function(a,b,h,c,f,g,k){var d=
4/3*(Math.SQRT2-1);this.lines([[h-2*f,0],[f*d,0,f,g-g*d,f,g],[0,c-2*g],[0,g*d,-(f*d),g,-f,g],[-h+2*f,0],[-(f*d),0,-f,-(g*d),-f,-g],[0,-c+2*g],[0,-(g*d),f*d,-g,f,-g]],a+f,b,[1,1],k);return this};B.ellipse=function(a,b,h,c,f){f=Z(f);var g=4/3*(Math.SQRT2-1)*h,d=4/3*(Math.SQRT2-1)*c;n([v((a+h)*s),v((x-b)*s),"m",v((a+h)*s),v((x-(b-d))*s),v((a+g)*s),v((x-(b-c))*s),v(a*s),v((x-(b-c))*s),"c"].join(" "));n([v((a-g)*s),v((x-(b-c))*s),v((a-h)*s),v((x-(b-d))*s),v((a-h)*s),v((x-b)*s),"c"].join(" "));n([v((a-
h)*s),v((x-(b+d))*s),v((a-g)*s),v((x-(b+c))*s),v(a*s),v((x-(b+c))*s),"c"].join(" "));n([v((a+g)*s),v((x-(b+c))*s),v((a+h)*s),v((x-(b+d))*s),v((a+h)*s),v((x-b)*s),"c",f].join(" "));return this};B.circle=function(a,b,h,c){return this.ellipse(a,b,h,h,c)};B.setProperties=function(a){for(var b in J)J.hasOwnProperty(b)&&a[b]&&(J[b]=a[b]);return this};B.setFontSize=function(a){z=a;return this};B.setFont=function(a,b){w=D(a,b);return this};B.setFontStyle=B.setFontType=function(a){w=D(void 0,a);return this};
B.getFontList=function(){var a={},b,h,c;for(b in A)if(A.hasOwnProperty(b))for(h in a[b]=c=[],A[b])A[b].hasOwnProperty(h)&&c.push(h);return a};B.setLineWidth=function(a){n((a*s).toFixed(2)+" w");return this};B.setDrawColor=function(a,b,h,c){a=void 0===b||void 0===c&&a===b===h?"string"===typeof a?a+" G":v(a/255)+" G":void 0===c?"string"===typeof a?[a,b,h,"RG"].join(" "):[v(a/255),v(b/255),v(h/255),"RG"].join(" "):"string"===typeof a?[a,b,h,c,"K"].join(" "):[v(a),v(b),v(h),v(c),"K"].join(" ");n(a);return this};
B.setFillColor=function(a,b,h,c){a=void 0===b||void 0===c&&a===b===h?"string"===typeof a?a+" g":v(a/255)+" g":void 0===c?"string"===typeof a?[a,b,h,"rg"].join(" "):[v(a/255),v(b/255),v(h/255),"rg"].join(" "):"string"===typeof a?[a,b,h,c,"k"].join(" "):[v(a),v(b),v(h),v(c),"k"].join(" ");n(a);return this};B.setTextColor=function(a,b,h){G=0===a&&0===b&&0===h||"undefined"===typeof b?(a/255).toFixed(3)+" g":[(a/255).toFixed(3),(b/255).toFixed(3),(h/255).toFixed(3),"rg"].join(" ");return this};B.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};B.setLineCap=function(a){var b=this.CapJoinStyles[a];if(void 0===b)throw Error("Line cap style of '"+a+"' is not recognized. See or extend .CapJoinStyles property for valid styles");y=b;n(b.toString(10)+" J");return this};B.setLineJoin=function(a){var b=this.CapJoinStyles[a];if(void 0===b)throw Error("Line join style of '"+a+"' is not recognized. See or extend .CapJoinStyles property for valid styles");
U=b;n(b.toString(10)+" j");return this};B.output=aa;B.save=function(a){B.output("save",a)};for(C in e.API)e.API.hasOwnProperty(C)&&("events"===C&&e.API.events.length?function(a,b){var h,c,f;for(f=b.length-1;-1!==f;f--)h=b[f][0],c=b[f][1],a.subscribe.apply(a,[h].concat("function"===typeof c?[c]:c))}(H,e.API.events):B[C]=e.API[C]);(function(){var a=[["Helvetica","helvetica","normal"],["Helvetica-Bold","helvetica","bold"],["Helvetica-Oblique","helvetica","italic"],["Helvetica-BoldOblique","helvetica",
"bolditalic"],["Courier","courier","normal"],["Courier-Bold","courier","bold"],["Courier-Oblique","courier","italic"],["Courier-BoldOblique","courier","bolditalic"],["Times-Roman","times","normal"],["Times-Bold","times","bold"],["Times-Italic","times","italic"],["Times-BoldItalic","times","bolditalic"]],b,h,c,f;b=0;for(h=a.length;b<h;b++){var g=a[b][0],k=a[b][1];c=a[b][2];f="F"+(d(r)+1).toString(10);var g=r[f]={id:f,PostScriptName:g,fontName:k,fontStyle:c,encoding:"StandardEncoding",metadata:{}},
l=f;void 0===A[k]&&(A[k]={});A[k][c]=l;H.publish("addFont",g);c=f;f=a[b][0].split("-");g=f[0];f=f[1]||"";void 0===A[g]&&(A[g]={});A[g][f]=c}H.publish("addFonts",{fonts:r,dictionary:A})})();w="F1";X();H.publish("initialized");return B}"undefined"===typeof btoa&&(window.btoa=function(d){var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),g,q,k,b,a=0,h=0,e="",e=[];do g=d.charCodeAt(a++),q=d.charCodeAt(a++),k=d.charCodeAt(a++),b=g<<16|q<<8|k,g=b>>18&63,q=b>>12&63,k=b>>
6&63,b&=63,e[h++]=c[g]+c[q]+c[k]+c[b];while(a<d.length);e=e.join("");d=d.length%3;return(d?e.slice(0,d-3):e)+"===".slice(d||3)});"undefined"===typeof atob&&(window.atob=function(d){var c,g,q,k,b,a=0,h=0;k="";var e=[];if(!d)return d;d+="";do c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(d.charAt(a++)),g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(d.charAt(a++)),k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(d.charAt(a++)),
b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(d.charAt(a++)),q=c<<18|g<<12|k<<6|b,c=q>>16&255,g=q>>8&255,q&=255,64===k?e[h++]=String.fromCharCode(c):64===b?e[h++]=String.fromCharCode(c,g):e[h++]=String.fromCharCode(c,g,q);while(a<d.length);return k=e.join("")});var d="function"===typeof Object.keys?function(d){return Object.keys(d).length}:function(d){var c=0,g;for(g in d)d.hasOwnProperty(g)&&c++;return c},m=function(d){this.topics={};this.context=d;this.publish=function(c,
g){if(this.topics[c]){var d=this.topics[c],k=[],b,a,h,e,f=function(){};g=Array.prototype.slice.call(arguments,1);a=0;for(h=d.length;a<h;a++)e=d[a],b=e[0],e[1]&&(e[0]=f,k.push(a)),b.apply(this.context,g);a=0;for(h=k.length;a<h;a++)d.splice(k[a],1)}};this.subscribe=function(c,g,d){this.topics[c]?this.topics[c].push([g,d]):this.topics[c]=[[g,d]];return{topic:c,callback:g}};this.unsubscribe=function(c){if(this.topics[c.topic]){var d=this.topics[c.topic],e,k;e=0;for(k=d.length;e<k;e++)d[e][0]===c.callback&&
d.splice(e,1)}}};e.API={events:[]};return e}();
(function(e){var d=function(){var d=this.internal.collections.addImage_images,c;for(c in d){var g=d[c],e=this.internal.newObject(),k=this.internal.write,b=this.internal.putStream;g.n=e;k("<</Type /XObject");k("/Subtype /Image");k("/Width "+g.w);k("/Height "+g.h);"Indexed"===g.cs?k("/ColorSpace [/Indexed /DeviceRGB "+(g.pal.length/3-1)+" "+(e+1)+" 0 R]"):(k("/ColorSpace /"+g.cs),"DeviceCMYK"===g.cs&&k("/Decode [1 0 1 0 1 0 1 0]"));k("/BitsPerComponent "+g.bpc);"f"in g&&k("/Filter /"+g.f);"dp"in g&&
k("/DecodeParms <<"+g.dp+">>");if("trns"in g&&g.trns.constructor==Array)for(var a="",h=0;h<g.trns.length;h++)a+=g[a][h]+" "+g.trns[h]+" ",k("/Mask ["+a+"]");"smask"in g&&k("/SMask "+(e+1)+" 0 R");k("/Length "+g.data.length+">>");b(g.data);k("endobj")}},m=function(){var d=this.internal.collections.addImage_images,c=this.internal.write,g,e;for(e in d)g=d[e],c("/I"+g.i,g.n,"0","R")};e.addImage=function(e,c,g,q,k,b){if("object"===typeof e&&1===e.nodeType){c=document.createElement("canvas");c.width=e.clientWidth;
c.height=e.clientHeight;var a=c.getContext("2d");if(!a)throw"addImage requires canvas to be supported by browser.";a.drawImage(e,0,0,c.width,c.height);e=c.toDataURL("image/jpeg");c="JPEG"}if("JPEG"!==c.toUpperCase())throw Error("addImage currently only supports format 'JPEG', not '"+c+"'");var h;c=this.internal.collections.addImage_images;var a=this.internal.getCoordinateString,G=this.internal.getVerticalCoordinateString;"data:image/jpeg;base64,"===e.substring(0,23)&&(e=atob(e.replace("data:image/jpeg;base64,",
"")));if(c)if(Object.keys)h=Object.keys(c).length;else{var f=c,p=0;for(h in f)f.hasOwnProperty(h)&&p++;h=p}else h=0,this.internal.collections.addImage_images=c={},this.internal.events.subscribe("putResources",d),this.internal.events.subscribe("putXobjectDict",m);a:{var f=e,I;if(255===!f.charCodeAt(0)||216===!f.charCodeAt(1)||255===!f.charCodeAt(2)||224===!f.charCodeAt(3)||74===!f.charCodeAt(6)||70===!f.charCodeAt(7)||73===!f.charCodeAt(8)||70===!f.charCodeAt(9)||0===!f.charCodeAt(10))throw Error("getJpegSize requires a binary jpeg file");
I=256*f.charCodeAt(4)+f.charCodeAt(5);for(var p=4,F=f.length;p<F;){p+=I;if(255!==f.charCodeAt(p))throw Error("getJpegSize could not find the size of the image");if(192===f.charCodeAt(p+1)||193===f.charCodeAt(p+1)||194===f.charCodeAt(p+1)||195===f.charCodeAt(p+1)||196===f.charCodeAt(p+1)||197===f.charCodeAt(p+1)||198===f.charCodeAt(p+1)||199===f.charCodeAt(p+1)){I=256*f.charCodeAt(p+5)+f.charCodeAt(p+6);f=256*f.charCodeAt(p+7)+f.charCodeAt(p+8);f=[f,I];break a}p+=2;I=256*f.charCodeAt(p)+f.charCodeAt(p+
1)}f=void 0}e={w:f[0],h:f[1],cs:"DeviceRGB",bpc:8,f:"DCTDecode",i:h,data:e};c[h]=e;k||b||(b=k=-96);0>k&&(k=-72*e.w/k/this.internal.scaleFactor);0>b&&(b=-72*e.h/b/this.internal.scaleFactor);0===k&&(k=b*e.w/e.h);0===b&&(b=k*e.h/e.w);this.internal.write("q",a(k),"0 0",a(b),a(g),G(q+b),"cm /I"+e.i,"Do Q");return this}})(jsPDF.API);
(function(e){function d(b,a,h,c){this.pdf=b;this.x=a;this.y=h;this.settings=c;this.init();return this}function m(b){var a=k[b];if(a)return a;a={"xx-small":9,"x-small":11,small:13,medium:16,large:19,"x-large":23,"xx-large":28,auto:0}[b];if(void 0!==a||(a=parseFloat(b)))return k[b]=a/16;a=b.match(/([\d\.]+)(px)/);return 3===a.length?k[b]=parseFloat(a[1])/16:k[b]=1}function l(b,a,h){var d=b.childNodes,f;f=$(b);b={};for(var k,e=f.css("font-family").split(","),F=e.shift();!k&&F;)k=c[F.trim().toLowerCase()],
F=e.shift();b["font-family"]=k||"times";b["font-style"]=q[f.css("font-style")]||"normal";k=g[f.css("font-weight")]||"normal";"bold"===k&&(b["font-style"]="normal"===b["font-style"]?k:k+b["font-style"]);b["font-size"]=m(f.css("font-size"))||1;b["line-height"]=m(f.css("line-height"))||1;b.display="inline"===f.css("display")?"inline":"block";"block"===b.display&&(b["margin-top"]=m(f.css("margin-top"))||0,b["margin-bottom"]=m(f.css("margin-bottom"))||0,b["padding-top"]=m(f.css("padding-top"))||0,b["padding-bottom"]=
m(f.css("padding-bottom"))||0);if(k="block"===b.display)a.setBlockBoundary(),a.setBlockStyle(b);e=0;for(F=d.length;e<F;e++)if(f=d[e],"object"===typeof f)if(1===f.nodeType&&"SCRIPT"!=f.nodeName){var E=f,r=a,A=h,z=!1,w=void 0,x=void 0,u=A["#"+E.id];if(u)if("function"===typeof u)z=u(E,r);else for(w=0,x=u.length;!z&&w!==x;)z=u[w](E,r),w++;u=A[E.nodeName];if(!z&&u)if("function"===typeof u)z=u(E,r);else for(w=0,x=u.length;!z&&w!==x;)z=u[w](E,r),w++;z||l(f,a,h)}else 3===f.nodeType&&a.addText(f.nodeValue,
b);else"string"===typeof f&&a.addText(f,b);k&&a.setBlockBoundary()}String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/g,"")});String.prototype.trimRight||(String.prototype.trimRight=function(){return this.replace(/\s+$/g,"")});d.prototype.init=function(){this.paragraph={text:[],style:[]};this.pdf.internal.write("q")};d.prototype.dispose=function(){this.pdf.internal.write("Q");
return{x:this.x,y:this.y}};d.prototype.splitFragmentsIntoLines=function(b,a){for(var h=this.pdf.internal.scaleFactor,c={},f,d,g,k,e,q=[],l=[q],m=0,w=this.settings.width;b.length;)if(k=b.shift(),e=a.shift(),k)if(f=e["font-family"],d=e["font-style"],g=c[f+d],g||(g=this.pdf.internal.getFont(f,d).metadata.Unicode,c[f+d]=g),f={widths:g.widths,kerning:g.kerning,fontSize:12*e["font-size"],textIndent:m},d=this.pdf.getStringUnitWidth(k,f)*f.fontSize/h,m+d>w){k=this.pdf.splitTextToSize(k,w,f);for(q.push([k.shift(),
e]);k.length;)q=[[k.shift(),e]],l.push(q);m=this.pdf.getStringUnitWidth(q[0][0],f)*f.fontSize/h}else q.push([k,e]),m+=d;return l};d.prototype.RenderTextFragment=function(b,a){var h=this.pdf.internal.getFont(a["font-family"],a["font-style"]);this.pdf.internal.write("/"+h.id,(12*a["font-size"]).toFixed(2),"Tf","("+this.pdf.internal.pdfEscape(b)+") Tj")};d.prototype.renderParagraph=function(){for(var b=this.paragraph.text,a=0,h=b.length,c,f=!1,d=!1;!f&&a!==h;)(c=b[a]=b[a].trimLeft())&&(f=!0),a++;for(a=
h-1;h&&!d&&-1!==a;)(c=b[a]=b[a].trimRight())&&(d=!0),a--;f=/\s+$/g;d=!0;for(a=0;a!==h;a++)c=b[a].replace(/\s+/g," "),d&&(c=c.trimLeft()),c&&(d=f.test(c)),b[a]=c;a=this.paragraph.style;c=(h=this.paragraph.blockstyle)||{};this.paragraph={text:[],style:[],blockstyle:{},priorblockstyle:h};if(b.join("").trim()){b=this.splitFragmentsIntoLines(b,a);a=12/this.pdf.internal.scaleFactor;f=(Math.max((h["margin-top"]||0)-(c["margin-bottom"]||0),0)+(h["padding-top"]||0))*a;h=((h["margin-bottom"]||0)+(h["padding-bottom"]||
0))*a;c=this.pdf.internal.write;var g,k;this.y+=f;for(c("q","BT",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td");b.length;){f=b.shift();g=d=0;for(k=f.length;g!==k;g++)f[g][0].trim()&&(d=Math.max(d,f[g][1]["line-height"],f[g][1]["font-size"]));c(0,(-12*d).toFixed(2),"Td");g=0;for(k=f.length;g!==k;g++)f[g][0]&&this.RenderTextFragment(f[g][0],f[g][1]);this.y+=d*a}c("ET","Q");this.y+=h}};d.prototype.setBlockBoundary=function(){this.renderParagraph()};
d.prototype.setBlockStyle=function(b){this.paragraph.blockstyle=b};d.prototype.addText=function(b,a){this.paragraph.text.push(b);this.paragraph.style.push(a)};var c={helvetica:"helvetica","sans-serif":"helvetica",serif:"times",times:"times","times new roman":"times",monospace:"courier",courier:"courier"},g={100:"normal",200:"normal",300:"normal",400:"normal",500:"bold",600:"bold",700:"bold",800:"bold",900:"bold",normal:"normal",bold:"bold",bolder:"bold",lighter:"normal"},q={normal:"normal",italic:"italic",
oblique:"italic"},k={normal:1};e.fromHTML=function(b,a,c,g){if("string"===typeof b){var f="jsPDFhtmlText"+Date.now().toString()+(1E3*Math.random()).toFixed(0);$('<div style="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;"><iframe style="height:1px;width:1px" name="'+f+'" /></div>').appendTo(document.body);b=$(window.frames[f].document.body).html(b)[0]}a=
new d(this,a,c,g);l(b,a,g.elementHandlers);return a.dispose()}})(jsPDF.API);
(function(e){e.addSVG=function(d,e,l,c,g){function q(a){for(var b=parseFloat(a[1]),c=parseFloat(a[2]),d=[],g=3,k=a.length;g<k;)"c"===a[g]?(d.push([parseFloat(a[g+1]),parseFloat(a[g+2]),parseFloat(a[g+3]),parseFloat(a[g+4]),parseFloat(a[g+5]),parseFloat(a[g+6])]),g+=7):"l"===a[g]?(d.push([parseFloat(a[g+1]),parseFloat(a[g+2])]),g+=3):g+=1;return[b,c,d]}if(void 0===e||void 0===e)throw Error("addSVG needs values for 'x' and 'y'");var k=function(a){var b=a.createElement("iframe"),c=a.createElement("style");
c.type="text/css";c.styleSheet?c.styleSheet.cssText=".jsPDF_sillysvg_iframe {display:none;position:absolute;}":c.appendChild(a.createTextNode(".jsPDF_sillysvg_iframe {display:none;position:absolute;}"));a.getElementsByTagName("head")[0].appendChild(c);b.name="childframe";b.setAttribute("width",0);b.setAttribute("height",0);b.setAttribute("frameborder","0");b.setAttribute("scrolling","no");b.setAttribute("seamless","seamless");b.setAttribute("class","jsPDF_sillysvg_iframe");a.body.appendChild(b);return b}(document),
k=function(a,b){var c=(b.contentWindow||b.contentDocument).document;c.write(a);c.close();return c.getElementsByTagName("svg")[0]}(d,k);d=[1,1];var b=parseFloat(k.getAttribute("width")),a=parseFloat(k.getAttribute("height"));b&&a&&(c&&g?d=[c/b,g/a]:c?d=[c/b,c/b]:g&&(d=[g/a,g/a]));k=k.childNodes;c=0;for(g=k.length;c<g;c++)b=k[c],b.tagName&&"PATH"===b.tagName.toUpperCase()&&(b=q(b.getAttribute("d").split(" ")),b[0]=b[0]*d[0]+e,b[1]=b[1]*d[1]+l,this.lines.call(this,b[2],b[0],b[1],d));return this}})(jsPDF.API);
(function(e){var d=e.getCharWidthsArray=function(c,d){d||(d={});var e=d.widths?d.widths:this.internal.getFont().metadata.Unicode.widths,k=e.fof?e.fof:1,b=d.kerning?d.kerning:this.internal.getFont().metadata.Unicode.kerning,a=b.fof?b.fof:1,h,l,f,p=0,m=e[0]||k,F=[];h=0;for(l=c.length;h<l;h++)f=c.charCodeAt(h),F.push((e[f]||m)/k+(b[f]&&b[f][p]||0)/a),p=f;return F},m=function(c){for(var d=c.length,e=0;d;)d--,e+=c[d];return e};e.getStringUnitWidth=function(c,g){return m(d.call(this,c,g))};var l=function(c,
g,e){e||(e={});var k=d(" ",e)[0],b=c.split(" "),a=[];c=[a];var h=e.textIndent||0,l=0,f=0,p,I,F,E;F=0;for(E=b.length;F<E;F++){p=b[F];I=d(p,e);f=m(I);if(h+l+f>g){if(f>g){for(var f=p,r=I,A=g,z=[],w=0,x=f.length,u=0;w!==x&&u+r[w]<g-(h+l);)u+=r[w],w++;z.push(f.slice(0,w));h=w;for(u=0;w!==x;)u+r[w]>A&&(z.push(f.slice(h,w)),u=0,h=w),u+=r[w],w++;h!==w&&z.push(f.slice(h,w));h=z;a.push(h.shift());for(a=[h.pop()];h.length;)c.push([h.shift()]);f=m(I.slice(p.length-a[0].length))}else a=[p];c.push(a);h=f}else a.push(p),
h+=l+f;l=k}g=[];F=0;for(E=c.length;F<E;F++)g.push(c[F].join(" "));return g};e.splitTextToSize=function(c,d,e){e||(e={});var k=e.fontSize||this.internal.getFontSize(),b;var a=e;b={0:1};var h={};a.widths&&a.kerning?b={widths:a.widths,kerning:a.kerning}:(a=this.internal.getFont(a.fontName,a.fontStyle),b=a.metadata.Unicode?{widths:a.metadata.Unicode.widths||b,kerning:a.metadata.Unicode.kerning||h}:{widths:b,kerning:h});c=c.match(/[\n\r]/)?c.split(/\r\n|\r|\n/g):[c];d=1*this.internal.scaleFactor*d/k;b.textIndent=
e.textIndent?1*e.textIndent*this.internal.scaleFactor/k:0;h=[];e=0;for(k=c.length;e<k;e++)h=h.concat(l(c[e],d,b));return h}})(jsPDF.API);
(function(e){var d=function(c){for(var d={},e=0;16>e;e++)d["klmnopqrstuvwxyz"[e]]="0123456789abcdef"[e];for(var b={},a=1,h,l=b,f=[],p,m="",F="",E,r=c.length-1,e=1;e!=r;)p=c[e],e+=1,"'"==p?h?(E=h.join(""),h=void 0):h=[]:h?h.push(p):"{"==p?(f.push([l,E]),l={},E=void 0):"}"==p?(p=f.pop(),p[0][p[1]]=l,E=void 0,l=p[0]):"-"==p?a=-1:void 0===E?d.hasOwnProperty(p)?(m+=d[p],E=parseInt(m,16)*a,a=1,m=""):m+=p:d.hasOwnProperty(p)?(F+=d[p],l[E]=parseInt(F,16)*a,a=1,E=void 0,F=""):F+=p;return b},m={codePages:["WinAnsiEncoding"],
WinAnsiEncoding:d("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},l={Unicode:{Courier:m,"Courier-Bold":m,"Courier-BoldOblique":m,"Courier-Oblique":m,Helvetica:m,"Helvetica-Bold":m,"Helvetica-BoldOblique":m,"Helvetica-Oblique":m,"Times-Roman":m,"Times-Bold":m,"Times-BoldItalic":m,"Times-Italic":m}},c={Unicode:{"Courier-Oblique":d("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":d("{'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":d("{'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:d("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":d("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":d("{'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}}}"),
Helvetica:d("{'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":d("{'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-Bold":d("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":d("{'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":d("{'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":d("{'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}}}")}};
e.events.push(["addFonts",function(d){var e,k,b,a;for(k in d.fonts)if(d.fonts.hasOwnProperty(k)){e=d.fonts[k];if(b=c.Unicode[e.PostScriptName])a=e.metadata.Unicode?e.metadata.Unicode:e.metadata.Unicode={},a.widths=b.widths,a.kerning=b.kerning;if(b=l.Unicode[e.PostScriptName])a=e.metadata.Unicode?e.metadata.Unicode:e.metadata.Unicode={},a.encoding=b,b.codePages&&b.codePages.length&&(e.encoding=b.codePages[0])}}])})(jsPDF.API);
(function(e){var d,m,l,c,g={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},q=1;e.setHeaderFunction=function(d){c=d};e.getTextDimensions=function(c){d=this.internal.getFont().fontName;m=this.internal.getFontSize();l=this.internal.getFont().fontStyle;var b=19.049976/25.4,a;a=document.createElement("font");a.id="jsPDFCell";a.style.fontStyle=l;a.style.fontName=d;a.style.fontSize=m+"pt";a.innerText=c;document.body.appendChild(a);c={w:(a.offsetWidth+1)*b,h:(a.offsetHeight+1)*b};document.body.removeChild(a);
return c};e.cellAddPage=function(){this.addPage();g={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0};q+=1};e.cellInitialize=function(){g={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0};q=1};e.cell=function(c,b,a,d,e,f,l){var m=g;void 0!==m.ln&&(m.ln===f?(c=m.x+m.w,b=m.y):(m.y+m.h+d+13>=this.internal.pageSize.height&&(this.cellAddPage(),this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(f)),b=g.y+g.h));if(""!==e[0])if(this.printingHeaderRow?this.rect(c,b,a,d,"FD"):this.rect(c,b,a,d),"right"===
l){if(e instanceof Array)for(l=0;l<e.length;l++){var m=e[l],q=this.getStringUnitWidth(m)*this.internal.getFontSize();this.text(m,c+a-q-3,b+this.internal.getLineHeight()*(l+1))}}else this.text(e,c+3,b+this.internal.getLineHeight());g={x:c,y:b,w:a,h:d,ln:f};return this};e.getKeys="function"===typeof Object.keys?function(c){return c?Object.keys(c):[]}:function(c){var b=[],a;for(a in c)c.hasOwnProperty(a)&&b.push(a);return b};e.arrayMax=function(c,b){var a=c[0],d,e,f;d=0;for(e=c.length;d<e;d+=1)f=c[d],
b?-1===b(a,f)&&(a=f):f>a&&(a=f);return a};e.table=function(c,b,a){var d=[],g=[],f,l,m,q={},E={},r,A,z=[],w,x=[],u;this.lnMod=0;a&&(this.printHeaders=a.printHeaders||!0);if(!c)throw"No data for PDF table";if(void 0===b||null===b)d=this.getKeys(c[0]);else if(b[0]&&"string"!==typeof b[0])for(l=0,m=b.length;l<m;l+=1)f=b[l],d.push(f.name),g.push(f.prompt),E[f.name]=f.width;else d=b;if(a.autoSize)for(u=function(a){return a[f]},l=0,m=d.length;l<m;l+=1){f=d[l];q[f]=c.map(u);z.push(this.getTextDimensions(g[l]||
f).w);A=q[f];w=0;for(m=A.length;w<m;w+=1)r=A[w],z.push(this.getTextDimensions(r).w);E[f]=e.arrayMax(z)}if(a.printHeaders){a=this.calculateLineHeight(d,E,g.length?g:d);l=0;for(m=d.length;l<m;l+=1)f=d[l],x.push([13,13,E[f],a,String(g.length?g[l]:f)]);this.setTableHeaderRow(x);this.printHeaderRow(1)}l=0;for(m=c.length;l<m;l+=1)for(g=c[l],a=this.calculateLineHeight(d,E,g),w=0,x=d.length;w<x;w+=1)f=d[w],this.cell(13,13,E[f],a,g[f],l+2,b[w].align);return this};e.calculateLineHeight=function(c,b,a){for(var d,
e=0,g=0;g<c.length;g++)d=c[g],a[d]=this.splitTextToSize(String(a[d]),b[d]-3),d=this.internal.getLineHeight()*a[d].length+3,d>e&&(e=d);return e};e.setTableHeaderRow=function(c){this.tableHeaderRow=c};e.printHeaderRow=function(d){if(!this.tableHeaderRow)throw"Property tableHeaderRow does not exist.";var b,a,e;this.printingHeaderRow=!0;void 0!==c&&(a=c(this,q),g={x:a[0],y:a[1],w:a[2],h:a[3],ln:-1});this.setFontStyle("bold");a=0;for(e=this.tableHeaderRow.length;a<e;a+=1)this.setFillColor(200,200,200),
b=this.tableHeaderRow[a],b=[].concat(b),this.cell.apply(this,b.concat(d));this.setFontStyle("normal");this.printingHeaderRow=!1}})(jsPDF.API);(function(e){e.putTotalPages=function(d){d=RegExp(d,"g");for(var e=1;e<=this.internal.getNumberOfPages();e++)for(var l=0;l<this.internal.pages[e].length;l++)this.internal.pages[e][l]=this.internal.pages[e][l].replace(d,this.internal.getNumberOfPages());return this}})(jsPDF.API);
var BlobBuilder=BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder||function(e){var d=function(a){return Object.prototype.toString.call(a).match(/^\[object\s(.*)\]$/)[1]},m=function(){this.data=[]},l=function(a,b,c){this.data=a;this.size=a.length;this.type=b;this.encoding=c},c=m.prototype,g=l.prototype,q=e.FileReaderSync,k=function(a){this.code=this[this.name=a]},b="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),
a=b.length,h=e.URL||e.webkitURL||e,G=h.createObjectURL,f=h.revokeObjectURL,p=h,I=e.btoa,F=e.atob,E=!1,r=function(a){E=!a},A=e.ArrayBuffer,z=e.Uint8Array;for(m.fake=g.fake=!0;a--;)k.prototype[b[a]]=a+1;try{z&&r.apply(0,new z(1))}catch(w){}h.createObjectURL||(p=e.URL={});p.createObjectURL=function(a){var b=a.type;null===b&&(b="application/octet-stream");if(a instanceof l)return b="data:"+b,"base64"===a.encoding?b+";base64,"+a.data:"URI"===a.encoding?b+","+decodeURIComponent(a.data):I?b+";base64,"+I(a.data):
b+","+encodeURIComponent(a.data);if(G)return G.call(h,a)};p.revokeObjectURL=function(a){"data:"!==a.substring(0,5)&&f&&f.call(h,a)};c.append=function(a){var b=this.data;if(z&&a instanceof A)if(E)b.push(String.fromCharCode.apply(String,new z(a)));else{b="";a=new z(a);for(var c=0,e=a.length;c<e;c++)b+=String.fromCharCode(a[c])}else if("Blob"===d(a)||"File"===d(a))if(q)c=new q,b.push(c.readAsBinaryString(a));else throw new k("NOT_READABLE_ERR");else a instanceof l?"base64"===a.encoding&&F?b.push(F(a.data)):
"URI"===a.encoding?b.push(decodeURIComponent(a.data)):"raw"===a.encoding&&b.push(a.data):("string"!==typeof a&&(a+=""),b.push(unescape(encodeURIComponent(a))))};c.getBlob=function(a){arguments.length||(a=null);return new l(this.data.join(""),a,"raw")};c.toString=function(){return"[object BlobBuilder]"};g.slice=function(a,b,c){var d=arguments.length;3>d&&(c=null);return new l(this.data.slice(a,1<d?b:this.data.length),c,this.encoding)};g.toString=function(){return"[object Blob]"};return m}(self),saveAs=
saveAs||navigator.msSaveBlob&&navigator.msSaveBlob.bind(navigator)||function(e){var d=e.document,m=e.URL||e.webkitURL||e,l=d.createElementNS("http://www.w3.org/1999/xhtml","a"),c="download"in l,g=function(a){var b=d.createEvent("MouseEvents");b.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null);return a.dispatchEvent(b)},q=e.webkitRequestFileSystem,k=e.requestFileSystem||q||e.mozRequestFileSystem,b=function(a){(e.setImmediate||e.setTimeout)(function(){throw a;},0)},a=0,h=[],G=function(a,
c,d){c=[].concat(c);for(var e=c.length;e--;){var g=a["on"+c[e]];if("function"===typeof g)try{g.call(a,d||a)}catch(f){b(f)}}},f=function(b,d){var f=this,m=b.type,p=!1,z,w,x=function(){var a=(e.URL||e.webkitURL||e).createObjectURL(b);h.push(a);return a},u=function(){G(f,["writestart","progress","write","writeend"])},s=function(){if(p||!z)z=x(b);w&&(w.location.href=z);f.readyState=f.DONE;u()},J=function(a){return function(){if(f.readyState!==f.DONE)return a.apply(this,arguments)}},y={create:!0,exclusive:!1},
U;f.readyState=f.INIT;d||(d="download");if(c&&(z=x(b),l.href=z,l.download=d,g(l))){f.readyState=f.DONE;u();return}e.chrome&&(m&&"application/octet-stream"!==m)&&(U=b.slice||b.webkitSlice,b=U.call(b,0,b.size,"application/octet-stream"),p=!0);q&&"download"!==d&&(d+=".download");w="application/octet-stream"===m||q?e:e.open();k?(a+=b.size,k(e.TEMPORARY,a,J(function(a){a.root.getDirectory("saved",y,J(function(a){var c=function(){a.getFile(d,y,J(function(a){a.createWriter(J(function(c){c.onwriteend=function(b){w.location.href=
a.toURL();h.push(a);f.readyState=f.DONE;G(f,"writeend",b)};c.onerror=function(){var a=c.error;a.code!==a.ABORT_ERR&&s()};["writestart","progress","write","abort"].forEach(function(a){c["on"+a]=f["on"+a]});c.write(b);f.abort=function(){c.abort();f.readyState=f.DONE};f.readyState=f.WRITING}),s)}),s)};a.getFile(d,{create:!1},J(function(a){a.remove();c()}),J(function(a){a.code===a.NOT_FOUND_ERR?c():s()}))}),s)}),s)):s()},p=f.prototype;p.abort=function(){this.readyState=this.DONE;G(this,"abort")};p.readyState=
p.INIT=0;p.WRITING=1;p.DONE=2;p.error=p.onwritestart=p.onprogress=p.onwrite=p.onabort=p.onerror=p.onwriteend=null;e.addEventListener("unload",function(){for(var a=h.length;a--;){var b=h[a];"string"===typeof b?m.revokeObjectURL(b):b.remove()}h.length=0},!1);return function(a,b){return new f(a,b)}}(self),MAX_BITS=15,D_CODES=30,BL_CODES=19,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,HEAP_SIZE=2*L_CODES+1,END_BLOCK=256,MAX_BL_BITS=7,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,Buf_size=16,
Z_DEFAULT_COMPRESSION=-1,Z_FILTERED=1,Z_HUFFMAN_ONLY=2,Z_DEFAULT_STRATEGY=0,Z_NO_FLUSH=0,Z_PARTIAL_FLUSH=1,Z_FULL_FLUSH=3,Z_FINISH=4,Z_OK=0,Z_STREAM_END=1,Z_NEED_DICT=2,Z_STREAM_ERROR=-2,Z_DATA_ERROR=-3,Z_BUF_ERROR=-5,_dist_code=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,
13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,
21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,
28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];
function Tree(){var e=this;e.build_tree=function(d){var m=e.dyn_tree,l=e.stat_desc.static_tree,c=e.stat_desc.elems,g,q=-1,k;d.heap_len=0;d.heap_max=HEAP_SIZE;for(g=0;g<c;g++)0!==m[2*g]?(d.heap[++d.heap_len]=q=g,d.depth[g]=0):m[2*g+1]=0;for(;2>d.heap_len;)k=d.heap[++d.heap_len]=2>q?++q:0,m[2*k]=1,d.depth[k]=0,d.opt_len--,l&&(d.static_len-=l[2*k+1]);e.max_code=q;for(g=Math.floor(d.heap_len/2);1<=g;g--)d.pqdownheap(m,g);k=c;do g=d.heap[1],d.heap[1]=d.heap[d.heap_len--],d.pqdownheap(m,1),l=d.heap[1],
d.heap[--d.heap_max]=g,d.heap[--d.heap_max]=l,m[2*k]=m[2*g]+m[2*l],d.depth[k]=Math.max(d.depth[g],d.depth[l])+1,m[2*g+1]=m[2*l+1]=k,d.heap[1]=k++,d.pqdownheap(m,1);while(2<=d.heap_len);d.heap[--d.heap_max]=d.heap[1];g=e.dyn_tree;for(var q=e.stat_desc.static_tree,b=e.stat_desc.extra_bits,a=e.stat_desc.extra_base,h=e.stat_desc.max_length,G,f,p=0,c=0;c<=MAX_BITS;c++)d.bl_count[c]=0;g[2*d.heap[d.heap_max]+1]=0;for(k=d.heap_max+1;k<HEAP_SIZE;k++)l=d.heap[k],c=g[2*g[2*l+1]+1]+1,c>h&&(c=h,p++),g[2*l+1]=
c,l>e.max_code||(d.bl_count[c]++,G=0,l>=a&&(G=b[l-a]),f=g[2*l],d.opt_len+=f*(c+G),q&&(d.static_len+=f*(q[2*l+1]+G)));if(0!==p){do{for(c=h-1;0===d.bl_count[c];)c--;d.bl_count[c]--;d.bl_count[c+1]+=2;d.bl_count[h]--;p-=2}while(0<p);for(c=h;0!==c;c--)for(l=d.bl_count[c];0!==l;)q=d.heap[--k],q>e.max_code||(g[2*q+1]!=c&&(d.opt_len+=(c-g[2*q+1])*g[2*q],g[2*q+1]=c),l--)}g=e.max_code;k=d.bl_count;d=[];l=0;for(c=1;c<=MAX_BITS;c++)d[c]=l=l+k[c-1]<<1;for(k=0;k<=g;k++)if(b=m[2*k+1],0!==b){l=m;c=2*k;q=d[b]++;
a=0;do a|=q&1,q>>>=1,a<<=1;while(0<--b);l[c]=a>>>1}}}
Tree._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,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,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,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,25,25,25,25,25,
25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28];Tree.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0];Tree.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576];
Tree.d_code=function(e){return 256>e?_dist_code[e]:_dist_code[256+(e>>>7)]};Tree.extra_lbits=[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];Tree.extra_dbits=[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];Tree.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];Tree.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function StaticTree(e,d,m,l,c){this.static_tree=e;this.extra_bits=d;this.extra_base=m;this.elems=l;this.max_length=c}
StaticTree.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,
8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,
9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,
48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8];StaticTree.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5];StaticTree.static_l_desc=new StaticTree(StaticTree.static_ltree,Tree.extra_lbits,LITERALS+1,L_CODES,MAX_BITS);
StaticTree.static_d_desc=new StaticTree(StaticTree.static_dtree,Tree.extra_dbits,0,D_CODES,MAX_BITS);StaticTree.static_bl_desc=new StaticTree(null,Tree.extra_blbits,0,BL_CODES,MAX_BL_BITS);var MAX_MEM_LEVEL=9,DEF_MEM_LEVEL=8;function Config(e,d,m,l,c){this.good_length=e;this.max_lazy=d;this.nice_length=m;this.max_chain=l;this.func=c}
var STORED=0,FAST=1,SLOW=2,config_table=[new Config(0,0,0,0,STORED),new Config(4,4,8,4,FAST),new Config(4,5,16,8,FAST),new Config(4,6,32,32,FAST),new Config(4,4,16,16,SLOW),new Config(8,16,32,32,SLOW),new Config(8,16,128,128,SLOW),new Config(8,32,128,256,SLOW),new Config(32,128,258,1024,SLOW),new Config(32,258,258,4096,SLOW)],z_errmsg="need dictionary;stream end;;;stream error;data error;;buffer error;;".split(";"),NeedMore=0,BlockDone=1,FinishStarted=2,FinishDone=3,PRESET_DICT=32,INIT_STATE=42,BUSY_STATE=
113,FINISH_STATE=666,Z_DEFLATED=8,STORED_BLOCK=0,STATIC_TREES=1,DYN_TREES=2,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1;function smaller(e,d,m,l){var c=e[2*d];e=e[2*m];return c<e||c==e&&l[d]<=l[m]}
function Deflate(){function e(){var a;for(a=0;a<L_CODES;a++)W[2*a]=0;for(a=0;a<D_CODES;a++)Y[2*a]=0;for(a=0;a<BL_CODES;a++)P[2*a]=0;W[2*END_BLOCK]=1;T=ma=r.opt_len=r.static_len=0}function d(a,b){var c,d=-1,e,f=a[1],g=0,h=7,k=4;0===f&&(h=138,k=3);a[2*(b+1)+1]=65535;for(c=0;c<=b;c++)e=f,f=a[2*(c+1)+1],++g<h&&e==f||(g<k?P[2*e]+=g:0!==e?(e!=d&&P[2*e]++,P[2*REP_3_6]++):10>=g?P[2*REPZ_3_10]++:P[2*REPZ_11_138]++,g=0,d=e,0===f?(h=138,k=3):e==f?(h=6,k=3):(h=7,k=4))}function m(a){r.pending_buf[r.pending++]=
a}function l(a){m(a&255);m(a>>>8&255)}function c(a,b){M>Buf_size-b?(Q|=a<<M&65535,l(Q),Q=a>>>Buf_size-M,M+=b-Buf_size):(Q|=a<<M&65535,M+=b)}function g(a,b){var d=2*a;c(b[d]&65535,b[d+1]&65535)}function q(a,b){var d,e=-1,f,h=a[1],k=0,l=7,m=4;0===h&&(l=138,m=3);for(d=0;d<=b;d++)if(f=h,h=a[2*(d+1)+1],!(++k<l&&f==h)){if(k<m){do g(f,P);while(0!==--k)}else 0!==f?(f!=e&&(g(f,P),k--),g(REP_3_6,P),c(k-3,2)):10>=k?(g(REPZ_3_10,P),c(k-3,3)):(g(REPZ_11_138,P),c(k-11,7));k=0;e=f;0===h?(l=138,m=3):f==h?(l=6,m=
3):(l=7,m=4)}}function k(){16==M?(l(Q),M=Q=0):8<=M&&(m(Q&255),Q>>>=8,M-=8)}function b(a,b){var c,d,e;r.pending_buf[ga+2*T]=a>>>8&255;r.pending_buf[ga+2*T+1]=a&255;r.pending_buf[la+T]=b&255;T++;0===a?W[2*b]++:(ma++,a--,W[2*(Tree._length_code[b]+LITERALS+1)]++,Y[2*Tree.d_code(a)]++);if(0===(T&8191)&&2<N){c=8*T;d=t-R;for(e=0;e<D_CODES;e++)c+=Y[2*e]*(5+Tree.extra_dbits[e]);if(ma<Math.floor(T/2)&&c>>>3<Math.floor(d/2))return!0}return T==ba-1}function a(a,b){var d,e,f=0,h,k;if(0!==T){do d=r.pending_buf[ga+
2*f]<<8&65280|r.pending_buf[ga+2*f+1]&255,e=r.pending_buf[la+f]&255,f++,0===d?g(e,a):(h=Tree._length_code[e],g(h+LITERALS+1,a),k=Tree.extra_lbits[h],0!==k&&(e-=Tree.base_length[h],c(e,k)),d--,h=Tree.d_code(d),g(h,b),k=Tree.extra_dbits[h],0!==k&&(d-=Tree.base_dist[h],c(d,k)));while(f<T)}g(END_BLOCK,a);ha=a[2*END_BLOCK+1]}function h(){8<M?l(Q):0<M&&m(Q&255);M=Q=0}function G(a,b,d){c((STORED_BLOCK<<1)+(d?1:0),3);h();ha=8;l(b);l(~b);r.pending_buf.set(y.subarray(a,a+b),r.pending);r.pending+=b}function f(b){var f=
0<=R?R:-1,g=t-R,k,l,m=0;if(0<N){ea.build_tree(r);fa.build_tree(r);d(W,ea.max_code);d(Y,fa.max_code);ka.build_tree(r);for(m=BL_CODES-1;3<=m&&0===P[2*Tree.bl_order[m]+1];m--);r.opt_len+=3*(m+1)+14;k=r.opt_len+3+7>>>3;l=r.static_len+3+7>>>3;l<=k&&(k=l)}else k=l=g+5;if(g+4<=k&&-1!=f)G(f,g,b);else if(l==k)c((STATIC_TREES<<1)+(b?1:0),3),a(StaticTree.static_ltree,StaticTree.static_dtree);else{c((DYN_TREES<<1)+(b?1:0),3);f=ea.max_code+1;g=fa.max_code+1;m+=1;c(f-257,5);c(g-1,5);c(m-4,4);for(k=0;k<m;k++)c(P[2*
Tree.bl_order[k]+1],3);q(W,f-1);q(Y,g-1);a(W,Y)}e();b&&h();R=t;A.flush_pending()}function p(){var a,b,c,d;do{d=U-D-t;if(0===d&&0===t&&0===D)d=u;else if(-1==d)d--;else if(t>=u+u-MIN_LOOKAHEAD){y.set(y.subarray(u,u+u),0);X-=u;t-=u;R-=u;c=a=v;do b=H[--c]&65535,H[c]=b>=u?b-u:0;while(0!==--a);c=a=u;do b=B[--c]&65535,B[c]=b>=u?b-u:0;while(0!==--a);d+=u}if(0===A.avail_in)break;a=A.read_buf(y,t+D,d);D+=a;D>=MIN_MATCH&&(C=y[t]&255,C=(C<<O^y[t+1]&255)&n)}while(D<MIN_LOOKAHEAD&&0!==A.avail_in)}function I(a){var b=
65535,c;for(b>w-5&&(b=w-5);;){if(1>=D){p();if(0===D&&a==Z_NO_FLUSH)return NeedMore;if(0===D)break}t+=D;D=0;c=R+b;if(0===t||t>=c)if(D=t-c,t=c,f(!1),0===A.avail_out)return NeedMore;if(t-R>=u-MIN_LOOKAHEAD&&(f(!1),0===A.avail_out))return NeedMore}f(a==Z_FINISH);return 0===A.avail_out?a==Z_FINISH?FinishStarted:NeedMore:a==Z_FINISH?FinishDone:BlockDone}function F(a){var b=Z,c=t,d,e=L,f=t>u-MIN_LOOKAHEAD?t-(u-MIN_LOOKAHEAD):0,g=ja,h=J,k=t+MAX_MATCH,l=y[c+e-1],m=y[c+e];L>=ia&&(b>>=2);g>D&&(g=D);do if(d=
a,y[d+e]==m&&y[d+e-1]==l&&y[d]==y[c]&&y[++d]==y[c+1]){c+=2;d++;do;while(y[++c]==y[++d]&&y[++c]==y[++d]&&y[++c]==y[++d]&&y[++c]==y[++d]&&y[++c]==y[++d]&&y[++c]==y[++d]&&y[++c]==y[++d]&&y[++c]==y[++d]&&c<k);d=MAX_MATCH-(k-c);c=k-MAX_MATCH;if(d>e){X=a;e=d;if(d>=g)break;l=y[c+e-1];m=y[c+e]}}while((a=B[a&h]&65535)>f&&0!==--b);return e<=D?e:D}function E(a){for(var c=0,d,e;;){if(D<MIN_LOOKAHEAD){p();if(D<MIN_LOOKAHEAD&&a==Z_NO_FLUSH)return NeedMore;if(0===D)break}D>=MIN_MATCH&&(C=(C<<O^y[t+(MIN_MATCH-1)]&
255)&n,c=H[C]&65535,B[t&J]=H[C],H[C]=t);L=K;da=X;K=MIN_MATCH-1;0!==c&&(L<aa&&(t-c&65535)<=u-MIN_LOOKAHEAD)&&(ca!=Z_HUFFMAN_ONLY&&(K=F(c)),5>=K&&(ca==Z_FILTERED||K==MIN_MATCH&&4096<t-X)&&(K=MIN_MATCH-1));if(L>=MIN_MATCH&&K<=L){e=t+D-MIN_MATCH;d=b(t-1-da,L-MIN_MATCH);D-=L-1;L-=2;do++t<=e&&(C=(C<<O^y[t+(MIN_MATCH-1)]&255)&n,c=H[C]&65535,B[t&J]=H[C],H[C]=t);while(0!==--L);S=0;K=MIN_MATCH-1;t++;if(d&&(f(!1),0===A.avail_out))return NeedMore}else if(0!==S){if((d=b(0,y[t-1]&255))&&f(!1),t++,D--,0===A.avail_out)return NeedMore}else S=
1,t++,D--}0!==S&&(b(0,y[t-1]&255),S=0);f(a==Z_FINISH);return 0===A.avail_out?a==Z_FINISH?FinishStarted:NeedMore:a==Z_FINISH?FinishDone:BlockDone}var r=this,A,z,w,x,u,s,J,y,U,B,H,C,v,V,n,O,R,K,da,S,t,X,D,L,Z,aa,N,ca,ia,ja,W,Y,P,ea=new Tree,fa=new Tree,ka=new Tree;r.depth=[];var la,ba,T,ga,ma,ha,Q,M;r.bl_count=[];r.heap=[];W=[];Y=[];P=[];r.pqdownheap=function(a,b){for(var c=r.heap,d=c[b],e=b<<1;e<=r.heap_len;){e<r.heap_len&&smaller(a,c[e+1],c[e],r.depth)&&e++;if(smaller(a,d,c[e],r.depth))break;c[b]=
c[e];b=e;e<<=1}c[b]=d};r.deflateInit=function(a,b,c,d,f,g){d||(d=Z_DEFLATED);f||(f=DEF_MEM_LEVEL);g||(g=Z_DEFAULT_STRATEGY);a.msg=null;b==Z_DEFAULT_COMPRESSION&&(b=6);if(1>f||f>MAX_MEM_LEVEL||d!=Z_DEFLATED||9>c||15<c||0>b||9<b||0>g||g>Z_HUFFMAN_ONLY)return Z_STREAM_ERROR;a.dstate=r;s=c;u=1<<s;J=u-1;V=f+7;v=1<<V;n=v-1;O=Math.floor((V+MIN_MATCH-1)/MIN_MATCH);y=new Uint8Array(2*u);B=[];H=[];ba=1<<f+6;r.pending_buf=new Uint8Array(4*ba);w=4*ba;ga=Math.floor(ba/2);la=3*ba;N=b;ca=g;a.total_in=a.total_out=
0;a.msg=null;r.pending=0;r.pending_out=0;z=BUSY_STATE;x=Z_NO_FLUSH;ea.dyn_tree=W;ea.stat_desc=StaticTree.static_l_desc;fa.dyn_tree=Y;fa.stat_desc=StaticTree.static_d_desc;ka.dyn_tree=P;ka.stat_desc=StaticTree.static_bl_desc;M=Q=0;ha=8;e();U=2*u;for(a=H[v-1]=0;a<v-1;a++)H[a]=0;aa=config_table[N].max_lazy;ia=config_table[N].good_length;ja=config_table[N].nice_length;Z=config_table[N].max_chain;D=R=t=0;K=L=MIN_MATCH-1;C=S=0;return Z_OK};r.deflateEnd=function(){if(z!=INIT_STATE&&z!=BUSY_STATE&&z!=FINISH_STATE)return Z_STREAM_ERROR;
y=B=H=r.pending_buf=null;r.dstate=null;return z==BUSY_STATE?Z_DATA_ERROR:Z_OK};r.deflateParams=function(a,b,c){var d=Z_OK;b==Z_DEFAULT_COMPRESSION&&(b=6);if(0>b||9<b||0>c||c>Z_HUFFMAN_ONLY)return Z_STREAM_ERROR;config_table[N].func!=config_table[b].func&&0!==a.total_in&&(d=a.deflate(Z_PARTIAL_FLUSH));N!=b&&(N=b,aa=config_table[N].max_lazy,ia=config_table[N].good_length,ja=config_table[N].nice_length,Z=config_table[N].max_chain);ca=c;return d};r.deflateSetDictionary=function(a,b,c){a=c;var d=0;if(!b||
z!=INIT_STATE)return Z_STREAM_ERROR;if(a<MIN_MATCH)return Z_OK;a>u-MIN_LOOKAHEAD&&(a=u-MIN_LOOKAHEAD,d=c-a);y.set(b.subarray(d,d+a),0);R=t=a;C=y[0]&255;C=(C<<O^y[1]&255)&n;for(b=0;b<=a-MIN_MATCH;b++)C=(C<<O^y[b+(MIN_MATCH-1)]&255)&n,B[b&J]=H[C],H[C]=b;return Z_OK};r.deflate=function(a,d){var e,h,l;if(d>Z_FINISH||0>d)return Z_STREAM_ERROR;if(!a.next_out||!a.next_in&&0!==a.avail_in||z==FINISH_STATE&&d!=Z_FINISH)return a.msg=z_errmsg[Z_NEED_DICT-Z_STREAM_ERROR],Z_STREAM_ERROR;if(0===a.avail_out)return a.msg=
z_errmsg[Z_NEED_DICT-Z_BUF_ERROR],Z_BUF_ERROR;A=a;e=x;x=d;z==INIT_STATE&&(h=Z_DEFLATED+(s-8<<4)<<8,l=(N-1&255)>>1,3<l&&(l=3),h|=l<<6,0!==t&&(h|=PRESET_DICT),z=BUSY_STATE,h+=31-h%31,m(h>>8&255),m(h&255));if(0!==r.pending){if(A.flush_pending(),0===A.avail_out)return x=-1,Z_OK}else if(0===A.avail_in&&d<=e&&d!=Z_FINISH)return A.msg=z_errmsg[Z_NEED_DICT-Z_BUF_ERROR],Z_BUF_ERROR;if(z==FINISH_STATE&&0!==A.avail_in)return a.msg=z_errmsg[Z_NEED_DICT-Z_BUF_ERROR],Z_BUF_ERROR;if(0!==A.avail_in||0!==D||d!=Z_NO_FLUSH&&
z!=FINISH_STATE){e=-1;switch(config_table[N].func){case STORED:e=I(d);break;case FAST:a:{for(e=0;;){if(D<MIN_LOOKAHEAD){p();if(D<MIN_LOOKAHEAD&&d==Z_NO_FLUSH){e=NeedMore;break a}if(0===D)break}D>=MIN_MATCH&&(C=(C<<O^y[t+(MIN_MATCH-1)]&255)&n,e=H[C]&65535,B[t&J]=H[C],H[C]=t);0!==e&&(t-e&65535)<=u-MIN_LOOKAHEAD&&ca!=Z_HUFFMAN_ONLY&&(K=F(e));if(K>=MIN_MATCH)if(h=b(t-X,K-MIN_MATCH),D-=K,K<=aa&&D>=MIN_MATCH){K--;do t++,C=(C<<O^y[t+(MIN_MATCH-1)]&255)&n,e=H[C]&65535,B[t&J]=H[C],H[C]=t;while(0!==--K);t++}else t+=
K,K=0,C=y[t]&255,C=(C<<O^y[t+1]&255)&n;else h=b(0,y[t]&255),D--,t++;if(h&&(f(!1),0===A.avail_out)){e=NeedMore;break a}}f(d==Z_FINISH);e=0===A.avail_out?d==Z_FINISH?FinishStarted:NeedMore:d==Z_FINISH?FinishDone:BlockDone}break;case SLOW:e=E(d)}if(e==FinishStarted||e==FinishDone)z=FINISH_STATE;if(e==NeedMore||e==FinishStarted)return 0===A.avail_out&&(x=-1),Z_OK;if(e==BlockDone){if(d==Z_PARTIAL_FLUSH)c(STATIC_TREES<<1,3),g(END_BLOCK,StaticTree.static_ltree),k(),9>1+ha+10-M&&(c(STATIC_TREES<<1,3),g(END_BLOCK,
StaticTree.static_ltree),k()),ha=7;else if(G(0,0,!1),d==Z_FULL_FLUSH)for(e=0;e<v;e++)H[e]=0;A.flush_pending();if(0===A.avail_out)return x=-1,Z_OK}}return d!=Z_FINISH?Z_OK:Z_STREAM_END}}function ZStream(){this.total_out=this.avail_out=this.total_in=this.avail_in=this.next_out_index=this.next_in_index=0}
ZStream.prototype={deflateInit:function(e,d){this.dstate=new Deflate;d||(d=MAX_BITS);return this.dstate.deflateInit(this,e,d)},deflate:function(e){return this.dstate?this.dstate.deflate(this,e):Z_STREAM_ERROR},deflateEnd:function(){if(!this.dstate)return Z_STREAM_ERROR;var e=this.dstate.deflateEnd();this.dstate=null;return e},deflateParams:function(e,d){return this.dstate?this.dstate.deflateParams(this,e,d):Z_STREAM_ERROR},deflateSetDictionary:function(e,d){return this.dstate?this.dstate.deflateSetDictionary(this,
e,d):Z_STREAM_ERROR},read_buf:function(e,d,m){var l=this.avail_in;l>m&&(l=m);if(0===l)return 0;this.avail_in-=l;e.set(this.next_in.subarray(this.next_in_index,this.next_in_index+l),d);this.next_in_index+=l;this.total_in+=l;return l},flush_pending:function(){var e=this.dstate.pending;e>this.avail_out&&(e=this.avail_out);0!==e&&(this.next_out.set(this.dstate.pending_buf.subarray(this.dstate.pending_out,this.dstate.pending_out+e),this.next_out_index),this.next_out_index+=e,this.dstate.pending_out+=e,
this.total_out+=e,this.avail_out-=e,this.dstate.pending-=e,0===this.dstate.pending&&(this.dstate.pending_out=0))}};
function Deflater(e){var d=new ZStream,m=Z_NO_FLUSH,l=new Uint8Array(512);"undefined"==typeof e&&(e=Z_DEFAULT_COMPRESSION);d.deflateInit(e);d.next_out=l;this.append=function(c,e){var q,k=[],b=0,a=0,h=0,G;if(c.length){d.next_in_index=0;d.next_in=c;d.avail_in=c.length;do{d.next_out_index=0;d.avail_out=512;q=d.deflate(m);if(q!=Z_OK)throw"deflating: "+d.msg;d.next_out_index&&(512==d.next_out_index?k.push(new Uint8Array(l)):k.push(new Uint8Array(l.subarray(0,d.next_out_index))));h+=d.next_out_index;e&&
(0<d.next_in_index&&d.next_in_index!=b)&&(e(d.next_in_index),b=d.next_in_index)}while(0<d.avail_in||0===d.avail_out);G=new Uint8Array(h);k.forEach(function(b){G.set(b,a);a+=b.length});return G}};this.flush=function(){var c,e=[],m=0,k=0,b;do{d.next_out_index=0;d.avail_out=512;c=d.deflate(Z_FINISH);if(c!=Z_STREAM_END&&c!=Z_OK)throw"deflating: "+d.msg;0<512-d.avail_out&&e.push(new Uint8Array(l.subarray(0,d.next_out_index)));k+=d.next_out_index}while(0<d.avail_in||0===d.avail_out);d.deflateEnd();b=new Uint8Array(k);
e.forEach(function(a){b.set(a,m);m+=a.length});return b}}
void function(e,d){"object"===typeof module?module.exports=d():"function"===typeof define?define(d):e.adler32cs=d()}(this,function(){var e="function"===typeof ArrayBuffer&&"function"===typeof Uint8Array,d=null,m=function(){if(!e)return function(){return!1};try{var b=require("buffer");"function"===typeof b.Buffer&&(d=b.Buffer)}catch(a){}return function(a){return a instanceof ArrayBuffer||null!==d&&a instanceof d}}(),l=function(){return null!==d?function(b){return(new d(b,"utf8")).toString("binary")}:
function(b){return unescape(encodeURIComponent(b))}}(),c=function(b,a){for(var c=b&65535,d=b>>>16,e=0,g=a.length;e<g;e++)c=(c+(a.charCodeAt(e)&255))%65521,d=(d+c)%65521;return(d<<16|c)>>>0},g=function(b,a){for(var c=b&65535,d=b>>>16,e=0,g=a.length;e<g;e++)c=(c+a[e])%65521,d=(d+c)%65521;return(d<<16|c)>>>0},q={},k=q.Adler32=function(){var b=function(a){if(!(this instanceof b))throw new TypeError("Constructor cannot called be as a function.");if(!isFinite(a=null==a?1:+a))throw Error("First arguments needs to be a finite number.");
this.checksum=a>>>0},a=b.prototype={};a.constructor=b;b.from=function(b){b.prototype=a;return b}(function(a){if(!(this instanceof b))throw new TypeError("Constructor cannot called be as a function.");if(null==a)throw Error("First argument needs to be a string.");this.checksum=c(1,a.toString())});b.fromUtf8=function(b){b.prototype=a;return b}(function(a){if(!(this instanceof b))throw new TypeError("Constructor cannot called be as a function.");if(null==a)throw Error("First argument needs to be a string.");
a=l(a.toString());this.checksum=c(1,a)});e&&(b.fromBuffer=function(b){b.prototype=a;return b}(function(a){if(!(this instanceof b))throw new TypeError("Constructor cannot called be as a function.");if(!m(a))throw Error("First argument needs to be ArrayBuffer.");a=new Uint8Array(a);return this.checksum=g(1,a)}));a.update=function(a){if(null==a)throw Error("First argument needs to be a string.");a=a.toString();return this.checksum=c(this.checksum,a)};a.updateUtf8=function(a){if(null==a)throw Error("First argument needs to be a string.");
a=l(a.toString());return this.checksum=c(this.checksum,a)};e&&(a.updateBuffer=function(a){if(!m(a))throw Error("First argument needs to be ArrayBuffer.");a=new Uint8Array(a);return this.checksum=g(this.checksum,a)});a.clone=function(){return new k(this.checksum)};return b}();q.from=function(b){if(null==b)throw Error("First argument needs to be a string.");return c(1,b.toString())};q.fromUtf8=function(b){if(null==b)throw Error("First argument needs to be a string.");b=l(b.toString());return c(1,b)};
e&&(q.fromBuffer=function(b){if(!m(b))throw Error("First argument need to be ArrayBuffer.");b=new Uint8Array(b);return g(1,b)});return q});