>16)+(A>>16)+(e>>16)<<16|65535&e}return t+A&4294967295}/**
* @license
* FPDF is released under a permissive license: there is no usage restriction.
* You may embed it freely in your application (commercial or not), with or
* without modifications.
*
* Reference: http://www.fpdf.org/en/script/script37.php
*/function lf(t,A){var e,r,n,i;if(t!==e){for(var a=(n=t,i=1+(256/t.length|0),new Array(i+1).join(n)),s=[],l=0;l<256;l++)s[l]=l;var u=0;for(l=0;l<256;l++){var f=s[l];u=(u+f+a.charCodeAt(l))%256,s[l]=s[u],s[u]=f}e=t,r=s}else s=r;var p=A.length,B=0,d=0,m="";for(l=0;l/\f©þdSiz";var i=(A+this.padding).substr(0,32),a=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,a),this.P=-(1+(255^n)),this.encryptionKey=of(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=lf(this.encryptionKey,this.padding)}function La(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var A="",e=t.length,r=0;r126?"#"+("0"+n.toString(16)).slice(-2):t[r]}return A}function Sg(t){if(je(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var A={};this.subscribe=function(e,r,n){if(n=n||!1,typeof e!="string"||typeof r!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");A.hasOwnProperty(e)||(A[e]={});var i=Math.random().toString(35);return A[e][i]=[r,!!n],i},this.unsubscribe=function(e){for(var r in A)if(A[r][e])return delete A[r][e],Object.keys(A[r]).length===0&&delete A[r],!0;return!1},this.publish=function(e){if(A.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in A[e]){var a=A[e][i];try{a[0].apply(t,r)}catch(s){re.console&&Ve.error("jsPDF PubSub Error",s.message,s)}a[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return A}}function Rl(t){if(!(this instanceof Rl))return new Rl(t);var A="opacity,stroke-opacity".split(",");for(var e in t)t.hasOwnProperty(e)&&A.indexOf(e)>=0&&(this[e]=t[e]);this.id="",this.objectNumber=-1}function A1(t,A){this.gState=t,this.matrix=A,this.id="",this.objectNumber=-1}function Mi(t,A,e,r,n){if(!(this instanceof Mi))return new Mi(t,A,e,r,n);this.type=t==="axial"?2:3,this.coords=A,this.colors=e,A1.call(this,r,n)}function Ia(t,A,e,r,n){if(!(this instanceof Ia))return new Ia(t,A,e,r,n);this.boundingBox=t,this.xStep=A,this.yStep=e,this.stream="",this.cloneIndex=0,A1.call(this,r,n)}function jA(t){var A,e=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],a=[],s=1,l=16,u="S",f=null;je(t=t||{})==="object"&&(e=t.orientation,r=t.unit||r,n=t.format||n,i=t.compress||t.compressPdf||i,(f=t.encryption||null)!==null&&(f.userPassword=f.userPassword||"",f.ownerPassword=f.ownerPassword||"",f.userPermissions=f.userPermissions||[]),s=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(A=t.precision),t.floatPrecision!==void 0&&(l=t.floatPrecision),u=t.defaultPathOperation||"S"),a=t.filters||(i===!0?["FlateEncode"]:a),r=r||"mm",e=(""+(e||"P")).toLowerCase();var p=t.putOnlyUsedFonts||!1,B={},d={internal:{},__private__:{}};d.__private__.PubSub=Sg;var m="1.3",C=d.__private__.getPdfVersion=function(){return m};d.__private__.setPdfVersion=function(h){m=h};var E={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 E};var v=d.__private__.getPageFormat=function(h){return E[h]};n=n||"a4";var H="compat",R="advanced",k=H;function j(){this.saveGraphicsState(),N(new ee(se,0,0,-se,0,Ei()*se).toString()+" cm"),this.setFontSize(this.getFontSize()/se),u="n",k=R}function J(){this.restoreGraphicsState(),u="S",k=H}var X=d.__private__.combineFontStyleAndFontWeight=function(h,b){if(h=="bold"&&b=="normal"||h=="bold"&&b==400||h=="normal"&&b=="italic"||h=="bold"&&b=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return b&&(h=b==400||b==="normal"?h==="italic"?"italic":"normal":b!=700&&b!=="bold"||h!=="normal"?(b==700?"bold":b)+""+h:"bold"),h};d.advancedAPI=function(h){var b=k===H;return b&&j.call(this),typeof h!="function"||(h(this),b&&J.call(this)),this},d.compatAPI=function(h){var b=k===R;return b&&J.call(this),typeof h!="function"||(h(this),b&&j.call(this)),this},d.isAdvancedAPI=function(){return k===R};var K,L=function(h){if(k!==R)throw new Error(h+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},W=d.roundToPrecision=d.__private__.roundToPrecision=function(h,b){var P=A||b;if(isNaN(h)||isNaN(P))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return h.toFixed(P).replace(/0+$/,"")};K=d.hpf=d.__private__.hpf=typeof l=="number"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return W(h,l)}:l==="smart"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return W(h,h>-1&&h<1?16:5)}:function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return W(h,16)};var U=d.f2=d.__private__.f2=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f2");return W(h,2)},S=d.__private__.f3=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f3");return W(h,3)},G=d.scale=d.__private__.scale=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.scale");return k===H?h*se:k===R?h:void 0},V=function(h){return G((function(b){return k===H?Ei()-b:k===R?b:void 0})(h))};d.__private__.setPrecision=d.setPrecision=function(h){typeof parseInt(h,10)=="number"&&(A=parseInt(h,10))};var nA,sA="00000000000000000000000000000000",lA=d.__private__.getFileId=function(){return sA},eA=d.__private__.setFileId=function(h){return sA=h!==void 0&&/^[a-fA-F0-9]{32}$/.test(h)?h.toUpperCase():sA.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),f!==null&&(vt=new Ea(f.userPermissions,f.userPassword,f.ownerPassword,sA)),sA};d.setFileId=function(h){return eA(h),this},d.getFileId=function(){return lA()};var cA=d.__private__.convertDateToPDFDate=function(h){var b=h.getTimezoneOffset(),P=b<0?"+":"-",z=Math.floor(Math.abs(b/60)),AA=Math.abs(b%60),BA=[P,M(z),"'",M(AA),"'"].join("");return["D:",h.getFullYear(),M(h.getMonth()+1),M(h.getDate()),M(h.getHours()),M(h.getMinutes()),M(h.getSeconds()),BA].join("")},mA=d.__private__.convertPDFDateToDate=function(h){var b=parseInt(h.substr(2,4),10),P=parseInt(h.substr(6,2),10)-1,z=parseInt(h.substr(8,2),10),AA=parseInt(h.substr(10,2),10),BA=parseInt(h.substr(12,2),10),vA=parseInt(h.substr(14,2),10);return new Date(b,P,z,AA,BA,vA,0)},uA=d.__private__.setCreationDate=function(h){var b;if(h===void 0&&(h=new Date),h instanceof Date)b=cA(h);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(h))throw new Error("Invalid argument passed to jsPDF.setCreationDate");b=h}return nA=b},F=d.__private__.getCreationDate=function(h){var b=nA;return h==="jsDate"&&(b=mA(nA)),b};d.setCreationDate=function(h){return uA(h),this},d.getCreationDate=function(h){return F(h)};var T,M=d.__private__.padd2=function(h){return("0"+parseInt(h)).slice(-2)},q=d.__private__.padd2Hex=function(h){return("00"+(h=h.toString())).substr(h.length)},Y=0,tA=[],fA=[],hA=0,dA=[],oA=[],bA=!1,UA=fA;d.__private__.setCustomOutputDestination=function(h){bA=!0,UA=h};var IA=function(h){bA||(UA=h)};d.__private__.resetCustomOutputDestination=function(){bA=!1,UA=fA};var N=d.__private__.out=function(h){return h=h.toString(),hA+=h.length+1,UA.push(h),UA},_A=d.__private__.write=function(h){return N(arguments.length===1?h.toString():Array.prototype.join.call(arguments," "))},fe=d.__private__.getArrayBuffer=function(h){for(var b=h.length,P=new ArrayBuffer(b),z=new Uint8Array(P);b--;)z[b]=h.charCodeAt(b);return P},XA=[["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 XA};var yA=t.fontSize||16;d.__private__.setFontSize=d.setFontSize=function(h){return yA=k===R?h/se:h,this};var JA,NA=d.__private__.getFontSize=d.getFontSize=function(){return k===H?yA:yA*se},zA=t.R2L||!1;d.__private__.setR2L=d.setR2L=function(h){return zA=h,this},d.__private__.getR2L=d.getR2L=function(){return zA};var qA,xe=d.__private__.setZoomMode=function(h){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(h))JA=h;else if(isNaN(h)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(h)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+h+'" is not recognized.');JA=h}else JA=parseInt(h,10)};d.__private__.getZoomMode=function(){return JA};var we,ne=d.__private__.setPageMode=function(h){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(h)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+h+'" is not recognized.');qA=h};d.__private__.getPageMode=function(){return qA};var be=d.__private__.setLayoutMode=function(h){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(h)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+h+'" is not recognized.');we=h};d.__private__.getLayoutMode=function(){return we},d.__private__.setDisplayMode=d.setDisplayMode=function(h,b,P){return xe(h),be(b),ne(P),this};var me={title:"",subject:"",author:"",keywords:"",creator:""};d.__private__.getDocumentProperty=function(h){if(Object.keys(me).indexOf(h)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return me[h]},d.__private__.getDocumentProperties=function(){return me},d.__private__.setDocumentProperties=d.setProperties=d.setDocumentProperties=function(h){for(var b in me)me.hasOwnProperty(b)&&h[b]&&(me[b]=h[b]);return this},d.__private__.setDocumentProperty=function(h,b){if(Object.keys(me).indexOf(h)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return me[h]=b};var RA,se,OA,_e,ve,oe={},le={},Me=[],WA={},Ne={},$A={},ce={},Ye=null,ye=0,Ae=[],Ie=new Sg(d),vi=t.hotfixes||[],Mt={},dn={},zr=[],ee=function h(b,P,z,AA,BA,vA){if(!(this instanceof h))return new h(b,P,z,AA,BA,vA);isNaN(b)&&(b=1),isNaN(P)&&(P=0),isNaN(z)&&(z=0),isNaN(AA)&&(AA=1),isNaN(BA)&&(BA=0),isNaN(vA)&&(vA=0),this._matrix=[b,P,z,AA,BA,vA]};Object.defineProperty(ee.prototype,"sx",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(ee.prototype,"shy",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(ee.prototype,"shx",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(ee.prototype,"sy",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(ee.prototype,"tx",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(ee.prototype,"ty",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(ee.prototype,"a",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(ee.prototype,"b",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(ee.prototype,"c",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(ee.prototype,"d",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(ee.prototype,"e",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(ee.prototype,"f",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(ee.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ee.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ee.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ee.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ee.prototype.join=function(h){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(K).join(h)},ee.prototype.multiply=function(h){var b=h.sx*this.sx+h.shy*this.shx,P=h.sx*this.shy+h.shy*this.sy,z=h.shx*this.sx+h.sy*this.shx,AA=h.shx*this.shy+h.sy*this.sy,BA=h.tx*this.sx+h.ty*this.shx+this.tx,vA=h.tx*this.shy+h.ty*this.sy+this.ty;return new ee(b,P,z,AA,BA,vA)},ee.prototype.decompose=function(){var h=this.sx,b=this.shy,P=this.shx,z=this.sy,AA=this.tx,BA=this.ty,vA=Math.sqrt(h*h+b*b),PA=(h/=vA)*P+(b/=vA)*z;P-=h*PA,z-=b*PA;var GA=Math.sqrt(P*P+z*z);return PA/=GA,h*(z/=GA)>16&255,z=GA>>8&255,AA=255&GA}if(z===void 0||BA===void 0&&P===z&&z===AA)b=typeof P=="string"?P+" "+vA[0]:h.precision===2?U(P/255)+" "+vA[0]:S(P/255)+" "+vA[0];else if(BA===void 0||je(BA)==="object"){if(BA&&!isNaN(BA.a)&&BA.a===0)return["1.","1.","1.",vA[1]].join(" ");b=typeof P=="string"?[P,z,AA,vA[1]].join(" "):h.precision===2?[U(P/255),U(z/255),U(AA/255),vA[1]].join(" "):[S(P/255),S(z/255),S(AA/255),vA[1]].join(" ")}else b=typeof P=="string"?[P,z,AA,BA,vA[2]].join(" "):h.precision===2?[U(P),U(z),U(AA),U(BA),vA[2]].join(" "):[S(P),S(z),S(AA),S(BA),vA[2]].join(" ");return b},kr=d.__private__.getFilters=function(){return a},Cr=d.__private__.putStream=function(h){var b=(h=h||{}).data||"",P=h.filters||kr(),z=h.alreadyAppliedFilters||[],AA=h.addLength1||!1,BA=b.length,vA=h.objectId,PA=function(Ct){return Ct};if(f!==null&&vA===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");f!==null&&(PA=vt.encryptor(vA,0));var GA={};P===!0&&(P=["FlateEncode"]);var ie=h.additionalKeyValues||[],ge=(GA=jA.API.processDataByFilters!==void 0?jA.API.processDataByFilters(b,P):{data:b,reverseChain:[]}).reverseChain+(Array.isArray(z)?z.join(" "):z.toString());if(GA.data.length!==0&&(ie.push({key:"Length",value:GA.data.length}),AA===!0&&ie.push({key:"Length1",value:BA})),ge.length!=0)if(ge.split("/").length-1==1)ie.push({key:"Filter",value:ge});else{ie.push({key:"Filter",value:"["+ge+"]"});for(var Ee=0;Ee>"),GA.data.length!==0&&(N("stream"),N(PA(GA.data)),N("endstream"))},bi=d.__private__.putPage=function(h){var b=h.number,P=h.data,z=h.objId,AA=h.contentsObjId;St(z,!0),N("<>"),N("endobj");var BA=P.join(`
`);return k===R&&(BA+=`
Q`),St(AA,!0),Cr({data:BA,filters:kr(),objectId:AA}),N("endobj"),z},Jr=d.__private__.putPages=function(){var h,b,P=[];for(h=1;h<=ye;h++)Ae[h].objId=Et(),Ae[h].contentsObjId=Et();for(h=1;h<=ye;h++)P.push(bi({number:h,data:oA[h],objId:Ae[h].objId,contentsObjId:Ae[h].contentsObjId,mediaBox:Ae[h].mediaBox,cropBox:Ae[h].cropBox,bleedBox:Ae[h].bleedBox,trimBox:Ae[h].trimBox,artBox:Ae[h].artBox,userUnit:Ae[h].userUnit,rootDictionaryObjId:Kn,resourceDictionaryObjId:Hr}));St(Kn,!0),N("<>"),N("endobj"),Ie.publish("postPutPages")},yi=function(h){Ie.publish("putFont",{font:h,out:N,newObject:et,putStream:Cr}),h.isAlreadyPutted!==!0&&(h.objectNumber=et(),N("<<"),N("/Type /Font"),N("/BaseFont /"+La(h.postScriptName)),N("/Subtype /Type1"),typeof h.encoding=="string"&&N("/Encoding /"+h.encoding),N("/FirstChar 32"),N("/LastChar 255"),N(">>"),N("endobj"))},ta=function(h){h.objectNumber=et();var b=[];b.push({key:"Type",value:"/XObject"}),b.push({key:"Subtype",value:"/Form"}),b.push({key:"BBox",value:"["+[K(h.x),K(h.y),K(h.x+h.width),K(h.y+h.height)].join(" ")+"]"}),b.push({key:"Matrix",value:"["+h.matrix.toString()+"]"});var P=h.pages[1].join(`
`);Cr({data:P,additionalKeyValues:b,objectId:h.objectNumber}),N("endobj")},ra=function(h,b){b||(b=21);var P=et(),z=(function(vA,PA){var GA,ie=[],ge=1/(PA-1);for(GA=0;GA<1;GA+=ge)ie.push(GA);if(ie.push(1),vA[0].offset!=0){var Ee={offset:0,color:vA[0].color};vA.unshift(Ee)}if(vA[vA.length-1].offset!=1){var At={offset:1,color:vA[vA.length-1].color};vA.push(At)}for(var pt="",qe=0,Ct=0;CtvA[qe+1].offset;)qe++;var Bt=vA[qe].offset,Ht=(GA-Bt)/(vA[qe+1].offset-Bt),Fn=vA[qe].color,Dr=vA[qe+1].color;pt+=q(Math.round((1-Ht)*Fn[0]+Ht*Dr[0]).toString(16))+q(Math.round((1-Ht)*Fn[1]+Ht*Dr[1]).toString(16))+q(Math.round((1-Ht)*Fn[2]+Ht*Dr[2]).toString(16))}return pt.trim()})(h.colors,b),AA=[];AA.push({key:"FunctionType",value:"0"}),AA.push({key:"Domain",value:"[0.0 1.0]"}),AA.push({key:"Size",value:"["+b+"]"}),AA.push({key:"BitsPerSample",value:"8"}),AA.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),AA.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Cr({data:z,additionalKeyValues:AA,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:P}),N("endobj"),h.objectNumber=et(),N("<< /ShadingType "+h.type),N("/ColorSpace /DeviceRGB");var BA="/Coords ["+K(parseFloat(h.coords[0]))+" "+K(parseFloat(h.coords[1]))+" ";h.type===2?BA+=K(parseFloat(h.coords[2]))+" "+K(parseFloat(h.coords[3])):BA+=K(parseFloat(h.coords[2]))+" "+K(parseFloat(h.coords[3]))+" "+K(parseFloat(h.coords[4]))+" "+K(parseFloat(h.coords[5])),N(BA+="]"),h.matrix&&N("/Matrix ["+h.matrix.toString()+"]"),N("/Function "+P+" 0 R"),N("/Extend [true true]"),N(">>"),N("endobj")},na=function(h,b){var P=Et(),z=et();b.push({resourcesOid:P,objectOid:z}),h.objectNumber=z;var AA=[];AA.push({key:"Type",value:"/Pattern"}),AA.push({key:"PatternType",value:"1"}),AA.push({key:"PaintType",value:"1"}),AA.push({key:"TilingType",value:"1"}),AA.push({key:"BBox",value:"["+h.boundingBox.map(K).join(" ")+"]"}),AA.push({key:"XStep",value:K(h.xStep)}),AA.push({key:"YStep",value:K(h.yStep)}),AA.push({key:"Resources",value:P+" 0 R"}),h.matrix&&AA.push({key:"Matrix",value:"["+h.matrix.toString()+"]"}),Cr({data:h.stream,additionalKeyValues:AA,objectId:h.objectNumber}),N("endobj")},nc=function(h){for(var b in h.objectNumber=et(),N("<<"),h)switch(b){case"opacity":N("/ca "+U(h[b]));break;case"stroke-opacity":N("/CA "+U(h[b]))}N(">>"),N("endobj")},Ra=function(h){St(h.resourcesOid,!0),N("<<"),N("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var b in N("/Font <<"),oe)oe.hasOwnProperty(b)&&(p===!1||p===!0&&B.hasOwnProperty(b))&&N("/"+b+" "+oe[b].objectNumber+" 0 R");N(">>")})(),(function(){if(Object.keys(WA).length>0){for(var b in N("/Shading <<"),WA)WA.hasOwnProperty(b)&&WA[b]instanceof Mi&&WA[b].objectNumber>=0&&N("/"+b+" "+WA[b].objectNumber+" 0 R");Ie.publish("putShadingPatternDict"),N(">>")}})(),(function(b){if(Object.keys(WA).length>0){for(var P in N("/Pattern <<"),WA)WA.hasOwnProperty(P)&&WA[P]instanceof d.TilingPattern&&WA[P].objectNumber>=0&&WA[P].objectNumber>")}})(h.objectOid),(function(){if(Object.keys($A).length>0){var b;for(b in N("/ExtGState <<"),$A)$A.hasOwnProperty(b)&&$A[b].objectNumber>=0&&N("/"+b+" "+$A[b].objectNumber+" 0 R");Ie.publish("putGStateDict"),N(">>")}})(),(function(){for(var b in N("/XObject <<"),Mt)Mt.hasOwnProperty(b)&&Mt[b].objectNumber>=0&&N("/"+b+" "+Mt[b].objectNumber+" 0 R");Ie.publish("putXobjectDict"),N(">>")})(),N(">>"),N("endobj")},zs=function(h){le[h.fontName]=le[h.fontName]||{},le[h.fontName][h.fontStyle]=h.id},Xs=function(h,b,P,z,AA){var BA={id:"F"+(Object.keys(oe).length+1).toString(10),postScriptName:h,fontName:b,fontStyle:P,encoding:z,isStandardFont:AA||!1,metadata:{}};return Ie.publish("addFont",{font:BA,instance:this}),oe[BA.id]=BA,zs(BA),BA.id},br=d.__private__.pdfEscape=d.pdfEscape=function(h,b){return(function(P,z){var AA,BA,vA,PA,GA,ie,ge,Ee,At;if(vA=(z=z||{}).sourceEncoding||"Unicode",GA=z.outputEncoding,(z.autoencode||GA)&&oe[RA].metadata&&oe[RA].metadata[vA]&&oe[RA].metadata[vA].encoding&&(PA=oe[RA].metadata[vA].encoding,!GA&&oe[RA].encoding&&(GA=oe[RA].encoding),!GA&&PA.codePages&&(GA=PA.codePages[0]),typeof GA=="string"&&(GA=PA[GA]),GA)){for(ge=!1,ie=[],AA=0,BA=P.length;AA>8&&(ge=!0);P=ie.join("")}for(AA=P.length;ge===void 0&&AA!==0;)P.charCodeAt(AA-1)>>8&&(ge=!0),AA--;if(!ge)return P;for(ie=z.noBOM?[]:[254,255],AA=0,BA=P.length;AA>8)>>8)throw new Error("Character at position "+AA+" of string '"+P+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ie.push(At),ie.push(Ee-(At<<8))}return String.fromCharCode.apply(void 0,ie)})(h,b).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ma=d.__private__.beginPage=function(h){oA[++ye]=[],Ae[ye]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(h[0]),topRightY:Number(h[1])}},Ys(ye),IA(oA[T])},Js=function(h,b){var P,z,AA;switch(e=b||e,typeof h=="string"&&(P=v(h.toLowerCase()),Array.isArray(P)&&(z=P[0],AA=P[1])),Array.isArray(h)&&(z=h[0]*se,AA=h[1]*se),isNaN(z)&&(z=n[0],AA=n[1]),(z>14400||AA>14400)&&(Ve.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),z=Math.min(14400,z),AA=Math.min(14400,AA)),n=[z,AA],e.substr(0,1)){case"l":AA>z&&(n=[AA,z]);break;case"p":z>AA&&(n=[AA,z])}Ma(n),ue(Va),N(oa),qa!==0&&N(qa+" J"),Wa!==0&&N(Wa+" j"),Ie.publish("addPage",{pageNumber:ye})},Ka=function(h){h>0&&h<=ye&&(oA.splice(h,1),Ae.splice(h,1),ye--,T>ye&&(T=ye),this.setPage(T))},Ys=function(h){h>0&&h<=ye&&(T=h)},$s=d.__private__.getNumberOfPages=d.getNumberOfPages=function(){return oA.length-1},Zs=function(h,b,P){var z,AA=void 0;return P=P||{},h=h!==void 0?h:oe[RA].fontName,b=b!==void 0?b:oe[RA].fontStyle,z=h.toLowerCase(),le[z]!==void 0&&le[z][b]!==void 0?AA=le[z][b]:le[h]!==void 0&&le[h][b]!==void 0?AA=le[h][b]:P.disableWarning===!1&&Ve.warn("Unable to look up font label for font '"+h+"', '"+b+"'. Refer to getFontList() for available fonts."),AA||P.noFallback||(AA=le.times[b])==null&&(AA=le.times.normal),AA},Yr=d.__private__.putInfo=function(){var h=et(),b=function(z){return z};for(var P in f!==null&&(b=vt.encryptor(h,0)),N("<<"),N("/Producer ("+br(b("jsPDF "+jA.version))+")"),me)me.hasOwnProperty(P)&&me[P]&&N("/"+P.substr(0,1).toUpperCase()+P.substr(1)+" ("+br(b(me[P]))+")");N("/CreationDate ("+br(b(nA))+")"),N(">>"),N("endobj")},ia=d.__private__.putCatalog=function(h){var b=(h=h||{}).rootDictionaryObjId||Kn;switch(et(),N("<<"),N("/Type /Catalog"),N("/Pages "+b+" 0 R"),JA||(JA="fullwidth"),JA){case"fullwidth":N("/OpenAction [3 0 R /FitH null]");break;case"fullheight":N("/OpenAction [3 0 R /FitV null]");break;case"fullpage":N("/OpenAction [3 0 R /Fit]");break;case"original":N("/OpenAction [3 0 R /XYZ null null 1]");break;default:var P=""+JA;P.substr(P.length-1)==="%"&&(JA=parseInt(JA)/100),typeof JA=="number"&&N("/OpenAction [3 0 R /XYZ null null "+U(JA)+"]")}switch(we||(we="continuous"),we){case"continuous":N("/PageLayout /OneColumn");break;case"single":N("/PageLayout /SinglePage");break;case"two":case"twoleft":N("/PageLayout /TwoColumnLeft");break;case"tworight":N("/PageLayout /TwoColumnRight")}qA&&N("/PageMode /"+qA),Ie.publish("putCatalog"),N(">>"),N("endobj")},ic=d.__private__.putTrailer=function(){N("trailer"),N("<<"),N("/Size "+(Y+1)),N("/Root "+Y+" 0 R"),N("/Info "+(Y-1)+" 0 R"),f!==null&&N("/Encrypt "+vt.oid+" 0 R"),N("/ID [ <"+sA+"> <"+sA+"> ]"),N(">>")},gt=d.__private__.putHeader=function(){N("%PDF-"+m),N("%ºß¬à")},Ao=d.__private__.putXRef=function(){var h="0000000000";N("xref"),N("0 "+(Y+1)),N("0000000000 65535 f ");for(var b=1;b<=Y;b++)typeof tA[b]=="function"?N((h+tA[b]()).slice(-10)+" 00000 n "):tA[b]!==void 0?N((h+tA[b]).slice(-10)+" 00000 n "):N("0000000000 00000 n ")},$r=d.__private__.buildDocument=function(){var h;Y=0,hA=0,fA=[],tA=[],dA=[],Kn=Et(),Hr=Et(),IA(fA),Ie.publish("buildDocument"),gt(),Jr(),(function(){Ie.publish("putAdditionalObjects");for(var P=0;P"),N("/O <"+vt.toHexString(vt.O)+">"),N("/P "+vt.P),N(">>"),N("endobj")),Yr(),ia();var b=hA;return Ao(),ic(),N("startxref"),N(""+b),N("%%EOF"),IA(oA[T]),fA.join(`
`)},aa=d.__private__.getBlob=function(h){return new Blob([fe(h)],{type:"application/pdf"})},eo=d.output=d.__private__.output=(vr=function(h,b){switch(typeof(b=b||{})=="string"?b={filename:b}:b.filename=b.filename||"generated.pdf",h){case void 0:return $r();case"save":d.save(b.filename);break;case"arraybuffer":return fe($r());case"blob":return aa($r());case"bloburi":case"bloburl":if(re.URL!==void 0&&typeof re.URL.createObjectURL=="function")return re.URL&&re.URL.createObjectURL(aa($r()))||void 0;Ve.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var P="",z=$r();try{P=Lg(z)}catch{P=Lg(unescape(encodeURIComponent(z)))}return"data:application/pdf;filename="+b.filename+";base64,"+P;case"pdfobjectnewwindow":if(Object.prototype.toString.call(re)==="[object Window]"){var AA="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",BA=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';b.pdfObjectUrl&&(AA=b.pdfObjectUrl,BA="");var vA='