@blockcerts/blockcerts-verifier 1.69.0 → 1.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/bundle-stats.html +2229 -2122
  2. package/dist/{EcdsaSd2023-Bf8oG6yE-DXSfendb.js → EcdsaSd2023-DcsELLJj-DreWzXlX.js} +8 -8
  3. package/dist/EcdsaSecp256k1Signature2019-Cy1mIkjt-DJmj4ZAc.js +1 -0
  4. package/dist/{Ed25519Signature2020-B6Av-H9i-Bi3NyI0E.js → Ed25519Signature2020-B-CFC9WC-DJkVVmwk.js} +6 -6
  5. package/dist/{MerkleProof2017-Dy-NSqLc-DHQ59Wvo.js → MerkleProof2017-DqA3Y12J-D6qS7nCf.js} +1 -1
  6. package/dist/{MerkleProof2019-0fhn8kLR-C2H_q6nV.js → MerkleProof2019-B4HSvmJo-Cwc-hu-Y.js} +2 -2
  7. package/dist/checkCredentialSchemaConformity-ChaCRIqw-7U54o8BA.js +1 -0
  8. package/dist/{controlVerificationMethod-suRC0MnA-D4JcJT1N.js → controlVerificationMethod-qY02GU_H-B-4U8WJQ.js} +1 -1
  9. package/dist/{did-key-common.esm-C8HA3Pjo-CSneo-V8.js → did-key-common.esm-nDfdwcKN-BTWid9-w.js} +3 -3
  10. package/dist/{did-key-ed25519.esm-DysNS-Zl-DSKpuDIg.js → did-key-ed25519.esm-DNra0jwE-CTwAEzy6.js} +1 -1
  11. package/dist/{did-key-secp256k1.esm-CLndQyAu-BYDTpSgR.js → did-key-secp256k1.esm-Dv1NXpDw-_M-qRy-N.js} +1 -1
  12. package/dist/{downloadPDF-DzV0Jwr0.js → downloadPDF-DQVfeIBI.js} +7 -7
  13. package/dist/{index-BEHg4rC3-AHOWkvj-.js → index-BM3knvQR-D4vxi3Vi.js} +3 -3
  14. package/dist/{index-CKc12B0M-CY2IlTam.js → index-Bi-O7G4n-Bgz40JYf.js} +7 -7
  15. package/dist/{index-BC_5sEeg-CEsb2-mf.js → index-ButIU7pZ-Djl5IfSw.js} +1 -1
  16. package/dist/{index.es-D_fMtNlx.js → index.es-BqQdvz5C.js} +2 -2
  17. package/dist/main.js +52 -52
  18. package/dist/purify.es-DJj7iNgQ.js +2 -0
  19. package/dist/{retrieveVerificationMethodPublicKey-CogYoUma-CqFMEtDL.js → retrieveVerificationMethodPublicKey-6-rH9LB2-DvFOhdlW.js} +1 -1
  20. package/dist/verifyIssuerProfile-DnjbDuXe-BVFzyjSL.js +1 -0
  21. package/package.json +4 -4
  22. package/dist/EcdsaSecp256k1Signature2019-BALmC57B-DCQW1A4n.js +0 -1
  23. package/dist/checkCredentialSchemaConformity-D70pJ-aV-ziU-1LIq.js +0 -1
  24. package/dist/purify-mEiDmpQD.js +0 -2
  25. package/dist/verifyIssuerProfile-2DvLibZC-DDE-mATS.js +0 -1
  26. /package/dist/{HashlinkVerifier-CUj0d9D3-dg5WNZnc.js → HashlinkVerifier-hQgVXluZ-dg5WNZnc.js} +0 -0
  27. /package/dist/{checkRevocationStatusList2021-u7qIPszJ-XCu3zkCJ.js → checkRevocationStatusList2021-CPFaTtUR-XCu3zkCJ.js} +0 -0
  28. /package/dist/{elliptic-e2d4_kYF-DQmYEk-8.js → elliptic-D-ZnlFdt-DQmYEk-8.js} +0 -0
  29. /package/dist/{ensureNotRevoked-D2jnsCd0-DvMIgM4L.js → ensureNotRevoked-D9FFjDJd-DvMIgM4L.js} +0 -0
  30. /package/dist/{ensureValidIssuingKey-LBboe5mO-wu9SdYxL.js → ensureValidIssuingKey-Cz0isOdi-wu9SdYxL.js} +0 -0
  31. /package/dist/{index-qLsUsSDH-C0eXpZGn.js → index-0q2-1l6i-C0eXpZGn.js} +0 -0
  32. /package/dist/{index-DuuEF8T4-Dgus2xdV.js → index-ZJb8DPW9-Dgus2xdV.js} +0 -0
  33. /package/dist/{jsonld-Cuz6c95c-CQeQQNYP.js → jsonld-CQCA9cVk-CQeQQNYP.js} +0 -0
  34. /package/dist/{sha256-mf0I6iCn-C1PUWFZm.js → sha256-BIUNvBZY-C1PUWFZm.js} +0 -0
  35. /package/dist/{webcrypto.es-CGaF2VaX-TCzLuarM.js → webcrypto.es-BxABHF-B-TCzLuarM.js} +0 -0
  36. /package/dist/{x25519-DrRZ9GHv-NSl6svWQ.js → x25519-CEFq6uo8-NSl6svWQ.js} +0 -0
@@ -2,7 +2,7 @@ import{_ as A,K as t,L as e,M as r,N as n}from"./main.js";function i(A,t){return
2
2
  /** @license
3
3
  *
4
4
  * jsPDF - PDF Document creation from JavaScript
5
- * Version 2.5.2 Built on 2024-09-17T13:29:57.859Z
5
+ * Version 3.0.1 Built on 2025-03-17T14:19:36.873Z
6
6
  * CommitID 00000000
7
7
  *
8
8
  * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
@@ -81,7 +81,7 @@ import{_ as A,K as t,L as e,M as r,N as n}from"./main.js";function i(A,t){return
81
81
  * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
82
82
  * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
83
83
  * http://www.fpdf.org/en/script/script37.php
84
- */var bA={print:4,modify:8,copy:16,"annot-forms":32};function UA(A,t,e,r){this.v=1,this.r=2;var n=192;A.forEach((function(A){if(void 0!==bA.perm)throw new Error("Invalid permission: "+A);n+=bA[A]})),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var i=(t+this.padding).substr(0,32),o=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,o),this.P=-(1+(255^n)),this.encryptionKey=CA(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=yA(this.encryptionKey,this.padding)}function LA(A){if(/[^\u0000-\u00ff]/.test(A))throw new Error("Invalid PDF Name Object: "+A+", Only accept ASCII characters.");for(var t="",e=A.length,r=0;r<e;r++){var n=A.charCodeAt(r);t+=n<33||35===n||37===n||40===n||41===n||47===n||60===n||62===n||91===n||93===n||123===n||125===n||n>126?"#"+("0"+n.toString(16)).slice(-2):A[r]}return t}function IA(A){if("object"!==s(A))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(A,e,r){if(r=r||!1,"string"!=typeof A||"function"!=typeof e||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(A)||(t[A]={});var n=Math.random().toString(35);return t[A][n]=[e,!!r],n},this.unsubscribe=function(A){for(var e in t)if(t[e][A])return delete t[e][A],0===Object.keys(t[e]).length&&delete t[e],!0;return!1},this.publish=function(e){if(t.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in t[e]){var o=t[e][i];try{o[0].apply(A,r)}catch(e){AA.console&&eA.error("jsPDF PubSub Error",e.message,e)}o[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function EA(A){if(!(this instanceof EA))return new EA(A);var t="opacity,stroke-opacity".split(",");for(var e in A)A.hasOwnProperty(e)&&t.indexOf(e)>=0&&(this[e]=A[e]);this.id="",this.objectNumber=-1}function xA(A,t){this.gState=A,this.matrix=t,this.id="",this.objectNumber=-1}function HA(A,t,e,r,n){if(!(this instanceof HA))return new HA(A,t,e,r,n);this.type="axial"===A?2:3,this.coords=t,this.colors=e,xA.call(this,r,n)}function NA(A,t,e,r,n){if(!(this instanceof NA))return new NA(A,t,e,r,n);this.boundingBox=A,this.xStep=t,this.yStep=e,this.stream="",this.cloneIndex=0,xA.call(this,r,n)}function SA(A){var t,e="string"==typeof arguments[0]?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],o=[],a=1,c=16,u="S",l=null;"object"===s(A=A||{})&&(e=A.orientation,r=A.unit||r,n=A.format||n,i=A.compress||A.compressPdf||i,null!==(l=A.encryption||null)&&(l.userPassword=l.userPassword||"",l.ownerPassword=l.ownerPassword||"",l.userPermissions=l.userPermissions||[]),a="number"==typeof A.userUnit?Math.abs(A.userUnit):1,void 0!==A.precision&&(t=A.precision),void 0!==A.floatPrecision&&(c=A.floatPrecision),u=A.defaultPathOperation||"S"),o=A.filters||(!0===i?["FlateEncode"]:o),r=r||"mm",e=(""+(e||"P")).toLowerCase();var h=A.putOnlyUsedFonts||!1,f={},B={internal:{},__private__:{}};B.__private__.PubSub=IA;var d="1.3",g=B.__private__.getPdfVersion=function(){return d};B.__private__.setPdfVersion=function(A){d=A};var p={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]};B.__private__.getPageFormats=function(){return p};var w=B.__private__.getPageFormat=function(A){return p[A]};n=n||"a4";var m="compat",Q="advanced",C=m;function v(){this.saveGraphicsState(),Z(new GA(wA,0,0,-wA,0,ve()*wA).toString()+" cm"),this.setFontSize(this.getFontSize()/wA),u="n",C=Q}function F(){this.restoreGraphicsState(),u="S",C=m}var y=B.__private__.combineFontStyleAndFontWeight=function(A,t){if("bold"==A&&"normal"==t||"bold"==A&&400==t||"normal"==A&&"italic"==t||"bold"==A&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(A=400==t||"normal"===t?"italic"===A?"italic":"normal":700!=t&&"bold"!==t||"normal"!==A?(700==t?"bold":t)+""+A:"bold"),A};B.advancedAPI=function(A){var t=C===m;return t&&v.call(this),"function"!=typeof A||(A(this),t&&F.call(this)),this},B.compatAPI=function(A){var t=C===Q;return t&&F.call(this),"function"!=typeof A||(A(this),t&&v.call(this)),this},B.isAdvancedAPI=function(){return C===Q};var b,U=function(A){if(C!==Q)throw new Error(A+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},L=B.roundToPrecision=B.__private__.roundToPrecision=function(A,e){var r=t||e;if(isNaN(A)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return A.toFixed(r).replace(/0+$/,"")};b=B.hpf=B.__private__.hpf="number"==typeof c?function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.hpf");return L(A,c)}:"smart"===c?function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.hpf");return L(A,A>-1&&A<1?16:5)}:function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.hpf");return L(A,16)};var I=B.f2=B.__private__.f2=function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.f2");return L(A,2)},E=B.__private__.f3=function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.f3");return L(A,3)},x=B.scale=B.__private__.scale=function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.scale");return C===m?A*wA:C===Q?A:void 0},H=function(A){return x(function(A){return C===m?ve()-A:C===Q?A:void 0}(A))};B.__private__.setPrecision=B.setPrecision=function(A){"number"==typeof parseInt(A,10)&&(t=parseInt(A,10))};var N,S="00000000000000000000000000000000",P=B.__private__.getFileId=function(){return S},D=B.__private__.setFileId=function(A){return S=void 0!==A&&/^[a-fA-F0-9]{32}$/.test(A)?A.toUpperCase():S.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==l&&(Nt=new UA(l.userPermissions,l.userPassword,l.ownerPassword,S)),S};B.setFileId=function(A){return D(A),this},B.getFileId=function(){return P()};var k=B.__private__.convertDateToPDFDate=function(A){var t=A.getTimezoneOffset(),e=t<0?"+":"-",r=Math.floor(Math.abs(t/60)),n=Math.abs(t%60),i=[e,T(r),"'",T(n),"'"].join("");return["D:",A.getFullYear(),T(A.getMonth()+1),T(A.getDate()),T(A.getHours()),T(A.getMinutes()),T(A.getSeconds()),i].join("")},_=B.__private__.convertPDFDateToDate=function(A){var t=parseInt(A.substr(2,4),10),e=parseInt(A.substr(6,2),10)-1,r=parseInt(A.substr(8,2),10),n=parseInt(A.substr(10,2),10),i=parseInt(A.substr(12,2),10),o=parseInt(A.substr(14,2),10);return new Date(t,e,r,n,i,o,0)},M=B.__private__.setCreationDate=function(A){var t;if(void 0===A&&(A=new Date),A instanceof Date)t=k(A);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(A))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=A}return N=t},O=B.__private__.getCreationDate=function(A){var t=N;return"jsDate"===A&&(t=_(N)),t};B.setCreationDate=function(A){return M(A),this},B.getCreationDate=function(A){return O(A)};var K,T=B.__private__.padd2=function(A){return("0"+parseInt(A)).slice(-2)},R=B.__private__.padd2Hex=function(A){return("00"+(A=A.toString())).substr(A.length)},j=0,G=[],V=[],q=0,X=[],J=[],W=!1,z=V;B.__private__.setCustomOutputDestination=function(A){W=!0,z=A};var Y=function(A){W||(z=A)};B.__private__.resetCustomOutputDestination=function(){W=!1,z=V};var Z=B.__private__.out=function(A){return A=A.toString(),q+=A.length+1,z.push(A),z},$=B.__private__.write=function(A){return Z(1===arguments.length?A.toString():Array.prototype.join.call(arguments," "))},tA=B.__private__.getArrayBuffer=function(A){for(var t=A.length,e=new ArrayBuffer(t),r=new Uint8Array(e);t--;)r[t]=A.charCodeAt(t);return e},rA=[["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]];B.__private__.getStandardFonts=function(){return rA};var nA=A.fontSize||16;B.__private__.setFontSize=B.setFontSize=function(A){return nA=C===Q?A/wA:A,this};var iA,oA=B.__private__.getFontSize=B.getFontSize=function(){return C===m?nA:nA*wA},uA=A.R2L||!1;B.__private__.setR2L=B.setR2L=function(A){return uA=A,this},B.__private__.getR2L=B.getR2L=function(){return uA};var lA,hA=B.__private__.setZoomMode=function(A){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(A))iA=A;else if(isNaN(A)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(A))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+A+'" is not recognized.');iA=A}else iA=parseInt(A,10)};B.__private__.getZoomMode=function(){return iA};var fA,BA=B.__private__.setPageMode=function(A){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(A))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+A+'" is not recognized.');lA=A};B.__private__.getPageMode=function(){return lA};var dA=B.__private__.setLayoutMode=function(A){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(A))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+A+'" is not recognized.');fA=A};B.__private__.getLayoutMode=function(){return fA},B.__private__.setDisplayMode=B.setDisplayMode=function(A,t,e){return hA(A),dA(t),BA(e),this};var gA={title:"",subject:"",author:"",keywords:"",creator:""};B.__private__.getDocumentProperty=function(A){if(-1===Object.keys(gA).indexOf(A))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return gA[A]},B.__private__.getDocumentProperties=function(){return gA},B.__private__.setDocumentProperties=B.setProperties=B.setDocumentProperties=function(A){for(var t in gA)gA.hasOwnProperty(t)&&A[t]&&(gA[t]=A[t]);return this},B.__private__.setDocumentProperty=function(A,t){if(-1===Object.keys(gA).indexOf(A))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return gA[A]=t};var pA,wA,mA,QA,CA,vA={},FA={},yA=[],bA={},xA={},PA={},DA={},kA=null,_A=0,MA=[],OA=new IA(B),KA=A.hotfixes||[],TA={},RA={},jA=[],GA=function A(t,e,r,n,i,o){if(!(this instanceof A))return new A(t,e,r,n,i,o);isNaN(t)&&(t=1),isNaN(e)&&(e=0),isNaN(r)&&(r=0),isNaN(n)&&(n=1),isNaN(i)&&(i=0),isNaN(o)&&(o=0),this._matrix=[t,e,r,n,i,o]};Object.defineProperty(GA.prototype,"sx",{get:function(){return this._matrix[0]},set:function(A){this._matrix[0]=A}}),Object.defineProperty(GA.prototype,"shy",{get:function(){return this._matrix[1]},set:function(A){this._matrix[1]=A}}),Object.defineProperty(GA.prototype,"shx",{get:function(){return this._matrix[2]},set:function(A){this._matrix[2]=A}}),Object.defineProperty(GA.prototype,"sy",{get:function(){return this._matrix[3]},set:function(A){this._matrix[3]=A}}),Object.defineProperty(GA.prototype,"tx",{get:function(){return this._matrix[4]},set:function(A){this._matrix[4]=A}}),Object.defineProperty(GA.prototype,"ty",{get:function(){return this._matrix[5]},set:function(A){this._matrix[5]=A}}),Object.defineProperty(GA.prototype,"a",{get:function(){return this._matrix[0]},set:function(A){this._matrix[0]=A}}),Object.defineProperty(GA.prototype,"b",{get:function(){return this._matrix[1]},set:function(A){this._matrix[1]=A}}),Object.defineProperty(GA.prototype,"c",{get:function(){return this._matrix[2]},set:function(A){this._matrix[2]=A}}),Object.defineProperty(GA.prototype,"d",{get:function(){return this._matrix[3]},set:function(A){this._matrix[3]=A}}),Object.defineProperty(GA.prototype,"e",{get:function(){return this._matrix[4]},set:function(A){this._matrix[4]=A}}),Object.defineProperty(GA.prototype,"f",{get:function(){return this._matrix[5]},set:function(A){this._matrix[5]=A}}),Object.defineProperty(GA.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(GA.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(GA.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(GA.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),GA.prototype.join=function(A){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(b).join(A)},GA.prototype.multiply=function(A){var t=A.sx*this.sx+A.shy*this.shx,e=A.sx*this.shy+A.shy*this.sy,r=A.shx*this.sx+A.sy*this.shx,n=A.shx*this.shy+A.sy*this.sy,i=A.tx*this.sx+A.ty*this.shx+this.tx,o=A.tx*this.shy+A.ty*this.sy+this.ty;return new GA(t,e,r,n,i,o)},GA.prototype.decompose=function(){var A=this.sx,t=this.shy,e=this.shx,r=this.sy,n=this.tx,i=this.ty,o=Math.sqrt(A*A+t*t),s=(A/=o)*e+(t/=o)*r;e-=A*s,r-=t*s;var a=Math.sqrt(e*e+r*r);return s/=a,A*(r/=a)<t*(e/=a)&&(A=-A,t=-t,s=-s,o=-o),{scale:new GA(o,0,0,a,0,0),translate:new GA(1,0,0,1,n,i),rotate:new GA(A,t,-t,A,0,0),skew:new GA(1,0,s,1,0,0)}},GA.prototype.toString=function(A){return this.join(" ")},GA.prototype.inversed=function(){var A=this.sx,t=this.shy,e=this.shx,r=this.sy,n=this.tx,i=this.ty,o=1/(A*r-t*e),s=r*o,a=-t*o,c=-e*o,u=A*o;return new GA(s,a,c,u,-s*n-c*i,-a*n-u*i)},GA.prototype.applyToPoint=function(A){var t=A.x*this.sx+A.y*this.shx+this.tx,e=A.x*this.shy+A.y*this.sy+this.ty;return new de(t,e)},GA.prototype.applyToRectangle=function(A){var t=this.applyToPoint(A),e=this.applyToPoint(new de(A.x+A.w,A.y+A.h));return new ge(t.x,t.y,e.x-t.x,e.y-t.y)},GA.prototype.clone=function(){var A=this.sx,t=this.shy,e=this.shx,r=this.sy,n=this.tx,i=this.ty;return new GA(A,t,e,r,n,i)},B.Matrix=GA;var VA=B.matrixMult=function(A,t){return t.multiply(A)},qA=new GA(1,0,0,1,0,0);B.unitMatrix=B.identityMatrix=qA;var XA=function(A,t){if(!xA[A]){var e=(t instanceof HA?"Sh":"P")+(Object.keys(bA).length+1).toString(10);t.id=e,xA[A]=e,bA[e]=t,OA.publish("addPattern",t)}};B.ShadingPattern=HA,B.TilingPattern=NA,B.addShadingPattern=function(A,t){return U("addShadingPattern()"),XA(A,t),this},B.beginTilingPattern=function(A){U("beginTilingPattern()"),we(A.boundingBox[0],A.boundingBox[1],A.boundingBox[2]-A.boundingBox[0],A.boundingBox[3]-A.boundingBox[1],A.matrix)},B.endTilingPattern=function(A,t){U("endTilingPattern()"),t.stream=J[K].join("\n"),XA(A,t),OA.publish("endTilingPattern",t),jA.pop().restore()};var JA,WA=B.__private__.newObject=function(){var A=zA();return YA(A,!0),A},zA=B.__private__.newObjectDeferred=function(){return j++,G[j]=function(){return q},j},YA=function(A,t){return t="boolean"==typeof t&&t,G[A]=q,t&&Z(A+" 0 obj"),A},ZA=B.__private__.newAdditionalObject=function(){var A={objId:zA(),content:""};return X.push(A),A},$A=zA(),At=zA(),tt=B.__private__.decodeColorString=function(A){var t=A.split(" ");if(2!==t.length||"g"!==t[1]&&"G"!==t[1])5!==t.length||"k"!==t[4]&&"K"!==t[4]||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),"r"]);else{var e=parseFloat(t[0]);t=[e,e,e,"r"]}for(var r="#",n=0;n<3;n++)r+=("0"+Math.floor(255*parseFloat(t[n])).toString(16)).slice(-2);return r},et=B.__private__.encodeColorString=function(A){var t;"string"==typeof A&&(A={ch1:A});var e=A.ch1,r=A.ch2,n=A.ch3,i=A.ch4,o="draw"===A.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof e&&"#"!==e.charAt(0)){var a=new cA(e);if(a.ok)e=a.toHex();else if(!/^\d*\.?\d*$/.test(e))throw new Error('Invalid color "'+e+'" passed to jsPDF.encodeColorString.')}if("string"==typeof e&&/^#[0-9A-Fa-f]{3}$/.test(e)&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),"string"==typeof e&&/^#[0-9A-Fa-f]{6}$/.test(e)){var c=parseInt(e.substr(1),16);e=c>>16&255,r=c>>8&255,n=255&c}if(void 0===r||void 0===i&&e===r&&r===n)if("string"==typeof e)t=e+" "+o[0];else if(2===A.precision)t=I(e/255)+" "+o[0];else t=E(e/255)+" "+o[0];else if(void 0===i||"object"===s(i)){if(i&&!isNaN(i.a)&&0===i.a)return["1.","1.","1.",o[1]].join(" ");if("string"==typeof e)t=[e,r,n,o[1]].join(" ");else if(2===A.precision)t=[I(e/255),I(r/255),I(n/255),o[1]].join(" ");else t=[E(e/255),E(r/255),E(n/255),o[1]].join(" ")}else if("string"==typeof e)t=[e,r,n,i,o[2]].join(" ");else if(2===A.precision)t=[I(e),I(r),I(n),I(i),o[2]].join(" ");else t=[E(e),E(r),E(n),E(i),o[2]].join(" ");return t},rt=B.__private__.getFilters=function(){return o},nt=B.__private__.putStream=function(A){var t=(A=A||{}).data||"",e=A.filters||rt(),r=A.alreadyAppliedFilters||[],n=A.addLength1||!1,i=t.length,o=A.objectId,s=function(A){return A};if(null!==l&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==l&&(s=Nt.encryptor(o,0));var a={};!0===e&&(e=["FlateEncode"]);var c=A.additionalKeyValues||[],u=(a=void 0!==SA.API.processDataByFilters?SA.API.processDataByFilters(t,e):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==a.data.length&&(c.push({key:"Length",value:a.data.length}),!0===n&&c.push({key:"Length1",value:i})),0!=u.length)if(u.split("/").length-1==1)c.push({key:"Filter",value:u});else{c.push({key:"Filter",value:"["+u+"]"});for(var h=0;h<c.length;h+=1)if("DecodeParms"===c[h].key){for(var f=[],B=0;B<a.reverseChain.split("/").length-1;B+=1)f.push("null");f.push(c[h].value),c[h].value="["+f.join(" ")+"]"}}Z("<<");for(var d=0;d<c.length;d++)Z("/"+c[d].key+" "+c[d].value);Z(">>"),0!==a.data.length&&(Z("stream"),Z(s(a.data)),Z("endstream"))},it=B.__private__.putPage=function(A){var t=A.number,e=A.data,r=A.objId,n=A.contentsObjId;YA(r,!0),Z("<</Type /Page"),Z("/Parent "+A.rootDictionaryObjId+" 0 R"),Z("/Resources "+A.resourceDictionaryObjId+" 0 R"),Z("/MediaBox ["+parseFloat(b(A.mediaBox.bottomLeftX))+" "+parseFloat(b(A.mediaBox.bottomLeftY))+" "+b(A.mediaBox.topRightX)+" "+b(A.mediaBox.topRightY)+"]"),null!==A.cropBox&&Z("/CropBox ["+b(A.cropBox.bottomLeftX)+" "+b(A.cropBox.bottomLeftY)+" "+b(A.cropBox.topRightX)+" "+b(A.cropBox.topRightY)+"]"),null!==A.bleedBox&&Z("/BleedBox ["+b(A.bleedBox.bottomLeftX)+" "+b(A.bleedBox.bottomLeftY)+" "+b(A.bleedBox.topRightX)+" "+b(A.bleedBox.topRightY)+"]"),null!==A.trimBox&&Z("/TrimBox ["+b(A.trimBox.bottomLeftX)+" "+b(A.trimBox.bottomLeftY)+" "+b(A.trimBox.topRightX)+" "+b(A.trimBox.topRightY)+"]"),null!==A.artBox&&Z("/ArtBox ["+b(A.artBox.bottomLeftX)+" "+b(A.artBox.bottomLeftY)+" "+b(A.artBox.topRightX)+" "+b(A.artBox.topRightY)+"]"),"number"==typeof A.userUnit&&1!==A.userUnit&&Z("/UserUnit "+A.userUnit),OA.publish("putPage",{objId:r,pageContext:MA[t],pageNumber:t,page:e}),Z("/Contents "+n+" 0 R"),Z(">>"),Z("endobj");var i=e.join("\n");return C===Q&&(i+="\nQ"),YA(n,!0),nt({data:i,filters:rt(),objectId:n}),Z("endobj"),r},ot=B.__private__.putPages=function(){var A,t,e=[];for(A=1;A<=_A;A++)MA[A].objId=zA(),MA[A].contentsObjId=zA();for(A=1;A<=_A;A++)e.push(it({number:A,data:J[A],objId:MA[A].objId,contentsObjId:MA[A].contentsObjId,mediaBox:MA[A].mediaBox,cropBox:MA[A].cropBox,bleedBox:MA[A].bleedBox,trimBox:MA[A].trimBox,artBox:MA[A].artBox,userUnit:MA[A].userUnit,rootDictionaryObjId:$A,resourceDictionaryObjId:At}));YA($A,!0),Z("<</Type /Pages");var r="/Kids [";for(t=0;t<_A;t++)r+=e[t]+" 0 R ";Z(r+"]"),Z("/Count "+_A),Z(">>"),Z("endobj"),OA.publish("postPutPages")},st=function(A){OA.publish("putFont",{font:A,out:Z,newObject:WA,putStream:nt}),!0!==A.isAlreadyPutted&&(A.objectNumber=WA(),Z("<<"),Z("/Type /Font"),Z("/BaseFont /"+LA(A.postScriptName)),Z("/Subtype /Type1"),"string"==typeof A.encoding&&Z("/Encoding /"+A.encoding),Z("/FirstChar 32"),Z("/LastChar 255"),Z(">>"),Z("endobj"))},at=function(A){A.objectNumber=WA();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[b(A.x),b(A.y),b(A.x+A.width),b(A.y+A.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+A.matrix.toString()+"]"});var e=A.pages[1].join("\n");nt({data:e,additionalKeyValues:t,objectId:A.objectNumber}),Z("endobj")},ct=function(A,t){t||(t=21);var e=WA(),r=function(A,t){var e,r=[],n=1/(t-1);for(e=0;e<1;e+=n)r.push(e);if(r.push(1),0!=A[0].offset){var i={offset:0,color:A[0].color};A.unshift(i)}if(1!=A[A.length-1].offset){var o={offset:1,color:A[A.length-1].color};A.push(o)}for(var s="",a=0,c=0;c<r.length;c++){for(e=r[c];e>A[a+1].offset;)a++;var u=A[a].offset,l=(e-u)/(A[a+1].offset-u),h=A[a].color,f=A[a+1].color;s+=R(Math.round((1-l)*h[0]+l*f[0]).toString(16))+R(Math.round((1-l)*h[1]+l*f[1]).toString(16))+R(Math.round((1-l)*h[2]+l*f[2]).toString(16))}return s.trim()}(A.colors,t),n=[];n.push({key:"FunctionType",value:"0"}),n.push({key:"Domain",value:"[0.0 1.0]"}),n.push({key:"Size",value:"["+t+"]"}),n.push({key:"BitsPerSample",value:"8"}),n.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),n.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),nt({data:r,additionalKeyValues:n,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:e}),Z("endobj"),A.objectNumber=WA(),Z("<< /ShadingType "+A.type),Z("/ColorSpace /DeviceRGB");var i="/Coords ["+b(parseFloat(A.coords[0]))+" "+b(parseFloat(A.coords[1]))+" ";2===A.type?i+=b(parseFloat(A.coords[2]))+" "+b(parseFloat(A.coords[3])):i+=b(parseFloat(A.coords[2]))+" "+b(parseFloat(A.coords[3]))+" "+b(parseFloat(A.coords[4]))+" "+b(parseFloat(A.coords[5])),Z(i+="]"),A.matrix&&Z("/Matrix ["+A.matrix.toString()+"]"),Z("/Function "+e+" 0 R"),Z("/Extend [true true]"),Z(">>"),Z("endobj")},ut=function(A,t){var e=zA(),r=WA();t.push({resourcesOid:e,objectOid:r}),A.objectNumber=r;var n=[];n.push({key:"Type",value:"/Pattern"}),n.push({key:"PatternType",value:"1"}),n.push({key:"PaintType",value:"1"}),n.push({key:"TilingType",value:"1"}),n.push({key:"BBox",value:"["+A.boundingBox.map(b).join(" ")+"]"}),n.push({key:"XStep",value:b(A.xStep)}),n.push({key:"YStep",value:b(A.yStep)}),n.push({key:"Resources",value:e+" 0 R"}),A.matrix&&n.push({key:"Matrix",value:"["+A.matrix.toString()+"]"}),nt({data:A.stream,additionalKeyValues:n,objectId:A.objectNumber}),Z("endobj")},lt=function(A){for(var t in A.objectNumber=WA(),Z("<<"),A)switch(t){case"opacity":Z("/ca "+I(A[t]));break;case"stroke-opacity":Z("/CA "+I(A[t]))}Z(">>"),Z("endobj")},ht=function(A){YA(A.resourcesOid,!0),Z("<<"),Z("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var A in Z("/Font <<"),vA)vA.hasOwnProperty(A)&&(!1===h||!0===h&&f.hasOwnProperty(A))&&Z("/"+A+" "+vA[A].objectNumber+" 0 R");Z(">>")}(),function(){if(Object.keys(bA).length>0){for(var A in Z("/Shading <<"),bA)bA.hasOwnProperty(A)&&bA[A]instanceof HA&&bA[A].objectNumber>=0&&Z("/"+A+" "+bA[A].objectNumber+" 0 R");OA.publish("putShadingPatternDict"),Z(">>")}}(),function(A){if(Object.keys(bA).length>0){for(var t in Z("/Pattern <<"),bA)bA.hasOwnProperty(t)&&bA[t]instanceof B.TilingPattern&&bA[t].objectNumber>=0&&bA[t].objectNumber<A&&Z("/"+t+" "+bA[t].objectNumber+" 0 R");OA.publish("putTilingPatternDict"),Z(">>")}}(A.objectOid),function(){if(Object.keys(PA).length>0){var A;for(A in Z("/ExtGState <<"),PA)PA.hasOwnProperty(A)&&PA[A].objectNumber>=0&&Z("/"+A+" "+PA[A].objectNumber+" 0 R");OA.publish("putGStateDict"),Z(">>")}}(),function(){for(var A in Z("/XObject <<"),TA)TA.hasOwnProperty(A)&&TA[A].objectNumber>=0&&Z("/"+A+" "+TA[A].objectNumber+" 0 R");OA.publish("putXobjectDict"),Z(">>")}(),Z(">>"),Z("endobj")},ft=function(){var A=[];(function(){for(var A in vA)vA.hasOwnProperty(A)&&(!1===h||!0===h&&f.hasOwnProperty(A))&&st(vA[A])})(),function(){var A;for(A in PA)PA.hasOwnProperty(A)&&lt(PA[A])}(),function(){for(var A in TA)TA.hasOwnProperty(A)&&at(TA[A])}(),function(A){var t;for(t in bA)bA.hasOwnProperty(t)&&(bA[t]instanceof HA?ct(bA[t]):bA[t]instanceof NA&&ut(bA[t],A))}(A),OA.publish("putResources"),A.forEach(ht),ht({resourcesOid:At,objectOid:Number.MAX_SAFE_INTEGER}),OA.publish("postPutResources")},Bt=function(A){FA[A.fontName]=FA[A.fontName]||{},FA[A.fontName][A.fontStyle]=A.id},dt=function(A,t,e,r,n){var i={id:"F"+(Object.keys(vA).length+1).toString(10),postScriptName:A,fontName:t,fontStyle:e,encoding:r,isStandardFont:n||!1,metadata:{}};return OA.publish("addFont",{font:i,instance:this}),vA[i.id]=i,Bt(i),i.id},gt=B.__private__.pdfEscape=B.pdfEscape=function(A,t){return function(A,t){var e,r,n,i,o,s,a,c,u;if(n=(t=t||{}).sourceEncoding||"Unicode",o=t.outputEncoding,(t.autoencode||o)&&vA[pA].metadata&&vA[pA].metadata[n]&&vA[pA].metadata[n].encoding&&(i=vA[pA].metadata[n].encoding,!o&&vA[pA].encoding&&(o=vA[pA].encoding),!o&&i.codePages&&(o=i.codePages[0]),"string"==typeof o&&(o=i[o]),o)){for(a=!1,s=[],e=0,r=A.length;e<r;e++)(c=o[A.charCodeAt(e)])?s.push(String.fromCharCode(c)):s.push(A[e]),s[e].charCodeAt(0)>>8&&(a=!0);A=s.join("")}for(e=A.length;void 0===a&&0!==e;)A.charCodeAt(e-1)>>8&&(a=!0),e--;if(!a)return A;for(s=t.noBOM?[]:[254,255],e=0,r=A.length;e<r;e++){if((u=(c=A.charCodeAt(e))>>8)>>8)throw new Error("Character at position "+e+" of string '"+A+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(u),s.push(c-(u<<8))}return String.fromCharCode.apply(void 0,s)}(A,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},pt=B.__private__.beginPage=function(A){J[++_A]=[],MA[_A]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(A[0]),topRightY:Number(A[1])}},Qt(_A),Y(J[K])},wt=function(A,t){var r,i,o;switch(e=t||e,"string"==typeof A&&(r=w(A.toLowerCase()),Array.isArray(r)&&(i=r[0],o=r[1])),Array.isArray(A)&&(i=A[0]*wA,o=A[1]*wA),isNaN(i)&&(i=n[0],o=n[1]),(i>14400||o>14400)&&(eA.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),o=Math.min(14400,o)),n=[i,o],e.substr(0,1)){case"l":o>i&&(n=[o,i]);break;case"p":i>o&&(n=[o,i])}pt(n),Zt(zt),Z(oe),0!==he&&Z(he+" J"),0!==fe&&Z(fe+" j"),OA.publish("addPage",{pageNumber:_A})},mt=function(A){A>0&&A<=_A&&(J.splice(A,1),MA.splice(A,1),_A--,K>_A&&(K=_A),this.setPage(K))},Qt=function(A){A>0&&A<=_A&&(K=A)},Ct=B.__private__.getNumberOfPages=B.getNumberOfPages=function(){return J.length-1},vt=function(A,t,e){var r,n=void 0;return e=e||{},A=void 0!==A?A:vA[pA].fontName,t=void 0!==t?t:vA[pA].fontStyle,r=A.toLowerCase(),void 0!==FA[r]&&void 0!==FA[r][t]?n=FA[r][t]:void 0!==FA[A]&&void 0!==FA[A][t]?n=FA[A][t]:!1===e.disableWarning&&eA.warn("Unable to look up font label for font '"+A+"', '"+t+"'. Refer to getFontList() for available fonts."),n||e.noFallback||null==(n=FA.times[t])&&(n=FA.times.normal),n},Ft=B.__private__.putInfo=function(){var A=WA(),t=function(A){return A};for(var e in null!==l&&(t=Nt.encryptor(A,0)),Z("<<"),Z("/Producer ("+gt(t("jsPDF "+SA.version))+")"),gA)gA.hasOwnProperty(e)&&gA[e]&&Z("/"+e.substr(0,1).toUpperCase()+e.substr(1)+" ("+gt(t(gA[e]))+")");Z("/CreationDate ("+gt(t(N))+")"),Z(">>"),Z("endobj")},yt=B.__private__.putCatalog=function(A){var t=(A=A||{}).rootDictionaryObjId||$A;switch(WA(),Z("<<"),Z("/Type /Catalog"),Z("/Pages "+t+" 0 R"),iA||(iA="fullwidth"),iA){case"fullwidth":Z("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Z("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Z("/OpenAction [3 0 R /Fit]");break;case"original":Z("/OpenAction [3 0 R /XYZ null null 1]");break;default:var e=""+iA;"%"===e.substr(e.length-1)&&(iA=parseInt(iA)/100),"number"==typeof iA&&Z("/OpenAction [3 0 R /XYZ null null "+I(iA)+"]")}switch(fA||(fA="continuous"),fA){case"continuous":Z("/PageLayout /OneColumn");break;case"single":Z("/PageLayout /SinglePage");break;case"two":case"twoleft":Z("/PageLayout /TwoColumnLeft");break;case"tworight":Z("/PageLayout /TwoColumnRight")}lA&&Z("/PageMode /"+lA),OA.publish("putCatalog"),Z(">>"),Z("endobj")},bt=B.__private__.putTrailer=function(){Z("trailer"),Z("<<"),Z("/Size "+(j+1)),Z("/Root "+j+" 0 R"),Z("/Info "+(j-1)+" 0 R"),null!==l&&Z("/Encrypt "+Nt.oid+" 0 R"),Z("/ID [ <"+S+"> <"+S+"> ]"),Z(">>")},Ut=B.__private__.putHeader=function(){Z("%PDF-"+d),Z("%ºß¬à")},Lt=B.__private__.putXRef=function(){var A="0000000000";Z("xref"),Z("0 "+(j+1)),Z("0000000000 65535 f ");for(var t=1;t<=j;t++)"function"==typeof G[t]?Z((A+G[t]()).slice(-10)+" 00000 n "):void 0!==G[t]?Z((A+G[t]).slice(-10)+" 00000 n "):Z("0000000000 00000 n ")},It=B.__private__.buildDocument=function(){j=0,q=0,V=[],G=[],X=[],$A=zA(),At=zA(),Y(V),OA.publish("buildDocument"),Ut(),ot(),function(){OA.publish("putAdditionalObjects");for(var A=0;A<X.length;A++){var t=X[A];YA(t.objId,!0),Z(t.content),Z("endobj")}OA.publish("postPutAdditionalObjects")}(),ft(),null!==l&&(Nt.oid=WA(),Z("<<"),Z("/Filter /Standard"),Z("/V "+Nt.v),Z("/R "+Nt.r),Z("/U <"+Nt.toHexString(Nt.U)+">"),Z("/O <"+Nt.toHexString(Nt.O)+">"),Z("/P "+Nt.P),Z(">>"),Z("endobj")),Ft(),yt();var A=q;return Lt(),bt(),Z("startxref"),Z(""+A),Z("%%EOF"),Y(J[K]),V.join("\n")},Et=B.__private__.getBlob=function(A){return new Blob([tA(A)],{type:"application/pdf"})},xt=B.output=B.__private__.output=(JA=function(A,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",A){case void 0:return It();case"save":B.save(t.filename);break;case"arraybuffer":return tA(It());case"blob":return Et(It());case"bloburi":case"bloburl":if(void 0!==AA.URL&&"function"==typeof AA.URL.createObjectURL)return AA.URL&&AA.URL.createObjectURL(Et(It()))||void 0;eA.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var e="",r=It();try{e=sA(r)}catch(A){e=sA(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+t.filename+";base64,"+e;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(AA)){var n="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",i=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';t.pdfObjectUrl&&(n=t.pdfObjectUrl,i="");var o='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+n+'"'+i+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(t)+");<\/script></body></html>",s=AA.open();return null!==s&&s.document.write(o),s}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(AA)){var a='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(t.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+t.filename+'" width="500px" height="400px" /></body></html>',c=AA.open();if(null!==c){c.document.write(a);var u=this;c.document.documentElement.querySelector("#pdfViewer").onload=function(){c.document.title=t.filename,c.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(u.output("bloburl"))}}return c}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(AA))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var l='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",t)+'"></iframe></body></html>',h=AA.open();if(null!==h&&(h.document.write(l),h.document.title=t.filename),h||"undefined"==typeof safari)return h;break;case"datauri":case"dataurl":return AA.document.location.href=this.output("datauristring",t);default:return null}},JA.foo=function(){try{return JA.apply(this,arguments)}catch(e){var A=e.stack||"";~A.indexOf(" at ")&&(A=A.split(" at ")[1]);var t="Error in function "+A.split("\n")[0].split("<")[0]+": "+e.message;if(!AA.console)throw new Error(t);AA.console.error(t,e),AA.alert&&alert(t)}},JA.foo.bar=JA,JA.foo),Ht=function(A){return!0===Array.isArray(KA)&&KA.indexOf(A)>-1};switch(r){case"pt":wA=1;break;case"mm":wA=72/25.4;break;case"cm":wA=72/2.54;break;case"in":wA=72;break;case"px":wA=1==Ht("px_scaling")?.75:96/72;break;case"pc":case"em":wA=12;break;case"ex":wA=6;break;default:if("number"!=typeof r)throw new Error("Invalid unit: "+r);wA=r}var Nt=null;M(),D();var St=B.__private__.getPageInfo=B.getPageInfo=function(A){if(isNaN(A)||A%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:MA[A].objId,pageNumber:A,pageContext:MA[A]}},Pt=B.__private__.getPageInfoByObjId=function(A){if(isNaN(A)||A%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in MA)if(MA[t].objId===A)break;return St(t)},Dt=B.__private__.getCurrentPageInfo=B.getCurrentPageInfo=function(){return{objId:MA[K].objId,pageNumber:K,pageContext:MA[K]}};B.addPage=function(){return wt.apply(this,arguments),this},B.setPage=function(){return Qt.apply(this,arguments),Y.call(this,J[K]),this},B.insertPage=function(A){return this.addPage(),this.movePage(K,A),this},B.movePage=function(A,t){var e,r;if(A>t){e=J[A],r=MA[A];for(var n=A;n>t;n--)J[n]=J[n-1],MA[n]=MA[n-1];J[t]=e,MA[t]=r,this.setPage(t)}else if(A<t){e=J[A],r=MA[A];for(var i=A;i<t;i++)J[i]=J[i+1],MA[i]=MA[i+1];J[t]=e,MA[t]=r,this.setPage(t)}return this},B.deletePage=function(){return mt.apply(this,arguments),this},B.__private__.text=B.text=function(A,t,e,r,n){var i,o,a,c,u,l,h,B,d,g=(r=r||{}).scope||this;if("number"==typeof A&&"number"==typeof t&&("string"==typeof e||Array.isArray(e))){var p=e;e=t,t=A,A=p}if(arguments[3]instanceof GA==0?(a=arguments[4],c=arguments[5],"object"===s(h=arguments[3])&&null!==h||("string"==typeof a&&(c=a,a=null),"string"==typeof h&&(c=h,h=null),"number"==typeof h&&(a=h,h=null),r={flags:h,angle:a,align:c})):(U("The transform parameter of text() with a Matrix value"),d=n),isNaN(t)||isNaN(e)||null==A)throw new Error("Invalid arguments passed to jsPDF.text");if(0===A.length)return g;var w,m="",v="number"==typeof r.lineHeightFactor?r.lineHeightFactor:Wt,F=g.internal.scaleFactor;function y(A){return A=A.split("\t").join(Array(r.TabLen||9).join(" ")),gt(A,h)}function L(A){for(var t,e=A.concat(),r=[],n=e.length;n--;)"string"==typeof(t=e.shift())?r.push(t):Array.isArray(A)&&(1===t.length||void 0===t[1]&&void 0===t[2])?r.push(t[0]):r.push([t[0],t[1],t[2]]);return r}function I(A,t){var e;if("string"==typeof A)e=t(A)[0];else if(Array.isArray(A)){for(var r,n,i=A.concat(),o=[],s=i.length;s--;)"string"==typeof(r=i.shift())?o.push(t(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(n=t(r[0],r[1],r[2]),o.push([n[0],n[1],n[2]]));e=o}return e}var E=!1,H=!0;if("string"==typeof A)E=!0;else if(Array.isArray(A)){var N=A.concat();o=[];for(var S,P=N.length;P--;)("string"!=typeof(S=N.shift())||Array.isArray(S)&&"string"!=typeof S[0])&&(H=!1);E=H}if(!1===E)throw new Error('Type of text must be string or Array. "'+A+'" is not recognized.');"string"==typeof A&&(A=A.match(/[\r?\n]/)?A.split(/\r\n|\r|\n/g):[A]);var D=nA/g.internal.scaleFactor,k=D*(v-1);switch(r.baseline){case"bottom":e-=k;break;case"top":e+=D-k;break;case"hanging":e+=D-2*k;break;case"middle":e+=D/2-k}if((l=r.maxWidth||0)>0&&("string"==typeof A?A=g.splitTextToSize(A,l):"[object Array]"===Object.prototype.toString.call(A)&&(A=A.reduce((function(A,t){return A.concat(g.splitTextToSize(t,l))}),[]))),i={text:A,x:t,y:e,options:r,mutex:{pdfEscape:gt,activeFontKey:pA,fonts:vA,activeFontSize:nA}},OA.publish("preProcessText",i),A=i.text,a=(r=i.options).angle,d instanceof GA==0&&a&&"number"==typeof a){a*=Math.PI/180,0===r.rotationDirection&&(a=-a),C===Q&&(a=-a);var _=Math.cos(a),M=Math.sin(a);d=new GA(_,M,-M,_,0,0)}else a&&a instanceof GA&&(d=a);C!==Q||d||(d=qA),void 0!==(u=r.charSpace||ue)&&(m+=b(x(u))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(B=r.horizontalScale)&&(m+=b(100*B)+" Tz\n"),r.lang;var O=-1,K=void 0!==r.renderingMode?r.renderingMode:r.stroke,T=g.internal.getCurrentPageInfo().pageContext;switch(K){case 0:case!1:case"fill":O=0;break;case 1:case!0:case"stroke":O=1;break;case 2:case"fillThenStroke":O=2;break;case 3:case"invisible":O=3;break;case 4:case"fillAndAddForClipping":O=4;break;case 5:case"strokeAndAddPathForClipping":O=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":O=6;break;case 7:case"addToPathForClipping":O=7}var R=void 0!==T.usedRenderingMode?T.usedRenderingMode:-1;-1!==O?m+=O+" Tr\n":-1!==R&&(m+="0 Tr\n"),-1!==O&&(T.usedRenderingMode=O),c=r.align||"left";var j,G=nA*v,V=g.internal.pageSize.getWidth(),q=vA[pA];u=r.charSpace||ue,l=r.maxWidth||0,h=Object.assign({autoencode:!0,noBOM:!0},r.flags);var X=[],J=function(A){return g.getStringUnitWidth(A,{font:q,charSpace:u,fontSize:nA,doKerning:!1})*nA/F};if("[object Array]"===Object.prototype.toString.call(A)){var W;o=L(A),"left"!==c&&(j=o.map(J));var z,Y=0;if("right"===c){t-=j[0],A=[],P=o.length;for(var $=0;$<P;$++)0===$?(z=ee(t),W=re(e)):(z=x(Y-j[$]),W=-G),A.push([o[$],z,W]),Y=j[$]}else if("center"===c){t-=j[0]/2,A=[],P=o.length;for(var AA=0;AA<P;AA++)0===AA?(z=ee(t),W=re(e)):(z=x((Y-j[AA])/2),W=-G),A.push([o[AA],z,W]),Y=j[AA]}else if("left"===c){A=[],P=o.length;for(var tA=0;tA<P;tA++)A.push(o[tA])}else if("justify"===c&&"Identity-H"===q.encoding){A=[],P=o.length,l=0!==l?l:V;for(var eA=0,rA=0;rA<P;rA++)if(W=0===rA?re(e):-G,z=0===rA?ee(t):eA,rA<P-1){var iA=x((l-j[rA])/(o[rA].split(" ").length-1)),oA=o[rA].split(" ");A.push([oA[0]+" ",z,W]),eA=0;for(var sA=1;sA<oA.length;sA++){var aA=(J(oA[sA-1]+" "+oA[sA])-J(oA[sA]))*F+iA;sA==oA.length-1?A.push([oA[sA],aA,0]):A.push([oA[sA]+" ",aA,0]),eA-=aA}}else A.push([o[rA],z,W]);A.push(["",eA,0])}else{if("justify"!==c)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(A=[],P=o.length,l=0!==l?l:V,rA=0;rA<P;rA++)W=0===rA?re(e):-G,z=0===rA?ee(t):0,rA<P-1?X.push(b(x((l-j[rA])/(o[rA].split(" ").length-1)))):X.push(0),A.push([o[rA],z,W])}}!0===("boolean"==typeof r.R2L?r.R2L:uA)&&(A=I(A,(function(A,t,e){return[A.split("").reverse().join(""),t,e]}))),i={text:A,x:t,y:e,options:r,mutex:{pdfEscape:gt,activeFontKey:pA,fonts:vA,activeFontSize:nA}},OA.publish("postProcessText",i),A=i.text,w=i.mutex.isHex||!1;var cA=vA[pA].encoding;"WinAnsiEncoding"!==cA&&"StandardEncoding"!==cA||(A=I(A,(function(A,t,e){return[y(A),t,e]}))),o=L(A),A=[];for(var lA,hA,fA,BA=Array.isArray(o[0])?1:0,dA="",gA=function(A,t,e){var n="";return e instanceof GA?(e="number"==typeof r.angle?VA(e,new GA(1,0,0,1,A,t)):VA(new GA(1,0,0,1,A,t),e),C===Q&&(e=VA(new GA(1,0,0,-1,0,0),e)),n=e.join(" ")+" Tm\n"):n=b(A)+" "+b(t)+" Td\n",n},wA=0;wA<o.length;wA++){switch(dA="",BA){case 1:fA=(w?"<":"(")+o[wA][0]+(w?">":")"),lA=parseFloat(o[wA][1]),hA=parseFloat(o[wA][2]);break;case 0:fA=(w?"<":"(")+o[wA]+(w?">":")"),lA=ee(t),hA=re(e)}void 0!==X&&void 0!==X[wA]&&(dA=X[wA]+" Tw\n"),0===wA?A.push(dA+gA(lA,hA,d)+fA):0===BA?A.push(dA+fA):1===BA&&A.push(dA+gA(lA,hA,d)+fA)}A=0===BA?A.join(" Tj\nT* "):A.join(" Tj\n"),A+=" Tj\n";var mA="BT\n/";return mA+=pA+" "+nA+" Tf\n",mA+=b(nA*v)+" TL\n",mA+=ae+"\n",mA+=m,mA+=A,Z(mA+="ET"),f[pA]=!0,g};var kt=B.__private__.clip=B.clip=function(A){return Z("evenodd"===A?"W*":"W"),this};B.clipEvenOdd=function(){return kt("evenodd")},B.__private__.discardPath=B.discardPath=function(){return Z("n"),this};var _t=B.__private__.isValidStyle=function(A){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(A)&&(t=!0),t};B.__private__.setDefaultPathOperation=B.setDefaultPathOperation=function(A){return _t(A)&&(u=A),this};var Mt=B.__private__.getStyle=B.getStyle=function(A){var t=u;switch(A){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=A}return t},Ot=B.close=function(){return Z("h"),this};B.stroke=function(){return Z("S"),this},B.fill=function(A){return Kt("f",A),this},B.fillEvenOdd=function(A){return Kt("f*",A),this},B.fillStroke=function(A){return Kt("B",A),this},B.fillStrokeEvenOdd=function(A){return Kt("B*",A),this};var Kt=function(A,t){"object"===s(t)?jt(t,A):Z(A)},Tt=function(A){null===A||C===Q&&void 0===A||(A=Mt(A),Z(A))};function Rt(A,t,e,r,n){var i=new NA(t||this.boundingBox,e||this.xStep,r||this.yStep,this.gState,n||this.matrix);i.stream=this.stream;var o=A+"$$"+this.cloneIndex+++"$$";return XA(o,i),i}var jt=function(A,t){var e=xA[A.key],r=bA[e];if(r instanceof HA)Z("q"),Z(Gt(t)),r.gState&&B.setGState(r.gState),Z(A.matrix.toString()+" cm"),Z("/"+e+" sh"),Z("Q");else if(r instanceof NA){var n=new GA(1,0,0,-1,0,ve());A.matrix&&(n=n.multiply(A.matrix||qA),e=Rt.call(r,A.key,A.boundingBox,A.xStep,A.yStep,n).id),Z("q"),Z("/Pattern cs"),Z("/"+e+" scn"),r.gState&&B.setGState(r.gState),Z(t),Z("Q")}},Gt=function(A){switch(A){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Vt=B.moveTo=function(A,t){return Z(b(x(A))+" "+b(H(t))+" m"),this},qt=B.lineTo=function(A,t){return Z(b(x(A))+" "+b(H(t))+" l"),this},Xt=B.curveTo=function(A,t,e,r,n,i){return Z([b(x(A)),b(H(t)),b(x(e)),b(H(r)),b(x(n)),b(H(i)),"c"].join(" ")),this};B.__private__.line=B.line=function(A,t,e,r,n){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||!_t(n))throw new Error("Invalid arguments passed to jsPDF.line");return C===m?this.lines([[e-A,r-t]],A,t,[1,1],n||"S"):this.lines([[e-A,r-t]],A,t,[1,1]).stroke()},B.__private__.lines=B.lines=function(A,t,e,r,n,i){var o,s,a,c,u,l,h,f,B,d,g,p;if("number"==typeof A&&(p=e,e=t,t=A,A=p),r=r||[1,1],i=i||!1,isNaN(t)||isNaN(e)||!Array.isArray(A)||!Array.isArray(r)||!_t(n)||"boolean"!=typeof i)throw new Error("Invalid arguments passed to jsPDF.lines");for(Vt(t,e),o=r[0],s=r[1],c=A.length,d=t,g=e,a=0;a<c;a++)2===(u=A[a]).length?(d=u[0]*o+d,g=u[1]*s+g,qt(d,g)):(l=u[0]*o+d,h=u[1]*s+g,f=u[2]*o+d,B=u[3]*s+g,d=u[4]*o+d,g=u[5]*s+g,Xt(l,h,f,B,d,g));return i&&Ot(),Tt(n),this},B.path=function(A){for(var t=0;t<A.length;t++){var e=A[t],r=e.c;switch(e.op){case"m":Vt(r[0],r[1]);break;case"l":qt(r[0],r[1]);break;case"c":Xt.apply(this,r);break;case"h":Ot()}}return this},B.__private__.rect=B.rect=function(A,t,e,r,n){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||!_t(n))throw new Error("Invalid arguments passed to jsPDF.rect");return C===m&&(r=-r),Z([b(x(A)),b(H(t)),b(x(e)),b(x(r)),"re"].join(" ")),Tt(n),this},B.__private__.triangle=B.triangle=function(A,t,e,r,n,i,o){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||!_t(o))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[e-A,r-t],[n-e,i-r],[A-n,t-i]],A,t,[1,1],o,!0),this},B.__private__.roundedRect=B.roundedRect=function(A,t,e,r,n,i,o){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||!_t(o))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return n=Math.min(n,.5*e),i=Math.min(i,.5*r),this.lines([[e-2*n,0],[n*s,0,n,i-i*s,n,i],[0,r-2*i],[0,i*s,-n*s,i,-n,i],[2*n-e,0],[-n*s,0,-n,-i*s,-n,-i],[0,2*i-r],[0,-i*s,n*s,-i,n,-i]],A+n,t,[1,1],o,!0),this},B.__private__.ellipse=B.ellipse=function(A,t,e,r,n){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||!_t(n))throw new Error("Invalid arguments passed to jsPDF.ellipse");var i=4/3*(Math.SQRT2-1)*e,o=4/3*(Math.SQRT2-1)*r;return Vt(A+e,t),Xt(A+e,t-o,A+i,t-r,A,t-r),Xt(A-i,t-r,A-e,t-o,A-e,t),Xt(A-e,t+o,A-i,t+r,A,t+r),Xt(A+i,t+r,A+e,t+o,A+e,t),Tt(n),this},B.__private__.circle=B.circle=function(A,t,e,r){if(isNaN(A)||isNaN(t)||isNaN(e)||!_t(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(A,t,e,e,r)},B.setFont=function(A,t,e){return e&&(t=y(t,e)),pA=vt(A,t,{disableWarning:!1}),this};var Jt=B.__private__.getFont=B.getFont=function(){return vA[vt.apply(B,arguments)]};B.__private__.getFontList=B.getFontList=function(){var A,t,e={};for(A in FA)if(FA.hasOwnProperty(A))for(t in e[A]=[],FA[A])FA[A].hasOwnProperty(t)&&e[A].push(t);return e},B.addFont=function(A,t,e,r,n){var i=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==i.indexOf(arguments[3])?n=arguments[3]:arguments[3]&&-1==i.indexOf(arguments[3])&&(e=y(e,r)),dt.call(this,A,t,e,n=n||"Identity-H")};var Wt,zt=A.lineWidth||.200025,Yt=B.__private__.getLineWidth=B.getLineWidth=function(){return zt},Zt=B.__private__.setLineWidth=B.setLineWidth=function(A){return zt=A,Z(b(x(A))+" w"),this};B.__private__.setLineDash=SA.API.setLineDash=SA.API.setLineDashPattern=function(A,t){if(A=A||[],t=t||0,isNaN(t)||!Array.isArray(A))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return A=A.map((function(A){return b(x(A))})).join(" "),t=b(x(t)),Z("["+A+"] "+t+" d"),this};var $t=B.__private__.getLineHeight=B.getLineHeight=function(){return nA*Wt};B.__private__.getLineHeight=B.getLineHeight=function(){return nA*Wt};var Ae=B.__private__.setLineHeightFactor=B.setLineHeightFactor=function(A){return"number"==typeof(A=A||1.15)&&(Wt=A),this},te=B.__private__.getLineHeightFactor=B.getLineHeightFactor=function(){return Wt};Ae(A.lineHeight);var ee=B.__private__.getHorizontalCoordinate=function(A){return x(A)},re=B.__private__.getVerticalCoordinate=function(A){return C===Q?A:MA[K].mediaBox.topRightY-MA[K].mediaBox.bottomLeftY-x(A)},ne=B.__private__.getHorizontalCoordinateString=B.getHorizontalCoordinateString=function(A){return b(ee(A))},ie=B.__private__.getVerticalCoordinateString=B.getVerticalCoordinateString=function(A){return b(re(A))},oe=A.strokeColor||"0 G";B.__private__.getStrokeColor=B.getDrawColor=function(){return tt(oe)},B.__private__.setStrokeColor=B.setDrawColor=function(A,t,e,r){return oe=et({ch1:A,ch2:t,ch3:e,ch4:r,pdfColorType:"draw",precision:2}),Z(oe),this};var se=A.fillColor||"0 g";B.__private__.getFillColor=B.getFillColor=function(){return tt(se)},B.__private__.setFillColor=B.setFillColor=function(A,t,e,r){return se=et({ch1:A,ch2:t,ch3:e,ch4:r,pdfColorType:"fill",precision:2}),Z(se),this};var ae=A.textColor||"0 g",ce=B.__private__.getTextColor=B.getTextColor=function(){return tt(ae)};B.__private__.setTextColor=B.setTextColor=function(A,t,e,r){return ae=et({ch1:A,ch2:t,ch3:e,ch4:r,pdfColorType:"text",precision:3}),this};var ue=A.charSpace,le=B.__private__.getCharSpace=B.getCharSpace=function(){return parseFloat(ue||0)};B.__private__.setCharSpace=B.setCharSpace=function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return ue=A,this};var he=0;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.__private__.setLineCap=B.setLineCap=function(A){var t=B.CapJoinStyles[A];if(void 0===t)throw new Error("Line cap style of '"+A+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return he=t,Z(t+" J"),this};var fe=0;B.__private__.setLineJoin=B.setLineJoin=function(A){var t=B.CapJoinStyles[A];if(void 0===t)throw new Error("Line join style of '"+A+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return fe=t,Z(t+" j"),this},B.__private__.setLineMiterLimit=B.__private__.setMiterLimit=B.setLineMiterLimit=B.setMiterLimit=function(A){if(A=A||0,isNaN(A))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Z(b(x(A))+" M"),this},B.GState=EA,B.setGState=function(A){(A="string"==typeof A?PA[DA[A]]:Be(null,A)).equals(kA)||(Z("/"+A.id+" gs"),kA=A)};var Be=function(A,t){if(!A||!DA[A]){var e=!1;for(var r in PA)if(PA.hasOwnProperty(r)&&PA[r].equals(t)){e=!0;break}if(e)t=PA[r];else{var n="GS"+(Object.keys(PA).length+1).toString(10);PA[n]=t,t.id=n}return A&&(DA[A]=t.id),OA.publish("addGState",t),t}};B.addGState=function(A,t){return Be(A,t),this},B.saveGraphicsState=function(){return Z("q"),yA.push({key:pA,size:nA,color:ae}),this},B.restoreGraphicsState=function(){Z("Q");var A=yA.pop();return pA=A.key,nA=A.size,ae=A.color,kA=null,this},B.setCurrentTransformationMatrix=function(A){return Z(A.toString()+" cm"),this},B.comment=function(A){return Z("#"+A),this};var de=function(A,t){var e=A||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(A){isNaN(A)||(e=parseFloat(A))}});var r=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(A){isNaN(A)||(r=parseFloat(A))}});var n="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return n},set:function(A){n=A.toString()}}),this},ge=function(A,t,e,r){de.call(this,A,t),this.type="rect";var n=e||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return n},set:function(A){isNaN(A)||(n=parseFloat(A))}});var i=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return i},set:function(A){isNaN(A)||(i=parseFloat(A))}}),this},pe=function(){this.page=_A,this.currentPage=K,this.pages=J.slice(0),this.pagesContext=MA.slice(0),this.x=mA,this.y=QA,this.matrix=CA,this.width=Qe(K),this.height=ve(K),this.outputDestination=z,this.id="",this.objectNumber=-1};pe.prototype.restore=function(){_A=this.page,K=this.currentPage,MA=this.pagesContext,J=this.pages,mA=this.x,QA=this.y,CA=this.matrix,Ce(K,this.width),Fe(K,this.height),z=this.outputDestination};var we=function(A,t,e,r,n){jA.push(new pe),_A=K=0,J=[],mA=A,QA=t,CA=n,pt([e,r])};for(var me in B.beginFormObject=function(A,t,e,r,n){return we(A,t,e,r,n),this},B.endFormObject=function(A){return function(A){if(RA[A])jA.pop().restore();else{var t=new pe,e="Xo"+(Object.keys(TA).length+1).toString(10);t.id=e,RA[A]=e,TA[e]=t,OA.publish("addFormObject",t),jA.pop().restore()}}(A),this},B.doFormObject=function(A,t){var e=TA[RA[A]];return Z("q"),Z(t.toString()+" cm"),Z("/"+e.id+" Do"),Z("Q"),this},B.getFormObject=function(A){var t=TA[RA[A]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},B.save=function(A,t){return A=A||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(aA(Et(It()),A),"function"==typeof aA.unload&&AA.setTimeout&&setTimeout(aA.unload,911),this):new Promise((function(t,e){try{var r=aA(Et(It()),A);"function"==typeof aA.unload&&AA.setTimeout&&setTimeout(aA.unload,911),t(r)}catch(A){e(A.message)}}))},SA.API)SA.API.hasOwnProperty(me)&&("events"===me&&SA.API.events.length?function(A,t){var e,r,n;for(n=t.length-1;-1!==n;n--)e=t[n][0],r=t[n][1],A.subscribe.apply(A,[e].concat("function"==typeof r?[r]:r))}(OA,SA.API.events):B[me]=SA.API[me]);var Qe=B.getPageWidth=function(A){return(MA[A=A||K].mediaBox.topRightX-MA[A].mediaBox.bottomLeftX)/wA},Ce=B.setPageWidth=function(A,t){MA[A].mediaBox.topRightX=t*wA+MA[A].mediaBox.bottomLeftX},ve=B.getPageHeight=function(A){return(MA[A=A||K].mediaBox.topRightY-MA[A].mediaBox.bottomLeftY)/wA},Fe=B.setPageHeight=function(A,t){MA[A].mediaBox.topRightY=t*wA+MA[A].mediaBox.bottomLeftY};return B.internal={pdfEscape:gt,getStyle:Mt,getFont:Jt,getFontSize:oA,getCharSpace:le,getTextColor:ce,getLineHeight:$t,getLineHeightFactor:te,getLineWidth:Yt,write:$,getHorizontalCoordinate:ee,getVerticalCoordinate:re,getCoordinateString:ne,getVerticalCoordinateString:ie,collections:{},newObject:WA,newAdditionalObject:ZA,newObjectDeferred:zA,newObjectDeferredBegin:YA,getFilters:rt,putStream:nt,events:OA,scaleFactor:wA,pageSize:{getWidth:function(){return Qe(K)},setWidth:function(A){Ce(K,A)},getHeight:function(){return ve(K)},setHeight:function(A){Fe(K,A)}},encryptionOptions:l,encryption:Nt,getEncryptor:function(A){return null!==l?Nt.encryptor(A,0):function(A){return A}},output:xt,getNumberOfPages:Ct,pages:J,out:Z,f2:I,f3:E,getPageInfo:St,getPageInfoByObjId:Pt,getCurrentPageInfo:Dt,getPDFVersion:g,Point:de,Rectangle:ge,Matrix:GA,hasHotfix:Ht},Object.defineProperty(B.internal.pageSize,"width",{get:function(){return Qe(K)},set:function(A){Ce(K,A)},enumerable:!0,configurable:!0}),Object.defineProperty(B.internal.pageSize,"height",{get:function(){return ve(K)},set:function(A){Fe(K,A)},enumerable:!0,configurable:!0}),function(A){for(var t=0,e=rA.length;t<e;t++){var r=dt.call(this,A[t][0],A[t][1],A[t][2],rA[t][3],!0);!1===h&&(f[r]=!0);var n=A[t][0].split("-");Bt({id:r,fontName:n[0],fontStyle:n[1]||""})}OA.publish("addFonts",{fonts:vA,dictionary:FA})}.call(B,rA),pA="F1",wt(n,e),OA.publish("initialized"),B}UA.prototype.lsbFirstWord=function(A){return String.fromCharCode(255&A,A>>8&255,A>>16&255,A>>24&255)},UA.prototype.toHexString=function(A){return A.split("").map((function(A){return("0"+(255&A.charCodeAt(0)).toString(16)).slice(-2)})).join("")},UA.prototype.hexToBytes=function(A){for(var t=[],e=0;e<A.length;e+=2)t.push(String.fromCharCode(parseInt(A.substr(e,2),16)));return t.join("")},UA.prototype.processOwnerPassword=function(A,t){return yA(CA(t).substr(0,5),A)},UA.prototype.encryptor=function(A,t){var e=CA(this.encryptionKey+String.fromCharCode(255&A,A>>8&255,A>>16&255,255&t,t>>8&255)).substr(0,10);return function(A){return yA(e,A)}},EA.prototype.equals=function(A){var t,e="id,objectNumber,equals";if(!A||s(A)!==s(this))return!1;var r=0;for(t in this)if(!(e.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!A.hasOwnProperty(t))return!1;if(this[t]!==A[t])return!1;r++}for(t in A)A.hasOwnProperty(t)&&e.indexOf(t)<0&&r--;return 0===r},SA.API={events:[]},SA.version="2.5.2";var PA=SA.API,DA=1,kA=function(A){return A.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},_A=function(A){return A.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},MA=function(A){return A.toFixed(2)},OA=function(A){return A.toFixed(5)};PA.__acroform__={};var KA=function(A,t){A.prototype=Object.create(t.prototype),A.prototype.constructor=A},TA=function(A){return A*DA},RA=function(A){var t=new it,e=mt.internal.getHeight(A)||0,r=mt.internal.getWidth(A)||0;return t.BBox=[0,0,Number(MA(r)),Number(MA(e))],t},jA=PA.__acroform__.setBit=function(A,t){if(A=A||0,t=t||0,isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return A|1<<t},GA=PA.__acroform__.clearBit=function(A,t){if(A=A||0,t=t||0,isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return A&~(1<<t)},VA=PA.__acroform__.getBit=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return A&1<<t?1:0},qA=PA.__acroform__.getBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return VA(A,t-1)},XA=PA.__acroform__.setBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return jA(A,t-1)},JA=PA.__acroform__.clearBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return GA(A,t-1)},WA=PA.__acroform__.calculateCoordinates=function(A,t){var e=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,n=A[0],i=A[1],o=A[2],s=A[3],a={};return a.lowerLeft_X=e(n)||0,a.lowerLeft_Y=r(i+s)||0,a.upperRight_X=e(n+o)||0,a.upperRight_Y=r(i)||0,[Number(MA(a.lowerLeft_X)),Number(MA(a.lowerLeft_Y)),Number(MA(a.upperRight_X)),Number(MA(a.upperRight_Y))]},zA=function(A){if(A.appearanceStreamContent)return A.appearanceStreamContent;if(A.V||A.DV){var t=[],e=A._V||A.DV,r=YA(A,e),n=A.scope.internal.getFont(A.fontName,A.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(A.scope.__private__.encodeColorString(A.color)),t.push("/"+n+" "+MA(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=RA(A);return i.scope=A.scope,i.stream=t.join("\n"),i}},YA=function(A,t){var e=0===A.fontSize?A.maxFontSize:A.fontSize,r={text:"",fontSize:""},n=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" ");n=A.multiline?n.map((function(A){return A.split("\n")})):n.map((function(A){return[A]}));var i=e,o=mt.internal.getHeight(A)||0;o=o<0?-o:o;var s=mt.internal.getWidth(A)||0;s=s<0?-s:s;var a=function(t,e,r){if(t+1<n.length){var i=e+" "+n[t+1][0];return ZA(i,A,r).width<=s-4}return!1};i++;A:for(;i>0;){t="",i--;var c,u,l=ZA("3",A,i).height,h=A.multiline?o-i:(o-l)/2,f=h+=2,B=0,d=0,g=0;if(i<=0){t="(...) Tj\n",t+="% Width of Text: "+ZA(t,A,i=12).width+", FieldWidth:"+s+"\n";break}for(var p="",w=0,m=0;m<n.length;m++)if(n.hasOwnProperty(m)){var Q=!1;if(1!==n[m].length&&g!==n[m].length-1){if((l+2)*(w+2)+2>o)continue A;p+=n[m][g],Q=!0,d=m,m--}else{p=" "==(p+=n[m][g]+" ").substr(p.length-1)?p.substr(0,p.length-1):p;var C=parseInt(m),v=a(C,p,i),F=m>=n.length-1;if(v&&!F){p+=" ",g=0;continue}if(v||F){if(F)d=C;else if(A.multiline&&(l+2)*(w+2)+2>o)continue A}else{if(!A.multiline)continue A;if((l+2)*(w+2)+2>o)continue A;d=C}}for(var y="",b=B;b<=d;b++){var U=n[b];if(A.multiline){if(b===d){y+=U[g]+" ",g=(g+1)%U.length;continue}if(b===B){y+=U[U.length-1]+" ";continue}}y+=U[0]+" "}switch(y=" "==y.substr(y.length-1)?y.substr(0,y.length-1):y,u=ZA(y,A,i).width,A.textAlign){case"right":c=s-u-2;break;case"center":c=(s-u)/2;break;default:c=2}t+=MA(c)+" "+MA(f)+" Td\n",t+="("+kA(y)+") Tj\n",t+=-MA(c)+" 0 Td\n",f=-(i+2),u=0,B=Q?d:d+1,w++,p=""}break}return r.text=t,r.fontSize=i,r},ZA=function(A,t,e){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),n=t.scope.getStringUnitWidth(A,{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:n}},$A={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},At=function(A,t){var e={type:"reference",object:A};void 0===t.internal.getPageInfo(A.page).pageContext.annotations.find((function(A){return A.type===e.type&&A.object===e.object}))&&t.internal.getPageInfo(A.page).pageContext.annotations.push(e)},tt=function(A,t){if(t.scope=A,void 0!==A.internal&&(void 0===A.internal.acroformPlugin||!1===A.internal.acroformPlugin.isInitialized)){if(st.FieldNum=0,A.internal.acroformPlugin=JSON.parse(JSON.stringify($A)),A.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");DA=A.internal.scaleFactor,A.internal.acroformPlugin.acroFormDictionaryRoot=new ot,A.internal.acroformPlugin.acroFormDictionaryRoot.scope=A,A.internal.acroformPlugin.acroFormDictionaryRoot._eventID=A.internal.events.subscribe("postPutResources",(function(){var t;(t=A).internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})),A.internal.events.subscribe("buildDocument",(function(){!function(A){A.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=A.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var e in t)if(t.hasOwnProperty(e)){var r=t[e];r.objId=void 0,r.hasAnnotation&&At(r,A)}}(A)})),A.internal.events.subscribe("putCatalog",(function(){!function(A){if(void 0===A.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");A.internal.write("/AcroForm "+A.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(A)})),A.internal.events.subscribe("postPutPages",(function(t){!function(A,t){var e=!A;for(var r in A||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),A=A||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(A.hasOwnProperty(r)){var n=A[r],i=[],o=n.Rect;if(n.Rect&&(n.Rect=WA(n.Rect,t)),t.internal.newObjectDeferredBegin(n.objId,!0),n.DA=mt.createDefaultAppearanceStream(n),"object"===s(n)&&"function"==typeof n.getKeyValueListForStream&&(i=n.getKeyValueListForStream()),n.Rect=o,n.hasAppearanceStream&&!n.appearanceStreamContent){var a=zA(n);i.push({key:"AP",value:"<</N "+a+">>"}),t.internal.acroformPlugin.xForms.push(a)}if(n.appearanceStreamContent){var c="";for(var u in n.appearanceStreamContent)if(n.appearanceStreamContent.hasOwnProperty(u)){var l=n.appearanceStreamContent[u];if(c+="/"+u+" ",c+="<<",Object.keys(l).length>=1||Array.isArray(l)){for(var r in l)if(l.hasOwnProperty(r)){var h=l[r];"function"==typeof h&&(h=h.call(t,n)),c+="/"+r+" "+h+" ",t.internal.acroformPlugin.xForms.indexOf(h)>=0||t.internal.acroformPlugin.xForms.push(h)}}else"function"==typeof(h=l)&&(h=h.call(t,n)),c+="/"+r+" "+h,t.internal.acroformPlugin.xForms.indexOf(h)>=0||t.internal.acroformPlugin.xForms.push(h);c+=">>"}i.push({key:"AP",value:"<<\n"+c+">>"})}t.internal.putStream({additionalKeyValues:i,objectId:n.objId}),t.internal.out("endobj")}e&&function(A,t){for(var e in A)if(A.hasOwnProperty(e)){var r=e,n=A[e];t.internal.newObjectDeferredBegin(n.objId,!0),"object"===s(n)&&"function"==typeof n.putStream&&n.putStream(),delete A[r]}}(t.internal.acroformPlugin.xForms,t)}(t,A)})),A.internal.acroformPlugin.isInitialized=!0}},et=PA.__acroform__.arrayToPdfArray=function(A,t,e){var r=function(A){return A};if(Array.isArray(A)){for(var n="[",i=0;i<A.length;i++)switch(0!==i&&(n+=" "),s(A[i])){case"boolean":case"number":case"object":n+=A[i].toString();break;case"string":"/"!==A[i].substr(0,1)?(void 0!==t&&e&&(r=e.internal.getEncryptor(t)),n+="("+kA(r(A[i].toString()))+")"):n+=A[i].toString()}return n+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},rt=function(A,t,e){var r=function(A){return A};return void 0!==t&&e&&(r=e.internal.getEncryptor(t)),(A=A||"").toString(),"("+kA(r(A))+")"},nt=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(A){this._objId=A}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};nt.prototype.toString=function(){return this.objId+" 0 R"},nt.prototype.putStream=function(){var A=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:A,objectId:this.objId}),this.scope.internal.out("endobj")},nt.prototype.getKeyValueListForStream=function(){var A=[],t=Object.getOwnPropertyNames(this).filter((function(A){return"content"!=A&&"appearanceStreamContent"!=A&&"scope"!=A&&"objId"!=A&&"_"!=A.substring(0,1)}));for(var e in t)if(!1===Object.getOwnPropertyDescriptor(this,t[e]).configurable){var r=t[e],n=this[r];n&&(Array.isArray(n)?A.push({key:r,value:et(n,this.objId,this.scope)}):n instanceof nt?(n.scope=this.scope,A.push({key:r,value:n.objId+" 0 R"})):"function"!=typeof n&&A.push({key:r,value:n}))}return A};var it=function(){nt.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var A,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(A){t=A}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){A=t.trim()},get:function(){return A||null}})};KA(it,nt);var ot=function(){nt.call(this);var A,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(A){var t=function(A){return A};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+kA(t(A))+")"}},set:function(t){A=t}})};KA(ot,nt);var st=function A(){nt.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(A){if(isNaN(A))throw new Error('Invalid value "'+A+'" for attribute F supplied.');t=A}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(t,3))},set:function(A){!0===Boolean(A)?this.F=XA(t,3):this.F=JA(t,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(A){if(isNaN(A))throw new Error('Invalid value "'+A+'" for attribute Ff supplied.');e=A}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(A){r=void 0!==A?A:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(A){r[0]=A}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(A){r[1]=A}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(A){r[2]=A}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(A){r[3]=A}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(A){switch(A){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=A;break;default:throw new Error('Invalid value "'+A+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof dt)return;i="FieldObject"+A.FieldNum++}var t=function(A){return A};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+kA(t(i))+")"},set:function(A){i=A.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(A){i=A}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(A){o=A}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(A){s=A}});var a=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return a},set:function(A){a=A}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===c?50/DA:c},set:function(A){c=A}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(A){u=A}});var l="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!l||this instanceof dt||this instanceof pt))return rt(l,this.objId,this.scope)},set:function(A){A=A.toString(),l=A}});var h=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof ht==0?rt(h,this.objId,this.scope):h},set:function(A){A=A.toString(),h=this instanceof ht==0?"("===A.substr(0,1)?_A(A.substr(1,A.length-2)):_A(A):A}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ht==1?_A(h.substr(1,h.length-1)):h},set:function(A){A=A.toString(),h=this instanceof ht==1?"/"+A:A}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(A){this.V=A}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof ht==0?rt(f,this.objId,this.scope):f},set:function(A){A=A.toString(),f=this instanceof ht==0?"("===A.substr(0,1)?_A(A.substr(1,A.length-2)):_A(A):A}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ht==1?_A(f.substr(1,f.length-1)):f},set:function(A){A=A.toString(),f=this instanceof ht==1?"/"+A:A}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var B,d=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return d},set:function(A){A=Boolean(A),d=A}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(B)return B},set:function(A){B=A}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,1))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,1):this.Ff=JA(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,2))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,2):this.Ff=JA(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,3))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,3):this.Ff=JA(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(A){if(-1===[0,1,2].indexOf(A))throw new Error('Invalid value "'+A+'" for attribute Q supplied.');g=A}}),Object.defineProperty(this,"textAlign",{get:function(){var A;switch(g){case 0:default:A="left";break;case 1:A="center";break;case 2:A="right"}return A},configurable:!0,enumerable:!0,set:function(A){switch(A){case"right":case 2:g=2;break;case"center":case 1:g=1;break;default:g=0}}})};KA(st,nt);var at=function(){st.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var A=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return A},set:function(t){A=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return et(t,this.objId,this.scope)},set:function(A){var e,r;r=[],"string"==typeof(e=A)&&(r=function(A,t,e){e||(e=1);for(var r,n=[];r=t.exec(A);)n.push(r[e]);return n}(e,/\((.*?)\)/g)),t=r}}),this.getOptions=function(){return t},this.setOptions=function(A){t=A,this.sort&&t.sort()},this.addOption=function(A){A=(A=A||"").toString(),t.push(A),this.sort&&t.sort()},this.removeOption=function(A,e){for(e=e||!1,A=(A=A||"").toString();-1!==t.indexOf(A)&&(t.splice(t.indexOf(A),1),!1!==e););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,18))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,18):this.Ff=JA(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,19))},set:function(A){!0===this.combo&&(!0===Boolean(A)?this.Ff=XA(this.Ff,19):this.Ff=JA(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,20))},set:function(A){!0===Boolean(A)?(this.Ff=XA(this.Ff,20),t.sort()):this.Ff=JA(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,22))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,22):this.Ff=JA(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,23))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,23):this.Ff=JA(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,27))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,27):this.Ff=JA(this.Ff,27)}}),this.hasAppearanceStream=!1};KA(at,st);var ct=function(){at.call(this),this.fontName="helvetica",this.combo=!1};KA(ct,at);var ut=function(){ct.call(this),this.combo=!0};KA(ut,ct);var lt=function(){ut.call(this),this.edit=!0};KA(lt,ut);var ht=function(){st.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,15))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,15):this.Ff=JA(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,16))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,16):this.Ff=JA(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,17))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,17):this.Ff=JA(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,26))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,26):this.Ff=JA(this.Ff,26)}});var A,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(A){return A};if(this.scope&&(A=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var e,r=[];for(e in r.push("<<"),t)r.push("/"+e+" ("+kA(A(t[e]))+")");return r.push(">>"),r.join("\n")}},set:function(A){"object"===s(A)&&(t=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(A){"string"==typeof A&&(t.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return A.substr(1,A.length-1)},set:function(t){A="/"+t}})};KA(ht,st);var ft=function(){ht.call(this),this.pushButton=!0};KA(ft,ht);var Bt=function(){ht.call(this),this.radio=!0,this.pushButton=!1;var A=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return A},set:function(t){A=void 0!==t?t:[]}})};KA(Bt,ht);var dt=function(){var A,t;st.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(A){t=A}});var e,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(A){return A};this.scope&&(A=this.scope.internal.getEncryptor(this.objId));var t,e=[];for(t in e.push("<<"),r)e.push("/"+t+" ("+kA(A(r[t]))+")");return e.push(">>"),e.join("\n")},set:function(A){"object"===s(A)&&(r=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(A){"string"==typeof A&&(r.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(A){e=A}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(A){e="/"+A}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=mt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};KA(dt,st),Bt.prototype.setAppearance=function(A){if(!("createAppearanceStream"in A)||!("getCA"in A))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var e=this.Kids[t];e.appearanceStreamContent=A.createAppearanceStream(e.optionName),e.caption=A.getCA()}},Bt.prototype.createOption=function(A){var t=new dt;return t.Parent=this,t.optionName=A,this.Kids.push(t),vt.call(this.scope,t),t};var gt=function(){ht.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=mt.CheckBox.createAppearanceStream()};KA(gt,ht);var pt=function(){st.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,13))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,13):this.Ff=JA(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,21))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,21):this.Ff=JA(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,23))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,23):this.Ff=JA(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,24))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,24):this.Ff=JA(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,25))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,25):this.Ff=JA(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,26))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,26):this.Ff=JA(this.Ff,26)}});var A=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return A},set:function(t){Number.isInteger(t)&&(A=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};KA(pt,st);var wt=function(){pt.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,14))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,14):this.Ff=JA(this.Ff,14)}}),this.password=!0};KA(wt,pt);var mt={CheckBox:{createAppearanceStream:function(){return{N:{On:mt.CheckBox.YesNormal},D:{On:mt.CheckBox.YesPushDown,Off:mt.CheckBox.OffPushDown}}},YesPushDown:function(A){var t=RA(A);t.scope=A.scope;var e=[],r=A.scope.internal.getFont(A.fontName,A.fontStyle).id,n=A.scope.__private__.encodeColorString(A.color),i=YA(A,A.caption);return e.push("0.749023 g"),e.push("0 0 "+MA(mt.internal.getWidth(A))+" "+MA(mt.internal.getHeight(A))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+r+" "+MA(i.fontSize)+" Tf "+n),e.push("BT"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC"),t.stream=e.join("\n"),t},YesNormal:function(A){var t=RA(A);t.scope=A.scope;var e=A.scope.internal.getFont(A.fontName,A.fontStyle).id,r=A.scope.__private__.encodeColorString(A.color),n=[],i=mt.internal.getHeight(A),o=mt.internal.getWidth(A),s=YA(A,A.caption);return n.push("1 g"),n.push("0 0 "+MA(o)+" "+MA(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+MA(o-1)+" "+MA(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+e+" "+MA(s.fontSize)+" Tf "+r),n.push(s.text),n.push("ET"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(A){var t=RA(A);t.scope=A.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+MA(mt.internal.getWidth(A))+" "+MA(mt.internal.getHeight(A))+" re"),e.push("f"),t.stream=e.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(A){var t={D:{Off:mt.RadioButton.Circle.OffPushDown},N:{}};return t.N[A]=mt.RadioButton.Circle.YesNormal,t.D[A]=mt.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(A){var t=RA(A);t.scope=A.scope;var e=[],r=mt.internal.getWidth(A)<=mt.internal.getHeight(A)?mt.internal.getWidth(A)/4:mt.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=mt.internal.Bezier_C,i=Number((r*n).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+OA(mt.internal.getWidth(A)/2)+" "+OA(mt.internal.getHeight(A)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),e.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),e.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),e.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t},YesPushDown:function(A){var t=RA(A);t.scope=A.scope;var e=[],r=mt.internal.getWidth(A)<=mt.internal.getHeight(A)?mt.internal.getWidth(A)/4:mt.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*mt.internal.Bezier_C).toFixed(5)),o=Number((r*mt.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+OA(mt.internal.getWidth(A)/2)+" "+OA(mt.internal.getHeight(A)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+OA(mt.internal.getWidth(A)/2)+" "+OA(mt.internal.getHeight(A)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),e.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),e.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),e.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t},OffPushDown:function(A){var t=RA(A);t.scope=A.scope;var e=[],r=mt.internal.getWidth(A)<=mt.internal.getHeight(A)?mt.internal.getWidth(A)/4:mt.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*mt.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+OA(mt.internal.getWidth(A)/2)+" "+OA(mt.internal.getHeight(A)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t}},Cross:{createAppearanceStream:function(A){var t={D:{Off:mt.RadioButton.Cross.OffPushDown},N:{}};return t.N[A]=mt.RadioButton.Cross.YesNormal,t.D[A]=mt.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(A){var t=RA(A);t.scope=A.scope;var e=[],r=mt.internal.calculateCross(A);return e.push("q"),e.push("1 1 "+MA(mt.internal.getWidth(A)-2)+" "+MA(mt.internal.getHeight(A)-2)+" re"),e.push("W"),e.push("n"),e.push(MA(r.x1.x)+" "+MA(r.x1.y)+" m"),e.push(MA(r.x2.x)+" "+MA(r.x2.y)+" l"),e.push(MA(r.x4.x)+" "+MA(r.x4.y)+" m"),e.push(MA(r.x3.x)+" "+MA(r.x3.y)+" l"),e.push("s"),e.push("Q"),t.stream=e.join("\n"),t},YesPushDown:function(A){var t=RA(A);t.scope=A.scope;var e=mt.internal.calculateCross(A),r=[];return r.push("0.749023 g"),r.push("0 0 "+MA(mt.internal.getWidth(A))+" "+MA(mt.internal.getHeight(A))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+MA(mt.internal.getWidth(A)-2)+" "+MA(mt.internal.getHeight(A)-2)+" re"),r.push("W"),r.push("n"),r.push(MA(e.x1.x)+" "+MA(e.x1.y)+" m"),r.push(MA(e.x2.x)+" "+MA(e.x2.y)+" l"),r.push(MA(e.x4.x)+" "+MA(e.x4.y)+" m"),r.push(MA(e.x3.x)+" "+MA(e.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(A){var t=RA(A);t.scope=A.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+MA(mt.internal.getWidth(A))+" "+MA(mt.internal.getHeight(A))+" re"),e.push("f"),t.stream=e.join("\n"),t}}},createDefaultAppearanceStream:function(A){var t=A.scope.internal.getFont(A.fontName,A.fontStyle).id,e=A.scope.__private__.encodeColorString(A.color);return"/"+t+" "+A.fontSize+" Tf "+e}};mt.internal={Bezier_C:.551915024494,calculateCross:function(A){var t=mt.internal.getWidth(A),e=mt.internal.getHeight(A),r=Math.min(t,e);return{x1:{x:(t-r)/2,y:(e-r)/2+r},x2:{x:(t-r)/2+r,y:(e-r)/2},x3:{x:(t-r)/2,y:(e-r)/2},x4:{x:(t-r)/2+r,y:(e-r)/2+r}}}},mt.internal.getWidth=function(A){var t=0;return"object"===s(A)&&(t=TA(A.Rect[2])),t},mt.internal.getHeight=function(A){var t=0;return"object"===s(A)&&(t=TA(A.Rect[3])),t};var Qt,Ct,vt=PA.addField=function(A){if(tt(this,A),!(A instanceof st))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=A).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),A.page=A.scope.internal.getCurrentPageInfo().pageNumber,this};function Ft(A){return A.reduce((function(A,t,e){return A[t]=e,A}),{})}PA.AcroFormChoiceField=at,PA.AcroFormListBox=ct,PA.AcroFormComboBox=ut,PA.AcroFormEditBox=lt,PA.AcroFormButton=ht,PA.AcroFormPushButton=ft,PA.AcroFormRadioButton=Bt,PA.AcroFormCheckBox=gt,PA.AcroFormTextField=pt,PA.AcroFormPasswordField=wt,PA.AcroFormAppearance=mt,PA.AcroForm={ChoiceField:at,ListBox:ct,ComboBox:ut,EditBox:lt,Button:ht,PushButton:ft,RadioButton:Bt,CheckBox:gt,TextField:pt,PasswordField:wt,Appearance:mt},SA.AcroForm={ChoiceField:at,ListBox:ct,ComboBox:ut,EditBox:lt,Button:ht,PushButton:ft,RadioButton:Bt,CheckBox:gt,TextField:pt,PasswordField:wt,Appearance:mt},function(A){A.__addimage__={};var t="UNKNOWN",e={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=A.__addimage__.getImageFileTypeByImageData=function(A,r){var n,i,o,s,a,c=t;if("RGBA"===(r=r||t)||void 0!==A.data&&A.data instanceof Uint8ClampedArray&&"height"in A&&"width"in A)return"RGBA";if(F(A))for(a in e)for(o=e[a],n=0;n<o.length;n+=1){for(s=!0,i=0;i<o[n].length;i+=1)if(void 0!==o[n][i]&&o[n][i]!==A[i]){s=!1;break}if(!0===s){c=a;break}}else for(a in e)for(o=e[a],n=0;n<o.length;n+=1){for(s=!0,i=0;i<o[n].length;i+=1)if(void 0!==o[n][i]&&o[n][i]!==A.charCodeAt(i)){s=!1;break}if(!0===s){c=a;break}}return c===t&&r!==t&&(c=r),c},n=function A(t){for(var e=this.internal.write,r=this.internal.putStream,n=(0,this.internal.getFilters)();-1!==n.indexOf("FlateEncode");)n.splice(n.indexOf("FlateEncode"),1);t.objectId=this.internal.newObject();var i=[];if(i.push({key:"Type",value:"/XObject"}),i.push({key:"Subtype",value:"/Image"}),i.push({key:"Width",value:t.width}),i.push({key:"Height",value:t.height}),t.colorSpace===p.INDEXED?i.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(t.palette.length/3-1)+" "+("sMask"in t&&void 0!==t.sMask?t.objectId+2:t.objectId+1)+" 0 R]"}):(i.push({key:"ColorSpace",value:"/"+t.colorSpace}),t.colorSpace===p.DEVICE_CMYK&&i.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),i.push({key:"BitsPerComponent",value:t.bitsPerComponent}),"decodeParameters"in t&&void 0!==t.decodeParameters&&i.push({key:"DecodeParms",value:"<<"+t.decodeParameters+">>"}),"transparency"in t&&Array.isArray(t.transparency)){for(var o="",s=0,a=t.transparency.length;s<a;s++)o+=t.transparency[s]+" "+t.transparency[s]+" ";i.push({key:"Mask",value:"["+o+"]"})}void 0!==t.sMask&&i.push({key:"SMask",value:t.objectId+1+" 0 R"});var c=void 0!==t.filter?["/"+t.filter]:void 0;if(r({data:t.data,additionalKeyValues:i,alreadyAppliedFilters:c,objectId:t.objectId}),e("endobj"),"sMask"in t&&void 0!==t.sMask){var u="/Predictor "+t.predictor+" /Colors 1 /BitsPerComponent "+t.bitsPerComponent+" /Columns "+t.width,l={width:t.width,height:t.height,colorSpace:"DeviceGray",bitsPerComponent:t.bitsPerComponent,decodeParameters:u,data:t.sMask};"filter"in t&&(l.filter=t.filter),A.call(this,l)}if(t.colorSpace===p.INDEXED){var h=this.internal.newObject();r({data:b(new Uint8Array(t.palette)),objectId:h}),e("endobj")}},i=function(){var A=this.internal.collections.addImage_images;for(var t in A)n.call(this,A[t])},o=function(){var A,t=this.internal.collections.addImage_images,e=this.internal.write;for(var r in t)e("/I"+(A=t[r]).index,A.objectId,"0","R")},a=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",o))},c=function(){var A=this.internal.collections.addImage_images;return a.call(this),A},u=function(){return Object.keys(this.internal.collections.addImage_images).length},l=function(t){return"function"==typeof A["process"+t.toUpperCase()]},h=function(A){return"object"===s(A)&&1===A.nodeType},f=function(t,e){if("IMG"===t.nodeName&&t.hasAttribute("src")){var r=""+t.getAttribute("src");if(0===r.indexOf("data:image/"))return oA(unescape(r).split("base64,").pop());var n=A.loadFile(r,!0);if(void 0!==n)return n}if("CANVAS"===t.nodeName){if(0===t.width||0===t.height)throw new Error("Given canvas must have data. Canvas width: "+t.width+", height: "+t.height);var i;switch(e){case"PNG":i="image/png";break;case"WEBP":i="image/webp";break;default:i="image/jpeg"}return oA(t.toDataURL(i,1).split("base64,").pop())}},B=function(A){var t=this.internal.collections.addImage_images;if(t)for(var e in t)if(A===t[e].alias)return t[e]},d=function(A,t,e){return A||t||(A=-96,t=-96),A<0&&(A=-1*e.width*72/A/this.internal.scaleFactor),t<0&&(t=-1*e.height*72/t/this.internal.scaleFactor),0===A&&(A=t*e.width/e.height),0===t&&(t=A*e.height/e.width),[A,t]},g=function(A,t,e,r,n,i){var o=d.call(this,e,r,n),s=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,u=c.call(this);if(e=o[0],r=o[1],u[n.index]=n,i){i*=Math.PI/180;var l=Math.cos(i),h=Math.sin(i),f=function(A){return A.toFixed(4)},B=[f(l),f(h),f(-1*h),f(l),0,0,"cm"]}this.internal.write("q"),i?(this.internal.write([1,"0","0",1,s(A),a(t+r),"cm"].join(" ")),this.internal.write(B.join(" ")),this.internal.write([s(e),"0","0",s(r),"0","0","cm"].join(" "))):this.internal.write([s(e),"0","0",s(r),s(A),a(t+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+n.index+" Do"),this.internal.write("Q")},p=A.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};A.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var w=A.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},m=A.__addimage__.sHashCode=function(A){var t,e,r=0;if("string"==typeof A)for(e=A.length,t=0;t<e;t++)r=(r<<5)-r+A.charCodeAt(t),r|=0;else if(F(A))for(e=A.byteLength/2,t=0;t<e;t++)r=(r<<5)-r+A[t],r|=0;return r},Q=A.__addimage__.validateStringAsBase64=function(A){(A=A||"").toString().trim();var t=!0;return 0===A.length&&(t=!1),A.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(A.substr(0,A.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(A.substr(-2))&&(t=!1),t},C=A.__addimage__.extractImageFromDataUrl=function(A){var t=(A=A||"").split("base64,"),e=null;if(2===t.length){var r=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(t[0]);Array.isArray(r)&&(e={mimeType:r[1],charset:r[2],data:t[1]})}return e},v=A.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};A.__addimage__.isArrayBuffer=function(A){return v()&&A instanceof ArrayBuffer};var F=A.__addimage__.isArrayBufferView=function(A){return v()&&"undefined"!=typeof Uint32Array&&(A instanceof Int8Array||A instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&A instanceof Uint8ClampedArray||A instanceof Int16Array||A instanceof Uint16Array||A instanceof Int32Array||A instanceof Uint32Array||A instanceof Float32Array||A instanceof Float64Array)},y=A.__addimage__.binaryStringToUint8Array=function(A){for(var t=A.length,e=new Uint8Array(t),r=0;r<t;r++)e[r]=A.charCodeAt(r);return e},b=A.__addimage__.arrayBufferToBinaryString=function(A){for(var t="",e=F(A)?A:new Uint8Array(A),r=0;r<e.length;r+=8192)t+=String.fromCharCode.apply(null,e.subarray(r,r+8192));return t};A.addImage=function(){var A,e,r,n,i,o,c,u,l;if("number"==typeof arguments[1]?(e=t,r=arguments[1],n=arguments[2],i=arguments[3],o=arguments[4],c=arguments[5],u=arguments[6],l=arguments[7]):(e=arguments[1],r=arguments[2],n=arguments[3],i=arguments[4],o=arguments[5],c=arguments[6],u=arguments[7],l=arguments[8]),"object"===s(A=arguments[0])&&!h(A)&&"imageData"in A){var f=A;A=f.imageData,e=f.format||e||t,r=f.x||r||0,n=f.y||n||0,i=f.w||f.width||i,o=f.h||f.height||o,c=f.alias||c,u=f.compression||u,l=f.rotation||f.angle||l}var B=this.internal.getFilters();if(void 0===u&&-1!==B.indexOf("FlateEncode")&&(u="SLOW"),isNaN(r)||isNaN(n))throw new Error("Invalid coordinates passed to jsPDF.addImage");a.call(this);var d=U.call(this,A,e,c,u);return g.call(this,r,n,i,o,d,l),this};var U=function(e,n,i,o){var s,a,c;if("string"==typeof e&&r(e)===t){e=unescape(e);var d=L(e,!1);(""!==d||void 0!==(d=A.loadFile(e,!0)))&&(e=d)}if(h(e)&&(e=f(e,n)),n=r(e,n),!l(n))throw new Error("addImage does not support files of type '"+n+"', please ensure that a plugin for '"+n+"' support is added.");if((null==(c=i)||0===c.length)&&(i=function(A){return"string"==typeof A||F(A)?m(A):F(A.data)?m(A.data):null}(e)),(s=B.call(this,i))||(v()&&(e instanceof Uint8Array||"RGBA"===n||(a=e,e=y(e))),s=this["process"+n.toUpperCase()](e,u.call(this),i,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in A.image_compression?t:w.NONE}(o),a)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},L=A.__addimage__.convertBase64ToBinaryString=function(A,t){var e;t="boolean"!=typeof t||t;var r,n="";if("string"==typeof A){r=null!==(e=C(A))?e.data:A;try{n=oA(r)}catch(A){if(t)throw Q(r)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+A.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return n};A.getImageProperties=function(e){var n,i,o="";if(h(e)&&(e=f(e)),"string"==typeof e&&r(e)===t&&(""===(o=L(e,!1))&&(o=A.loadFile(e)||""),e=o),i=r(e),!l(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if(!v()||e instanceof Uint8Array||(e=y(e)),!(n=this["process"+i.toUpperCase()](e)))throw new Error("An unknown error occurred whilst processing the image");return n.fileType=i,n}}(SA.API),
84
+ */var bA={print:4,modify:8,copy:16,"annot-forms":32};function UA(A,t,e,r){this.v=1,this.r=2;var n=192;A.forEach((function(A){if(void 0!==bA.perm)throw new Error("Invalid permission: "+A);n+=bA[A]})),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var i=(t+this.padding).substr(0,32),o=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,o),this.P=-(1+(255^n)),this.encryptionKey=CA(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=yA(this.encryptionKey,this.padding)}function LA(A){if(/[^\u0000-\u00ff]/.test(A))throw new Error("Invalid PDF Name Object: "+A+", Only accept ASCII characters.");for(var t="",e=A.length,r=0;r<e;r++){var n=A.charCodeAt(r);t+=n<33||35===n||37===n||40===n||41===n||47===n||60===n||62===n||91===n||93===n||123===n||125===n||n>126?"#"+("0"+n.toString(16)).slice(-2):A[r]}return t}function IA(A){if("object"!==s(A))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(A,e,r){if(r=r||!1,"string"!=typeof A||"function"!=typeof e||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(A)||(t[A]={});var n=Math.random().toString(35);return t[A][n]=[e,!!r],n},this.unsubscribe=function(A){for(var e in t)if(t[e][A])return delete t[e][A],0===Object.keys(t[e]).length&&delete t[e],!0;return!1},this.publish=function(e){if(t.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in t[e]){var o=t[e][i];try{o[0].apply(A,r)}catch(e){AA.console&&eA.error("jsPDF PubSub Error",e.message,e)}o[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function EA(A){if(!(this instanceof EA))return new EA(A);var t="opacity,stroke-opacity".split(",");for(var e in A)A.hasOwnProperty(e)&&t.indexOf(e)>=0&&(this[e]=A[e]);this.id="",this.objectNumber=-1}function xA(A,t){this.gState=A,this.matrix=t,this.id="",this.objectNumber=-1}function HA(A,t,e,r,n){if(!(this instanceof HA))return new HA(A,t,e,r,n);this.type="axial"===A?2:3,this.coords=t,this.colors=e,xA.call(this,r,n)}function NA(A,t,e,r,n){if(!(this instanceof NA))return new NA(A,t,e,r,n);this.boundingBox=A,this.xStep=t,this.yStep=e,this.stream="",this.cloneIndex=0,xA.call(this,r,n)}function SA(A){var t,e="string"==typeof arguments[0]?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],o=[],a=1,c=16,u="S",l=null;"object"===s(A=A||{})&&(e=A.orientation,r=A.unit||r,n=A.format||n,i=A.compress||A.compressPdf||i,null!==(l=A.encryption||null)&&(l.userPassword=l.userPassword||"",l.ownerPassword=l.ownerPassword||"",l.userPermissions=l.userPermissions||[]),a="number"==typeof A.userUnit?Math.abs(A.userUnit):1,void 0!==A.precision&&(t=A.precision),void 0!==A.floatPrecision&&(c=A.floatPrecision),u=A.defaultPathOperation||"S"),o=A.filters||(!0===i?["FlateEncode"]:o),r=r||"mm",e=(""+(e||"P")).toLowerCase();var h=A.putOnlyUsedFonts||!1,f={},B={internal:{},__private__:{}};B.__private__.PubSub=IA;var d="1.3",g=B.__private__.getPdfVersion=function(){return d};B.__private__.setPdfVersion=function(A){d=A};var p={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]};B.__private__.getPageFormats=function(){return p};var w=B.__private__.getPageFormat=function(A){return p[A]};n=n||"a4";var m="compat",Q="advanced",C=m;function v(){this.saveGraphicsState(),Z(new GA(wA,0,0,-wA,0,ve()*wA).toString()+" cm"),this.setFontSize(this.getFontSize()/wA),u="n",C=Q}function F(){this.restoreGraphicsState(),u="S",C=m}var y=B.__private__.combineFontStyleAndFontWeight=function(A,t){if("bold"==A&&"normal"==t||"bold"==A&&400==t||"normal"==A&&"italic"==t||"bold"==A&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(A=400==t||"normal"===t?"italic"===A?"italic":"normal":700!=t&&"bold"!==t||"normal"!==A?(700==t?"bold":t)+""+A:"bold"),A};B.advancedAPI=function(A){var t=C===m;return t&&v.call(this),"function"!=typeof A||(A(this),t&&F.call(this)),this},B.compatAPI=function(A){var t=C===Q;return t&&F.call(this),"function"!=typeof A||(A(this),t&&v.call(this)),this},B.isAdvancedAPI=function(){return C===Q};var b,U=function(A){if(C!==Q)throw new Error(A+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},L=B.roundToPrecision=B.__private__.roundToPrecision=function(A,e){var r=t||e;if(isNaN(A)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return A.toFixed(r).replace(/0+$/,"")};b=B.hpf=B.__private__.hpf="number"==typeof c?function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.hpf");return L(A,c)}:"smart"===c?function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.hpf");return L(A,A>-1&&A<1?16:5)}:function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.hpf");return L(A,16)};var I=B.f2=B.__private__.f2=function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.f2");return L(A,2)},E=B.__private__.f3=function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.f3");return L(A,3)},x=B.scale=B.__private__.scale=function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.scale");return C===m?A*wA:C===Q?A:void 0},H=function(A){return x(function(A){return C===m?ve()-A:C===Q?A:void 0}(A))};B.__private__.setPrecision=B.setPrecision=function(A){"number"==typeof parseInt(A,10)&&(t=parseInt(A,10))};var N,S="00000000000000000000000000000000",P=B.__private__.getFileId=function(){return S},D=B.__private__.setFileId=function(A){return S=void 0!==A&&/^[a-fA-F0-9]{32}$/.test(A)?A.toUpperCase():S.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==l&&(Nt=new UA(l.userPermissions,l.userPassword,l.ownerPassword,S)),S};B.setFileId=function(A){return D(A),this},B.getFileId=function(){return P()};var k=B.__private__.convertDateToPDFDate=function(A){var t=A.getTimezoneOffset(),e=t<0?"+":"-",r=Math.floor(Math.abs(t/60)),n=Math.abs(t%60),i=[e,T(r),"'",T(n),"'"].join("");return["D:",A.getFullYear(),T(A.getMonth()+1),T(A.getDate()),T(A.getHours()),T(A.getMinutes()),T(A.getSeconds()),i].join("")},_=B.__private__.convertPDFDateToDate=function(A){var t=parseInt(A.substr(2,4),10),e=parseInt(A.substr(6,2),10)-1,r=parseInt(A.substr(8,2),10),n=parseInt(A.substr(10,2),10),i=parseInt(A.substr(12,2),10),o=parseInt(A.substr(14,2),10);return new Date(t,e,r,n,i,o,0)},M=B.__private__.setCreationDate=function(A){var t;if(void 0===A&&(A=new Date),A instanceof Date)t=k(A);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(A))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=A}return N=t},O=B.__private__.getCreationDate=function(A){var t=N;return"jsDate"===A&&(t=_(N)),t};B.setCreationDate=function(A){return M(A),this},B.getCreationDate=function(A){return O(A)};var K,T=B.__private__.padd2=function(A){return("0"+parseInt(A)).slice(-2)},R=B.__private__.padd2Hex=function(A){return("00"+(A=A.toString())).substr(A.length)},j=0,G=[],V=[],q=0,X=[],J=[],W=!1,z=V;B.__private__.setCustomOutputDestination=function(A){W=!0,z=A};var Y=function(A){W||(z=A)};B.__private__.resetCustomOutputDestination=function(){W=!1,z=V};var Z=B.__private__.out=function(A){return A=A.toString(),q+=A.length+1,z.push(A),z},$=B.__private__.write=function(A){return Z(1===arguments.length?A.toString():Array.prototype.join.call(arguments," "))},tA=B.__private__.getArrayBuffer=function(A){for(var t=A.length,e=new ArrayBuffer(t),r=new Uint8Array(e);t--;)r[t]=A.charCodeAt(t);return e},rA=[["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]];B.__private__.getStandardFonts=function(){return rA};var nA=A.fontSize||16;B.__private__.setFontSize=B.setFontSize=function(A){return nA=C===Q?A/wA:A,this};var iA,oA=B.__private__.getFontSize=B.getFontSize=function(){return C===m?nA:nA*wA},uA=A.R2L||!1;B.__private__.setR2L=B.setR2L=function(A){return uA=A,this},B.__private__.getR2L=B.getR2L=function(){return uA};var lA,hA=B.__private__.setZoomMode=function(A){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(A))iA=A;else if(isNaN(A)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(A))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+A+'" is not recognized.');iA=A}else iA=parseInt(A,10)};B.__private__.getZoomMode=function(){return iA};var fA,BA=B.__private__.setPageMode=function(A){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(A))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+A+'" is not recognized.');lA=A};B.__private__.getPageMode=function(){return lA};var dA=B.__private__.setLayoutMode=function(A){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(A))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+A+'" is not recognized.');fA=A};B.__private__.getLayoutMode=function(){return fA},B.__private__.setDisplayMode=B.setDisplayMode=function(A,t,e){return hA(A),dA(t),BA(e),this};var gA={title:"",subject:"",author:"",keywords:"",creator:""};B.__private__.getDocumentProperty=function(A){if(-1===Object.keys(gA).indexOf(A))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return gA[A]},B.__private__.getDocumentProperties=function(){return gA},B.__private__.setDocumentProperties=B.setProperties=B.setDocumentProperties=function(A){for(var t in gA)gA.hasOwnProperty(t)&&A[t]&&(gA[t]=A[t]);return this},B.__private__.setDocumentProperty=function(A,t){if(-1===Object.keys(gA).indexOf(A))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return gA[A]=t};var pA,wA,mA,QA,CA,vA={},FA={},yA=[],bA={},xA={},PA={},DA={},kA=null,_A=0,MA=[],OA=new IA(B),KA=A.hotfixes||[],TA={},RA={},jA=[],GA=function A(t,e,r,n,i,o){if(!(this instanceof A))return new A(t,e,r,n,i,o);isNaN(t)&&(t=1),isNaN(e)&&(e=0),isNaN(r)&&(r=0),isNaN(n)&&(n=1),isNaN(i)&&(i=0),isNaN(o)&&(o=0),this._matrix=[t,e,r,n,i,o]};Object.defineProperty(GA.prototype,"sx",{get:function(){return this._matrix[0]},set:function(A){this._matrix[0]=A}}),Object.defineProperty(GA.prototype,"shy",{get:function(){return this._matrix[1]},set:function(A){this._matrix[1]=A}}),Object.defineProperty(GA.prototype,"shx",{get:function(){return this._matrix[2]},set:function(A){this._matrix[2]=A}}),Object.defineProperty(GA.prototype,"sy",{get:function(){return this._matrix[3]},set:function(A){this._matrix[3]=A}}),Object.defineProperty(GA.prototype,"tx",{get:function(){return this._matrix[4]},set:function(A){this._matrix[4]=A}}),Object.defineProperty(GA.prototype,"ty",{get:function(){return this._matrix[5]},set:function(A){this._matrix[5]=A}}),Object.defineProperty(GA.prototype,"a",{get:function(){return this._matrix[0]},set:function(A){this._matrix[0]=A}}),Object.defineProperty(GA.prototype,"b",{get:function(){return this._matrix[1]},set:function(A){this._matrix[1]=A}}),Object.defineProperty(GA.prototype,"c",{get:function(){return this._matrix[2]},set:function(A){this._matrix[2]=A}}),Object.defineProperty(GA.prototype,"d",{get:function(){return this._matrix[3]},set:function(A){this._matrix[3]=A}}),Object.defineProperty(GA.prototype,"e",{get:function(){return this._matrix[4]},set:function(A){this._matrix[4]=A}}),Object.defineProperty(GA.prototype,"f",{get:function(){return this._matrix[5]},set:function(A){this._matrix[5]=A}}),Object.defineProperty(GA.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(GA.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(GA.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(GA.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),GA.prototype.join=function(A){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(b).join(A)},GA.prototype.multiply=function(A){var t=A.sx*this.sx+A.shy*this.shx,e=A.sx*this.shy+A.shy*this.sy,r=A.shx*this.sx+A.sy*this.shx,n=A.shx*this.shy+A.sy*this.sy,i=A.tx*this.sx+A.ty*this.shx+this.tx,o=A.tx*this.shy+A.ty*this.sy+this.ty;return new GA(t,e,r,n,i,o)},GA.prototype.decompose=function(){var A=this.sx,t=this.shy,e=this.shx,r=this.sy,n=this.tx,i=this.ty,o=Math.sqrt(A*A+t*t),s=(A/=o)*e+(t/=o)*r;e-=A*s,r-=t*s;var a=Math.sqrt(e*e+r*r);return s/=a,A*(r/=a)<t*(e/=a)&&(A=-A,t=-t,s=-s,o=-o),{scale:new GA(o,0,0,a,0,0),translate:new GA(1,0,0,1,n,i),rotate:new GA(A,t,-t,A,0,0),skew:new GA(1,0,s,1,0,0)}},GA.prototype.toString=function(A){return this.join(" ")},GA.prototype.inversed=function(){var A=this.sx,t=this.shy,e=this.shx,r=this.sy,n=this.tx,i=this.ty,o=1/(A*r-t*e),s=r*o,a=-t*o,c=-e*o,u=A*o;return new GA(s,a,c,u,-s*n-c*i,-a*n-u*i)},GA.prototype.applyToPoint=function(A){var t=A.x*this.sx+A.y*this.shx+this.tx,e=A.x*this.shy+A.y*this.sy+this.ty;return new de(t,e)},GA.prototype.applyToRectangle=function(A){var t=this.applyToPoint(A),e=this.applyToPoint(new de(A.x+A.w,A.y+A.h));return new ge(t.x,t.y,e.x-t.x,e.y-t.y)},GA.prototype.clone=function(){var A=this.sx,t=this.shy,e=this.shx,r=this.sy,n=this.tx,i=this.ty;return new GA(A,t,e,r,n,i)},B.Matrix=GA;var VA=B.matrixMult=function(A,t){return t.multiply(A)},qA=new GA(1,0,0,1,0,0);B.unitMatrix=B.identityMatrix=qA;var XA=function(A,t){if(!xA[A]){var e=(t instanceof HA?"Sh":"P")+(Object.keys(bA).length+1).toString(10);t.id=e,xA[A]=e,bA[e]=t,OA.publish("addPattern",t)}};B.ShadingPattern=HA,B.TilingPattern=NA,B.addShadingPattern=function(A,t){return U("addShadingPattern()"),XA(A,t),this},B.beginTilingPattern=function(A){U("beginTilingPattern()"),we(A.boundingBox[0],A.boundingBox[1],A.boundingBox[2]-A.boundingBox[0],A.boundingBox[3]-A.boundingBox[1],A.matrix)},B.endTilingPattern=function(A,t){U("endTilingPattern()"),t.stream=J[K].join("\n"),XA(A,t),OA.publish("endTilingPattern",t),jA.pop().restore()};var JA,WA=B.__private__.newObject=function(){var A=zA();return YA(A,!0),A},zA=B.__private__.newObjectDeferred=function(){return j++,G[j]=function(){return q},j},YA=function(A,t){return t="boolean"==typeof t&&t,G[A]=q,t&&Z(A+" 0 obj"),A},ZA=B.__private__.newAdditionalObject=function(){var A={objId:zA(),content:""};return X.push(A),A},$A=zA(),At=zA(),tt=B.__private__.decodeColorString=function(A){var t=A.split(" ");if(2!==t.length||"g"!==t[1]&&"G"!==t[1])5!==t.length||"k"!==t[4]&&"K"!==t[4]||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),"r"]);else{var e=parseFloat(t[0]);t=[e,e,e,"r"]}for(var r="#",n=0;n<3;n++)r+=("0"+Math.floor(255*parseFloat(t[n])).toString(16)).slice(-2);return r},et=B.__private__.encodeColorString=function(A){var t;"string"==typeof A&&(A={ch1:A});var e=A.ch1,r=A.ch2,n=A.ch3,i=A.ch4,o="draw"===A.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof e&&"#"!==e.charAt(0)){var a=new cA(e);if(a.ok)e=a.toHex();else if(!/^\d*\.?\d*$/.test(e))throw new Error('Invalid color "'+e+'" passed to jsPDF.encodeColorString.')}if("string"==typeof e&&/^#[0-9A-Fa-f]{3}$/.test(e)&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),"string"==typeof e&&/^#[0-9A-Fa-f]{6}$/.test(e)){var c=parseInt(e.substr(1),16);e=c>>16&255,r=c>>8&255,n=255&c}if(void 0===r||void 0===i&&e===r&&r===n)if("string"==typeof e)t=e+" "+o[0];else if(2===A.precision)t=I(e/255)+" "+o[0];else t=E(e/255)+" "+o[0];else if(void 0===i||"object"===s(i)){if(i&&!isNaN(i.a)&&0===i.a)return["1.","1.","1.",o[1]].join(" ");if("string"==typeof e)t=[e,r,n,o[1]].join(" ");else if(2===A.precision)t=[I(e/255),I(r/255),I(n/255),o[1]].join(" ");else t=[E(e/255),E(r/255),E(n/255),o[1]].join(" ")}else if("string"==typeof e)t=[e,r,n,i,o[2]].join(" ");else if(2===A.precision)t=[I(e),I(r),I(n),I(i),o[2]].join(" ");else t=[E(e),E(r),E(n),E(i),o[2]].join(" ");return t},rt=B.__private__.getFilters=function(){return o},nt=B.__private__.putStream=function(A){var t=(A=A||{}).data||"",e=A.filters||rt(),r=A.alreadyAppliedFilters||[],n=A.addLength1||!1,i=t.length,o=A.objectId,s=function(A){return A};if(null!==l&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==l&&(s=Nt.encryptor(o,0));var a={};!0===e&&(e=["FlateEncode"]);var c=A.additionalKeyValues||[],u=(a=void 0!==SA.API.processDataByFilters?SA.API.processDataByFilters(t,e):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==a.data.length&&(c.push({key:"Length",value:a.data.length}),!0===n&&c.push({key:"Length1",value:i})),0!=u.length)if(u.split("/").length-1==1)c.push({key:"Filter",value:u});else{c.push({key:"Filter",value:"["+u+"]"});for(var h=0;h<c.length;h+=1)if("DecodeParms"===c[h].key){for(var f=[],B=0;B<a.reverseChain.split("/").length-1;B+=1)f.push("null");f.push(c[h].value),c[h].value="["+f.join(" ")+"]"}}Z("<<");for(var d=0;d<c.length;d++)Z("/"+c[d].key+" "+c[d].value);Z(">>"),0!==a.data.length&&(Z("stream"),Z(s(a.data)),Z("endstream"))},it=B.__private__.putPage=function(A){var t=A.number,e=A.data,r=A.objId,n=A.contentsObjId;YA(r,!0),Z("<</Type /Page"),Z("/Parent "+A.rootDictionaryObjId+" 0 R"),Z("/Resources "+A.resourceDictionaryObjId+" 0 R"),Z("/MediaBox ["+parseFloat(b(A.mediaBox.bottomLeftX))+" "+parseFloat(b(A.mediaBox.bottomLeftY))+" "+b(A.mediaBox.topRightX)+" "+b(A.mediaBox.topRightY)+"]"),null!==A.cropBox&&Z("/CropBox ["+b(A.cropBox.bottomLeftX)+" "+b(A.cropBox.bottomLeftY)+" "+b(A.cropBox.topRightX)+" "+b(A.cropBox.topRightY)+"]"),null!==A.bleedBox&&Z("/BleedBox ["+b(A.bleedBox.bottomLeftX)+" "+b(A.bleedBox.bottomLeftY)+" "+b(A.bleedBox.topRightX)+" "+b(A.bleedBox.topRightY)+"]"),null!==A.trimBox&&Z("/TrimBox ["+b(A.trimBox.bottomLeftX)+" "+b(A.trimBox.bottomLeftY)+" "+b(A.trimBox.topRightX)+" "+b(A.trimBox.topRightY)+"]"),null!==A.artBox&&Z("/ArtBox ["+b(A.artBox.bottomLeftX)+" "+b(A.artBox.bottomLeftY)+" "+b(A.artBox.topRightX)+" "+b(A.artBox.topRightY)+"]"),"number"==typeof A.userUnit&&1!==A.userUnit&&Z("/UserUnit "+A.userUnit),OA.publish("putPage",{objId:r,pageContext:MA[t],pageNumber:t,page:e}),Z("/Contents "+n+" 0 R"),Z(">>"),Z("endobj");var i=e.join("\n");return C===Q&&(i+="\nQ"),YA(n,!0),nt({data:i,filters:rt(),objectId:n}),Z("endobj"),r},ot=B.__private__.putPages=function(){var A,t,e=[];for(A=1;A<=_A;A++)MA[A].objId=zA(),MA[A].contentsObjId=zA();for(A=1;A<=_A;A++)e.push(it({number:A,data:J[A],objId:MA[A].objId,contentsObjId:MA[A].contentsObjId,mediaBox:MA[A].mediaBox,cropBox:MA[A].cropBox,bleedBox:MA[A].bleedBox,trimBox:MA[A].trimBox,artBox:MA[A].artBox,userUnit:MA[A].userUnit,rootDictionaryObjId:$A,resourceDictionaryObjId:At}));YA($A,!0),Z("<</Type /Pages");var r="/Kids [";for(t=0;t<_A;t++)r+=e[t]+" 0 R ";Z(r+"]"),Z("/Count "+_A),Z(">>"),Z("endobj"),OA.publish("postPutPages")},st=function(A){OA.publish("putFont",{font:A,out:Z,newObject:WA,putStream:nt}),!0!==A.isAlreadyPutted&&(A.objectNumber=WA(),Z("<<"),Z("/Type /Font"),Z("/BaseFont /"+LA(A.postScriptName)),Z("/Subtype /Type1"),"string"==typeof A.encoding&&Z("/Encoding /"+A.encoding),Z("/FirstChar 32"),Z("/LastChar 255"),Z(">>"),Z("endobj"))},at=function(A){A.objectNumber=WA();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[b(A.x),b(A.y),b(A.x+A.width),b(A.y+A.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+A.matrix.toString()+"]"});var e=A.pages[1].join("\n");nt({data:e,additionalKeyValues:t,objectId:A.objectNumber}),Z("endobj")},ct=function(A,t){t||(t=21);var e=WA(),r=function(A,t){var e,r=[],n=1/(t-1);for(e=0;e<1;e+=n)r.push(e);if(r.push(1),0!=A[0].offset){var i={offset:0,color:A[0].color};A.unshift(i)}if(1!=A[A.length-1].offset){var o={offset:1,color:A[A.length-1].color};A.push(o)}for(var s="",a=0,c=0;c<r.length;c++){for(e=r[c];e>A[a+1].offset;)a++;var u=A[a].offset,l=(e-u)/(A[a+1].offset-u),h=A[a].color,f=A[a+1].color;s+=R(Math.round((1-l)*h[0]+l*f[0]).toString(16))+R(Math.round((1-l)*h[1]+l*f[1]).toString(16))+R(Math.round((1-l)*h[2]+l*f[2]).toString(16))}return s.trim()}(A.colors,t),n=[];n.push({key:"FunctionType",value:"0"}),n.push({key:"Domain",value:"[0.0 1.0]"}),n.push({key:"Size",value:"["+t+"]"}),n.push({key:"BitsPerSample",value:"8"}),n.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),n.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),nt({data:r,additionalKeyValues:n,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:e}),Z("endobj"),A.objectNumber=WA(),Z("<< /ShadingType "+A.type),Z("/ColorSpace /DeviceRGB");var i="/Coords ["+b(parseFloat(A.coords[0]))+" "+b(parseFloat(A.coords[1]))+" ";2===A.type?i+=b(parseFloat(A.coords[2]))+" "+b(parseFloat(A.coords[3])):i+=b(parseFloat(A.coords[2]))+" "+b(parseFloat(A.coords[3]))+" "+b(parseFloat(A.coords[4]))+" "+b(parseFloat(A.coords[5])),Z(i+="]"),A.matrix&&Z("/Matrix ["+A.matrix.toString()+"]"),Z("/Function "+e+" 0 R"),Z("/Extend [true true]"),Z(">>"),Z("endobj")},ut=function(A,t){var e=zA(),r=WA();t.push({resourcesOid:e,objectOid:r}),A.objectNumber=r;var n=[];n.push({key:"Type",value:"/Pattern"}),n.push({key:"PatternType",value:"1"}),n.push({key:"PaintType",value:"1"}),n.push({key:"TilingType",value:"1"}),n.push({key:"BBox",value:"["+A.boundingBox.map(b).join(" ")+"]"}),n.push({key:"XStep",value:b(A.xStep)}),n.push({key:"YStep",value:b(A.yStep)}),n.push({key:"Resources",value:e+" 0 R"}),A.matrix&&n.push({key:"Matrix",value:"["+A.matrix.toString()+"]"}),nt({data:A.stream,additionalKeyValues:n,objectId:A.objectNumber}),Z("endobj")},lt=function(A){for(var t in A.objectNumber=WA(),Z("<<"),A)switch(t){case"opacity":Z("/ca "+I(A[t]));break;case"stroke-opacity":Z("/CA "+I(A[t]))}Z(">>"),Z("endobj")},ht=function(A){YA(A.resourcesOid,!0),Z("<<"),Z("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var A in Z("/Font <<"),vA)vA.hasOwnProperty(A)&&(!1===h||!0===h&&f.hasOwnProperty(A))&&Z("/"+A+" "+vA[A].objectNumber+" 0 R");Z(">>")}(),function(){if(Object.keys(bA).length>0){for(var A in Z("/Shading <<"),bA)bA.hasOwnProperty(A)&&bA[A]instanceof HA&&bA[A].objectNumber>=0&&Z("/"+A+" "+bA[A].objectNumber+" 0 R");OA.publish("putShadingPatternDict"),Z(">>")}}(),function(A){if(Object.keys(bA).length>0){for(var t in Z("/Pattern <<"),bA)bA.hasOwnProperty(t)&&bA[t]instanceof B.TilingPattern&&bA[t].objectNumber>=0&&bA[t].objectNumber<A&&Z("/"+t+" "+bA[t].objectNumber+" 0 R");OA.publish("putTilingPatternDict"),Z(">>")}}(A.objectOid),function(){if(Object.keys(PA).length>0){var A;for(A in Z("/ExtGState <<"),PA)PA.hasOwnProperty(A)&&PA[A].objectNumber>=0&&Z("/"+A+" "+PA[A].objectNumber+" 0 R");OA.publish("putGStateDict"),Z(">>")}}(),function(){for(var A in Z("/XObject <<"),TA)TA.hasOwnProperty(A)&&TA[A].objectNumber>=0&&Z("/"+A+" "+TA[A].objectNumber+" 0 R");OA.publish("putXobjectDict"),Z(">>")}(),Z(">>"),Z("endobj")},ft=function(){var A=[];(function(){for(var A in vA)vA.hasOwnProperty(A)&&(!1===h||!0===h&&f.hasOwnProperty(A))&&st(vA[A])})(),function(){var A;for(A in PA)PA.hasOwnProperty(A)&&lt(PA[A])}(),function(){for(var A in TA)TA.hasOwnProperty(A)&&at(TA[A])}(),function(A){var t;for(t in bA)bA.hasOwnProperty(t)&&(bA[t]instanceof HA?ct(bA[t]):bA[t]instanceof NA&&ut(bA[t],A))}(A),OA.publish("putResources"),A.forEach(ht),ht({resourcesOid:At,objectOid:Number.MAX_SAFE_INTEGER}),OA.publish("postPutResources")},Bt=function(A){FA[A.fontName]=FA[A.fontName]||{},FA[A.fontName][A.fontStyle]=A.id},dt=function(A,t,e,r,n){var i={id:"F"+(Object.keys(vA).length+1).toString(10),postScriptName:A,fontName:t,fontStyle:e,encoding:r,isStandardFont:n||!1,metadata:{}};return OA.publish("addFont",{font:i,instance:this}),vA[i.id]=i,Bt(i),i.id},gt=B.__private__.pdfEscape=B.pdfEscape=function(A,t){return function(A,t){var e,r,n,i,o,s,a,c,u;if(n=(t=t||{}).sourceEncoding||"Unicode",o=t.outputEncoding,(t.autoencode||o)&&vA[pA].metadata&&vA[pA].metadata[n]&&vA[pA].metadata[n].encoding&&(i=vA[pA].metadata[n].encoding,!o&&vA[pA].encoding&&(o=vA[pA].encoding),!o&&i.codePages&&(o=i.codePages[0]),"string"==typeof o&&(o=i[o]),o)){for(a=!1,s=[],e=0,r=A.length;e<r;e++)(c=o[A.charCodeAt(e)])?s.push(String.fromCharCode(c)):s.push(A[e]),s[e].charCodeAt(0)>>8&&(a=!0);A=s.join("")}for(e=A.length;void 0===a&&0!==e;)A.charCodeAt(e-1)>>8&&(a=!0),e--;if(!a)return A;for(s=t.noBOM?[]:[254,255],e=0,r=A.length;e<r;e++){if((u=(c=A.charCodeAt(e))>>8)>>8)throw new Error("Character at position "+e+" of string '"+A+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(u),s.push(c-(u<<8))}return String.fromCharCode.apply(void 0,s)}(A,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},pt=B.__private__.beginPage=function(A){J[++_A]=[],MA[_A]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(A[0]),topRightY:Number(A[1])}},Qt(_A),Y(J[K])},wt=function(A,t){var r,i,o;switch(e=t||e,"string"==typeof A&&(r=w(A.toLowerCase()),Array.isArray(r)&&(i=r[0],o=r[1])),Array.isArray(A)&&(i=A[0]*wA,o=A[1]*wA),isNaN(i)&&(i=n[0],o=n[1]),(i>14400||o>14400)&&(eA.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),o=Math.min(14400,o)),n=[i,o],e.substr(0,1)){case"l":o>i&&(n=[o,i]);break;case"p":i>o&&(n=[o,i])}pt(n),Zt(zt),Z(oe),0!==he&&Z(he+" J"),0!==fe&&Z(fe+" j"),OA.publish("addPage",{pageNumber:_A})},mt=function(A){A>0&&A<=_A&&(J.splice(A,1),MA.splice(A,1),_A--,K>_A&&(K=_A),this.setPage(K))},Qt=function(A){A>0&&A<=_A&&(K=A)},Ct=B.__private__.getNumberOfPages=B.getNumberOfPages=function(){return J.length-1},vt=function(A,t,e){var r,n=void 0;return e=e||{},A=void 0!==A?A:vA[pA].fontName,t=void 0!==t?t:vA[pA].fontStyle,r=A.toLowerCase(),void 0!==FA[r]&&void 0!==FA[r][t]?n=FA[r][t]:void 0!==FA[A]&&void 0!==FA[A][t]?n=FA[A][t]:!1===e.disableWarning&&eA.warn("Unable to look up font label for font '"+A+"', '"+t+"'. Refer to getFontList() for available fonts."),n||e.noFallback||null==(n=FA.times[t])&&(n=FA.times.normal),n},Ft=B.__private__.putInfo=function(){var A=WA(),t=function(A){return A};for(var e in null!==l&&(t=Nt.encryptor(A,0)),Z("<<"),Z("/Producer ("+gt(t("jsPDF "+SA.version))+")"),gA)gA.hasOwnProperty(e)&&gA[e]&&Z("/"+e.substr(0,1).toUpperCase()+e.substr(1)+" ("+gt(t(gA[e]))+")");Z("/CreationDate ("+gt(t(N))+")"),Z(">>"),Z("endobj")},yt=B.__private__.putCatalog=function(A){var t=(A=A||{}).rootDictionaryObjId||$A;switch(WA(),Z("<<"),Z("/Type /Catalog"),Z("/Pages "+t+" 0 R"),iA||(iA="fullwidth"),iA){case"fullwidth":Z("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Z("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Z("/OpenAction [3 0 R /Fit]");break;case"original":Z("/OpenAction [3 0 R /XYZ null null 1]");break;default:var e=""+iA;"%"===e.substr(e.length-1)&&(iA=parseInt(iA)/100),"number"==typeof iA&&Z("/OpenAction [3 0 R /XYZ null null "+I(iA)+"]")}switch(fA||(fA="continuous"),fA){case"continuous":Z("/PageLayout /OneColumn");break;case"single":Z("/PageLayout /SinglePage");break;case"two":case"twoleft":Z("/PageLayout /TwoColumnLeft");break;case"tworight":Z("/PageLayout /TwoColumnRight")}lA&&Z("/PageMode /"+lA),OA.publish("putCatalog"),Z(">>"),Z("endobj")},bt=B.__private__.putTrailer=function(){Z("trailer"),Z("<<"),Z("/Size "+(j+1)),Z("/Root "+j+" 0 R"),Z("/Info "+(j-1)+" 0 R"),null!==l&&Z("/Encrypt "+Nt.oid+" 0 R"),Z("/ID [ <"+S+"> <"+S+"> ]"),Z(">>")},Ut=B.__private__.putHeader=function(){Z("%PDF-"+d),Z("%ºß¬à")},Lt=B.__private__.putXRef=function(){var A="0000000000";Z("xref"),Z("0 "+(j+1)),Z("0000000000 65535 f ");for(var t=1;t<=j;t++)"function"==typeof G[t]?Z((A+G[t]()).slice(-10)+" 00000 n "):void 0!==G[t]?Z((A+G[t]).slice(-10)+" 00000 n "):Z("0000000000 00000 n ")},It=B.__private__.buildDocument=function(){j=0,q=0,V=[],G=[],X=[],$A=zA(),At=zA(),Y(V),OA.publish("buildDocument"),Ut(),ot(),function(){OA.publish("putAdditionalObjects");for(var A=0;A<X.length;A++){var t=X[A];YA(t.objId,!0),Z(t.content),Z("endobj")}OA.publish("postPutAdditionalObjects")}(),ft(),null!==l&&(Nt.oid=WA(),Z("<<"),Z("/Filter /Standard"),Z("/V "+Nt.v),Z("/R "+Nt.r),Z("/U <"+Nt.toHexString(Nt.U)+">"),Z("/O <"+Nt.toHexString(Nt.O)+">"),Z("/P "+Nt.P),Z(">>"),Z("endobj")),Ft(),yt();var A=q;return Lt(),bt(),Z("startxref"),Z(""+A),Z("%%EOF"),Y(J[K]),V.join("\n")},Et=B.__private__.getBlob=function(A){return new Blob([tA(A)],{type:"application/pdf"})},xt=B.output=B.__private__.output=(JA=function(A,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",A){case void 0:return It();case"save":B.save(t.filename);break;case"arraybuffer":return tA(It());case"blob":return Et(It());case"bloburi":case"bloburl":if(void 0!==AA.URL&&"function"==typeof AA.URL.createObjectURL)return AA.URL&&AA.URL.createObjectURL(Et(It()))||void 0;eA.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var e="",r=It();try{e=sA(r)}catch(A){e=sA(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+t.filename+";base64,"+e;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(AA)){var n="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",i=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';t.pdfObjectUrl&&(n=t.pdfObjectUrl,i="");var o='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+n+'"'+i+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(t)+");<\/script></body></html>",s=AA.open();return null!==s&&s.document.write(o),s}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(AA)){var a='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(t.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+t.filename+'" width="500px" height="400px" /></body></html>',c=AA.open();if(null!==c){c.document.write(a);var u=this;c.document.documentElement.querySelector("#pdfViewer").onload=function(){c.document.title=t.filename,c.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(u.output("bloburl"))}}return c}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(AA))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var l='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",t)+'"></iframe></body></html>',h=AA.open();if(null!==h&&(h.document.write(l),h.document.title=t.filename),h||"undefined"==typeof safari)return h;break;case"datauri":case"dataurl":return AA.document.location.href=this.output("datauristring",t);default:return null}},JA.foo=function(){try{return JA.apply(this,arguments)}catch(e){var A=e.stack||"";~A.indexOf(" at ")&&(A=A.split(" at ")[1]);var t="Error in function "+A.split("\n")[0].split("<")[0]+": "+e.message;if(!AA.console)throw new Error(t);AA.console.error(t,e),AA.alert&&alert(t)}},JA.foo.bar=JA,JA.foo),Ht=function(A){return!0===Array.isArray(KA)&&KA.indexOf(A)>-1};switch(r){case"pt":wA=1;break;case"mm":wA=72/25.4;break;case"cm":wA=72/2.54;break;case"in":wA=72;break;case"px":wA=1==Ht("px_scaling")?.75:96/72;break;case"pc":case"em":wA=12;break;case"ex":wA=6;break;default:if("number"!=typeof r)throw new Error("Invalid unit: "+r);wA=r}var Nt=null;M(),D();var St=B.__private__.getPageInfo=B.getPageInfo=function(A){if(isNaN(A)||A%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:MA[A].objId,pageNumber:A,pageContext:MA[A]}},Pt=B.__private__.getPageInfoByObjId=function(A){if(isNaN(A)||A%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in MA)if(MA[t].objId===A)break;return St(t)},Dt=B.__private__.getCurrentPageInfo=B.getCurrentPageInfo=function(){return{objId:MA[K].objId,pageNumber:K,pageContext:MA[K]}};B.addPage=function(){return wt.apply(this,arguments),this},B.setPage=function(){return Qt.apply(this,arguments),Y.call(this,J[K]),this},B.insertPage=function(A){return this.addPage(),this.movePage(K,A),this},B.movePage=function(A,t){var e,r;if(A>t){e=J[A],r=MA[A];for(var n=A;n>t;n--)J[n]=J[n-1],MA[n]=MA[n-1];J[t]=e,MA[t]=r,this.setPage(t)}else if(A<t){e=J[A],r=MA[A];for(var i=A;i<t;i++)J[i]=J[i+1],MA[i]=MA[i+1];J[t]=e,MA[t]=r,this.setPage(t)}return this},B.deletePage=function(){return mt.apply(this,arguments),this},B.__private__.text=B.text=function(A,t,e,r,n){var i,o,a,c,u,l,h,B,d,g=(r=r||{}).scope||this;if("number"==typeof A&&"number"==typeof t&&("string"==typeof e||Array.isArray(e))){var p=e;e=t,t=A,A=p}if(arguments[3]instanceof GA==0?(a=arguments[4],c=arguments[5],"object"===s(h=arguments[3])&&null!==h||("string"==typeof a&&(c=a,a=null),"string"==typeof h&&(c=h,h=null),"number"==typeof h&&(a=h,h=null),r={flags:h,angle:a,align:c})):(U("The transform parameter of text() with a Matrix value"),d=n),isNaN(t)||isNaN(e)||null==A)throw new Error("Invalid arguments passed to jsPDF.text");if(0===A.length)return g;var w,m="",v="number"==typeof r.lineHeightFactor?r.lineHeightFactor:Wt,F=g.internal.scaleFactor;function y(A){return A=A.split("\t").join(Array(r.TabLen||9).join(" ")),gt(A,h)}function L(A){for(var t,e=A.concat(),r=[],n=e.length;n--;)"string"==typeof(t=e.shift())?r.push(t):Array.isArray(A)&&(1===t.length||void 0===t[1]&&void 0===t[2])?r.push(t[0]):r.push([t[0],t[1],t[2]]);return r}function I(A,t){var e;if("string"==typeof A)e=t(A)[0];else if(Array.isArray(A)){for(var r,n,i=A.concat(),o=[],s=i.length;s--;)"string"==typeof(r=i.shift())?o.push(t(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(n=t(r[0],r[1],r[2]),o.push([n[0],n[1],n[2]]));e=o}return e}var E=!1,H=!0;if("string"==typeof A)E=!0;else if(Array.isArray(A)){var N=A.concat();o=[];for(var S,P=N.length;P--;)("string"!=typeof(S=N.shift())||Array.isArray(S)&&"string"!=typeof S[0])&&(H=!1);E=H}if(!1===E)throw new Error('Type of text must be string or Array. "'+A+'" is not recognized.');"string"==typeof A&&(A=A.match(/[\r?\n]/)?A.split(/\r\n|\r|\n/g):[A]);var D=nA/g.internal.scaleFactor,k=D*(v-1);switch(r.baseline){case"bottom":e-=k;break;case"top":e+=D-k;break;case"hanging":e+=D-2*k;break;case"middle":e+=D/2-k}if((l=r.maxWidth||0)>0&&("string"==typeof A?A=g.splitTextToSize(A,l):"[object Array]"===Object.prototype.toString.call(A)&&(A=A.reduce((function(A,t){return A.concat(g.splitTextToSize(t,l))}),[]))),i={text:A,x:t,y:e,options:r,mutex:{pdfEscape:gt,activeFontKey:pA,fonts:vA,activeFontSize:nA}},OA.publish("preProcessText",i),A=i.text,a=(r=i.options).angle,d instanceof GA==0&&a&&"number"==typeof a){a*=Math.PI/180,0===r.rotationDirection&&(a=-a),C===Q&&(a=-a);var _=Math.cos(a),M=Math.sin(a);d=new GA(_,M,-M,_,0,0)}else a&&a instanceof GA&&(d=a);C!==Q||d||(d=qA),void 0!==(u=r.charSpace||ue)&&(m+=b(x(u))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(B=r.horizontalScale)&&(m+=b(100*B)+" Tz\n"),r.lang;var O=-1,K=void 0!==r.renderingMode?r.renderingMode:r.stroke,T=g.internal.getCurrentPageInfo().pageContext;switch(K){case 0:case!1:case"fill":O=0;break;case 1:case!0:case"stroke":O=1;break;case 2:case"fillThenStroke":O=2;break;case 3:case"invisible":O=3;break;case 4:case"fillAndAddForClipping":O=4;break;case 5:case"strokeAndAddPathForClipping":O=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":O=6;break;case 7:case"addToPathForClipping":O=7}var R=void 0!==T.usedRenderingMode?T.usedRenderingMode:-1;-1!==O?m+=O+" Tr\n":-1!==R&&(m+="0 Tr\n"),-1!==O&&(T.usedRenderingMode=O),c=r.align||"left";var j,G=nA*v,V=g.internal.pageSize.getWidth(),q=vA[pA];u=r.charSpace||ue,l=r.maxWidth||0,h=Object.assign({autoencode:!0,noBOM:!0},r.flags);var X=[],J=function(A){return g.getStringUnitWidth(A,{font:q,charSpace:u,fontSize:nA,doKerning:!1})*nA/F};if("[object Array]"===Object.prototype.toString.call(A)){var W;o=L(A),"left"!==c&&(j=o.map(J));var z,Y=0;if("right"===c){t-=j[0],A=[],P=o.length;for(var $=0;$<P;$++)0===$?(z=ee(t),W=re(e)):(z=x(Y-j[$]),W=-G),A.push([o[$],z,W]),Y=j[$]}else if("center"===c){t-=j[0]/2,A=[],P=o.length;for(var AA=0;AA<P;AA++)0===AA?(z=ee(t),W=re(e)):(z=x((Y-j[AA])/2),W=-G),A.push([o[AA],z,W]),Y=j[AA]}else if("left"===c){A=[],P=o.length;for(var tA=0;tA<P;tA++)A.push(o[tA])}else if("justify"===c&&"Identity-H"===q.encoding){A=[],P=o.length,l=0!==l?l:V;for(var eA=0,rA=0;rA<P;rA++)if(W=0===rA?re(e):-G,z=0===rA?ee(t):eA,rA<P-1){var iA=x((l-j[rA])/(o[rA].split(" ").length-1)),oA=o[rA].split(" ");A.push([oA[0]+" ",z,W]),eA=0;for(var sA=1;sA<oA.length;sA++){var aA=(J(oA[sA-1]+" "+oA[sA])-J(oA[sA]))*F+iA;sA==oA.length-1?A.push([oA[sA],aA,0]):A.push([oA[sA]+" ",aA,0]),eA-=aA}}else A.push([o[rA],z,W]);A.push(["",eA,0])}else{if("justify"!==c)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(A=[],P=o.length,l=0!==l?l:V,rA=0;rA<P;rA++)W=0===rA?re(e):-G,z=0===rA?ee(t):0,rA<P-1?X.push(b(x((l-j[rA])/(o[rA].split(" ").length-1)))):X.push(0),A.push([o[rA],z,W])}}!0===("boolean"==typeof r.R2L?r.R2L:uA)&&(A=I(A,(function(A,t,e){return[A.split("").reverse().join(""),t,e]}))),i={text:A,x:t,y:e,options:r,mutex:{pdfEscape:gt,activeFontKey:pA,fonts:vA,activeFontSize:nA}},OA.publish("postProcessText",i),A=i.text,w=i.mutex.isHex||!1;var cA=vA[pA].encoding;"WinAnsiEncoding"!==cA&&"StandardEncoding"!==cA||(A=I(A,(function(A,t,e){return[y(A),t,e]}))),o=L(A),A=[];for(var lA,hA,fA,BA=Array.isArray(o[0])?1:0,dA="",gA=function(A,t,e){var n="";return e instanceof GA?(e="number"==typeof r.angle?VA(e,new GA(1,0,0,1,A,t)):VA(new GA(1,0,0,1,A,t),e),C===Q&&(e=VA(new GA(1,0,0,-1,0,0),e)),n=e.join(" ")+" Tm\n"):n=b(A)+" "+b(t)+" Td\n",n},wA=0;wA<o.length;wA++){switch(dA="",BA){case 1:fA=(w?"<":"(")+o[wA][0]+(w?">":")"),lA=parseFloat(o[wA][1]),hA=parseFloat(o[wA][2]);break;case 0:fA=(w?"<":"(")+o[wA]+(w?">":")"),lA=ee(t),hA=re(e)}void 0!==X&&void 0!==X[wA]&&(dA=X[wA]+" Tw\n"),0===wA?A.push(dA+gA(lA,hA,d)+fA):0===BA?A.push(dA+fA):1===BA&&A.push(dA+gA(lA,hA,d)+fA)}A=0===BA?A.join(" Tj\nT* "):A.join(" Tj\n"),A+=" Tj\n";var mA="BT\n/";return mA+=pA+" "+nA+" Tf\n",mA+=b(nA*v)+" TL\n",mA+=ae+"\n",mA+=m,mA+=A,Z(mA+="ET"),f[pA]=!0,g};var kt=B.__private__.clip=B.clip=function(A){return Z("evenodd"===A?"W*":"W"),this};B.clipEvenOdd=function(){return kt("evenodd")},B.__private__.discardPath=B.discardPath=function(){return Z("n"),this};var _t=B.__private__.isValidStyle=function(A){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(A)&&(t=!0),t};B.__private__.setDefaultPathOperation=B.setDefaultPathOperation=function(A){return _t(A)&&(u=A),this};var Mt=B.__private__.getStyle=B.getStyle=function(A){var t=u;switch(A){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=A}return t},Ot=B.close=function(){return Z("h"),this};B.stroke=function(){return Z("S"),this},B.fill=function(A){return Kt("f",A),this},B.fillEvenOdd=function(A){return Kt("f*",A),this},B.fillStroke=function(A){return Kt("B",A),this},B.fillStrokeEvenOdd=function(A){return Kt("B*",A),this};var Kt=function(A,t){"object"===s(t)?jt(t,A):Z(A)},Tt=function(A){null===A||C===Q&&void 0===A||(A=Mt(A),Z(A))};function Rt(A,t,e,r,n){var i=new NA(t||this.boundingBox,e||this.xStep,r||this.yStep,this.gState,n||this.matrix);i.stream=this.stream;var o=A+"$$"+this.cloneIndex+++"$$";return XA(o,i),i}var jt=function(A,t){var e=xA[A.key],r=bA[e];if(r instanceof HA)Z("q"),Z(Gt(t)),r.gState&&B.setGState(r.gState),Z(A.matrix.toString()+" cm"),Z("/"+e+" sh"),Z("Q");else if(r instanceof NA){var n=new GA(1,0,0,-1,0,ve());A.matrix&&(n=n.multiply(A.matrix||qA),e=Rt.call(r,A.key,A.boundingBox,A.xStep,A.yStep,n).id),Z("q"),Z("/Pattern cs"),Z("/"+e+" scn"),r.gState&&B.setGState(r.gState),Z(t),Z("Q")}},Gt=function(A){switch(A){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Vt=B.moveTo=function(A,t){return Z(b(x(A))+" "+b(H(t))+" m"),this},qt=B.lineTo=function(A,t){return Z(b(x(A))+" "+b(H(t))+" l"),this},Xt=B.curveTo=function(A,t,e,r,n,i){return Z([b(x(A)),b(H(t)),b(x(e)),b(H(r)),b(x(n)),b(H(i)),"c"].join(" ")),this};B.__private__.line=B.line=function(A,t,e,r,n){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||!_t(n))throw new Error("Invalid arguments passed to jsPDF.line");return C===m?this.lines([[e-A,r-t]],A,t,[1,1],n||"S"):this.lines([[e-A,r-t]],A,t,[1,1]).stroke()},B.__private__.lines=B.lines=function(A,t,e,r,n,i){var o,s,a,c,u,l,h,f,B,d,g,p;if("number"==typeof A&&(p=e,e=t,t=A,A=p),r=r||[1,1],i=i||!1,isNaN(t)||isNaN(e)||!Array.isArray(A)||!Array.isArray(r)||!_t(n)||"boolean"!=typeof i)throw new Error("Invalid arguments passed to jsPDF.lines");for(Vt(t,e),o=r[0],s=r[1],c=A.length,d=t,g=e,a=0;a<c;a++)2===(u=A[a]).length?(d=u[0]*o+d,g=u[1]*s+g,qt(d,g)):(l=u[0]*o+d,h=u[1]*s+g,f=u[2]*o+d,B=u[3]*s+g,d=u[4]*o+d,g=u[5]*s+g,Xt(l,h,f,B,d,g));return i&&Ot(),Tt(n),this},B.path=function(A){for(var t=0;t<A.length;t++){var e=A[t],r=e.c;switch(e.op){case"m":Vt(r[0],r[1]);break;case"l":qt(r[0],r[1]);break;case"c":Xt.apply(this,r);break;case"h":Ot()}}return this},B.__private__.rect=B.rect=function(A,t,e,r,n){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||!_t(n))throw new Error("Invalid arguments passed to jsPDF.rect");return C===m&&(r=-r),Z([b(x(A)),b(H(t)),b(x(e)),b(x(r)),"re"].join(" ")),Tt(n),this},B.__private__.triangle=B.triangle=function(A,t,e,r,n,i,o){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||!_t(o))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[e-A,r-t],[n-e,i-r],[A-n,t-i]],A,t,[1,1],o,!0),this},B.__private__.roundedRect=B.roundedRect=function(A,t,e,r,n,i,o){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||!_t(o))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return n=Math.min(n,.5*e),i=Math.min(i,.5*r),this.lines([[e-2*n,0],[n*s,0,n,i-i*s,n,i],[0,r-2*i],[0,i*s,-n*s,i,-n,i],[2*n-e,0],[-n*s,0,-n,-i*s,-n,-i],[0,2*i-r],[0,-i*s,n*s,-i,n,-i]],A+n,t,[1,1],o,!0),this},B.__private__.ellipse=B.ellipse=function(A,t,e,r,n){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||!_t(n))throw new Error("Invalid arguments passed to jsPDF.ellipse");var i=4/3*(Math.SQRT2-1)*e,o=4/3*(Math.SQRT2-1)*r;return Vt(A+e,t),Xt(A+e,t-o,A+i,t-r,A,t-r),Xt(A-i,t-r,A-e,t-o,A-e,t),Xt(A-e,t+o,A-i,t+r,A,t+r),Xt(A+i,t+r,A+e,t+o,A+e,t),Tt(n),this},B.__private__.circle=B.circle=function(A,t,e,r){if(isNaN(A)||isNaN(t)||isNaN(e)||!_t(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(A,t,e,e,r)},B.setFont=function(A,t,e){return e&&(t=y(t,e)),pA=vt(A,t,{disableWarning:!1}),this};var Jt=B.__private__.getFont=B.getFont=function(){return vA[vt.apply(B,arguments)]};B.__private__.getFontList=B.getFontList=function(){var A,t,e={};for(A in FA)if(FA.hasOwnProperty(A))for(t in e[A]=[],FA[A])FA[A].hasOwnProperty(t)&&e[A].push(t);return e},B.addFont=function(A,t,e,r,n){var i=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==i.indexOf(arguments[3])?n=arguments[3]:arguments[3]&&-1==i.indexOf(arguments[3])&&(e=y(e,r)),dt.call(this,A,t,e,n=n||"Identity-H")};var Wt,zt=A.lineWidth||.200025,Yt=B.__private__.getLineWidth=B.getLineWidth=function(){return zt},Zt=B.__private__.setLineWidth=B.setLineWidth=function(A){return zt=A,Z(b(x(A))+" w"),this};B.__private__.setLineDash=SA.API.setLineDash=SA.API.setLineDashPattern=function(A,t){if(A=A||[],t=t||0,isNaN(t)||!Array.isArray(A))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return A=A.map((function(A){return b(x(A))})).join(" "),t=b(x(t)),Z("["+A+"] "+t+" d"),this};var $t=B.__private__.getLineHeight=B.getLineHeight=function(){return nA*Wt};B.__private__.getLineHeight=B.getLineHeight=function(){return nA*Wt};var Ae=B.__private__.setLineHeightFactor=B.setLineHeightFactor=function(A){return"number"==typeof(A=A||1.15)&&(Wt=A),this},te=B.__private__.getLineHeightFactor=B.getLineHeightFactor=function(){return Wt};Ae(A.lineHeight);var ee=B.__private__.getHorizontalCoordinate=function(A){return x(A)},re=B.__private__.getVerticalCoordinate=function(A){return C===Q?A:MA[K].mediaBox.topRightY-MA[K].mediaBox.bottomLeftY-x(A)},ne=B.__private__.getHorizontalCoordinateString=B.getHorizontalCoordinateString=function(A){return b(ee(A))},ie=B.__private__.getVerticalCoordinateString=B.getVerticalCoordinateString=function(A){return b(re(A))},oe=A.strokeColor||"0 G";B.__private__.getStrokeColor=B.getDrawColor=function(){return tt(oe)},B.__private__.setStrokeColor=B.setDrawColor=function(A,t,e,r){return oe=et({ch1:A,ch2:t,ch3:e,ch4:r,pdfColorType:"draw",precision:2}),Z(oe),this};var se=A.fillColor||"0 g";B.__private__.getFillColor=B.getFillColor=function(){return tt(se)},B.__private__.setFillColor=B.setFillColor=function(A,t,e,r){return se=et({ch1:A,ch2:t,ch3:e,ch4:r,pdfColorType:"fill",precision:2}),Z(se),this};var ae=A.textColor||"0 g",ce=B.__private__.getTextColor=B.getTextColor=function(){return tt(ae)};B.__private__.setTextColor=B.setTextColor=function(A,t,e,r){return ae=et({ch1:A,ch2:t,ch3:e,ch4:r,pdfColorType:"text",precision:3}),this};var ue=A.charSpace,le=B.__private__.getCharSpace=B.getCharSpace=function(){return parseFloat(ue||0)};B.__private__.setCharSpace=B.setCharSpace=function(A){if(isNaN(A))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return ue=A,this};var he=0;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.__private__.setLineCap=B.setLineCap=function(A){var t=B.CapJoinStyles[A];if(void 0===t)throw new Error("Line cap style of '"+A+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return he=t,Z(t+" J"),this};var fe=0;B.__private__.setLineJoin=B.setLineJoin=function(A){var t=B.CapJoinStyles[A];if(void 0===t)throw new Error("Line join style of '"+A+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return fe=t,Z(t+" j"),this},B.__private__.setLineMiterLimit=B.__private__.setMiterLimit=B.setLineMiterLimit=B.setMiterLimit=function(A){if(A=A||0,isNaN(A))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Z(b(x(A))+" M"),this},B.GState=EA,B.setGState=function(A){(A="string"==typeof A?PA[DA[A]]:Be(null,A)).equals(kA)||(Z("/"+A.id+" gs"),kA=A)};var Be=function(A,t){if(!A||!DA[A]){var e=!1;for(var r in PA)if(PA.hasOwnProperty(r)&&PA[r].equals(t)){e=!0;break}if(e)t=PA[r];else{var n="GS"+(Object.keys(PA).length+1).toString(10);PA[n]=t,t.id=n}return A&&(DA[A]=t.id),OA.publish("addGState",t),t}};B.addGState=function(A,t){return Be(A,t),this},B.saveGraphicsState=function(){return Z("q"),yA.push({key:pA,size:nA,color:ae}),this},B.restoreGraphicsState=function(){Z("Q");var A=yA.pop();return pA=A.key,nA=A.size,ae=A.color,kA=null,this},B.setCurrentTransformationMatrix=function(A){return Z(A.toString()+" cm"),this},B.comment=function(A){return Z("#"+A),this};var de=function(A,t){var e=A||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(A){isNaN(A)||(e=parseFloat(A))}});var r=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(A){isNaN(A)||(r=parseFloat(A))}});var n="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return n},set:function(A){n=A.toString()}}),this},ge=function(A,t,e,r){de.call(this,A,t),this.type="rect";var n=e||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return n},set:function(A){isNaN(A)||(n=parseFloat(A))}});var i=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return i},set:function(A){isNaN(A)||(i=parseFloat(A))}}),this},pe=function(){this.page=_A,this.currentPage=K,this.pages=J.slice(0),this.pagesContext=MA.slice(0),this.x=mA,this.y=QA,this.matrix=CA,this.width=Qe(K),this.height=ve(K),this.outputDestination=z,this.id="",this.objectNumber=-1};pe.prototype.restore=function(){_A=this.page,K=this.currentPage,MA=this.pagesContext,J=this.pages,mA=this.x,QA=this.y,CA=this.matrix,Ce(K,this.width),Fe(K,this.height),z=this.outputDestination};var we=function(A,t,e,r,n){jA.push(new pe),_A=K=0,J=[],mA=A,QA=t,CA=n,pt([e,r])};for(var me in B.beginFormObject=function(A,t,e,r,n){return we(A,t,e,r,n),this},B.endFormObject=function(A){return function(A){if(RA[A])jA.pop().restore();else{var t=new pe,e="Xo"+(Object.keys(TA).length+1).toString(10);t.id=e,RA[A]=e,TA[e]=t,OA.publish("addFormObject",t),jA.pop().restore()}}(A),this},B.doFormObject=function(A,t){var e=TA[RA[A]];return Z("q"),Z(t.toString()+" cm"),Z("/"+e.id+" Do"),Z("Q"),this},B.getFormObject=function(A){var t=TA[RA[A]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},B.save=function(A,t){return A=A||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(aA(Et(It()),A),"function"==typeof aA.unload&&AA.setTimeout&&setTimeout(aA.unload,911),this):new Promise((function(t,e){try{var r=aA(Et(It()),A);"function"==typeof aA.unload&&AA.setTimeout&&setTimeout(aA.unload,911),t(r)}catch(A){e(A.message)}}))},SA.API)SA.API.hasOwnProperty(me)&&("events"===me&&SA.API.events.length?function(A,t){var e,r,n;for(n=t.length-1;-1!==n;n--)e=t[n][0],r=t[n][1],A.subscribe.apply(A,[e].concat("function"==typeof r?[r]:r))}(OA,SA.API.events):B[me]=SA.API[me]);var Qe=B.getPageWidth=function(A){return(MA[A=A||K].mediaBox.topRightX-MA[A].mediaBox.bottomLeftX)/wA},Ce=B.setPageWidth=function(A,t){MA[A].mediaBox.topRightX=t*wA+MA[A].mediaBox.bottomLeftX},ve=B.getPageHeight=function(A){return(MA[A=A||K].mediaBox.topRightY-MA[A].mediaBox.bottomLeftY)/wA},Fe=B.setPageHeight=function(A,t){MA[A].mediaBox.topRightY=t*wA+MA[A].mediaBox.bottomLeftY};return B.internal={pdfEscape:gt,getStyle:Mt,getFont:Jt,getFontSize:oA,getCharSpace:le,getTextColor:ce,getLineHeight:$t,getLineHeightFactor:te,getLineWidth:Yt,write:$,getHorizontalCoordinate:ee,getVerticalCoordinate:re,getCoordinateString:ne,getVerticalCoordinateString:ie,collections:{},newObject:WA,newAdditionalObject:ZA,newObjectDeferred:zA,newObjectDeferredBegin:YA,getFilters:rt,putStream:nt,events:OA,scaleFactor:wA,pageSize:{getWidth:function(){return Qe(K)},setWidth:function(A){Ce(K,A)},getHeight:function(){return ve(K)},setHeight:function(A){Fe(K,A)}},encryptionOptions:l,encryption:Nt,getEncryptor:function(A){return null!==l?Nt.encryptor(A,0):function(A){return A}},output:xt,getNumberOfPages:Ct,pages:J,out:Z,f2:I,f3:E,getPageInfo:St,getPageInfoByObjId:Pt,getCurrentPageInfo:Dt,getPDFVersion:g,Point:de,Rectangle:ge,Matrix:GA,hasHotfix:Ht},Object.defineProperty(B.internal.pageSize,"width",{get:function(){return Qe(K)},set:function(A){Ce(K,A)},enumerable:!0,configurable:!0}),Object.defineProperty(B.internal.pageSize,"height",{get:function(){return ve(K)},set:function(A){Fe(K,A)},enumerable:!0,configurable:!0}),function(A){for(var t=0,e=rA.length;t<e;t++){var r=dt.call(this,A[t][0],A[t][1],A[t][2],rA[t][3],!0);!1===h&&(f[r]=!0);var n=A[t][0].split("-");Bt({id:r,fontName:n[0],fontStyle:n[1]||""})}OA.publish("addFonts",{fonts:vA,dictionary:FA})}.call(B,rA),pA="F1",wt(n,e),OA.publish("initialized"),B}UA.prototype.lsbFirstWord=function(A){return String.fromCharCode(255&A,A>>8&255,A>>16&255,A>>24&255)},UA.prototype.toHexString=function(A){return A.split("").map((function(A){return("0"+(255&A.charCodeAt(0)).toString(16)).slice(-2)})).join("")},UA.prototype.hexToBytes=function(A){for(var t=[],e=0;e<A.length;e+=2)t.push(String.fromCharCode(parseInt(A.substr(e,2),16)));return t.join("")},UA.prototype.processOwnerPassword=function(A,t){return yA(CA(t).substr(0,5),A)},UA.prototype.encryptor=function(A,t){var e=CA(this.encryptionKey+String.fromCharCode(255&A,A>>8&255,A>>16&255,255&t,t>>8&255)).substr(0,10);return function(A){return yA(e,A)}},EA.prototype.equals=function(A){var t,e="id,objectNumber,equals";if(!A||s(A)!==s(this))return!1;var r=0;for(t in this)if(!(e.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!A.hasOwnProperty(t))return!1;if(this[t]!==A[t])return!1;r++}for(t in A)A.hasOwnProperty(t)&&e.indexOf(t)<0&&r--;return 0===r},SA.API={events:[]},SA.version="3.0.1";var PA=SA.API,DA=1,kA=function(A){return A.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},_A=function(A){return A.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},MA=function(A){return A.toFixed(2)},OA=function(A){return A.toFixed(5)};PA.__acroform__={};var KA=function(A,t){A.prototype=Object.create(t.prototype),A.prototype.constructor=A},TA=function(A){return A*DA},RA=function(A){var t=new it,e=mt.internal.getHeight(A)||0,r=mt.internal.getWidth(A)||0;return t.BBox=[0,0,Number(MA(r)),Number(MA(e))],t},jA=PA.__acroform__.setBit=function(A,t){if(A=A||0,t=t||0,isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return A|1<<t},GA=PA.__acroform__.clearBit=function(A,t){if(A=A||0,t=t||0,isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return A&~(1<<t)},VA=PA.__acroform__.getBit=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return A&1<<t?1:0},qA=PA.__acroform__.getBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return VA(A,t-1)},XA=PA.__acroform__.setBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return jA(A,t-1)},JA=PA.__acroform__.clearBitForPdf=function(A,t){if(isNaN(A)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return GA(A,t-1)},WA=PA.__acroform__.calculateCoordinates=function(A,t){var e=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,n=A[0],i=A[1],o=A[2],s=A[3],a={};return a.lowerLeft_X=e(n)||0,a.lowerLeft_Y=r(i+s)||0,a.upperRight_X=e(n+o)||0,a.upperRight_Y=r(i)||0,[Number(MA(a.lowerLeft_X)),Number(MA(a.lowerLeft_Y)),Number(MA(a.upperRight_X)),Number(MA(a.upperRight_Y))]},zA=function(A){if(A.appearanceStreamContent)return A.appearanceStreamContent;if(A.V||A.DV){var t=[],e=A._V||A.DV,r=YA(A,e),n=A.scope.internal.getFont(A.fontName,A.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(A.scope.__private__.encodeColorString(A.color)),t.push("/"+n+" "+MA(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=RA(A);return i.scope=A.scope,i.stream=t.join("\n"),i}},YA=function(A,t){var e=0===A.fontSize?A.maxFontSize:A.fontSize,r={text:"",fontSize:""},n=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" ");n=A.multiline?n.map((function(A){return A.split("\n")})):n.map((function(A){return[A]}));var i=e,o=mt.internal.getHeight(A)||0;o=o<0?-o:o;var s=mt.internal.getWidth(A)||0;s=s<0?-s:s;var a=function(t,e,r){if(t+1<n.length){var i=e+" "+n[t+1][0];return ZA(i,A,r).width<=s-4}return!1};i++;A:for(;i>0;){t="",i--;var c,u,l=ZA("3",A,i).height,h=A.multiline?o-i:(o-l)/2,f=h+=2,B=0,d=0,g=0;if(i<=0){t="(...) Tj\n",t+="% Width of Text: "+ZA(t,A,i=12).width+", FieldWidth:"+s+"\n";break}for(var p="",w=0,m=0;m<n.length;m++)if(n.hasOwnProperty(m)){var Q=!1;if(1!==n[m].length&&g!==n[m].length-1){if((l+2)*(w+2)+2>o)continue A;p+=n[m][g],Q=!0,d=m,m--}else{p=" "==(p+=n[m][g]+" ").substr(p.length-1)?p.substr(0,p.length-1):p;var C=parseInt(m),v=a(C,p,i),F=m>=n.length-1;if(v&&!F){p+=" ",g=0;continue}if(v||F){if(F)d=C;else if(A.multiline&&(l+2)*(w+2)+2>o)continue A}else{if(!A.multiline)continue A;if((l+2)*(w+2)+2>o)continue A;d=C}}for(var y="",b=B;b<=d;b++){var U=n[b];if(A.multiline){if(b===d){y+=U[g]+" ",g=(g+1)%U.length;continue}if(b===B){y+=U[U.length-1]+" ";continue}}y+=U[0]+" "}switch(y=" "==y.substr(y.length-1)?y.substr(0,y.length-1):y,u=ZA(y,A,i).width,A.textAlign){case"right":c=s-u-2;break;case"center":c=(s-u)/2;break;default:c=2}t+=MA(c)+" "+MA(f)+" Td\n",t+="("+kA(y)+") Tj\n",t+=-MA(c)+" 0 Td\n",f=-(i+2),u=0,B=Q?d:d+1,w++,p=""}break}return r.text=t,r.fontSize=i,r},ZA=function(A,t,e){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),n=t.scope.getStringUnitWidth(A,{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:n}},$A={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},At=function(A,t){var e={type:"reference",object:A};void 0===t.internal.getPageInfo(A.page).pageContext.annotations.find((function(A){return A.type===e.type&&A.object===e.object}))&&t.internal.getPageInfo(A.page).pageContext.annotations.push(e)},tt=function(A,t){if(t.scope=A,void 0!==A.internal&&(void 0===A.internal.acroformPlugin||!1===A.internal.acroformPlugin.isInitialized)){if(st.FieldNum=0,A.internal.acroformPlugin=JSON.parse(JSON.stringify($A)),A.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");DA=A.internal.scaleFactor,A.internal.acroformPlugin.acroFormDictionaryRoot=new ot,A.internal.acroformPlugin.acroFormDictionaryRoot.scope=A,A.internal.acroformPlugin.acroFormDictionaryRoot._eventID=A.internal.events.subscribe("postPutResources",(function(){var t;(t=A).internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})),A.internal.events.subscribe("buildDocument",(function(){!function(A){A.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=A.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var e in t)if(t.hasOwnProperty(e)){var r=t[e];r.objId=void 0,r.hasAnnotation&&At(r,A)}}(A)})),A.internal.events.subscribe("putCatalog",(function(){!function(A){if(void 0===A.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");A.internal.write("/AcroForm "+A.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(A)})),A.internal.events.subscribe("postPutPages",(function(t){!function(A,t){var e=!A;for(var r in A||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),A=A||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(A.hasOwnProperty(r)){var n=A[r],i=[],o=n.Rect;if(n.Rect&&(n.Rect=WA(n.Rect,t)),t.internal.newObjectDeferredBegin(n.objId,!0),n.DA=mt.createDefaultAppearanceStream(n),"object"===s(n)&&"function"==typeof n.getKeyValueListForStream&&(i=n.getKeyValueListForStream()),n.Rect=o,n.hasAppearanceStream&&!n.appearanceStreamContent){var a=zA(n);i.push({key:"AP",value:"<</N "+a+">>"}),t.internal.acroformPlugin.xForms.push(a)}if(n.appearanceStreamContent){var c="";for(var u in n.appearanceStreamContent)if(n.appearanceStreamContent.hasOwnProperty(u)){var l=n.appearanceStreamContent[u];if(c+="/"+u+" ",c+="<<",Object.keys(l).length>=1||Array.isArray(l)){for(var r in l)if(l.hasOwnProperty(r)){var h=l[r];"function"==typeof h&&(h=h.call(t,n)),c+="/"+r+" "+h+" ",t.internal.acroformPlugin.xForms.indexOf(h)>=0||t.internal.acroformPlugin.xForms.push(h)}}else"function"==typeof(h=l)&&(h=h.call(t,n)),c+="/"+r+" "+h,t.internal.acroformPlugin.xForms.indexOf(h)>=0||t.internal.acroformPlugin.xForms.push(h);c+=">>"}i.push({key:"AP",value:"<<\n"+c+">>"})}t.internal.putStream({additionalKeyValues:i,objectId:n.objId}),t.internal.out("endobj")}e&&function(A,t){for(var e in A)if(A.hasOwnProperty(e)){var r=e,n=A[e];t.internal.newObjectDeferredBegin(n.objId,!0),"object"===s(n)&&"function"==typeof n.putStream&&n.putStream(),delete A[r]}}(t.internal.acroformPlugin.xForms,t)}(t,A)})),A.internal.acroformPlugin.isInitialized=!0}},et=PA.__acroform__.arrayToPdfArray=function(A,t,e){var r=function(A){return A};if(Array.isArray(A)){for(var n="[",i=0;i<A.length;i++)switch(0!==i&&(n+=" "),s(A[i])){case"boolean":case"number":case"object":n+=A[i].toString();break;case"string":"/"!==A[i].substr(0,1)?(void 0!==t&&e&&(r=e.internal.getEncryptor(t)),n+="("+kA(r(A[i].toString()))+")"):n+=A[i].toString()}return n+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},rt=function(A,t,e){var r=function(A){return A};return void 0!==t&&e&&(r=e.internal.getEncryptor(t)),(A=A||"").toString(),"("+kA(r(A))+")"},nt=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(A){this._objId=A}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};nt.prototype.toString=function(){return this.objId+" 0 R"},nt.prototype.putStream=function(){var A=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:A,objectId:this.objId}),this.scope.internal.out("endobj")},nt.prototype.getKeyValueListForStream=function(){var A=[],t=Object.getOwnPropertyNames(this).filter((function(A){return"content"!=A&&"appearanceStreamContent"!=A&&"scope"!=A&&"objId"!=A&&"_"!=A.substring(0,1)}));for(var e in t)if(!1===Object.getOwnPropertyDescriptor(this,t[e]).configurable){var r=t[e],n=this[r];n&&(Array.isArray(n)?A.push({key:r,value:et(n,this.objId,this.scope)}):n instanceof nt?(n.scope=this.scope,A.push({key:r,value:n.objId+" 0 R"})):"function"!=typeof n&&A.push({key:r,value:n}))}return A};var it=function(){nt.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var A,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(A){t=A}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){A=t.trim()},get:function(){return A||null}})};KA(it,nt);var ot=function(){nt.call(this);var A,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(A){var t=function(A){return A};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+kA(t(A))+")"}},set:function(t){A=t}})};KA(ot,nt);var st=function A(){nt.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(A){if(isNaN(A))throw new Error('Invalid value "'+A+'" for attribute F supplied.');t=A}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(t,3))},set:function(A){!0===Boolean(A)?this.F=XA(t,3):this.F=JA(t,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(A){if(isNaN(A))throw new Error('Invalid value "'+A+'" for attribute Ff supplied.');e=A}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(A){r=void 0!==A?A:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(A){r[0]=A}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(A){r[1]=A}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(A){r[2]=A}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(A){r[3]=A}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(A){switch(A){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=A;break;default:throw new Error('Invalid value "'+A+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof dt)return;i="FieldObject"+A.FieldNum++}var t=function(A){return A};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+kA(t(i))+")"},set:function(A){i=A.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(A){i=A}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(A){o=A}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(A){s=A}});var a=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return a},set:function(A){a=A}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===c?50/DA:c},set:function(A){c=A}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(A){u=A}});var l="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!l||this instanceof dt||this instanceof pt))return rt(l,this.objId,this.scope)},set:function(A){A=A.toString(),l=A}});var h=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof ht==0?rt(h,this.objId,this.scope):h},set:function(A){A=A.toString(),h=this instanceof ht==0?"("===A.substr(0,1)?_A(A.substr(1,A.length-2)):_A(A):A}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ht==1?_A(h.substr(1,h.length-1)):h},set:function(A){A=A.toString(),h=this instanceof ht==1?"/"+A:A}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(A){this.V=A}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof ht==0?rt(f,this.objId,this.scope):f},set:function(A){A=A.toString(),f=this instanceof ht==0?"("===A.substr(0,1)?_A(A.substr(1,A.length-2)):_A(A):A}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ht==1?_A(f.substr(1,f.length-1)):f},set:function(A){A=A.toString(),f=this instanceof ht==1?"/"+A:A}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var B,d=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return d},set:function(A){A=Boolean(A),d=A}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(B)return B},set:function(A){B=A}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,1))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,1):this.Ff=JA(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,2))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,2):this.Ff=JA(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,3))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,3):this.Ff=JA(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(A){if(-1===[0,1,2].indexOf(A))throw new Error('Invalid value "'+A+'" for attribute Q supplied.');g=A}}),Object.defineProperty(this,"textAlign",{get:function(){var A;switch(g){case 0:default:A="left";break;case 1:A="center";break;case 2:A="right"}return A},configurable:!0,enumerable:!0,set:function(A){switch(A){case"right":case 2:g=2;break;case"center":case 1:g=1;break;default:g=0}}})};KA(st,nt);var at=function(){st.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var A=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return A},set:function(t){A=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return et(t,this.objId,this.scope)},set:function(A){var e,r;r=[],"string"==typeof(e=A)&&(r=function(A,t,e){e||(e=1);for(var r,n=[];r=t.exec(A);)n.push(r[e]);return n}(e,/\((.*?)\)/g)),t=r}}),this.getOptions=function(){return t},this.setOptions=function(A){t=A,this.sort&&t.sort()},this.addOption=function(A){A=(A=A||"").toString(),t.push(A),this.sort&&t.sort()},this.removeOption=function(A,e){for(e=e||!1,A=(A=A||"").toString();-1!==t.indexOf(A)&&(t.splice(t.indexOf(A),1),!1!==e););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,18))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,18):this.Ff=JA(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,19))},set:function(A){!0===this.combo&&(!0===Boolean(A)?this.Ff=XA(this.Ff,19):this.Ff=JA(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,20))},set:function(A){!0===Boolean(A)?(this.Ff=XA(this.Ff,20),t.sort()):this.Ff=JA(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,22))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,22):this.Ff=JA(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,23))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,23):this.Ff=JA(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,27))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,27):this.Ff=JA(this.Ff,27)}}),this.hasAppearanceStream=!1};KA(at,st);var ct=function(){at.call(this),this.fontName="helvetica",this.combo=!1};KA(ct,at);var ut=function(){ct.call(this),this.combo=!0};KA(ut,ct);var lt=function(){ut.call(this),this.edit=!0};KA(lt,ut);var ht=function(){st.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,15))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,15):this.Ff=JA(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,16))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,16):this.Ff=JA(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,17))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,17):this.Ff=JA(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,26))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,26):this.Ff=JA(this.Ff,26)}});var A,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(A){return A};if(this.scope&&(A=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var e,r=[];for(e in r.push("<<"),t)r.push("/"+e+" ("+kA(A(t[e]))+")");return r.push(">>"),r.join("\n")}},set:function(A){"object"===s(A)&&(t=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(A){"string"==typeof A&&(t.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return A.substr(1,A.length-1)},set:function(t){A="/"+t}})};KA(ht,st);var ft=function(){ht.call(this),this.pushButton=!0};KA(ft,ht);var Bt=function(){ht.call(this),this.radio=!0,this.pushButton=!1;var A=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return A},set:function(t){A=void 0!==t?t:[]}})};KA(Bt,ht);var dt=function(){var A,t;st.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(A){t=A}});var e,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(A){return A};this.scope&&(A=this.scope.internal.getEncryptor(this.objId));var t,e=[];for(t in e.push("<<"),r)e.push("/"+t+" ("+kA(A(r[t]))+")");return e.push(">>"),e.join("\n")},set:function(A){"object"===s(A)&&(r=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(A){"string"==typeof A&&(r.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(A){e=A}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(A){e="/"+A}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=mt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};KA(dt,st),Bt.prototype.setAppearance=function(A){if(!("createAppearanceStream"in A)||!("getCA"in A))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var e=this.Kids[t];e.appearanceStreamContent=A.createAppearanceStream(e.optionName),e.caption=A.getCA()}},Bt.prototype.createOption=function(A){var t=new dt;return t.Parent=this,t.optionName=A,this.Kids.push(t),vt.call(this.scope,t),t};var gt=function(){ht.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=mt.CheckBox.createAppearanceStream()};KA(gt,ht);var pt=function(){st.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,13))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,13):this.Ff=JA(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,21))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,21):this.Ff=JA(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,23))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,23):this.Ff=JA(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,24))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,24):this.Ff=JA(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,25))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,25):this.Ff=JA(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,26))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,26):this.Ff=JA(this.Ff,26)}});var A=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return A},set:function(t){Number.isInteger(t)&&(A=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};KA(pt,st);var wt=function(){pt.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(qA(this.Ff,14))},set:function(A){!0===Boolean(A)?this.Ff=XA(this.Ff,14):this.Ff=JA(this.Ff,14)}}),this.password=!0};KA(wt,pt);var mt={CheckBox:{createAppearanceStream:function(){return{N:{On:mt.CheckBox.YesNormal},D:{On:mt.CheckBox.YesPushDown,Off:mt.CheckBox.OffPushDown}}},YesPushDown:function(A){var t=RA(A);t.scope=A.scope;var e=[],r=A.scope.internal.getFont(A.fontName,A.fontStyle).id,n=A.scope.__private__.encodeColorString(A.color),i=YA(A,A.caption);return e.push("0.749023 g"),e.push("0 0 "+MA(mt.internal.getWidth(A))+" "+MA(mt.internal.getHeight(A))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+r+" "+MA(i.fontSize)+" Tf "+n),e.push("BT"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC"),t.stream=e.join("\n"),t},YesNormal:function(A){var t=RA(A);t.scope=A.scope;var e=A.scope.internal.getFont(A.fontName,A.fontStyle).id,r=A.scope.__private__.encodeColorString(A.color),n=[],i=mt.internal.getHeight(A),o=mt.internal.getWidth(A),s=YA(A,A.caption);return n.push("1 g"),n.push("0 0 "+MA(o)+" "+MA(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+MA(o-1)+" "+MA(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+e+" "+MA(s.fontSize)+" Tf "+r),n.push(s.text),n.push("ET"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(A){var t=RA(A);t.scope=A.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+MA(mt.internal.getWidth(A))+" "+MA(mt.internal.getHeight(A))+" re"),e.push("f"),t.stream=e.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(A){var t={D:{Off:mt.RadioButton.Circle.OffPushDown},N:{}};return t.N[A]=mt.RadioButton.Circle.YesNormal,t.D[A]=mt.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(A){var t=RA(A);t.scope=A.scope;var e=[],r=mt.internal.getWidth(A)<=mt.internal.getHeight(A)?mt.internal.getWidth(A)/4:mt.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=mt.internal.Bezier_C,i=Number((r*n).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+OA(mt.internal.getWidth(A)/2)+" "+OA(mt.internal.getHeight(A)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),e.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),e.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),e.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t},YesPushDown:function(A){var t=RA(A);t.scope=A.scope;var e=[],r=mt.internal.getWidth(A)<=mt.internal.getHeight(A)?mt.internal.getWidth(A)/4:mt.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*mt.internal.Bezier_C).toFixed(5)),o=Number((r*mt.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+OA(mt.internal.getWidth(A)/2)+" "+OA(mt.internal.getHeight(A)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+OA(mt.internal.getWidth(A)/2)+" "+OA(mt.internal.getHeight(A)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),e.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),e.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),e.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t},OffPushDown:function(A){var t=RA(A);t.scope=A.scope;var e=[],r=mt.internal.getWidth(A)<=mt.internal.getHeight(A)?mt.internal.getWidth(A)/4:mt.internal.getHeight(A)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*mt.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+OA(mt.internal.getWidth(A)/2)+" "+OA(mt.internal.getHeight(A)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join("\n"),t}},Cross:{createAppearanceStream:function(A){var t={D:{Off:mt.RadioButton.Cross.OffPushDown},N:{}};return t.N[A]=mt.RadioButton.Cross.YesNormal,t.D[A]=mt.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(A){var t=RA(A);t.scope=A.scope;var e=[],r=mt.internal.calculateCross(A);return e.push("q"),e.push("1 1 "+MA(mt.internal.getWidth(A)-2)+" "+MA(mt.internal.getHeight(A)-2)+" re"),e.push("W"),e.push("n"),e.push(MA(r.x1.x)+" "+MA(r.x1.y)+" m"),e.push(MA(r.x2.x)+" "+MA(r.x2.y)+" l"),e.push(MA(r.x4.x)+" "+MA(r.x4.y)+" m"),e.push(MA(r.x3.x)+" "+MA(r.x3.y)+" l"),e.push("s"),e.push("Q"),t.stream=e.join("\n"),t},YesPushDown:function(A){var t=RA(A);t.scope=A.scope;var e=mt.internal.calculateCross(A),r=[];return r.push("0.749023 g"),r.push("0 0 "+MA(mt.internal.getWidth(A))+" "+MA(mt.internal.getHeight(A))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+MA(mt.internal.getWidth(A)-2)+" "+MA(mt.internal.getHeight(A)-2)+" re"),r.push("W"),r.push("n"),r.push(MA(e.x1.x)+" "+MA(e.x1.y)+" m"),r.push(MA(e.x2.x)+" "+MA(e.x2.y)+" l"),r.push(MA(e.x4.x)+" "+MA(e.x4.y)+" m"),r.push(MA(e.x3.x)+" "+MA(e.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(A){var t=RA(A);t.scope=A.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+MA(mt.internal.getWidth(A))+" "+MA(mt.internal.getHeight(A))+" re"),e.push("f"),t.stream=e.join("\n"),t}}},createDefaultAppearanceStream:function(A){var t=A.scope.internal.getFont(A.fontName,A.fontStyle).id,e=A.scope.__private__.encodeColorString(A.color);return"/"+t+" "+A.fontSize+" Tf "+e}};mt.internal={Bezier_C:.551915024494,calculateCross:function(A){var t=mt.internal.getWidth(A),e=mt.internal.getHeight(A),r=Math.min(t,e);return{x1:{x:(t-r)/2,y:(e-r)/2+r},x2:{x:(t-r)/2+r,y:(e-r)/2},x3:{x:(t-r)/2,y:(e-r)/2},x4:{x:(t-r)/2+r,y:(e-r)/2+r}}}},mt.internal.getWidth=function(A){var t=0;return"object"===s(A)&&(t=TA(A.Rect[2])),t},mt.internal.getHeight=function(A){var t=0;return"object"===s(A)&&(t=TA(A.Rect[3])),t};var Qt,Ct,vt=PA.addField=function(A){if(tt(this,A),!(A instanceof st))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=A).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),A.page=A.scope.internal.getCurrentPageInfo().pageNumber,this};function Ft(A){return A.reduce((function(A,t,e){return A[t]=e,A}),{})}PA.AcroFormChoiceField=at,PA.AcroFormListBox=ct,PA.AcroFormComboBox=ut,PA.AcroFormEditBox=lt,PA.AcroFormButton=ht,PA.AcroFormPushButton=ft,PA.AcroFormRadioButton=Bt,PA.AcroFormCheckBox=gt,PA.AcroFormTextField=pt,PA.AcroFormPasswordField=wt,PA.AcroFormAppearance=mt,PA.AcroForm={ChoiceField:at,ListBox:ct,ComboBox:ut,EditBox:lt,Button:ht,PushButton:ft,RadioButton:Bt,CheckBox:gt,TextField:pt,PasswordField:wt,Appearance:mt},SA.AcroForm={ChoiceField:at,ListBox:ct,ComboBox:ut,EditBox:lt,Button:ht,PushButton:ft,RadioButton:Bt,CheckBox:gt,TextField:pt,PasswordField:wt,Appearance:mt},function(A){A.__addimage__={};var t="UNKNOWN",e={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=A.__addimage__.getImageFileTypeByImageData=function(A,r){var n,i,o,s,a,c=t;if("RGBA"===(r=r||t)||void 0!==A.data&&A.data instanceof Uint8ClampedArray&&"height"in A&&"width"in A)return"RGBA";if(F(A))for(a in e)for(o=e[a],n=0;n<o.length;n+=1){for(s=!0,i=0;i<o[n].length;i+=1)if(void 0!==o[n][i]&&o[n][i]!==A[i]){s=!1;break}if(!0===s){c=a;break}}else for(a in e)for(o=e[a],n=0;n<o.length;n+=1){for(s=!0,i=0;i<o[n].length;i+=1)if(void 0!==o[n][i]&&o[n][i]!==A.charCodeAt(i)){s=!1;break}if(!0===s){c=a;break}}return c===t&&r!==t&&(c=r),c},n=function A(t){for(var e=this.internal.write,r=this.internal.putStream,n=(0,this.internal.getFilters)();-1!==n.indexOf("FlateEncode");)n.splice(n.indexOf("FlateEncode"),1);t.objectId=this.internal.newObject();var i=[];if(i.push({key:"Type",value:"/XObject"}),i.push({key:"Subtype",value:"/Image"}),i.push({key:"Width",value:t.width}),i.push({key:"Height",value:t.height}),t.colorSpace===p.INDEXED?i.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(t.palette.length/3-1)+" "+("sMask"in t&&void 0!==t.sMask?t.objectId+2:t.objectId+1)+" 0 R]"}):(i.push({key:"ColorSpace",value:"/"+t.colorSpace}),t.colorSpace===p.DEVICE_CMYK&&i.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),i.push({key:"BitsPerComponent",value:t.bitsPerComponent}),"decodeParameters"in t&&void 0!==t.decodeParameters&&i.push({key:"DecodeParms",value:"<<"+t.decodeParameters+">>"}),"transparency"in t&&Array.isArray(t.transparency)){for(var o="",s=0,a=t.transparency.length;s<a;s++)o+=t.transparency[s]+" "+t.transparency[s]+" ";i.push({key:"Mask",value:"["+o+"]"})}void 0!==t.sMask&&i.push({key:"SMask",value:t.objectId+1+" 0 R"});var c=void 0!==t.filter?["/"+t.filter]:void 0;if(r({data:t.data,additionalKeyValues:i,alreadyAppliedFilters:c,objectId:t.objectId}),e("endobj"),"sMask"in t&&void 0!==t.sMask){var u="/Predictor "+t.predictor+" /Colors 1 /BitsPerComponent "+t.bitsPerComponent+" /Columns "+t.width,l={width:t.width,height:t.height,colorSpace:"DeviceGray",bitsPerComponent:t.bitsPerComponent,decodeParameters:u,data:t.sMask};"filter"in t&&(l.filter=t.filter),A.call(this,l)}if(t.colorSpace===p.INDEXED){var h=this.internal.newObject();r({data:b(new Uint8Array(t.palette)),objectId:h}),e("endobj")}},i=function(){var A=this.internal.collections.addImage_images;for(var t in A)n.call(this,A[t])},o=function(){var A,t=this.internal.collections.addImage_images,e=this.internal.write;for(var r in t)e("/I"+(A=t[r]).index,A.objectId,"0","R")},a=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",o))},c=function(){var A=this.internal.collections.addImage_images;return a.call(this),A},u=function(){return Object.keys(this.internal.collections.addImage_images).length},l=function(t){return"function"==typeof A["process"+t.toUpperCase()]},h=function(A){return"object"===s(A)&&1===A.nodeType},f=function(t,e){if("IMG"===t.nodeName&&t.hasAttribute("src")){var r=""+t.getAttribute("src");if(0===r.indexOf("data:image/"))return oA(unescape(r).split("base64,").pop());var n=A.loadFile(r,!0);if(void 0!==n)return n}if("CANVAS"===t.nodeName){if(0===t.width||0===t.height)throw new Error("Given canvas must have data. Canvas width: "+t.width+", height: "+t.height);var i;switch(e){case"PNG":i="image/png";break;case"WEBP":i="image/webp";break;default:i="image/jpeg"}return oA(t.toDataURL(i,1).split("base64,").pop())}},B=function(A){var t=this.internal.collections.addImage_images;if(t)for(var e in t)if(A===t[e].alias)return t[e]},d=function(A,t,e){return A||t||(A=-96,t=-96),A<0&&(A=-1*e.width*72/A/this.internal.scaleFactor),t<0&&(t=-1*e.height*72/t/this.internal.scaleFactor),0===A&&(A=t*e.width/e.height),0===t&&(t=A*e.height/e.width),[A,t]},g=function(A,t,e,r,n,i){var o=d.call(this,e,r,n),s=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,u=c.call(this);if(e=o[0],r=o[1],u[n.index]=n,i){i*=Math.PI/180;var l=Math.cos(i),h=Math.sin(i),f=function(A){return A.toFixed(4)},B=[f(l),f(h),f(-1*h),f(l),0,0,"cm"]}this.internal.write("q"),i?(this.internal.write([1,"0","0",1,s(A),a(t+r),"cm"].join(" ")),this.internal.write(B.join(" ")),this.internal.write([s(e),"0","0",s(r),"0","0","cm"].join(" "))):this.internal.write([s(e),"0","0",s(r),s(A),a(t+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+n.index+" Do"),this.internal.write("Q")},p=A.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};A.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var w=A.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},m=A.__addimage__.sHashCode=function(A){var t,e,r=0;if("string"==typeof A)for(e=A.length,t=0;t<e;t++)r=(r<<5)-r+A.charCodeAt(t),r|=0;else if(F(A))for(e=A.byteLength/2,t=0;t<e;t++)r=(r<<5)-r+A[t],r|=0;return r},Q=A.__addimage__.validateStringAsBase64=function(A){(A=A||"").toString().trim();var t=!0;return 0===A.length&&(t=!1),A.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(A.substr(0,A.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(A.substr(-2))&&(t=!1),t},C=A.__addimage__.extractImageFromDataUrl=function(A){if(null==A)return null;if(!(A=A.trim()).startsWith("data:"))return null;var t=A.indexOf(",");return t<0?null:A.substring(0,t).trim().endsWith("base64")?A.substring(t+1):null},v=A.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};A.__addimage__.isArrayBuffer=function(A){return v()&&A instanceof ArrayBuffer};var F=A.__addimage__.isArrayBufferView=function(A){return v()&&"undefined"!=typeof Uint32Array&&(A instanceof Int8Array||A instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&A instanceof Uint8ClampedArray||A instanceof Int16Array||A instanceof Uint16Array||A instanceof Int32Array||A instanceof Uint32Array||A instanceof Float32Array||A instanceof Float64Array)},y=A.__addimage__.binaryStringToUint8Array=function(A){for(var t=A.length,e=new Uint8Array(t),r=0;r<t;r++)e[r]=A.charCodeAt(r);return e},b=A.__addimage__.arrayBufferToBinaryString=function(A){for(var t="",e=F(A)?A:new Uint8Array(A),r=0;r<e.length;r+=8192)t+=String.fromCharCode.apply(null,e.subarray(r,r+8192));return t};A.addImage=function(){var A,e,r,n,i,o,c,u,l;if("number"==typeof arguments[1]?(e=t,r=arguments[1],n=arguments[2],i=arguments[3],o=arguments[4],c=arguments[5],u=arguments[6],l=arguments[7]):(e=arguments[1],r=arguments[2],n=arguments[3],i=arguments[4],o=arguments[5],c=arguments[6],u=arguments[7],l=arguments[8]),"object"===s(A=arguments[0])&&!h(A)&&"imageData"in A){var f=A;A=f.imageData,e=f.format||e||t,r=f.x||r||0,n=f.y||n||0,i=f.w||f.width||i,o=f.h||f.height||o,c=f.alias||c,u=f.compression||u,l=f.rotation||f.angle||l}var B=this.internal.getFilters();if(void 0===u&&-1!==B.indexOf("FlateEncode")&&(u="SLOW"),isNaN(r)||isNaN(n))throw new Error("Invalid coordinates passed to jsPDF.addImage");a.call(this);var d=U.call(this,A,e,c,u);return g.call(this,r,n,i,o,d,l),this};var U=function(e,n,i,o){var s,a,c;if("string"==typeof e&&r(e)===t){e=unescape(e);var d=L(e,!1);(""!==d||void 0!==(d=A.loadFile(e,!0)))&&(e=d)}if(h(e)&&(e=f(e,n)),n=r(e,n),!l(n))throw new Error("addImage does not support files of type '"+n+"', please ensure that a plugin for '"+n+"' support is added.");if((null==(c=i)||0===c.length)&&(i=function(A){return"string"==typeof A||F(A)?m(A):F(A.data)?m(A.data):null}(e)),(s=B.call(this,i))||(v()&&(e instanceof Uint8Array||"RGBA"===n||(a=e,e=y(e))),s=this["process"+n.toUpperCase()](e,u.call(this),i,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in A.image_compression?t:w.NONE}(o),a)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},L=A.__addimage__.convertBase64ToBinaryString=function(A,t){t="boolean"!=typeof t||t;var e,r="";if("string"==typeof A){var n;e=null!==(n=C(A))&&void 0!==n?n:A;try{r=oA(e)}catch(A){if(t)throw Q(e)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+A.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return r};A.getImageProperties=function(e){var n,i,o="";if(h(e)&&(e=f(e)),"string"==typeof e&&r(e)===t&&(""===(o=L(e,!1))&&(o=A.loadFile(e)||""),e=o),i=r(e),!l(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if(!v()||e instanceof Uint8Array||(e=y(e)),!(n=this["process"+i.toUpperCase()](e)))throw new Error("An unknown error occurred whilst processing the image");return n.fileType=i,n}}(SA.API),
85
85
  /**
86
86
  * @license
87
87
  * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
@@ -105,7 +105,7 @@ function(A){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[6515
105
105
  * Licensed under the MIT License.
106
106
  * http://opensource.org/licenses/mit-license
107
107
  */
108
- function(A){var t=function(){var A=void 0;Object.defineProperty(this,"pdf",{get:function(){return A},set:function(t){A=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(A){t=isNaN(A)||!1===Number.isInteger(A)||A<0?150:A,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var e=300;Object.defineProperty(this,"height",{get:function(){return e},set:function(A){e=isNaN(A)||!1===Number.isInteger(A)||A<0?300:A,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=e+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(A){r=A}});var n={};Object.defineProperty(this,"style",{get:function(){return n},set:function(A){n=A}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(A,t){var e;if("2d"!==(A=A||"2d"))return null;for(e in t)this.pdf.context2d.hasOwnProperty(e)&&(this.pdf.context2d[e]=t[e]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},A.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(SA.API),function(A){var t={left:0,top:0,bottom:0,right:0},e=!1,r=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var A=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return A},set:function(t){A=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(A){t=A}});var e=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return e},set:function(A){e=A}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(A){r=A}});var n=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return n},set:function(A){n=A}});var i=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return i},set:function(A){i=A}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(A){o=A}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},A.setHeaderFunction=function(A){return r.call(this),this.internal.__cell__.headerFunction="function"==typeof A?A:void 0,this},A.getTextDimensions=function(A,t){r.call(this);var e=(t=t||{}).fontSize||this.getFontSize(),n=t.font||this.getFont(),i=t.scaleFactor||this.internal.scaleFactor,o=0,s=0,a=0,c=this;if(!Array.isArray(A)&&"string"!=typeof A){if("number"!=typeof A)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");A=String(A)}var u=t.maxWidth;u>0?"string"==typeof A?A=this.splitTextToSize(A,u):"[object Array]"===Object.prototype.toString.call(A)&&(A=A.reduce((function(A,t){return A.concat(c.splitTextToSize(t,u))}),[])):A=Array.isArray(A)?A:[A];for(var l=0;l<A.length;l++)o<(a=this.getStringUnitWidth(A[l],{font:n})*e)&&(o=a);return 0!==o&&(s=A.length),{w:o/=i,h:Math.max((s*e*this.getLineHeightFactor()-e*(this.getLineHeightFactor()-1))/i,0)}},A.cellAddPage=function(){r.call(this),this.addPage();var A=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new i(A.left,A.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=A.cell=function(){var A;A=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var n=this.internal.__cell__.lastCell,o=this.internal.__cell__.padding,s=this.internal.__cell__.margins||t,a=this.internal.__cell__.tableHeaderRow,c=this.internal.__cell__.printHeaders;return void 0!==n.lineNumber&&(n.lineNumber===A.lineNumber?(A.x=(n.x||0)+(n.width||0),A.y=n.y||0):n.y+n.height+A.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),A.y=s.top,c&&a&&(this.printHeaderRow(A.lineNumber,!0),A.y+=a[0].height)):A.y=n.y+n.height||A.y),void 0!==A.text[0]&&(this.rect(A.x,A.y,A.width,A.height,!0===e?"FD":void 0),"right"===A.align?this.text(A.text,A.x+A.width-o,A.y+o,{align:"right",baseline:"top"}):"center"===A.align?this.text(A.text,A.x+A.width/2,A.y+o,{align:"center",baseline:"top",maxWidth:A.width-o-o}):this.text(A.text,A.x+o,A.y+o,{align:"left",baseline:"top",maxWidth:A.width-o-o})),this.internal.__cell__.lastCell=A,this};A.table=function(A,e,c,u,l){if(r.call(this),!c)throw new Error("No data for PDF table.");var h,f,B,d,g=[],p=[],w=[],m={},Q={},C=[],v=[],F=(l=l||{}).autoSize||!1,y=!1!==l.printHeaders,b=l.css&&void 0!==l.css["font-size"]?16*l.css["font-size"]:l.fontSize||12,U=l.margins||Object.assign({width:this.getPageWidth()},t),L="number"==typeof l.padding?l.padding:3,I=l.headerBackgroundColor||"#c8c8c8",E=l.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=y,this.internal.__cell__.margins=U,this.internal.__cell__.table_font_size=b,this.internal.__cell__.padding=L,this.internal.__cell__.headerBackgroundColor=I,this.internal.__cell__.headerTextColor=E,this.setFontSize(b),null==u)p=g=Object.keys(c[0]),w=g.map((function(){return"left"}));else if(Array.isArray(u)&&"object"===s(u[0]))for(g=u.map((function(A){return A.name})),p=u.map((function(A){return A.prompt||A.name||""})),w=u.map((function(A){return A.align||"left"})),h=0;h<u.length;h+=1)Q[u[h].name]=u[h].width*(19.049976/25.4);else Array.isArray(u)&&"string"==typeof u[0]&&(p=g=u,w=g.map((function(){return"left"})));if(F||Array.isArray(u)&&"string"==typeof u[0])for(h=0;h<g.length;h+=1){for(m[d=g[h]]=c.map((function(A){return A[d]})),this.setFont(void 0,"bold"),C.push(this.getTextDimensions(p[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),f=m[d],this.setFont(void 0,"normal"),B=0;B<f.length;B+=1)C.push(this.getTextDimensions(f[B],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Q[d]=Math.max.apply(null,C)+L+L,C=[]}if(y){var x={};for(h=0;h<g.length;h+=1)x[g[h]]={},x[g[h]].text=p[h],x[g[h]].align=w[h];var H=a.call(this,x,Q);v=g.map((function(t){return new i(A,e,Q[t],H,x[t].text,void 0,x[t].align)})),this.setTableHeaderRow(v),this.printHeaderRow(1,!1)}var N=u.reduce((function(A,t){return A[t.name]=t.align,A}),{});for(h=0;h<c.length;h+=1){"rowStart"in l&&l.rowStart instanceof Function&&l.rowStart({row:h,data:c[h]},this);var S=a.call(this,c[h],Q);for(B=0;B<g.length;B+=1){var P=c[h][g[B]];"cellStart"in l&&l.cellStart instanceof Function&&l.cellStart({row:h,col:B,data:P},this),o.call(this,new i(A,e,Q[g[B]],S,P,h+2,N[g[B]]))}}return this.internal.__cell__.table_x=A,this.internal.__cell__.table_y=e,this};var a=function(A,t){var e=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,n=this.internal.scaleFactor;return Object.keys(A).map((function(r){var n=A[r];return this.splitTextToSize(n.hasOwnProperty("text")?n.text:n,t[r]-e-e)}),this).map((function(A){return this.getLineHeightFactor()*A.length*r/n+e+e}),this).reduce((function(A,t){return Math.max(A,t)}),0)};A.setTableHeaderRow=function(A){r.call(this),this.internal.__cell__.tableHeaderRow=A},A.printHeaderRow=function(A,t){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var n;if(e=!0,"function"==typeof this.internal.__cell__.headerFunction){var s=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(s[0],s[1],s[2],s[3],void 0,-1)}this.setFont(void 0,"bold");for(var a=[],c=0;c<this.internal.__cell__.tableHeaderRow.length;c+=1){n=this.internal.__cell__.tableHeaderRow[c].clone(),t&&(n.y=this.internal.__cell__.margins.top||0,a.push(n)),n.lineNumber=A;var u=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,n),this.setTextColor(u)}a.length>0&&this.setTableHeaderRow(a),this.setFont(void 0,"normal"),e=!1}}(SA.API);var yt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},bt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ut=Ft(bt),Lt=[100,200,300,400,500,600,700,800,900],It=Ft(Lt);function Et(A){var t=A.family.replace(/"|'/g,"").toLowerCase(),e=function(A){return yt[A=A||"normal"]?A:"normal"}(A.style),r=function(A){return A?"number"==typeof A?A>=100&&A<=900&&A%100==0?A:400:/^\d00$/.test(A)?parseInt(A):"bold"===A?700:400:400}(A.weight),n=function(A){return"number"==typeof Ut[A=A||"normal"]?A:"normal"}(A.stretch);return{family:t,style:e,weight:r,stretch:n,src:A.src||[],ref:A.ref||{name:t,style:[n,e,r].join(" ")}}}function xt(A,t,e,r){var n;for(n=e;n>=0&&n<t.length;n+=r)if(A[t[n]])return A[t[n]];for(n=e;n>=0&&n<t.length;n-=r)if(A[t[n]])return A[t[n]]}var Ht={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Nt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function St(A){return[A.stretch,A.style,A.weight,A.family].join(" ")}function Pt(A){return A.trimLeft()}function Dt(A,t){for(var e=0;e<A.length;){if(A.charAt(e)===t)return[A.substring(0,e),A.substring(e+1)];e+=1}return null}function kt(A){var t=A.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===t?null:[t[0],A.substring(t[0].length)]}var _t,Mt,Ot,Kt=["times"];!function(A){var t,e,r,n,i,o,a,c,u,l=function(A){return A=A||{},this.isStrokeTransparent=A.isStrokeTransparent||!1,this.strokeOpacity=A.strokeOpacity||1,this.strokeStyle=A.strokeStyle||"#000000",this.fillStyle=A.fillStyle||"#000000",this.isFillTransparent=A.isFillTransparent||!1,this.fillOpacity=A.fillOpacity||1,this.font=A.font||"10px sans-serif",this.textBaseline=A.textBaseline||"alphabetic",this.textAlign=A.textAlign||"left",this.lineWidth=A.lineWidth||1,this.lineJoin=A.lineJoin||"miter",this.lineCap=A.lineCap||"butt",this.path=A.path||[],this.transform=void 0!==A.transform?A.transform.clone():new c,this.globalCompositeOperation=A.globalCompositeOperation||"normal",this.globalAlpha=A.globalAlpha||1,this.clip_path=A.clip_path||[],this.currentPoint=A.currentPoint||new o,this.miterLimit=A.miterLimit||10,this.lastPoint=A.lastPoint||new o,this.lineDashOffset=A.lineDashOffset||0,this.lineDash=A.lineDash||[],this.margin=A.margin||[0,0,0,0],this.prevPageLastElemOffset=A.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof A.ignoreClearRect||A.ignoreClearRect,this};A.events.push(["initialized",function(){this.context2d=new h(this),t=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,o=this.internal.Point,a=this.internal.Rectangle,c=this.internal.Matrix,u=new l}]);var h=function(A){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=A;Object.defineProperty(this,"pdf",{get:function(){return t}});var e=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return e},set:function(A){e=Boolean(A)}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(A){r=Boolean(A)}});var n=0;Object.defineProperty(this,"posX",{get:function(){return n},set:function(A){isNaN(A)||(n=A)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(A){isNaN(A)||(i=A)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(A){var t;"number"==typeof A?t=[A,A,A,A]:((t=new Array(4))[0]=A[0],t[1]=A.length>=2?A[1]:t[0],t[2]=A.length>=3?A[2]:t[0],t[3]=A.length>=4?A[3]:t[1]),u.margin=t}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(A){o=A}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(A){s=A}});var a=[];Object.defineProperty(this,"pageBreaks",{get:function(){return a},set:function(A){a=A}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(A){A instanceof l&&(u=A)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(A){u.path=A}});var c=[];Object.defineProperty(this,"ctxStack",{get:function(){return c},set:function(A){c=A}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(A){var t;t=f(A),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(A){var t=f(A);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(A){-1!==["butt","round","square"].indexOf(A)&&(this.ctx.lineCap=A,this.pdf.setLineCap(A))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(A){isNaN(A)||(this.ctx.lineWidth=A,this.pdf.setLineWidth(A))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(A){-1!==["bevel","round","miter"].indexOf(A)&&(this.ctx.lineJoin=A,this.pdf.setLineJoin(A))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(A){isNaN(A)||(this.ctx.miterLimit=A,this.pdf.setMiterLimit(A))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(A){this.ctx.textBaseline=A}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(A){-1!==["right","end","center","left","start"].indexOf(A)&&(this.ctx.textAlign=A)}});var h=null;function B(A,t){if(null===h){var e=function(A){var t=[];return Object.keys(A).forEach((function(e){A[e].forEach((function(A){var r=null;switch(A){case"bold":r={family:e,weight:"bold"};break;case"italic":r={family:e,style:"italic"};break;case"bolditalic":r={family:e,weight:"bold",style:"italic"};break;case"":case"normal":r={family:e}}null!==r&&(r.ref={name:e,style:A},t.push(r))}))})),t}(A.getFontList());h=function(A){for(var t={},e=0;e<A.length;++e){var r=Et(A[e]),n=r.family,i=r.stretch,o=r.style,s=r.weight;t[n]=t[n]||{},t[n][i]=t[n][i]||{},t[n][i][o]=t[n][i][o]||{},t[n][i][o][s]=r}return t}(e.concat(t))}return h}var d=null;Object.defineProperty(this,"fontFaces",{get:function(){return d},set:function(A){h=null,d=A}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(A){var t;if(this.ctx.font=A,null!==(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(A))){var e=t[1],r=(t[2],t[3]),n=t[4],i=(t[5],t[6]),o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(n)[2];n="px"===o?Math.floor(parseFloat(n)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(n)*this.pdf.getFontSize()):Math.floor(parseFloat(n)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(n);var s=function(A){var t,e,r=[],n=A.trim();if(""===n)return Kt;if(n in Nt)return[Nt[n]];for(;""!==n;){switch(e=null,t=(n=Pt(n)).charAt(0)){case'"':case"'":e=Dt(n.substring(1),t);break;default:e=kt(n)}if(null===e)return Kt;if(r.push(e[0]),""!==(n=Pt(e[1]))&&","!==n.charAt(0))return Kt;n=n.replace(/^,/,"")}return r}(i);if(this.fontFaces){var a=function(A,t,e){for(var r=(e=e||{}).defaultFontFamily||"times",n=Object.assign({},Ht,e.genericFontFamilies||{}),i=null,o=null,s=0;s<t.length;++s)if(n[(i=Et(t[s])).family]&&(i.family=n[i.family]),A.hasOwnProperty(i.family)){o=A[i.family];break}if(!(o=o||A[r]))throw new Error("Could not find a font-family for the rule '"+St(i)+"' and default family '"+r+"'.");if(o=function(A,t){if(t[A])return t[A];var e=Ut[A],r=e<=Ut.normal?-1:1,n=xt(t,bt,e,r);if(!n)throw new Error("Could not find a matching font-stretch value for "+A);return n}(i.stretch,o),o=function(A,t){if(t[A])return t[A];for(var e=yt[A],r=0;r<e.length;++r)if(t[e[r]])return t[e[r]];throw new Error("Could not find a matching font-style for "+A)}(i.style,o),!(o=function(A,t){if(t[A])return t[A];if(400===A&&t[500])return t[500];if(500===A&&t[400])return t[400];var e=It[A],r=xt(t,Lt,e,A<400?-1:1);if(!r)throw new Error("Could not find a matching font-weight for value "+A);return r}(i.weight,o)))throw new Error("Failed to resolve a font for the rule '"+St(i)+"'.");return o}(B(this.pdf,this.fontFaces),s.map((function(A){return{family:A,stretch:"normal",weight:r,style:e}})));this.pdf.setFont(a.ref.name,a.ref.style)}else{var c="";("bold"===r||parseInt(r,10)>=700||"bold"===e)&&(c="bold"),"italic"===e&&(c+="italic"),0===c.length&&(c="normal");for(var u="",l={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},h=0;h<s.length;h++){if(void 0!==this.pdf.internal.getFont(s[h],c,{noFallback:!0,disableWarning:!0})){u=s[h];break}if("bolditalic"===c&&void 0!==this.pdf.internal.getFont(s[h],"bold",{noFallback:!0,disableWarning:!0}))u=s[h],c="bold";else if(void 0!==this.pdf.internal.getFont(s[h],"normal",{noFallback:!0,disableWarning:!0})){u=s[h],c="normal";break}}if(""===u)for(var f=0;f<s.length;f++)if(l[s[f]]){u=l[s[f]];break}u=""===u?"Times":u,this.pdf.setFont(u,c)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(A){this.ctx.globalCompositeOperation=A}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(A){this.ctx.globalAlpha=A}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(A){this.ctx.lineDashOffset=A,M.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(A){this.ctx.lineDash=A,M.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(A){this.ctx.ignoreClearRect=Boolean(A)}})};h.prototype.setLineDash=function(A){this.lineDash=A},h.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},h.prototype.fill=function(){C.call(this,"fill",!1)},h.prototype.stroke=function(){C.call(this,"stroke",!1)},h.prototype.beginPath=function(){this.path=[{type:"begin"}]},h.prototype.moveTo=function(A,t){if(isNaN(A)||isNaN(t))throw eA.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var e=this.ctx.transform.applyToPoint(new o(A,t));this.path.push({type:"mt",x:e.x,y:e.y}),this.ctx.lastPoint=new o(A,t)},h.prototype.closePath=function(){var A=new o(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"===s(this.path[t+1])&&"number"==typeof this.path[t+1].x){A=new o(this.path[t+1].x,this.path[t+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(A.x,A.y)},h.prototype.lineTo=function(A,t){if(isNaN(A)||isNaN(t))throw eA.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var e=this.ctx.transform.applyToPoint(new o(A,t));this.path.push({type:"lt",x:e.x,y:e.y}),this.ctx.lastPoint=new o(e.x,e.y)},h.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),C.call(this,null,!0)},h.prototype.quadraticCurveTo=function(A,t,e,r){if(isNaN(e)||isNaN(r)||isNaN(A)||isNaN(t))throw eA.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var n=this.ctx.transform.applyToPoint(new o(e,r)),i=this.ctx.transform.applyToPoint(new o(A,t));this.path.push({type:"qct",x1:i.x,y1:i.y,x:n.x,y:n.y}),this.ctx.lastPoint=new o(n.x,n.y)},h.prototype.bezierCurveTo=function(A,t,e,r,n,i){if(isNaN(n)||isNaN(i)||isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r))throw eA.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var s=this.ctx.transform.applyToPoint(new o(n,i)),a=this.ctx.transform.applyToPoint(new o(A,t)),c=this.ctx.transform.applyToPoint(new o(e,r));this.path.push({type:"bct",x1:a.x,y1:a.y,x2:c.x,y2:c.y,x:s.x,y:s.y}),this.ctx.lastPoint=new o(s.x,s.y)},h.prototype.arc=function(A,t,e,r,n,i){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw eA.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(i=Boolean(i),!this.ctx.transform.isIdentity){var s=this.ctx.transform.applyToPoint(new o(A,t));A=s.x,t=s.y;var a=this.ctx.transform.applyToPoint(new o(0,e)),c=this.ctx.transform.applyToPoint(new o(0,0));e=Math.sqrt(Math.pow(a.x-c.x,2)+Math.pow(a.y-c.y,2))}Math.abs(n-r)>=2*Math.PI&&(r=0,n=2*Math.PI),this.path.push({type:"arc",x:A,y:t,radius:e,startAngle:r,endAngle:n,counterclockwise:i})},h.prototype.arcTo=function(A,t,e,r,n){throw new Error("arcTo not implemented.")},h.prototype.rect=function(A,t,e,r){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r))throw eA.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(A,t),this.lineTo(A+e,t),this.lineTo(A+e,t+r),this.lineTo(A,t+r),this.lineTo(A,t),this.lineTo(A+e,t),this.lineTo(A,t)},h.prototype.fillRect=function(A,t,e,r){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r))throw eA.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!B.call(this)){var n={};"butt"!==this.lineCap&&(n.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(n.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(A,t,e,r),this.fill(),n.hasOwnProperty("lineCap")&&(this.lineCap=n.lineCap),n.hasOwnProperty("lineJoin")&&(this.lineJoin=n.lineJoin)}},h.prototype.strokeRect=function(A,t,e,r){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r))throw eA.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");d.call(this)||(this.beginPath(),this.rect(A,t,e,r),this.stroke())},h.prototype.clearRect=function(A,t,e,r){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r))throw eA.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(A,t,e,r))},h.prototype.save=function(A){A="boolean"!=typeof A||A;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,e=0;e<this.pdf.internal.getNumberOfPages();e++)this.pdf.setPage(e+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),A){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new l(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},h.prototype.restore=function(A){A="boolean"!=typeof A||A;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,e=0;e<this.pdf.internal.getNumberOfPages();e++)this.pdf.setPage(e+1),this.pdf.internal.out("Q");this.pdf.setPage(t),A&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},h.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var f=function(A){var t,e,r,n;if(!0===A.isCanvasGradient&&(A=A.getColor()),!A)return{r:0,g:0,b:0,a:0,style:A};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(A))t=0,e=0,r=0,n=0;else{var i=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(A);if(null!==i)t=parseInt(i[1]),e=parseInt(i[2]),r=parseInt(i[3]),n=1;else if(null!==(i=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(A)))t=parseInt(i[1]),e=parseInt(i[2]),r=parseInt(i[3]),n=parseFloat(i[4]);else{if(n=1,"string"==typeof A&&"#"!==A.charAt(0)){var o=new cA(A);A=o.ok?o.toHex():"#000000"}4===A.length?(t=A.substring(1,2),t+=t,e=A.substring(2,3),e+=e,r=A.substring(3,4),r+=r):(t=A.substring(1,3),e=A.substring(3,5),r=A.substring(5,7)),t=parseInt(t,16),e=parseInt(e,16),r=parseInt(r,16)}}return{r:t,g:e,b:r,a:n,style:A}},B=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},d=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};h.prototype.fillText=function(A,t,e,r){if(isNaN(t)||isNaN(e)||"string"!=typeof A)throw eA.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!B.call(this)){var n=D(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;E.call(this,{text:A,x:t,y:e,scale:i,angle:n,align:this.textAlign,maxWidth:r})}},h.prototype.strokeText=function(A,t,e,r){if(isNaN(t)||isNaN(e)||"string"!=typeof A)throw eA.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!d.call(this)){r=isNaN(r)?void 0:r;var n=D(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;E.call(this,{text:A,x:t,y:e,scale:i,renderingMode:"stroke",angle:n,align:this.textAlign,maxWidth:r})}},h.prototype.measureText=function(A){if("string"!=typeof A)throw eA.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,e=this.pdf.internal.scaleFactor,r=t.internal.getFontSize(),n=t.getStringUnitWidth(A)*r/t.internal.scaleFactor;return new function(A){var t=(A=A||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this}({width:n*=Math.round(96*e/72*1e4)/1e4})},h.prototype.scale=function(A,t){if(isNaN(A)||isNaN(t))throw eA.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var e=new c(A,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(e)},h.prototype.rotate=function(A){if(isNaN(A))throw eA.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new c(Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},h.prototype.translate=function(A,t){if(isNaN(A)||isNaN(t))throw eA.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var e=new c(1,0,0,1,A,t);this.ctx.transform=this.ctx.transform.multiply(e)},h.prototype.transform=function(A,t,e,r,n,i){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i))throw eA.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var o=new c(A,t,e,r,n,i);this.ctx.transform=this.ctx.transform.multiply(o)},h.prototype.setTransform=function(A,t,e,r,n,i){A=isNaN(A)?1:A,t=isNaN(t)?0:t,e=isNaN(e)?0:e,r=isNaN(r)?1:r,n=isNaN(n)?0:n,i=isNaN(i)?0:i,this.ctx.transform=new c(A,t,e,r,n,i)};var g=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};h.prototype.drawImage=function(A,t,e,r,n,i,o,s,u){var l=this.pdf.getImageProperties(A),h=1,f=1,B=1,d=1;void 0!==r&&void 0!==s&&(B=s/r,d=u/n,h=l.width/r*s/r,f=l.height/n*u/n),void 0===i&&(i=t,o=e,t=0,e=0),void 0!==r&&void 0===s&&(s=r,u=n),void 0===r&&void 0===s&&(s=l.width,u=l.height);for(var w,C=this.ctx.transform.decompose(),F=D(C.rotate.shx),y=new c,b=(y=(y=(y=y.multiply(C.translate)).multiply(C.skew)).multiply(C.scale)).applyToRectangle(new a(i-t*B,o-e*d,r*h,n*f)),U=p.call(this,b),L=[],I=0;I<U.length;I+=1)-1===L.indexOf(U[I])&&L.push(U[I]);if(Q(L),this.autoPaging)for(var E=L[0],x=L[L.length-1],H=E;H<x+1;H++){this.pdf.setPage(H);var N=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],S=1===H?this.posY+this.margin[0]:this.margin[0],P=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],k=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],_=1===H?0:P+(H-2)*k;if(0!==this.ctx.clip_path.length){var M=this.path;w=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=m(w,this.posX+this.margin[3],-_+S+this.ctx.prevPageLastElemOffset),v.call(this,"fill",!0),this.path=M}var O=JSON.parse(JSON.stringify(b));O=m([O],this.posX+this.margin[3],-_+S+this.ctx.prevPageLastElemOffset)[0];var K=(H>E||H<x)&&g.call(this);K&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],N,k,null).clip().discardPath()),this.pdf.addImage(A,"JPEG",O.x,O.y,O.w,O.h,null,null,F),K&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(A,"JPEG",b.x,b.y,b.w,b.h,null,null,F)};var p=function(A,t,e){var r=[];t=t||this.pdf.internal.pageSize.width,e=e||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var n=this.posY+this.ctx.prevPageLastElemOffset;switch(A.type){default:case"mt":case"lt":r.push(Math.floor((A.y+n)/e)+1);break;case"arc":r.push(Math.floor((A.y+n-A.radius)/e)+1),r.push(Math.floor((A.y+n+A.radius)/e)+1);break;case"qct":var i=k(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x,A.y);r.push(Math.floor((i.y+n)/e)+1),r.push(Math.floor((i.y+i.h+n)/e)+1);break;case"bct":var o=_(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x2,A.y2,A.x,A.y);r.push(Math.floor((o.y+n)/e)+1),r.push(Math.floor((o.y+o.h+n)/e)+1);break;case"rect":r.push(Math.floor((A.y+n)/e)+1),r.push(Math.floor((A.y+A.h+n)/e)+1)}for(var s=0;s<r.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<r[s];)w.call(this);return r},w=function(){var A=this.fillStyle,t=this.strokeStyle,e=this.font,r=this.lineCap,n=this.lineWidth,i=this.lineJoin;this.pdf.addPage(),this.fillStyle=A,this.strokeStyle=t,this.font=e,this.lineCap=r,this.lineWidth=n,this.lineJoin=i},m=function(A,t,e){for(var r=0;r<A.length;r++)switch(A[r].type){case"bct":A[r].x2+=t,A[r].y2+=e;case"qct":A[r].x1+=t,A[r].y1+=e;default:A[r].x+=t,A[r].y+=e}return A},Q=function(A){return A.sort((function(A,t){return A-t}))},C=function(A,t){for(var e,r,n=this.fillStyle,i=this.strokeStyle,o=this.lineCap,s=this.lineWidth,a=Math.abs(s*this.ctx.transform.scaleX),c=this.lineJoin,u=JSON.parse(JSON.stringify(this.path)),l=JSON.parse(JSON.stringify(this.path)),h=[],f=0;f<l.length;f++)if(void 0!==l[f].x)for(var B=p.call(this,l[f]),d=0;d<B.length;d+=1)-1===h.indexOf(B[d])&&h.push(B[d]);for(var C=0;C<h.length;C++)for(;this.pdf.internal.getNumberOfPages()<h[C];)w.call(this);if(Q(h),this.autoPaging)for(var F=h[0],y=h[h.length-1],b=F;b<y+1;b++){this.pdf.setPage(b),this.fillStyle=n,this.strokeStyle=i,this.lineCap=o,this.lineWidth=a,this.lineJoin=c;var U=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],L=1===b?this.posY+this.margin[0]:this.margin[0],I=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],E=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],x=1===b?0:I+(b-2)*E;if(0!==this.ctx.clip_path.length){var H=this.path;e=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=m(e,this.posX+this.margin[3],-x+L+this.ctx.prevPageLastElemOffset),v.call(this,A,!0),this.path=H}if(r=JSON.parse(JSON.stringify(u)),this.path=m(r,this.posX+this.margin[3],-x+L+this.ctx.prevPageLastElemOffset),!1===t||0===b){var N=(b>F||b<y)&&g.call(this);N&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],U,E,null).clip().discardPath()),v.call(this,A,t),N&&this.pdf.restoreGraphicsState()}this.lineWidth=s}else this.lineWidth=a,v.call(this,A,t),this.lineWidth=s;this.path=u},v=function(A,t){if(("stroke"!==A||t||!d.call(this))&&("stroke"===A||t||!B.call(this))){for(var e,r,n=[],i=this.path,o=0;o<i.length;o++){var s=i[o];switch(s.type){case"begin":n.push({begin:!0});break;case"close":n.push({close:!0});break;case"mt":n.push({start:s,deltas:[],abs:[]});break;case"lt":var a=n.length;if(i[o-1]&&!isNaN(i[o-1].x)&&(e=[s.x-i[o-1].x,s.y-i[o-1].y],a>0))for(;a>=0;a--)if(!0!==n[a-1].close&&!0!==n[a-1].begin){n[a-1].deltas.push(e),n[a-1].abs.push(s);break}break;case"bct":e=[s.x1-i[o-1].x,s.y1-i[o-1].y,s.x2-i[o-1].x,s.y2-i[o-1].y,s.x-i[o-1].x,s.y-i[o-1].y],n[n.length-1].deltas.push(e);break;case"qct":var c=i[o-1].x+2/3*(s.x1-i[o-1].x),u=i[o-1].y+2/3*(s.y1-i[o-1].y),l=s.x+2/3*(s.x1-s.x),h=s.y+2/3*(s.y1-s.y),f=s.x,g=s.y;e=[c-i[o-1].x,u-i[o-1].y,l-i[o-1].x,h-i[o-1].y,f-i[o-1].x,g-i[o-1].y],n[n.length-1].deltas.push(e);break;case"arc":n.push({deltas:[],abs:[],arc:!0}),Array.isArray(n[n.length-1].abs)&&n[n.length-1].abs.push(s)}}r=t?null:"stroke"===A?"stroke":"fill";for(var p=!1,w=0;w<n.length;w++)if(n[w].arc)for(var m=n[w].abs,Q=0;Q<m.length;Q++){var C=m[Q];"arc"===C.type?b.call(this,C.x,C.y,C.radius,C.startAngle,C.endAngle,C.counterclockwise,void 0,t,!p):x.call(this,C.x,C.y),p=!0}else if(!0===n[w].close)this.pdf.internal.out("h"),p=!1;else if(!0!==n[w].begin){var v=n[w].start.x,F=n[w].start.y;H.call(this,n[w].deltas,v,F),p=!0}r&&U.call(this,r),t&&L.call(this)}},F=function(A){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,e=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return A-e;case"top":return A+t-e;case"hanging":return A+t-2*e;case"middle":return A+t/2-e;default:return A}},y=function(A){return A+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};h.prototype.createLinearGradient=function(){var A=function(){};return A.colorStops=[],A.addColorStop=function(A,t){this.colorStops.push([A,t])},A.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},A.isCanvasGradient=!0,A},h.prototype.createPattern=function(){return this.createLinearGradient()},h.prototype.createRadialGradient=function(){return this.createLinearGradient()};var b=function(A,t,e,r,n,i,o,s,a){for(var c=S.call(this,e,r,n,i),u=0;u<c.length;u++){var l=c[u];0===u&&(a?I.call(this,l.x1+A,l.y1+t):x.call(this,l.x1+A,l.y1+t)),N.call(this,A,t,l.x2,l.y2,l.x3,l.y3,l.x4,l.y4)}s?L.call(this):U.call(this,o)},U=function(A){switch(A){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},L=function(){this.pdf.clip(),this.pdf.discardPath()},I=function(A,t){this.pdf.internal.out(e(A)+" "+r(t)+" m")},E=function(A){var t;switch(A.align){case"right":case"end":t="right";break;case"center":t="center";break;default:t="left"}var e=this.pdf.getTextDimensions(A.text),r=F.call(this,A.y),n=y.call(this,r)-e.h,i=this.ctx.transform.applyToPoint(new o(A.x,r)),s=this.ctx.transform.decompose(),u=new c;u=(u=(u=u.multiply(s.translate)).multiply(s.skew)).multiply(s.scale);for(var l,h,f,B=this.ctx.transform.applyToRectangle(new a(A.x,r,e.w,e.h)),d=u.applyToRectangle(new a(A.x,n,e.w,e.h)),w=p.call(this,d),C=[],b=0;b<w.length;b+=1)-1===C.indexOf(w[b])&&C.push(w[b]);if(Q(C),this.autoPaging)for(var U=C[0],L=C[C.length-1],I=U;I<L+1;I++){this.pdf.setPage(I);var E=1===I?this.posY+this.margin[0]:this.margin[0],x=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],H=this.pdf.internal.pageSize.height-this.margin[2],N=H-this.margin[0],S=this.pdf.internal.pageSize.width-this.margin[1],P=S-this.margin[3],D=1===I?0:x+(I-2)*N;if(0!==this.ctx.clip_path.length){var k=this.path;l=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=m(l,this.posX+this.margin[3],-1*D+E),v.call(this,"fill",!0),this.path=k}var _=m([JSON.parse(JSON.stringify(d))],this.posX+this.margin[3],-D+E+this.ctx.prevPageLastElemOffset)[0];A.scale>=.01&&(h=this.pdf.internal.getFontSize(),this.pdf.setFontSize(h*A.scale),f=this.lineWidth,this.lineWidth=f*A.scale);var M="text"!==this.autoPaging;if(M||_.y+_.h<=H){if(M||_.y>=E&&_.x<=S){var O=M?A.text:this.pdf.splitTextToSize(A.text,A.maxWidth||S-_.x)[0],K=m([JSON.parse(JSON.stringify(B))],this.posX+this.margin[3],-D+E+this.ctx.prevPageLastElemOffset)[0],T=M&&(I>U||I<L)&&g.call(this);T&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],P,N,null).clip().discardPath()),this.pdf.text(O,K.x,K.y,{angle:A.angle,align:t,renderingMode:A.renderingMode}),T&&this.pdf.restoreGraphicsState()}}else _.y<H&&(this.ctx.prevPageLastElemOffset+=H-_.y);A.scale>=.01&&(this.pdf.setFontSize(h),this.lineWidth=f)}else A.scale>=.01&&(h=this.pdf.internal.getFontSize(),this.pdf.setFontSize(h*A.scale),f=this.lineWidth,this.lineWidth=f*A.scale),this.pdf.text(A.text,i.x+this.posX,i.y+this.posY,{angle:A.angle,align:t,renderingMode:A.renderingMode,maxWidth:A.maxWidth}),A.scale>=.01&&(this.pdf.setFontSize(h),this.lineWidth=f)},x=function(A,t,n,i){n=n||0,i=i||0,this.pdf.internal.out(e(A+n)+" "+r(t+i)+" l")},H=function(A,t,e){return this.pdf.lines(A,t,e,null,null)},N=function(A,e,r,o,s,a,c,u){this.pdf.internal.out([t(n(r+A)),t(i(o+e)),t(n(s+A)),t(i(a+e)),t(n(c+A)),t(i(u+e)),"c"].join(" "))},S=function(A,t,e,r){for(var n=2*Math.PI,i=Math.PI/2;t>e;)t-=n;var o=Math.abs(e-t);o<n&&r&&(o=n-o);for(var s=[],a=r?-1:1,c=t;o>1e-5;){var u=c+a*Math.min(o,i);s.push(P.call(this,A,c,u)),o-=Math.abs(u-c),c=u}return s},P=function(A,t,e){var r=(e-t)/2,n=A*Math.cos(r),i=A*Math.sin(r),o=n,s=-i,a=o*o+s*s,c=a+o*n+s*i,u=4/3*(Math.sqrt(2*a*c)-c)/(o*i-s*n),l=o-u*s,h=s+u*o,f=l,B=-h,d=r+t,g=Math.cos(d),p=Math.sin(d);return{x1:A*Math.cos(t),y1:A*Math.sin(t),x2:l*g-h*p,y2:l*p+h*g,x3:f*g-B*p,y3:f*p+B*g,x4:A*Math.cos(e),y4:A*Math.sin(e)}},D=function(A){return 180*A/Math.PI},k=function(A,t,e,r,n,i){var o=A+.5*(e-A),s=t+.5*(r-t),c=n+.5*(e-n),u=i+.5*(r-i),l=Math.min(A,n,o,c),h=Math.max(A,n,o,c),f=Math.min(t,i,s,u),B=Math.max(t,i,s,u);return new a(l,f,h-l,B-f)},_=function(A,t,e,r,n,i,o,s){var c,u,l,h,f,B,d,g,p,w,m,Q,C,v,F=e-A,y=r-t,b=n-e,U=i-r,L=o-n,I=s-i;for(u=0;u<41;u++)p=(d=(l=A+(c=u/40)*F)+c*((f=e+c*b)-l))+c*(f+c*(n+c*L-f)-d),w=(g=(h=t+c*y)+c*((B=r+c*U)-h))+c*(B+c*(i+c*I-B)-g),0==u?(m=p,Q=w,C=p,v=w):(m=Math.min(m,p),Q=Math.min(Q,w),C=Math.max(C,p),v=Math.max(v,w));return new a(Math.round(m),Math.round(Q),Math.round(C-m),Math.round(v-Q))},M=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var A,t,e=(A=this.ctx.lineDash,t=this.ctx.lineDashOffset,JSON.stringify({lineDash:A,lineDashOffset:t}));this.prevLineDash!==e&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=e)}}}(SA.API),
108
+ function(A){var t=function(){var A=void 0;Object.defineProperty(this,"pdf",{get:function(){return A},set:function(t){A=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(A){t=isNaN(A)||!1===Number.isInteger(A)||A<0?150:A,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var e=300;Object.defineProperty(this,"height",{get:function(){return e},set:function(A){e=isNaN(A)||!1===Number.isInteger(A)||A<0?300:A,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=e+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(A){r=A}});var n={};Object.defineProperty(this,"style",{get:function(){return n},set:function(A){n=A}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(A,t){var e;if("2d"!==(A=A||"2d"))return null;for(e in t)this.pdf.context2d.hasOwnProperty(e)&&(this.pdf.context2d[e]=t[e]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},A.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(SA.API),function(A){var t={left:0,top:0,bottom:0,right:0},e=!1,r=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var A=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return A},set:function(t){A=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(A){t=A}});var e=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return e},set:function(A){e=A}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(A){r=A}});var n=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return n},set:function(A){n=A}});var i=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return i},set:function(A){i=A}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(A){o=A}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},A.setHeaderFunction=function(A){return r.call(this),this.internal.__cell__.headerFunction="function"==typeof A?A:void 0,this},A.getTextDimensions=function(A,t){r.call(this);var e=(t=t||{}).fontSize||this.getFontSize(),n=t.font||this.getFont(),i=t.scaleFactor||this.internal.scaleFactor,o=0,s=0,a=0,c=this;if(!Array.isArray(A)&&"string"!=typeof A){if("number"!=typeof A)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");A=String(A)}var u=t.maxWidth;u>0?"string"==typeof A?A=this.splitTextToSize(A,u):"[object Array]"===Object.prototype.toString.call(A)&&(A=A.reduce((function(A,t){return A.concat(c.splitTextToSize(t,u))}),[])):A=Array.isArray(A)?A:[A];for(var l=0;l<A.length;l++)o<(a=this.getStringUnitWidth(A[l],{font:n})*e)&&(o=a);return 0!==o&&(s=A.length),{w:o/=i,h:Math.max((s*e*this.getLineHeightFactor()-e*(this.getLineHeightFactor()-1))/i,0)}},A.cellAddPage=function(){r.call(this),this.addPage();var A=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new i(A.left,A.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=A.cell=function(){var A;A=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var n=this.internal.__cell__.lastCell,o=this.internal.__cell__.padding,s=this.internal.__cell__.margins||t,a=this.internal.__cell__.tableHeaderRow,c=this.internal.__cell__.printHeaders;return void 0!==n.lineNumber&&(n.lineNumber===A.lineNumber?(A.x=(n.x||0)+(n.width||0),A.y=n.y||0):n.y+n.height+A.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),A.y=s.top,c&&a&&(this.printHeaderRow(A.lineNumber,!0),A.y+=a[0].height)):A.y=n.y+n.height||A.y),void 0!==A.text[0]&&(this.rect(A.x,A.y,A.width,A.height,!0===e?"FD":void 0),"right"===A.align?this.text(A.text,A.x+A.width-o,A.y+o,{align:"right",baseline:"top"}):"center"===A.align?this.text(A.text,A.x+A.width/2,A.y+o,{align:"center",baseline:"top",maxWidth:A.width-o-o}):this.text(A.text,A.x+o,A.y+o,{align:"left",baseline:"top",maxWidth:A.width-o-o})),this.internal.__cell__.lastCell=A,this};A.table=function(A,e,c,u,l){if(r.call(this),!c)throw new Error("No data for PDF table.");var h,f,B,d,g=[],p=[],w=[],m={},Q={},C=[],v=[],F=(l=l||{}).autoSize||!1,y=!1!==l.printHeaders,b=l.css&&void 0!==l.css["font-size"]?16*l.css["font-size"]:l.fontSize||12,U=l.margins||Object.assign({width:this.getPageWidth()},t),L="number"==typeof l.padding?l.padding:3,I=l.headerBackgroundColor||"#c8c8c8",E=l.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=y,this.internal.__cell__.margins=U,this.internal.__cell__.table_font_size=b,this.internal.__cell__.padding=L,this.internal.__cell__.headerBackgroundColor=I,this.internal.__cell__.headerTextColor=E,this.setFontSize(b),null==u)p=g=Object.keys(c[0]),w=g.map((function(){return"left"}));else if(Array.isArray(u)&&"object"===s(u[0]))for(g=u.map((function(A){return A.name})),p=u.map((function(A){return A.prompt||A.name||""})),w=u.map((function(A){return A.align||"left"})),h=0;h<u.length;h+=1)Q[u[h].name]=u[h].width*(19.049976/25.4);else Array.isArray(u)&&"string"==typeof u[0]&&(p=g=u,w=g.map((function(){return"left"})));if(F||Array.isArray(u)&&"string"==typeof u[0])for(h=0;h<g.length;h+=1){for(m[d=g[h]]=c.map((function(A){return A[d]})),this.setFont(void 0,"bold"),C.push(this.getTextDimensions(p[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),f=m[d],this.setFont(void 0,"normal"),B=0;B<f.length;B+=1)C.push(this.getTextDimensions(f[B],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Q[d]=Math.max.apply(null,C)+L+L,C=[]}if(y){var x={};for(h=0;h<g.length;h+=1)x[g[h]]={},x[g[h]].text=p[h],x[g[h]].align=w[h];var H=a.call(this,x,Q);v=g.map((function(t){return new i(A,e,Q[t],H,x[t].text,void 0,x[t].align)})),this.setTableHeaderRow(v),this.printHeaderRow(1,!1)}var N=u.reduce((function(A,t){return A[t.name]=t.align,A}),{});for(h=0;h<c.length;h+=1){"rowStart"in l&&l.rowStart instanceof Function&&l.rowStart({row:h,data:c[h]},this);var S=a.call(this,c[h],Q);for(B=0;B<g.length;B+=1){var P=c[h][g[B]];"cellStart"in l&&l.cellStart instanceof Function&&l.cellStart({row:h,col:B,data:P},this),o.call(this,new i(A,e,Q[g[B]],S,P,h+2,N[g[B]]))}}return this.internal.__cell__.table_x=A,this.internal.__cell__.table_y=e,this};var a=function(A,t){var e=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,n=this.internal.scaleFactor;return Object.keys(A).map((function(r){var n=A[r];return this.splitTextToSize(n.hasOwnProperty("text")?n.text:n,t[r]-e-e)}),this).map((function(A){return this.getLineHeightFactor()*A.length*r/n+e+e}),this).reduce((function(A,t){return Math.max(A,t)}),0)};A.setTableHeaderRow=function(A){r.call(this),this.internal.__cell__.tableHeaderRow=A},A.printHeaderRow=function(A,t){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var n;if(e=!0,"function"==typeof this.internal.__cell__.headerFunction){var s=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(s[0],s[1],s[2],s[3],void 0,-1)}this.setFont(void 0,"bold");for(var a=[],c=0;c<this.internal.__cell__.tableHeaderRow.length;c+=1){n=this.internal.__cell__.tableHeaderRow[c].clone(),t&&(n.y=this.internal.__cell__.margins.top||0,a.push(n)),n.lineNumber=A;var u=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,n),this.setTextColor(u)}a.length>0&&this.setTableHeaderRow(a),this.setFont(void 0,"normal"),e=!1}}(SA.API);var yt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},bt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ut=Ft(bt),Lt=[100,200,300,400,500,600,700,800,900],It=Ft(Lt);function Et(A){var t=A.family.replace(/"|'/g,"").toLowerCase(),e=function(A){return yt[A=A||"normal"]?A:"normal"}(A.style),r=function(A){return A?"number"==typeof A?A>=100&&A<=900&&A%100==0?A:400:/^\d00$/.test(A)?parseInt(A):"bold"===A?700:400:400}(A.weight),n=function(A){return"number"==typeof Ut[A=A||"normal"]?A:"normal"}(A.stretch);return{family:t,style:e,weight:r,stretch:n,src:A.src||[],ref:A.ref||{name:t,style:[n,e,r].join(" ")}}}function xt(A,t,e,r){var n;for(n=e;n>=0&&n<t.length;n+=r)if(A[t[n]])return A[t[n]];for(n=e;n>=0&&n<t.length;n-=r)if(A[t[n]])return A[t[n]]}var Ht={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Nt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function St(A){return[A.stretch,A.style,A.weight,A.family].join(" ")}function Pt(A){return A.trimLeft()}function Dt(A,t){for(var e=0;e<A.length;){if(A.charAt(e)===t)return[A.substring(0,e),A.substring(e+1)];e+=1}return null}function kt(A){var t=A.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===t?null:[t[0],A.substring(t[0].length)]}var _t,Mt,Ot,Kt=["times"];!function(A){var t,e,r,n,i,o,a,c,u,l=function(A){return A=A||{},this.isStrokeTransparent=A.isStrokeTransparent||!1,this.strokeOpacity=A.strokeOpacity||1,this.strokeStyle=A.strokeStyle||"#000000",this.fillStyle=A.fillStyle||"#000000",this.isFillTransparent=A.isFillTransparent||!1,this.fillOpacity=A.fillOpacity||1,this.font=A.font||"10px sans-serif",this.textBaseline=A.textBaseline||"alphabetic",this.textAlign=A.textAlign||"left",this.lineWidth=A.lineWidth||1,this.lineJoin=A.lineJoin||"miter",this.lineCap=A.lineCap||"butt",this.path=A.path||[],this.transform=void 0!==A.transform?A.transform.clone():new c,this.globalCompositeOperation=A.globalCompositeOperation||"normal",this.globalAlpha=A.globalAlpha||1,this.clip_path=A.clip_path||[],this.currentPoint=A.currentPoint||new o,this.miterLimit=A.miterLimit||10,this.lastPoint=A.lastPoint||new o,this.lineDashOffset=A.lineDashOffset||0,this.lineDash=A.lineDash||[],this.margin=A.margin||[0,0,0,0],this.prevPageLastElemOffset=A.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof A.ignoreClearRect||A.ignoreClearRect,this};A.events.push(["initialized",function(){this.context2d=new h(this),t=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,o=this.internal.Point,a=this.internal.Rectangle,c=this.internal.Matrix,u=new l}]);var h=function(A){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=A;Object.defineProperty(this,"pdf",{get:function(){return t}});var e=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return e},set:function(A){e=Boolean(A)}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(A){r=Boolean(A)}});var n=0;Object.defineProperty(this,"posX",{get:function(){return n},set:function(A){isNaN(A)||(n=A)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(A){isNaN(A)||(i=A)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(A){var t;"number"==typeof A?t=[A,A,A,A]:((t=new Array(4))[0]=A[0],t[1]=A.length>=2?A[1]:t[0],t[2]=A.length>=3?A[2]:t[0],t[3]=A.length>=4?A[3]:t[1]),u.margin=t}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(A){o=A}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(A){s=A}});var a=[];Object.defineProperty(this,"pageBreaks",{get:function(){return a},set:function(A){a=A}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(A){A instanceof l&&(u=A)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(A){u.path=A}});var c=[];Object.defineProperty(this,"ctxStack",{get:function(){return c},set:function(A){c=A}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(A){var t;t=f(A),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(A){var t=f(A);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(A){-1!==["butt","round","square"].indexOf(A)&&(this.ctx.lineCap=A,this.pdf.setLineCap(A))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(A){isNaN(A)||(this.ctx.lineWidth=A,this.pdf.setLineWidth(A))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(A){-1!==["bevel","round","miter"].indexOf(A)&&(this.ctx.lineJoin=A,this.pdf.setLineJoin(A))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(A){isNaN(A)||(this.ctx.miterLimit=A,this.pdf.setMiterLimit(A))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(A){this.ctx.textBaseline=A}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(A){-1!==["right","end","center","left","start"].indexOf(A)&&(this.ctx.textAlign=A)}});var h=null;function B(A,t){if(null===h){var e=function(A){var t=[];return Object.keys(A).forEach((function(e){A[e].forEach((function(A){var r=null;switch(A){case"bold":r={family:e,weight:"bold"};break;case"italic":r={family:e,style:"italic"};break;case"bolditalic":r={family:e,weight:"bold",style:"italic"};break;case"":case"normal":r={family:e}}null!==r&&(r.ref={name:e,style:A},t.push(r))}))})),t}(A.getFontList());h=function(A){for(var t={},e=0;e<A.length;++e){var r=Et(A[e]),n=r.family,i=r.stretch,o=r.style,s=r.weight;t[n]=t[n]||{},t[n][i]=t[n][i]||{},t[n][i][o]=t[n][i][o]||{},t[n][i][o][s]=r}return t}(e.concat(t))}return h}var d=null;Object.defineProperty(this,"fontFaces",{get:function(){return d},set:function(A){h=null,d=A}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(A){var t;if(this.ctx.font=A,null!==(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(A))){var e=t[1];t[2];var r=t[3],n=t[4];t[5];var i=t[6],o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(n)[2];n="px"===o?Math.floor(parseFloat(n)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(n)*this.pdf.getFontSize()):Math.floor(parseFloat(n)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(n);var s=function(A){var t,e,r=[],n=A.trim();if(""===n)return Kt;if(n in Nt)return[Nt[n]];for(;""!==n;){switch(e=null,t=(n=Pt(n)).charAt(0)){case'"':case"'":e=Dt(n.substring(1),t);break;default:e=kt(n)}if(null===e)return Kt;if(r.push(e[0]),""!==(n=Pt(e[1]))&&","!==n.charAt(0))return Kt;n=n.replace(/^,/,"")}return r}(i);if(this.fontFaces){var a=function(A,t,e){for(var r=(e=e||{}).defaultFontFamily||"times",n=Object.assign({},Ht,e.genericFontFamilies||{}),i=null,o=null,s=0;s<t.length;++s)if(n[(i=Et(t[s])).family]&&(i.family=n[i.family]),A.hasOwnProperty(i.family)){o=A[i.family];break}if(!(o=o||A[r]))throw new Error("Could not find a font-family for the rule '"+St(i)+"' and default family '"+r+"'.");if(o=function(A,t){if(t[A])return t[A];var e=Ut[A],r=e<=Ut.normal?-1:1,n=xt(t,bt,e,r);if(!n)throw new Error("Could not find a matching font-stretch value for "+A);return n}(i.stretch,o),o=function(A,t){if(t[A])return t[A];for(var e=yt[A],r=0;r<e.length;++r)if(t[e[r]])return t[e[r]];throw new Error("Could not find a matching font-style for "+A)}(i.style,o),!(o=function(A,t){if(t[A])return t[A];if(400===A&&t[500])return t[500];if(500===A&&t[400])return t[400];var e=It[A],r=xt(t,Lt,e,A<400?-1:1);if(!r)throw new Error("Could not find a matching font-weight for value "+A);return r}(i.weight,o)))throw new Error("Failed to resolve a font for the rule '"+St(i)+"'.");return o}(B(this.pdf,this.fontFaces),s.map((function(A){return{family:A,stretch:"normal",weight:r,style:e}})));this.pdf.setFont(a.ref.name,a.ref.style)}else{var c="";("bold"===r||parseInt(r,10)>=700||"bold"===e)&&(c="bold"),"italic"===e&&(c+="italic"),0===c.length&&(c="normal");for(var u="",l={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},h=0;h<s.length;h++){if(void 0!==this.pdf.internal.getFont(s[h],c,{noFallback:!0,disableWarning:!0})){u=s[h];break}if("bolditalic"===c&&void 0!==this.pdf.internal.getFont(s[h],"bold",{noFallback:!0,disableWarning:!0}))u=s[h],c="bold";else if(void 0!==this.pdf.internal.getFont(s[h],"normal",{noFallback:!0,disableWarning:!0})){u=s[h],c="normal";break}}if(""===u)for(var f=0;f<s.length;f++)if(l[s[f]]){u=l[s[f]];break}u=""===u?"Times":u,this.pdf.setFont(u,c)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(A){this.ctx.globalCompositeOperation=A}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(A){this.ctx.globalAlpha=A}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(A){this.ctx.lineDashOffset=A,M.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(A){this.ctx.lineDash=A,M.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(A){this.ctx.ignoreClearRect=Boolean(A)}})};h.prototype.setLineDash=function(A){this.lineDash=A},h.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},h.prototype.fill=function(){C.call(this,"fill",!1)},h.prototype.stroke=function(){C.call(this,"stroke",!1)},h.prototype.beginPath=function(){this.path=[{type:"begin"}]},h.prototype.moveTo=function(A,t){if(isNaN(A)||isNaN(t))throw eA.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var e=this.ctx.transform.applyToPoint(new o(A,t));this.path.push({type:"mt",x:e.x,y:e.y}),this.ctx.lastPoint=new o(A,t)},h.prototype.closePath=function(){var A=new o(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"===s(this.path[t+1])&&"number"==typeof this.path[t+1].x){A=new o(this.path[t+1].x,this.path[t+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(A.x,A.y)},h.prototype.lineTo=function(A,t){if(isNaN(A)||isNaN(t))throw eA.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var e=this.ctx.transform.applyToPoint(new o(A,t));this.path.push({type:"lt",x:e.x,y:e.y}),this.ctx.lastPoint=new o(e.x,e.y)},h.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),C.call(this,null,!0)},h.prototype.quadraticCurveTo=function(A,t,e,r){if(isNaN(e)||isNaN(r)||isNaN(A)||isNaN(t))throw eA.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var n=this.ctx.transform.applyToPoint(new o(e,r)),i=this.ctx.transform.applyToPoint(new o(A,t));this.path.push({type:"qct",x1:i.x,y1:i.y,x:n.x,y:n.y}),this.ctx.lastPoint=new o(n.x,n.y)},h.prototype.bezierCurveTo=function(A,t,e,r,n,i){if(isNaN(n)||isNaN(i)||isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r))throw eA.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var s=this.ctx.transform.applyToPoint(new o(n,i)),a=this.ctx.transform.applyToPoint(new o(A,t)),c=this.ctx.transform.applyToPoint(new o(e,r));this.path.push({type:"bct",x1:a.x,y1:a.y,x2:c.x,y2:c.y,x:s.x,y:s.y}),this.ctx.lastPoint=new o(s.x,s.y)},h.prototype.arc=function(A,t,e,r,n,i){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw eA.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(i=Boolean(i),!this.ctx.transform.isIdentity){var s=this.ctx.transform.applyToPoint(new o(A,t));A=s.x,t=s.y;var a=this.ctx.transform.applyToPoint(new o(0,e)),c=this.ctx.transform.applyToPoint(new o(0,0));e=Math.sqrt(Math.pow(a.x-c.x,2)+Math.pow(a.y-c.y,2))}Math.abs(n-r)>=2*Math.PI&&(r=0,n=2*Math.PI),this.path.push({type:"arc",x:A,y:t,radius:e,startAngle:r,endAngle:n,counterclockwise:i})},h.prototype.arcTo=function(A,t,e,r,n){throw new Error("arcTo not implemented.")},h.prototype.rect=function(A,t,e,r){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r))throw eA.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(A,t),this.lineTo(A+e,t),this.lineTo(A+e,t+r),this.lineTo(A,t+r),this.lineTo(A,t),this.lineTo(A+e,t),this.lineTo(A,t)},h.prototype.fillRect=function(A,t,e,r){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r))throw eA.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!B.call(this)){var n={};"butt"!==this.lineCap&&(n.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(n.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(A,t,e,r),this.fill(),n.hasOwnProperty("lineCap")&&(this.lineCap=n.lineCap),n.hasOwnProperty("lineJoin")&&(this.lineJoin=n.lineJoin)}},h.prototype.strokeRect=function(A,t,e,r){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r))throw eA.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");d.call(this)||(this.beginPath(),this.rect(A,t,e,r),this.stroke())},h.prototype.clearRect=function(A,t,e,r){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r))throw eA.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(A,t,e,r))},h.prototype.save=function(A){A="boolean"!=typeof A||A;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,e=0;e<this.pdf.internal.getNumberOfPages();e++)this.pdf.setPage(e+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),A){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new l(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},h.prototype.restore=function(A){A="boolean"!=typeof A||A;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,e=0;e<this.pdf.internal.getNumberOfPages();e++)this.pdf.setPage(e+1),this.pdf.internal.out("Q");this.pdf.setPage(t),A&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},h.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var f=function(A){var t,e,r,n;if(!0===A.isCanvasGradient&&(A=A.getColor()),!A)return{r:0,g:0,b:0,a:0,style:A};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(A))t=0,e=0,r=0,n=0;else{var i=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(A);if(null!==i)t=parseInt(i[1]),e=parseInt(i[2]),r=parseInt(i[3]),n=1;else if(null!==(i=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(A)))t=parseInt(i[1]),e=parseInt(i[2]),r=parseInt(i[3]),n=parseFloat(i[4]);else{if(n=1,"string"==typeof A&&"#"!==A.charAt(0)){var o=new cA(A);A=o.ok?o.toHex():"#000000"}4===A.length?(t=A.substring(1,2),t+=t,e=A.substring(2,3),e+=e,r=A.substring(3,4),r+=r):(t=A.substring(1,3),e=A.substring(3,5),r=A.substring(5,7)),t=parseInt(t,16),e=parseInt(e,16),r=parseInt(r,16)}}return{r:t,g:e,b:r,a:n,style:A}},B=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},d=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};h.prototype.fillText=function(A,t,e,r){if(isNaN(t)||isNaN(e)||"string"!=typeof A)throw eA.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!B.call(this)){var n=D(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;E.call(this,{text:A,x:t,y:e,scale:i,angle:n,align:this.textAlign,maxWidth:r})}},h.prototype.strokeText=function(A,t,e,r){if(isNaN(t)||isNaN(e)||"string"!=typeof A)throw eA.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!d.call(this)){r=isNaN(r)?void 0:r;var n=D(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;E.call(this,{text:A,x:t,y:e,scale:i,renderingMode:"stroke",angle:n,align:this.textAlign,maxWidth:r})}},h.prototype.measureText=function(A){if("string"!=typeof A)throw eA.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,e=this.pdf.internal.scaleFactor,r=t.internal.getFontSize(),n=t.getStringUnitWidth(A)*r/t.internal.scaleFactor;return new function(A){var t=(A=A||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this}({width:n*=Math.round(96*e/72*1e4)/1e4})},h.prototype.scale=function(A,t){if(isNaN(A)||isNaN(t))throw eA.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var e=new c(A,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(e)},h.prototype.rotate=function(A){if(isNaN(A))throw eA.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new c(Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},h.prototype.translate=function(A,t){if(isNaN(A)||isNaN(t))throw eA.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var e=new c(1,0,0,1,A,t);this.ctx.transform=this.ctx.transform.multiply(e)},h.prototype.transform=function(A,t,e,r,n,i){if(isNaN(A)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i))throw eA.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var o=new c(A,t,e,r,n,i);this.ctx.transform=this.ctx.transform.multiply(o)},h.prototype.setTransform=function(A,t,e,r,n,i){A=isNaN(A)?1:A,t=isNaN(t)?0:t,e=isNaN(e)?0:e,r=isNaN(r)?1:r,n=isNaN(n)?0:n,i=isNaN(i)?0:i,this.ctx.transform=new c(A,t,e,r,n,i)};var g=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};h.prototype.drawImage=function(A,t,e,r,n,i,o,s,u){var l=this.pdf.getImageProperties(A),h=1,f=1,B=1,d=1;void 0!==r&&void 0!==s&&(B=s/r,d=u/n,h=l.width/r*s/r,f=l.height/n*u/n),void 0===i&&(i=t,o=e,t=0,e=0),void 0!==r&&void 0===s&&(s=r,u=n),void 0===r&&void 0===s&&(s=l.width,u=l.height);for(var w,C=this.ctx.transform.decompose(),F=D(C.rotate.shx),y=new c,b=(y=(y=(y=y.multiply(C.translate)).multiply(C.skew)).multiply(C.scale)).applyToRectangle(new a(i-t*B,o-e*d,r*h,n*f)),U=p.call(this,b),L=[],I=0;I<U.length;I+=1)-1===L.indexOf(U[I])&&L.push(U[I]);if(Q(L),this.autoPaging)for(var E=L[0],x=L[L.length-1],H=E;H<x+1;H++){this.pdf.setPage(H);var N=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],S=1===H?this.posY+this.margin[0]:this.margin[0],P=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],k=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],_=1===H?0:P+(H-2)*k;if(0!==this.ctx.clip_path.length){var M=this.path;w=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=m(w,this.posX+this.margin[3],-_+S+this.ctx.prevPageLastElemOffset),v.call(this,"fill",!0),this.path=M}var O=JSON.parse(JSON.stringify(b));O=m([O],this.posX+this.margin[3],-_+S+this.ctx.prevPageLastElemOffset)[0];var K=(H>E||H<x)&&g.call(this);K&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],N,k,null).clip().discardPath()),this.pdf.addImage(A,"JPEG",O.x,O.y,O.w,O.h,null,null,F),K&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(A,"JPEG",b.x,b.y,b.w,b.h,null,null,F)};var p=function(A,t,e){var r=[];t=t||this.pdf.internal.pageSize.width,e=e||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var n=this.posY+this.ctx.prevPageLastElemOffset;switch(A.type){default:case"mt":case"lt":r.push(Math.floor((A.y+n)/e)+1);break;case"arc":r.push(Math.floor((A.y+n-A.radius)/e)+1),r.push(Math.floor((A.y+n+A.radius)/e)+1);break;case"qct":var i=k(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x,A.y);r.push(Math.floor((i.y+n)/e)+1),r.push(Math.floor((i.y+i.h+n)/e)+1);break;case"bct":var o=_(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x2,A.y2,A.x,A.y);r.push(Math.floor((o.y+n)/e)+1),r.push(Math.floor((o.y+o.h+n)/e)+1);break;case"rect":r.push(Math.floor((A.y+n)/e)+1),r.push(Math.floor((A.y+A.h+n)/e)+1)}for(var s=0;s<r.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<r[s];)w.call(this);return r},w=function(){var A=this.fillStyle,t=this.strokeStyle,e=this.font,r=this.lineCap,n=this.lineWidth,i=this.lineJoin;this.pdf.addPage(),this.fillStyle=A,this.strokeStyle=t,this.font=e,this.lineCap=r,this.lineWidth=n,this.lineJoin=i},m=function(A,t,e){for(var r=0;r<A.length;r++)switch(A[r].type){case"bct":A[r].x2+=t,A[r].y2+=e;case"qct":A[r].x1+=t,A[r].y1+=e;default:A[r].x+=t,A[r].y+=e}return A},Q=function(A){return A.sort((function(A,t){return A-t}))},C=function(A,t){for(var e,r,n=this.fillStyle,i=this.strokeStyle,o=this.lineCap,s=this.lineWidth,a=Math.abs(s*this.ctx.transform.scaleX),c=this.lineJoin,u=JSON.parse(JSON.stringify(this.path)),l=JSON.parse(JSON.stringify(this.path)),h=[],f=0;f<l.length;f++)if(void 0!==l[f].x)for(var B=p.call(this,l[f]),d=0;d<B.length;d+=1)-1===h.indexOf(B[d])&&h.push(B[d]);for(var C=0;C<h.length;C++)for(;this.pdf.internal.getNumberOfPages()<h[C];)w.call(this);if(Q(h),this.autoPaging)for(var F=h[0],y=h[h.length-1],b=F;b<y+1;b++){this.pdf.setPage(b),this.fillStyle=n,this.strokeStyle=i,this.lineCap=o,this.lineWidth=a,this.lineJoin=c;var U=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],L=1===b?this.posY+this.margin[0]:this.margin[0],I=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],E=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],x=1===b?0:I+(b-2)*E;if(0!==this.ctx.clip_path.length){var H=this.path;e=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=m(e,this.posX+this.margin[3],-x+L+this.ctx.prevPageLastElemOffset),v.call(this,A,!0),this.path=H}if(r=JSON.parse(JSON.stringify(u)),this.path=m(r,this.posX+this.margin[3],-x+L+this.ctx.prevPageLastElemOffset),!1===t||0===b){var N=(b>F||b<y)&&g.call(this);N&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],U,E,null).clip().discardPath()),v.call(this,A,t),N&&this.pdf.restoreGraphicsState()}this.lineWidth=s}else this.lineWidth=a,v.call(this,A,t),this.lineWidth=s;this.path=u},v=function(A,t){if(("stroke"!==A||t||!d.call(this))&&("stroke"===A||t||!B.call(this))){for(var e,r,n=[],i=this.path,o=0;o<i.length;o++){var s=i[o];switch(s.type){case"begin":n.push({begin:!0});break;case"close":n.push({close:!0});break;case"mt":n.push({start:s,deltas:[],abs:[]});break;case"lt":var a=n.length;if(i[o-1]&&!isNaN(i[o-1].x)&&(e=[s.x-i[o-1].x,s.y-i[o-1].y],a>0))for(;a>=0;a--)if(!0!==n[a-1].close&&!0!==n[a-1].begin){n[a-1].deltas.push(e),n[a-1].abs.push(s);break}break;case"bct":e=[s.x1-i[o-1].x,s.y1-i[o-1].y,s.x2-i[o-1].x,s.y2-i[o-1].y,s.x-i[o-1].x,s.y-i[o-1].y],n[n.length-1].deltas.push(e);break;case"qct":var c=i[o-1].x+2/3*(s.x1-i[o-1].x),u=i[o-1].y+2/3*(s.y1-i[o-1].y),l=s.x+2/3*(s.x1-s.x),h=s.y+2/3*(s.y1-s.y),f=s.x,g=s.y;e=[c-i[o-1].x,u-i[o-1].y,l-i[o-1].x,h-i[o-1].y,f-i[o-1].x,g-i[o-1].y],n[n.length-1].deltas.push(e);break;case"arc":n.push({deltas:[],abs:[],arc:!0}),Array.isArray(n[n.length-1].abs)&&n[n.length-1].abs.push(s)}}r=t?null:"stroke"===A?"stroke":"fill";for(var p=!1,w=0;w<n.length;w++)if(n[w].arc)for(var m=n[w].abs,Q=0;Q<m.length;Q++){var C=m[Q];"arc"===C.type?b.call(this,C.x,C.y,C.radius,C.startAngle,C.endAngle,C.counterclockwise,void 0,t,!p):x.call(this,C.x,C.y),p=!0}else if(!0===n[w].close)this.pdf.internal.out("h"),p=!1;else if(!0!==n[w].begin){var v=n[w].start.x,F=n[w].start.y;H.call(this,n[w].deltas,v,F),p=!0}r&&U.call(this,r),t&&L.call(this)}},F=function(A){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,e=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return A-e;case"top":return A+t-e;case"hanging":return A+t-2*e;case"middle":return A+t/2-e;default:return A}},y=function(A){return A+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};h.prototype.createLinearGradient=function(){var A=function(){};return A.colorStops=[],A.addColorStop=function(A,t){this.colorStops.push([A,t])},A.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},A.isCanvasGradient=!0,A},h.prototype.createPattern=function(){return this.createLinearGradient()},h.prototype.createRadialGradient=function(){return this.createLinearGradient()};var b=function(A,t,e,r,n,i,o,s,a){for(var c=S.call(this,e,r,n,i),u=0;u<c.length;u++){var l=c[u];0===u&&(a?I.call(this,l.x1+A,l.y1+t):x.call(this,l.x1+A,l.y1+t)),N.call(this,A,t,l.x2,l.y2,l.x3,l.y3,l.x4,l.y4)}s?L.call(this):U.call(this,o)},U=function(A){switch(A){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},L=function(){this.pdf.clip(),this.pdf.discardPath()},I=function(A,t){this.pdf.internal.out(e(A)+" "+r(t)+" m")},E=function(A){var t;switch(A.align){case"right":case"end":t="right";break;case"center":t="center";break;default:t="left"}var e=this.pdf.getTextDimensions(A.text),r=F.call(this,A.y),n=y.call(this,r)-e.h,i=this.ctx.transform.applyToPoint(new o(A.x,r)),s=this.ctx.transform.decompose(),u=new c;u=(u=(u=u.multiply(s.translate)).multiply(s.skew)).multiply(s.scale);for(var l,h,f,B=this.ctx.transform.applyToRectangle(new a(A.x,r,e.w,e.h)),d=u.applyToRectangle(new a(A.x,n,e.w,e.h)),w=p.call(this,d),C=[],b=0;b<w.length;b+=1)-1===C.indexOf(w[b])&&C.push(w[b]);if(Q(C),this.autoPaging)for(var U=C[0],L=C[C.length-1],I=U;I<L+1;I++){this.pdf.setPage(I);var E=1===I?this.posY+this.margin[0]:this.margin[0],x=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],H=this.pdf.internal.pageSize.height-this.margin[2],N=H-this.margin[0],S=this.pdf.internal.pageSize.width-this.margin[1],P=S-this.margin[3],D=1===I?0:x+(I-2)*N;if(0!==this.ctx.clip_path.length){var k=this.path;l=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=m(l,this.posX+this.margin[3],-1*D+E),v.call(this,"fill",!0),this.path=k}var _=m([JSON.parse(JSON.stringify(d))],this.posX+this.margin[3],-D+E+this.ctx.prevPageLastElemOffset)[0];A.scale>=.01&&(h=this.pdf.internal.getFontSize(),this.pdf.setFontSize(h*A.scale),f=this.lineWidth,this.lineWidth=f*A.scale);var M="text"!==this.autoPaging;if(M||_.y+_.h<=H){if(M||_.y>=E&&_.x<=S){var O=M?A.text:this.pdf.splitTextToSize(A.text,A.maxWidth||S-_.x)[0],K=m([JSON.parse(JSON.stringify(B))],this.posX+this.margin[3],-D+E+this.ctx.prevPageLastElemOffset)[0],T=M&&(I>U||I<L)&&g.call(this);T&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],P,N,null).clip().discardPath()),this.pdf.text(O,K.x,K.y,{angle:A.angle,align:t,renderingMode:A.renderingMode}),T&&this.pdf.restoreGraphicsState()}}else _.y<H&&(this.ctx.prevPageLastElemOffset+=H-_.y);A.scale>=.01&&(this.pdf.setFontSize(h),this.lineWidth=f)}else A.scale>=.01&&(h=this.pdf.internal.getFontSize(),this.pdf.setFontSize(h*A.scale),f=this.lineWidth,this.lineWidth=f*A.scale),this.pdf.text(A.text,i.x+this.posX,i.y+this.posY,{angle:A.angle,align:t,renderingMode:A.renderingMode,maxWidth:A.maxWidth}),A.scale>=.01&&(this.pdf.setFontSize(h),this.lineWidth=f)},x=function(A,t,n,i){n=n||0,i=i||0,this.pdf.internal.out(e(A+n)+" "+r(t+i)+" l")},H=function(A,t,e){return this.pdf.lines(A,t,e,null,null)},N=function(A,e,r,o,s,a,c,u){this.pdf.internal.out([t(n(r+A)),t(i(o+e)),t(n(s+A)),t(i(a+e)),t(n(c+A)),t(i(u+e)),"c"].join(" "))},S=function(A,t,e,r){for(var n=2*Math.PI,i=Math.PI/2;t>e;)t-=n;var o=Math.abs(e-t);o<n&&r&&(o=n-o);for(var s=[],a=r?-1:1,c=t;o>1e-5;){var u=c+a*Math.min(o,i);s.push(P.call(this,A,c,u)),o-=Math.abs(u-c),c=u}return s},P=function(A,t,e){var r=(e-t)/2,n=A*Math.cos(r),i=A*Math.sin(r),o=n,s=-i,a=o*o+s*s,c=a+o*n+s*i,u=4/3*(Math.sqrt(2*a*c)-c)/(o*i-s*n),l=o-u*s,h=s+u*o,f=l,B=-h,d=r+t,g=Math.cos(d),p=Math.sin(d);return{x1:A*Math.cos(t),y1:A*Math.sin(t),x2:l*g-h*p,y2:l*p+h*g,x3:f*g-B*p,y3:f*p+B*g,x4:A*Math.cos(e),y4:A*Math.sin(e)}},D=function(A){return 180*A/Math.PI},k=function(A,t,e,r,n,i){var o=A+.5*(e-A),s=t+.5*(r-t),c=n+.5*(e-n),u=i+.5*(r-i),l=Math.min(A,n,o,c),h=Math.max(A,n,o,c),f=Math.min(t,i,s,u),B=Math.max(t,i,s,u);return new a(l,f,h-l,B-f)},_=function(A,t,e,r,n,i,o,s){var c,u,l,h,f,B,d,g,p,w,m,Q,C,v,F=e-A,y=r-t,b=n-e,U=i-r,L=o-n,I=s-i;for(u=0;u<41;u++)p=(d=(l=A+(c=u/40)*F)+c*((f=e+c*b)-l))+c*(f+c*(n+c*L-f)-d),w=(g=(h=t+c*y)+c*((B=r+c*U)-h))+c*(B+c*(i+c*I-B)-g),0==u?(m=p,Q=w,C=p,v=w):(m=Math.min(m,p),Q=Math.min(Q,w),C=Math.max(C,p),v=Math.max(v,w));return new a(Math.round(m),Math.round(Q),Math.round(C-m),Math.round(v-Q))},M=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var A,t,e=(A=this.ctx.lineDash,t=this.ctx.lineDashOffset,JSON.stringify({lineDash:A,lineDashOffset:t}));this.prevLineDash!==e&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=e)}}}(SA.API),
109
109
  /**
110
110
  * @license
111
111
  * jsPDF filters PlugIn
@@ -123,7 +123,7 @@ function(A){var t=function(A){var t,e,r,n,i,o,s,a,c,u;for(e=[],r=0,n=(A+=t="\0\0
123
123
  * Licensed under the MIT License.
124
124
  * http://opensource.org/licenses/mit-license
125
125
  */
126
- function(A){A.loadFile=function(A,t,e){return function(A,t,e){t=!1!==t,e="function"==typeof e?e:function(){};var r=void 0;try{r=function(A,t,e){var r=new XMLHttpRequest,n=0,i=function(A){var t=A.length,e=[],r=String.fromCharCode;for(n=0;n<t;n+=1)e.push(r(255&A.charCodeAt(n)));return e.join("")};if(r.open("GET",A,!t),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(r.onload=function(){200===r.status?e(i(this.responseText)):e(void 0)}),r.send(null),t&&200===r.status)return i(r.responseText)}(A,t,e)}catch(A){}return r}(A,t,e)},A.loadImageFile=A.loadFile}(SA.API),function(A){function t(){return(AA.html2canvas?Promise.resolve(AA.html2canvas):Promise.resolve().then((function(){return ye}))).catch((function(A){return Promise.reject(new Error("Could not load html2canvas: "+A))})).then((function(A){return A.default?A.default:A}))}function e(){return(AA.DOMPurify?Promise.resolve(AA.DOMPurify):import("./purify-mEiDmpQD.js").then((function(A){return A.p}))).catch((function(A){return Promise.reject(new Error("Could not load dompurify: "+A))})).then((function(A){return A.default?A.default:A}))}var r=function(A){var t=s(A);return"undefined"===t?"undefined":"string"===t||A instanceof String?"string":"number"===t||A instanceof Number?"number":"function"===t||A instanceof Function?"function":A&&A.constructor===Array?"array":A&&1===A.nodeType?"element":"object"===t?"object":"unknown"},n=function(A,t){var e=document.createElement(A);for(var r in t.className&&(e.className=t.className),t.innerHTML&&t.dompurify&&(e.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)e.style[r]=t.style[r];return e},i=function A(t){var e=Object.assign(A.convert(Promise.resolve()),JSON.parse(JSON.stringify(A.template))),r=A.convert(Promise.resolve(),e);return(r=r.setProgress(1,A,1,[A])).set(t)};(i.prototype=Object.create(Promise.prototype)).constructor=i,i.convert=function(A,t){return A.__proto__=t||i.prototype,A},i.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},i.prototype.from=function(A,t){return this.then((function(){switch(t=t||function(A){switch(r(A)){case"string":return"string";case"element":return"canvas"===A.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(A)){case"string":return this.then(e).then((function(t){return this.set({src:n("div",{innerHTML:A,dompurify:t})})}));case"element":return this.set({src:A});case"canvas":return this.set({canvas:A});case"img":return this.set({img:A});default:return this.error("Unknown source type.")}}))},i.prototype.to=function(A){switch(A){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},i.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var A={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},t=function A(t,e){for(var r=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),n=t.firstChild;n;n=n.nextSibling)!0!==e&&1===n.nodeType&&"SCRIPT"===n.nodeName||r.appendChild(A(n,e));return 1===t.nodeType&&("CANVAS"===t.nodeName?(r.width=t.width,r.height=t.height,r.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(r.value=t.value),r.addEventListener("load",(function(){r.scrollTop=t.scrollTop,r.scrollLeft=t.scrollLeft}),!0)),r}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(A.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=n("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=n("div",{className:"html2pdf__container",style:A}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(n("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},i.prototype.toCanvas=function(){var A=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(A).then(t).then((function(A){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,A(this.prop.container,t)})).then((function(A){(this.opt.html2canvas.onrendered||function(){})(A),this.prop.canvas=A,document.body.removeChild(this.prop.overlay)}))},i.prototype.toContext2d=function(){var A=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(A).then(t).then((function(A){var t=this.opt.jsPDF,e=this.opt.fontFaces,r="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,n=Object.assign({async:!0,allowTaint:!0,scale:r,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete n.onrendered,t.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=e,e)for(var i=0;i<e.length;++i){var o=e[i],s=o.src.find((function(A){return"truetype"===A.format}));s&&t.addFont(s.url,o.ref.name,o.ref.style)}return n.windowHeight=n.windowHeight||0,n.windowHeight=0==n.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):n.windowHeight,t.context2d.save(!0),A(this.prop.container,n)})).then((function(A){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(A),this.prop.canvas=A,document.body.removeChild(this.prop.overlay)}))},i.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var A=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=A}))},i.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},i.prototype.output=function(A,t,e){return"img"===(e=e||"pdf").toLowerCase()||"image"===e.toLowerCase()?this.outputImg(A,t):this.outputPdf(A,t)},i.prototype.outputPdf=function(A,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(A,t)}))},i.prototype.outputImg=function(A){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(A){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+A+'" is not supported.'}}))},i.prototype.save=function(A){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(A?{filename:A}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},i.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},i.prototype.set=function(A){if("object"!==r(A))return this;var t=Object.keys(A||{}).map((function(t){if(t in i.template.prop)return function(){this.prop[t]=A[t]};switch(t){case"margin":return this.setMargin.bind(this,A.margin);case"jsPDF":return function(){return this.opt.jsPDF=A.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,A.pageSize);default:return function(){this.opt[t]=A[t]}}}),this);return this.then((function(){return this.thenList(t)}))},i.prototype.get=function(A,t){return this.then((function(){var e=A in i.template.prop?this.prop[A]:this.opt[A];return t?t(e):e}))},i.prototype.setMargin=function(A){return this.then((function(){switch(r(A)){case"number":A=[A,A,A,A];case"array":if(2===A.length&&(A=[A[0],A[1],A[0],A[1]]),4===A.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=A})).then(this.setPageSize)},i.prototype.setPageSize=function(A){function t(A,t){return Math.floor(A*t/72*96)}return this.then((function(){(A=A||SA.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(A.inner={width:A.width-this.opt.margin[1]-this.opt.margin[3],height:A.height-this.opt.margin[0]-this.opt.margin[2]},A.inner.px={width:t(A.inner.width,A.k),height:t(A.inner.height,A.k)},A.inner.ratio=A.inner.height/A.inner.width),this.prop.pageSize=A}))},i.prototype.setProgress=function(A,t,e,r){return null!=A&&(this.progress.val=A),null!=t&&(this.progress.state=t),null!=e&&(this.progress.n=e),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(A,t,e,r){return this.setProgress(A?this.progress.val+A:null,t||null,e?this.progress.n+e:null,r?this.progress.stack.concat(r):null)},i.prototype.then=function(A,t){var e=this;return this.thenCore(A,t,(function(A,t){return e.updateProgress(null,null,1,[A]),Promise.prototype.then.call(this,(function(t){return e.updateProgress(null,A),t})).then(A,t).then((function(A){return e.updateProgress(1),A}))}))},i.prototype.thenCore=function(A,t,e){e=e||Promise.prototype.then,A&&(A=A.bind(this)),t&&(t=t.bind(this));var r=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:i.convert(Object.assign({},this),Promise.prototype),n=e.call(r,A,t);return i.convert(n,this.__proto__)},i.prototype.thenExternal=function(A,t){return Promise.prototype.then.call(this,A,t)},i.prototype.thenList=function(A){var t=this;return A.forEach((function(A){t=t.thenCore(A)})),t},i.prototype.catch=function(A){A&&(A=A.bind(this));var t=Promise.prototype.catch.call(this,A);return i.convert(t,this)},i.prototype.catchExternal=function(A){return Promise.prototype.catch.call(this,A)},i.prototype.error=function(A){return this.then((function(){throw new Error(A)}))},i.prototype.using=i.prototype.set,i.prototype.saveAs=i.prototype.save,i.prototype.export=i.prototype.output,i.prototype.run=i.prototype.then,SA.getPageSize=function(A,t,e){if("object"===s(A)){var r=A;A=r.orientation,t=r.unit||t,e=r.format||e}t=t||"mm",e=e||"a4",A=(""+(A||"P")).toLowerCase();var n,i=(""+e).toLowerCase(),o={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":n=1;break;case"mm":n=72/25.4;break;case"cm":n=72/2.54;break;case"in":n=72;break;case"px":n=.75;break;case"pc":case"em":n=12;break;case"ex":n=6;break;default:throw"Invalid unit: "+t}var a,c=0,u=0;if(o.hasOwnProperty(i))c=o[i][1]/n,u=o[i][0]/n;else try{c=e[1],u=e[0]}catch(A){throw new Error("Invalid format: "+e)}if("p"===A||"portrait"===A)A="p",u>c&&(a=u,u=c,c=a);else{if("l"!==A&&"landscape"!==A)throw"Invalid orientation: "+A;A="l",c>u&&(a=u,u=c,c=a)}return{width:u,height:c,unit:t,k:n,orientation:A}},A.html=function(A,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(Et):null;var e=new i(t);return t.worker?e:e.from(A).doCallback()}}(SA.API),SA.API.addJS=function(A){return Ot=A,this.internal.events.subscribe("postPutResources",(function(){_t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(_t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Mt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ot+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==_t&&void 0!==Mt&&this.internal.out("/Names <</JavaScript "+_t+" 0 R>>")})),this
126
+ function(A){A.loadFile=function(A,t,e){return function(A,t,e){t=!1!==t,e="function"==typeof e?e:function(){};var r=void 0;try{r=function(A,t,e){var r=new XMLHttpRequest,n=0,i=function(A){var t=A.length,e=[],r=String.fromCharCode;for(n=0;n<t;n+=1)e.push(r(255&A.charCodeAt(n)));return e.join("")};if(r.open("GET",A,!t),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(r.onload=function(){200===r.status?e(i(this.responseText)):e(void 0)}),r.send(null),t&&200===r.status)return i(r.responseText)}(A,t,e)}catch(A){}return r}(A,t,e)},A.loadImageFile=A.loadFile}(SA.API),function(A){function t(){return(AA.html2canvas?Promise.resolve(AA.html2canvas):Promise.resolve().then((function(){return ye}))).catch((function(A){return Promise.reject(new Error("Could not load html2canvas: "+A))})).then((function(A){return A.default?A.default:A}))}function e(){return(AA.DOMPurify?Promise.resolve(AA.DOMPurify):import("./purify.es-DJj7iNgQ.js")).catch((function(A){return Promise.reject(new Error("Could not load dompurify: "+A))})).then((function(A){return A.default?A.default:A}))}var r=function(A){var t=s(A);return"undefined"===t?"undefined":"string"===t||A instanceof String?"string":"number"===t||A instanceof Number?"number":"function"===t||A instanceof Function?"function":A&&A.constructor===Array?"array":A&&1===A.nodeType?"element":"object"===t?"object":"unknown"},n=function(A,t){var e=document.createElement(A);for(var r in t.className&&(e.className=t.className),t.innerHTML&&t.dompurify&&(e.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)e.style[r]=t.style[r];return e},i=function A(t){var e=Object.assign(A.convert(Promise.resolve()),JSON.parse(JSON.stringify(A.template))),r=A.convert(Promise.resolve(),e);return(r=r.setProgress(1,A,1,[A])).set(t)};(i.prototype=Object.create(Promise.prototype)).constructor=i,i.convert=function(A,t){return A.__proto__=t||i.prototype,A},i.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},i.prototype.from=function(A,t){return this.then((function(){switch(t=t||function(A){switch(r(A)){case"string":return"string";case"element":return"canvas"===A.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(A)){case"string":return this.then(e).then((function(t){return this.set({src:n("div",{innerHTML:A,dompurify:t})})}));case"element":return this.set({src:A});case"canvas":return this.set({canvas:A});case"img":return this.set({img:A});default:return this.error("Unknown source type.")}}))},i.prototype.to=function(A){switch(A){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},i.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var A={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},t=function A(t,e){for(var r=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),n=t.firstChild;n;n=n.nextSibling)!0!==e&&1===n.nodeType&&"SCRIPT"===n.nodeName||r.appendChild(A(n,e));return 1===t.nodeType&&("CANVAS"===t.nodeName?(r.width=t.width,r.height=t.height,r.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(r.value=t.value),r.addEventListener("load",(function(){r.scrollTop=t.scrollTop,r.scrollLeft=t.scrollLeft}),!0)),r}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(A.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=n("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=n("div",{className:"html2pdf__container",style:A}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(n("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},i.prototype.toCanvas=function(){var A=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(A).then(t).then((function(A){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,A(this.prop.container,t)})).then((function(A){(this.opt.html2canvas.onrendered||function(){})(A),this.prop.canvas=A,document.body.removeChild(this.prop.overlay)}))},i.prototype.toContext2d=function(){var A=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(A).then(t).then((function(A){var t=this.opt.jsPDF,e=this.opt.fontFaces,r="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,n=Object.assign({async:!0,allowTaint:!0,scale:r,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete n.onrendered,t.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=e,e)for(var i=0;i<e.length;++i){var o=e[i],s=o.src.find((function(A){return"truetype"===A.format}));s&&t.addFont(s.url,o.ref.name,o.ref.style)}return n.windowHeight=n.windowHeight||0,n.windowHeight=0==n.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):n.windowHeight,t.context2d.save(!0),A(this.prop.container,n)})).then((function(A){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(A),this.prop.canvas=A,document.body.removeChild(this.prop.overlay)}))},i.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var A=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=A}))},i.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},i.prototype.output=function(A,t,e){return"img"===(e=e||"pdf").toLowerCase()||"image"===e.toLowerCase()?this.outputImg(A,t):this.outputPdf(A,t)},i.prototype.outputPdf=function(A,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(A,t)}))},i.prototype.outputImg=function(A){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(A){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+A+'" is not supported.'}}))},i.prototype.save=function(A){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(A?{filename:A}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},i.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},i.prototype.set=function(A){if("object"!==r(A))return this;var t=Object.keys(A||{}).map((function(t){if(t in i.template.prop)return function(){this.prop[t]=A[t]};switch(t){case"margin":return this.setMargin.bind(this,A.margin);case"jsPDF":return function(){return this.opt.jsPDF=A.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,A.pageSize);default:return function(){this.opt[t]=A[t]}}}),this);return this.then((function(){return this.thenList(t)}))},i.prototype.get=function(A,t){return this.then((function(){var e=A in i.template.prop?this.prop[A]:this.opt[A];return t?t(e):e}))},i.prototype.setMargin=function(A){return this.then((function(){switch(r(A)){case"number":A=[A,A,A,A];case"array":if(2===A.length&&(A=[A[0],A[1],A[0],A[1]]),4===A.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=A})).then(this.setPageSize)},i.prototype.setPageSize=function(A){function t(A,t){return Math.floor(A*t/72*96)}return this.then((function(){(A=A||SA.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(A.inner={width:A.width-this.opt.margin[1]-this.opt.margin[3],height:A.height-this.opt.margin[0]-this.opt.margin[2]},A.inner.px={width:t(A.inner.width,A.k),height:t(A.inner.height,A.k)},A.inner.ratio=A.inner.height/A.inner.width),this.prop.pageSize=A}))},i.prototype.setProgress=function(A,t,e,r){return null!=A&&(this.progress.val=A),null!=t&&(this.progress.state=t),null!=e&&(this.progress.n=e),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(A,t,e,r){return this.setProgress(A?this.progress.val+A:null,t||null,e?this.progress.n+e:null,r?this.progress.stack.concat(r):null)},i.prototype.then=function(A,t){var e=this;return this.thenCore(A,t,(function(A,t){return e.updateProgress(null,null,1,[A]),Promise.prototype.then.call(this,(function(t){return e.updateProgress(null,A),t})).then(A,t).then((function(A){return e.updateProgress(1),A}))}))},i.prototype.thenCore=function(A,t,e){e=e||Promise.prototype.then,A&&(A=A.bind(this)),t&&(t=t.bind(this));var r=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:i.convert(Object.assign({},this),Promise.prototype),n=e.call(r,A,t);return i.convert(n,this.__proto__)},i.prototype.thenExternal=function(A,t){return Promise.prototype.then.call(this,A,t)},i.prototype.thenList=function(A){var t=this;return A.forEach((function(A){t=t.thenCore(A)})),t},i.prototype.catch=function(A){A&&(A=A.bind(this));var t=Promise.prototype.catch.call(this,A);return i.convert(t,this)},i.prototype.catchExternal=function(A){return Promise.prototype.catch.call(this,A)},i.prototype.error=function(A){return this.then((function(){throw new Error(A)}))},i.prototype.using=i.prototype.set,i.prototype.saveAs=i.prototype.save,i.prototype.export=i.prototype.output,i.prototype.run=i.prototype.then,SA.getPageSize=function(A,t,e){if("object"===s(A)){var r=A;A=r.orientation,t=r.unit||t,e=r.format||e}t=t||"mm",e=e||"a4",A=(""+(A||"P")).toLowerCase();var n,i=(""+e).toLowerCase(),o={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":n=1;break;case"mm":n=72/25.4;break;case"cm":n=72/2.54;break;case"in":n=72;break;case"px":n=.75;break;case"pc":case"em":n=12;break;case"ex":n=6;break;default:throw"Invalid unit: "+t}var a,c=0,u=0;if(o.hasOwnProperty(i))c=o[i][1]/n,u=o[i][0]/n;else try{c=e[1],u=e[0]}catch(A){throw new Error("Invalid format: "+e)}if("p"===A||"portrait"===A)A="p",u>c&&(a=u,u=c,c=a);else{if("l"!==A&&"landscape"!==A)throw"Invalid orientation: "+A;A="l",c>u&&(a=u,u=c,c=a)}return{width:u,height:c,unit:t,k:n,orientation:A}},A.html=function(A,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(Et):null;var e=new i(t);return t.worker?e:e.from(A).doCallback()}}(SA.API),SA.API.addJS=function(A){return Ot=A,this.internal.events.subscribe("postPutResources",(function(){_t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(_t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Mt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ot+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==_t&&void 0!==Mt&&this.internal.out("/Names <</JavaScript "+_t+" 0 R>>")})),this
127
127
  /**
128
128
  * @license
129
129
  * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
@@ -238,7 +238,7 @@ function(A){var t=[192,193,194,195,196,197,198,199];A.processJPEG=function(A,e,r
238
238
  https://webpjs.appspot.com
239
239
  WebPRiffParser dominikhlbg@gmail.com
240
240
  */
241
- function(A,t){for(var e=0;e<4;e++)if(A[t+e]!="RIFF".charCodeAt(e))return!0;return!1}(A,t)){var s,a;for(l(A,t+=4),t+=8;t<A.length;){var h=c(A,t),f=l(A,t+=4);t+=4;var B=f+(1&f);switch(h){case"VP8 ":case"VP8L":void 0===e.frames[r]&&(e.frames[r]={}),(p=e.frames[r]).src_off=n?o:t-8,p.src_size=i+f+8,r++,n&&(n=!1,i=0,o=0);break;case"VP8X":(p=e.header={}).feature_flags=A[t];var d=t+4;p.canvas_width=1+u(A,d),d+=3,p.canvas_height=1+u(A,d),d+=3;break;case"ALPH":n=!0,i=B+8,o=t-8;break;case"ANIM":(p=e.header).bgcolor=l(A,t),d=t+4,p.loop_count=(s=A)[(a=d)+0]|s[a+1]<<8,d+=2;break;case"ANMF":var g,p;(p=e.frames[r]={}).offset_x=2*u(A,t),t+=3,p.offset_y=2*u(A,t),t+=3,p.width=1+u(A,t),t+=3,p.height=1+u(A,t),t+=3,p.duration=u(A,t),t+=3,g=A[t++],p.dispose=1&g,p.blend=g>>1&1}"ANMF"!=h&&(t+=B)}return e}}(g,0);p.response=g,p.rgbaoutput=!0,p.dataurl=!1;var w=p.header?p.header:null,m=p.frames?p.frames:null;if(w){w.loop_counter=w.loop_count,h=[w.canvas_height],f=[w.canvas_width];for(var Q=0;Q<m.length&&0!=m[Q].blend;Q++);}var C=m[0],v=d.WebPDecodeRGBA(g,C.src_off,C.src_size,f,h);C.rgba=v,C.imgwidth=f[0],C.imgheight=h[0];for(var F=0;F<f[0]*h[0]*4;F++)B[F]=v[F];return this.width=f,this.height=h,this.data=B,this}!function(A){var t=function(t,r,a,c){var u=4,l=i;switch(c){case A.image_compression.FAST:u=1,l=n;break;case A.image_compression.MEDIUM:u=6,l=o;break;case A.image_compression.SLOW:u=9,l=s}var h=Y(t=e(t,r,a,l),{level:u});return A.__addimage__.arrayBufferToBinaryString(h)},e=function(A,t,e,r){for(var n,i,o,s=A.length/t,a=new Uint8Array(A.length+s),l=c(),h=0;h<s;h+=1){if(o=h*t,n=A.subarray(o,o+t),r)a.set(r(n,e,i),o+h);else{for(var f,B=l.length,d=[];f<B;f+=1)d[f]=l[f](n,e,i);var g=u(d.concat());a.set(d[g],o+h)}i=n}return a},r=function(A){var t=Array.apply([],A);return t.unshift(0),t},n=function(A,t){var e,r=[],n=A.length;r[0]=1;for(var i=0;i<n;i+=1)e=A[i-t]||0,r[i+1]=A[i]-e+256&255;return r},i=function(A,t,e){var r,n=[],i=A.length;n[0]=2;for(var o=0;o<i;o+=1)r=e&&e[o]||0,n[o+1]=A[o]-r+256&255;return n},o=function(A,t,e){var r,n,i=[],o=A.length;i[0]=3;for(var s=0;s<o;s+=1)r=A[s-t]||0,n=e&&e[s]||0,i[s+1]=A[s]+256-(r+n>>>1)&255;return i},s=function(A,t,e){var r,n,i,o,s=[],c=A.length;s[0]=4;for(var u=0;u<c;u+=1)r=A[u-t]||0,n=e&&e[u]||0,i=e&&e[u-t]||0,o=a(r,n,i),s[u+1]=A[u]-o+256&255;return s},a=function(A,t,e){if(A===t&&t===e)return A;var r=Math.abs(t-e),n=Math.abs(A-e),i=Math.abs(A+t-e-e);return r<=n&&r<=i?A:n<=i?t:e},c=function(){return[r,n,i,o,s]},u=function(A){var t=A.map((function(A){return A.reduce((function(A,t){return A+Math.abs(t)}),0)}));return t.indexOf(Math.min.apply(null,t))};A.processPNG=function(e,r,n,i){var o,s,a,c,u,l,h,f,B,d,g,p,w,m,Q,C=this.decode.FLATE_DECODE,v="";if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){if(e=(a=new qt(e)).imgData,s=a.bits,o=a.colorSpace,u=a.colors,-1!==[4,6].indexOf(a.colorType)){if(8===a.bits){B=(f=32==a.pixelBitlength?new Uint32Array(a.decodePixels().buffer):16==a.pixelBitlength?new Uint16Array(a.decodePixels().buffer):new Uint8Array(a.decodePixels().buffer)).length,g=new Uint8Array(B*a.colors),d=new Uint8Array(B);var F,y=a.pixelBitlength-a.bits;for(m=0,Q=0;m<B;m++){for(w=f[m],F=0;F<y;)g[Q++]=w>>>F&255,F+=a.bits;d[m]=w>>>F&255}}if(16===a.bits){B=(f=new Uint32Array(a.decodePixels().buffer)).length,g=new Uint8Array(B*(32/a.pixelBitlength)*a.colors),d=new Uint8Array(B*(32/a.pixelBitlength)),p=a.colors>1,m=0,Q=0;for(var b=0;m<B;)w=f[m++],g[Q++]=w>>>0&255,p&&(g[Q++]=w>>>16&255,w=f[m++],g[Q++]=w>>>0&255),d[b++]=w>>>16&255;s=8}i!==A.image_compression.NONE?(e=t(g,a.width*a.colors,a.colors,i),h=t(d,a.width,1,i)):(e=g,h=d,C=void 0)}if(3===a.colorType&&(o=this.color_spaces.INDEXED,l=a.palette,a.transparency.indexed)){var U=a.transparency.indexed,L=0;for(m=0,B=U.length;m<B;++m)L+=U[m];if((L/=255)==B-1&&-1!==U.indexOf(0))c=[U.indexOf(0)];else if(L!==B){for(f=a.decodePixels(),d=new Uint8Array(f.length),m=0,B=f.length;m<B;m++)d[m]=U[f[m]];h=t(d,a.width,1)}}var I=function(t){var e;switch(t){case A.image_compression.FAST:e=11;break;case A.image_compression.MEDIUM:e=13;break;case A.image_compression.SLOW:e=14;break;default:e=12}return e}(i);return C===this.decode.FLATE_DECODE&&(v="/Predictor "+I+" "),v+="/Colors "+u+" /BitsPerComponent "+s+" /Columns "+a.width,(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(h&&this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),{alias:n,data:e,index:r,filter:C,decodeParameters:v,transparency:c,palette:l,sMask:h,predictor:I,width:a.width,height:a.height,bitsPerComponent:s,colorSpace:o}}}}(SA.API),function(A){A.processGIF89A=function(t,e,r,n){var i=new Xt(t),o=i.width,s=i.height,a=[];i.decodeAndBlitFrameRGBA(0,a);var c={data:a,width:o,height:s},u=new Wt(100).encode(c,100);return A.processJPEG.call(this,u,e,r,n)},A.processGIF87A=A.processGIF89A}(SA.API),zt.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var A=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(A);for(var t=0;t<A;t++){var e=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:n,green:r,blue:e,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},zt.prototype.parseBGR=function(){this.pos=this.offset;try{var A="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[A]()}catch(A){eA.log("bit decode error:"+A)}},zt.prototype.bit1=function(){var A,t=Math.ceil(this.width/8),e=t%4;for(A=this.height-1;A>=0;A--){for(var r=this.bottom_up?A:this.height-1-A,n=0;n<t;n++)for(var i=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*n*4,s=0;s<8&&8*n+s<this.width;s++){var a=this.palette[i>>7-s&1];this.data[o+4*s]=a.blue,this.data[o+4*s+1]=a.green,this.data[o+4*s+2]=a.red,this.data[o+4*s+3]=255}0!==e&&(this.pos+=4-e)}},zt.prototype.bit4=function(){for(var A=Math.ceil(this.width/2),t=A%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<A;n++){var i=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*n*4,s=i>>4,a=15&i,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*n+1>=this.width)break;c=this.palette[a],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}0!==t&&(this.pos+=4-t)}},zt.prototype.bit8=function(){for(var A=this.width%4,t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=e*this.width*4+4*r;if(n<this.palette.length){var o=this.palette[n];this.data[i]=o.red,this.data[i+1]=o.green,this.data[i+2]=o.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}0!==A&&(this.pos+=4-A)}},zt.prototype.bit15=function(){for(var A=this.width%3,t=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(i&t)/t*255|0,s=(i>>5&t)/t*255|0,a=(i>>10&t)/t*255|0,c=i>>15?255:0,u=r*this.width*4+4*n;this.data[u]=a,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=c}this.pos+=A}},zt.prototype.bit16=function(){for(var A=this.width%3,t=parseInt("11111",2),e=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,a=(o>>5&e)/e*255|0,c=(o>>11)/t*255|0,u=n*this.width*4+4*i;this.data[u]=c,this.data[u+1]=a,this.data[u+2]=s,this.data[u+3]=255}this.pos+=A}},zt.prototype.bit24=function(){for(var A=this.height-1;A>=0;A--){for(var t=this.bottom_up?A:this.height-1-A,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*e;this.data[o]=i,this.data[o+1]=n,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},zt.prototype.bit32=function(){for(var A=this.height-1;A>=0;A--)for(var t=this.bottom_up?A:this.height-1-A,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*e;this.data[s]=i,this.data[s+1]=n,this.data[s+2]=r,this.data[s+3]=o}},zt.prototype.getData=function(){return this.data},
241
+ function(A,t){for(var e=0;e<4;e++)if(A[t+e]!="RIFF".charCodeAt(e))return!0;return!1}(A,t)){for(l(A,t+=4),t+=8;t<A.length;){var s=c(A,t),a=l(A,t+=4);t+=4;var h=a+(1&a);switch(s){case"VP8 ":case"VP8L":void 0===e.frames[r]&&(e.frames[r]={}),(d=e.frames[r]).src_off=n?o:t-8,d.src_size=i+a+8,r++,n&&(n=!1,i=0,o=0);break;case"VP8X":(d=e.header={}).feature_flags=A[t];var f=t+4;d.canvas_width=1+u(A,f),f+=3,d.canvas_height=1+u(A,f),f+=3;break;case"ALPH":n=!0,i=h+8,o=t-8;break;case"ANIM":(d=e.header).bgcolor=l(A,t),f=t+4,d.loop_count=(g=A)[(p=f)+0]|g[p+1]<<8,f+=2;break;case"ANMF":var B,d;(d=e.frames[r]={}).offset_x=2*u(A,t),t+=3,d.offset_y=2*u(A,t),t+=3,d.width=1+u(A,t),t+=3,d.height=1+u(A,t),t+=3,d.duration=u(A,t),t+=3,B=A[t++],d.dispose=1&B,d.blend=B>>1&1}"ANMF"!=s&&(t+=h)}var g,p;return e}}(g,0);p.response=g,p.rgbaoutput=!0,p.dataurl=!1;var w=p.header?p.header:null,m=p.frames?p.frames:null;if(w){w.loop_counter=w.loop_count,h=[w.canvas_height],f=[w.canvas_width];for(var Q=0;Q<m.length&&0!=m[Q].blend;Q++);}var C=m[0],v=d.WebPDecodeRGBA(g,C.src_off,C.src_size,f,h);C.rgba=v,C.imgwidth=f[0],C.imgheight=h[0];for(var F=0;F<f[0]*h[0]*4;F++)B[F]=v[F];return this.width=f,this.height=h,this.data=B,this}!function(A){var t=function(t,r,a,c){var u=4,l=i;switch(c){case A.image_compression.FAST:u=1,l=n;break;case A.image_compression.MEDIUM:u=6,l=o;break;case A.image_compression.SLOW:u=9,l=s}var h=Y(t=e(t,r,a,l),{level:u});return A.__addimage__.arrayBufferToBinaryString(h)},e=function(A,t,e,r){for(var n,i,o,s=A.length/t,a=new Uint8Array(A.length+s),l=c(),h=0;h<s;h+=1){if(o=h*t,n=A.subarray(o,o+t),r)a.set(r(n,e,i),o+h);else{for(var f,B=l.length,d=[];f<B;f+=1)d[f]=l[f](n,e,i);var g=u(d.concat());a.set(d[g],o+h)}i=n}return a},r=function(A){var t=Array.apply([],A);return t.unshift(0),t},n=function(A,t){var e,r=[],n=A.length;r[0]=1;for(var i=0;i<n;i+=1)e=A[i-t]||0,r[i+1]=A[i]-e+256&255;return r},i=function(A,t,e){var r,n=[],i=A.length;n[0]=2;for(var o=0;o<i;o+=1)r=e&&e[o]||0,n[o+1]=A[o]-r+256&255;return n},o=function(A,t,e){var r,n,i=[],o=A.length;i[0]=3;for(var s=0;s<o;s+=1)r=A[s-t]||0,n=e&&e[s]||0,i[s+1]=A[s]+256-(r+n>>>1)&255;return i},s=function(A,t,e){var r,n,i,o,s=[],c=A.length;s[0]=4;for(var u=0;u<c;u+=1)r=A[u-t]||0,n=e&&e[u]||0,i=e&&e[u-t]||0,o=a(r,n,i),s[u+1]=A[u]-o+256&255;return s},a=function(A,t,e){if(A===t&&t===e)return A;var r=Math.abs(t-e),n=Math.abs(A-e),i=Math.abs(A+t-e-e);return r<=n&&r<=i?A:n<=i?t:e},c=function(){return[r,n,i,o,s]},u=function(A){var t=A.map((function(A){return A.reduce((function(A,t){return A+Math.abs(t)}),0)}));return t.indexOf(Math.min.apply(null,t))};A.processPNG=function(e,r,n,i){var o,s,a,c,u,l,h,f,B,d,g,p,w,m,Q,C=this.decode.FLATE_DECODE,v="";if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){if(e=(a=new qt(e)).imgData,s=a.bits,o=a.colorSpace,u=a.colors,-1!==[4,6].indexOf(a.colorType)){if(8===a.bits){B=(f=32==a.pixelBitlength?new Uint32Array(a.decodePixels().buffer):16==a.pixelBitlength?new Uint16Array(a.decodePixels().buffer):new Uint8Array(a.decodePixels().buffer)).length,g=new Uint8Array(B*a.colors),d=new Uint8Array(B);var F,y=a.pixelBitlength-a.bits;for(m=0,Q=0;m<B;m++){for(w=f[m],F=0;F<y;)g[Q++]=w>>>F&255,F+=a.bits;d[m]=w>>>F&255}}if(16===a.bits){B=(f=new Uint32Array(a.decodePixels().buffer)).length,g=new Uint8Array(B*(32/a.pixelBitlength)*a.colors),d=new Uint8Array(B*(32/a.pixelBitlength)),p=a.colors>1,m=0,Q=0;for(var b=0;m<B;)w=f[m++],g[Q++]=w>>>0&255,p&&(g[Q++]=w>>>16&255,w=f[m++],g[Q++]=w>>>0&255),d[b++]=w>>>16&255;s=8}i!==A.image_compression.NONE?(e=t(g,a.width*a.colors,a.colors,i),h=t(d,a.width,1,i)):(e=g,h=d,C=void 0)}if(3===a.colorType&&(o=this.color_spaces.INDEXED,l=a.palette,a.transparency.indexed)){var U=a.transparency.indexed,L=0;for(m=0,B=U.length;m<B;++m)L+=U[m];if((L/=255)==B-1&&-1!==U.indexOf(0))c=[U.indexOf(0)];else if(L!==B){for(f=a.decodePixels(),d=new Uint8Array(f.length),m=0,B=f.length;m<B;m++)d[m]=U[f[m]];h=t(d,a.width,1)}}var I=function(t){var e;switch(t){case A.image_compression.FAST:e=11;break;case A.image_compression.MEDIUM:e=13;break;case A.image_compression.SLOW:e=14;break;default:e=12}return e}(i);return C===this.decode.FLATE_DECODE&&(v="/Predictor "+I+" "),v+="/Colors "+u+" /BitsPerComponent "+s+" /Columns "+a.width,(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(h&&this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),{alias:n,data:e,index:r,filter:C,decodeParameters:v,transparency:c,palette:l,sMask:h,predictor:I,width:a.width,height:a.height,bitsPerComponent:s,colorSpace:o}}}}(SA.API),function(A){A.processGIF89A=function(t,e,r,n){var i=new Xt(t),o=i.width,s=i.height,a=[];i.decodeAndBlitFrameRGBA(0,a);var c={data:a,width:o,height:s},u=new Wt(100).encode(c,100);return A.processJPEG.call(this,u,e,r,n)},A.processGIF87A=A.processGIF89A}(SA.API),zt.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var A=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(A);for(var t=0;t<A;t++){var e=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:n,green:r,blue:e,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},zt.prototype.parseBGR=function(){this.pos=this.offset;try{var A="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[A]()}catch(A){eA.log("bit decode error:"+A)}},zt.prototype.bit1=function(){var A,t=Math.ceil(this.width/8),e=t%4;for(A=this.height-1;A>=0;A--){for(var r=this.bottom_up?A:this.height-1-A,n=0;n<t;n++)for(var i=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*n*4,s=0;s<8&&8*n+s<this.width;s++){var a=this.palette[i>>7-s&1];this.data[o+4*s]=a.blue,this.data[o+4*s+1]=a.green,this.data[o+4*s+2]=a.red,this.data[o+4*s+3]=255}0!==e&&(this.pos+=4-e)}},zt.prototype.bit4=function(){for(var A=Math.ceil(this.width/2),t=A%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<A;n++){var i=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*n*4,s=i>>4,a=15&i,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*n+1>=this.width)break;c=this.palette[a],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}0!==t&&(this.pos+=4-t)}},zt.prototype.bit8=function(){for(var A=this.width%4,t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=e*this.width*4+4*r;if(n<this.palette.length){var o=this.palette[n];this.data[i]=o.red,this.data[i+1]=o.green,this.data[i+2]=o.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}0!==A&&(this.pos+=4-A)}},zt.prototype.bit15=function(){for(var A=this.width%3,t=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(i&t)/t*255|0,s=(i>>5&t)/t*255|0,a=(i>>10&t)/t*255|0,c=i>>15?255:0,u=r*this.width*4+4*n;this.data[u]=a,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=c}this.pos+=A}},zt.prototype.bit16=function(){for(var A=this.width%3,t=parseInt("11111",2),e=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,a=(o>>5&e)/e*255|0,c=(o>>11)/t*255|0,u=n*this.width*4+4*i;this.data[u]=c,this.data[u+1]=a,this.data[u+2]=s,this.data[u+3]=255}this.pos+=A}},zt.prototype.bit24=function(){for(var A=this.height-1;A>=0;A--){for(var t=this.bottom_up?A:this.height-1-A,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*e;this.data[o]=i,this.data[o+1]=n,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},zt.prototype.bit32=function(){for(var A=this.height-1;A>=0;A--)for(var t=this.bottom_up?A:this.height-1-A,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*e;this.data[s]=i,this.data[s+1]=n,this.data[s+2]=r,this.data[s+3]=o}},zt.prototype.getData=function(){return this.data},
242
242
  /**
243
243
  * @license
244
244
  * Copyright (c) 2018 Aras Abbasi
@@ -284,7 +284,7 @@ function(A){var t=function(A){for(var t=A.length,e=new Uint8Array(t),r=0;r<t;r++
284
284
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
285
285
  * ====================================================================
286
286
  */
287
- function(){function A(){return(AA.canvg?Promise.resolve(AA.canvg):import("./index.es-D_fMtNlx.js")).catch((function(A){return Promise.reject(new Error("Could not load canvg: "+A))})).then((function(A){return A.default?A.default:A}))}SA.API.addSvgAsImage=function(t,e,r,n,i,o,s,a){if(isNaN(e)||isNaN(r))throw eA.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(i))throw eA.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=n,c.height=i;var u=c.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,c.width,c.height);var l={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return A().then((function(A){return A.fromString(u,t,l)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(A){return A.render(l)})).then((function(){h.addImage(c.toDataURL("image/jpeg",1),e,r,n,i,s,a)}))}}(),SA.API.putTotalPages=function(A){var t,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(A,"g"),e=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(A,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var n=0;n<this.internal.pages[r].length;n++)this.internal.pages[r][n]=this.internal.pages[r][n].replace(t,e);return this},SA.API.viewerPreferences=function(A,t){var e;A=A||{},t=t||!1;var r,n,i,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(o),c=[],u=0,l=0,h=0;function f(A,t){var e,r=!1;for(e=0;e<A.length;e+=1)A[e]===t&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,"reset"===A||!0===t){var B=a.length;for(h=0;h<B;h+=1)e[a[h]].value=e[a[h]].defaultValue,e[a[h]].explicitSet=!1}if("object"===s(A))for(n in A)if(i=A[n],f(a,n)&&void 0!==i){if("boolean"===e[n].type&&"boolean"==typeof i)e[n].value=i;else if("name"===e[n].type&&f(e[n].valueSet,i))e[n].value=i;else if("integer"===e[n].type&&Number.isInteger(i))e[n].value=i;else if("array"===e[n].type){for(u=0;u<i.length;u+=1)if(r=!0,1===i[u].length&&"number"==typeof i[u][0])c.push(String(i[u]-1));else if(i[u].length>1){for(l=0;l<i[u].length;l+=1)"number"!=typeof i[u][l]&&(r=!1);!0===r&&c.push([i[u][0]-1,i[u][1]-1].join(" "))}e[n].value="["+c.join(" ")+"]"}else e[n].value=e[n].defaultValue;e[n].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var A,t=[];for(A in e)!0===e[A].explicitSet&&("name"===e[A].type?t.push("/"+A+" /"+e[A].value):t.push("/"+A+" "+e[A].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this
287
+ function(){function A(){return(AA.canvg?Promise.resolve(AA.canvg):import("./index.es-BqQdvz5C.js")).catch((function(A){return Promise.reject(new Error("Could not load canvg: "+A))})).then((function(A){return A.default?A.default:A}))}SA.API.addSvgAsImage=function(t,e,r,n,i,o,s,a){if(isNaN(e)||isNaN(r))throw eA.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(i))throw eA.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=n,c.height=i;var u=c.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,c.width,c.height);var l={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return A().then((function(A){return A.fromString(u,t,l)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(A){return A.render(l)})).then((function(){h.addImage(c.toDataURL("image/jpeg",1),e,r,n,i,s,a)}))}}(),SA.API.putTotalPages=function(A){var t,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(A,"g"),e=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(A,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var n=0;n<this.internal.pages[r].length;n++)this.internal.pages[r][n]=this.internal.pages[r][n].replace(t,e);return this},SA.API.viewerPreferences=function(A,t){var e;A=A||{},t=t||!1;var r,n,i,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(o),c=[],u=0,l=0,h=0;function f(A,t){var e,r=!1;for(e=0;e<A.length;e+=1)A[e]===t&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,"reset"===A||!0===t){var B=a.length;for(h=0;h<B;h+=1)e[a[h]].value=e[a[h]].defaultValue,e[a[h]].explicitSet=!1}if("object"===s(A))for(n in A)if(i=A[n],f(a,n)&&void 0!==i){if("boolean"===e[n].type&&"boolean"==typeof i)e[n].value=i;else if("name"===e[n].type&&f(e[n].valueSet,i))e[n].value=i;else if("integer"===e[n].type&&Number.isInteger(i))e[n].value=i;else if("array"===e[n].type){for(u=0;u<i.length;u+=1)if(r=!0,1===i[u].length&&"number"==typeof i[u][0])c.push(String(i[u]-1));else if(i[u].length>1){for(l=0;l<i[u].length;l+=1)"number"!=typeof i[u][l]&&(r=!1);!0===r&&c.push([i[u][0]-1,i[u][1]-1].join(" "))}e[n].value="["+c.join(" ")+"]"}else e[n].value=e[n].defaultValue;e[n].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var A,t=[];for(A in e)!0===e[A].explicitSet&&("name"===e[A].type?t.push("/"+A+" /"+e[A].value):t.push("/"+A+" "+e[A].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this
288
288
  /** ====================================================================
289
289
  * @license
290
290
  * jsPDF XMP metadata plugin
@@ -323,7 +323,7 @@ function(A){var t=function(){return void 0===this.internal.vFS&&(this.internal.v
323
323
  * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
324
324
  * MIT License
325
325
  */
326
- function(A){A.__bidiEngine__=A.prototype.__bidiEngine__=function(A){var e,r,n,i,o,s,a,c=t,u=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],l=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],h={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},f={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},B=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],d=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),g=!1,p=0;this.__bidiEngine__={};var w=function(A){var t=A.charCodeAt(),e=t>>8,r=f[e];return void 0!==r?c[256*r+(255&t)]:252===e||253===e?"AL":d.test(e)?"L":8===e?"R":"N"},m=function(A){for(var t,e=0;e<A.length;e++){if("L"===(t=w(A.charAt(e))))return!1;if("R"===t)return!0}return!1},Q=function(A,t,o,s){var a,c,u,l,h=t[s];switch(h){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":g=!1;break;case"N":case"AN":break;case"EN":g&&(h="AN");break;case"AL":g=!0,h="R";break;case"WS":case"BN":h="N";break;case"CS":s<1||s+1>=t.length||"EN"!==(a=o[s-1])&&"AN"!==a||"EN"!==(c=t[s+1])&&"AN"!==c?h="N":g&&(c="AN"),h=c===a?c:"N";break;case"ES":h="EN"===(a=s>0?o[s-1]:"B")&&s+1<t.length&&"EN"===t[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===o[s-1]){h="EN";break}if(g){h="N";break}for(u=s+1,l=t.length;u<l&&"ET"===t[u];)u++;h=u<l&&"EN"===t[u]?"EN":"N";break;case"NSM":if(n&&!i){for(l=t.length,u=s+1;u<l&&"NSM"===t[u];)u++;if(u<l){var f=A[s],B=f>=1425&&f<=2303||64286===f;if(a=t[u],B&&("R"===a||"AL"===a)){h="R";break}}}h=s<1||"B"===(a=t[s-1])?"N":o[s-1];break;case"B":g=!1,e=!0,h=p;break;case"S":r=!0,h="N"}return h},C=function(A,t,e){var r=A.split("");return e&&v(r,e,{hiLevel:p}),r.reverse(),t&&t.reverse(),r.join("")},v=function(A,t,n){var i,o,s,a,c,f=-1,B=A.length,d=0,m=[],C=p?l:u,v=[];for(g=!1,e=!1,r=!1,o=0;o<B;o++)v[o]=w(A[o]);for(s=0;s<B;s++){if(c=d,m[s]=Q(A,v,m,s),i=240&(d=C[c][h[m[s]]]),d&=15,t[s]=a=C[d][5],i>0)if(16===i){for(o=f;o<s;o++)t[o]=1;f=-1}else f=-1;if(C[d][6])-1===f&&(f=s);else if(f>-1){for(o=f;o<s;o++)t[o]=a;f=-1}"B"===v[s]&&(t[s]=0),n.hiLevel|=a}r&&function(A,t,e){for(var r=0;r<e;r++)if("S"===A[r]){t[r]=p;for(var n=r-1;n>=0&&"WS"===A[n];n--)t[n]=p}}(v,t,B)},F=function(A,t,r,n,i){if(!(i.hiLevel<A)){if(1===A&&1===p&&!e)return t.reverse(),void(r&&r.reverse());for(var o,s,a,c,u=t.length,l=0;l<u;){if(n[l]>=A){for(a=l+1;a<u&&n[a]>=A;)a++;for(c=l,s=a-1;c<s;c++,s--)o=t[c],t[c]=t[s],t[s]=o,r&&(o=r[c],r[c]=r[s],r[s]=o);l=a}l++}}},y=function(A,t,e){var r=A.split(""),n={hiLevel:p};return e||(e=[]),v(r,e,n),function(A,t,e){if(0!==e.hiLevel&&a)for(var r,n=0;n<A.length;n++)1===t[n]&&(r=B.indexOf(A[n]))>=0&&(A[n]=B[r+1])}(r,e,n),F(2,r,t,e,n),F(1,r,t,e,n),r.join("")};return this.__bidiEngine__.doBidiReorder=function(A,t,e){if(function(A,t){if(t)for(var e=0;e<A.length;e++)t[e]=e;void 0===i&&(i=m(A)),void 0===s&&(s=m(A))}(A,t),n||!o||s)if(n&&o&&i^s)p=i?1:0,A=C(A,t,e);else if(!n&&o&&s)p=i?1:0,A=y(A,t,e),A=C(A,t);else if(!n||i||o||s){if(n&&!o&&i^s)A=C(A,t),i?(p=0,A=y(A,t,e)):(p=1,A=y(A,t,e),A=C(A,t));else if(n&&i&&!o&&s)p=1,A=y(A,t,e),A=C(A,t);else if(!n&&!o&&i^s){var r=a;i?(p=1,A=y(A,t,e),p=0,a=!1,A=y(A,t,e),a=r):(p=0,A=y(A,t,e),A=C(A,t),p=1,a=!1,A=y(A,t,e),a=r,A=C(A,t))}}else p=0,A=y(A,t,e);else p=i?1:0,A=y(A,t,e);return A},this.__bidiEngine__.setOptions=function(A){A&&(n=A.isInputVisual,o=A.isOutputVisual,i=A.isInputRtl,s=A.isOutputRtl,a=A.isSymmetricSwapping)},this.__bidiEngine__.setOptions(A),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],e=new A.__bidiEngine__({isInputVisual:!0});A.API.events.push(["postProcessText",function(A){var t=A.text,r=(A.x,A.y,A.options||{}),n=(A.mutex,r.lang,[]);if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,e.setOptions(r),"[object Array]"===Object.prototype.toString.call(t)){var i=0;for(n=[],i=0;i<t.length;i+=1)"[object Array]"===Object.prototype.toString.call(t[i])?n.push([e.doBidiReorder(t[i][0]),t[i][1],t[i][2]]):n.push([e.doBidiReorder(t[i])]);A.text=n}else A.text=e.doBidiReorder(t);e.setOptions({isInputVisual:!0})}])}(SA),SA.API.TTFFont=function(){function A(A){var t;if(this.rawData=A,t=this.contents=new $t(A),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new we(this),this.registerTTF()}return A.open=function(t){return new A(t)},A.prototype.parse=function(){return this.directory=new Ae(this.contents),this.head=new re(this),this.name=new ue(this),this.cmap=new ie(this),this.toUnicode={},this.hhea=new oe(this),this.maxp=new le(this),this.hmtx=new he(this),this.post=new ae(this),this.os2=new se(this),this.loca=new pe(this),this.glyf=new Be(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},A.prototype.registerTTF=function(){var A,t,e,r,n;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,e,r,n;for(n=[],t=0,e=(r=this.bbox).length;t<e;t++)A=r[t],n.push(Math.round(A*this.scaleFactor));return n}.call(this),this.stemV=0,this.post.exists?(e=255&(r=this.post.italic_angle),!!(32768&(t=r>>16))&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+e)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(n=this.familyClass)||2===n||3===n||4===n||5===n||7===n,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},A.prototype.characterToGlyph=function(A){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[A]:void 0)||0},A.prototype.widthOfGlyph=function(A){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(A).advance*t},A.prototype.widthOfString=function(A,t,e){var r,n,i,o;for(i=0,n=0,o=(A=""+A).length;0<=o?n<o:n>o;n=0<=o?++n:--n)r=A.charCodeAt(n),i+=this.widthOfGlyph(this.characterToGlyph(r))+e*(1e3/t)||0;return i*(t/1e3)},A.prototype.lineHeight=function(A,t){var e;return null==t&&(t=!1),e=t?this.lineGap:0,(this.ascender+e-this.decender)/1e3*A},A}();var Zt,$t=function(){function A(A){this.data=null!=A?A:[],this.pos=0,this.length=this.data.length}return A.prototype.readByte=function(){return this.data[this.pos++]},A.prototype.writeByte=function(A){return this.data[this.pos++]=A},A.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},A.prototype.writeUInt32=function(A){return this.writeByte(A>>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A)},A.prototype.readInt32=function(){var A;return(A=this.readUInt32())>=2147483648?A-4294967296:A},A.prototype.writeInt32=function(A){return A<0&&(A+=4294967296),this.writeUInt32(A)},A.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},A.prototype.writeUInt16=function(A){return this.writeByte(A>>8&255),this.writeByte(255&A)},A.prototype.readInt16=function(){var A;return(A=this.readUInt16())>=32768?A-65536:A},A.prototype.writeInt16=function(A){return A<0&&(A+=65536),this.writeUInt16(A)},A.prototype.readString=function(A){var t,e;for(e=[],t=0;0<=A?t<A:t>A;t=0<=A?++t:--t)e[t]=String.fromCharCode(this.readByte());return e.join("")},A.prototype.writeString=function(A){var t,e,r;for(r=[],t=0,e=A.length;0<=e?t<e:t>e;t=0<=e?++t:--t)r.push(this.writeByte(A.charCodeAt(t)));return r},A.prototype.readShort=function(){return this.readInt16()},A.prototype.writeShort=function(A){return this.writeInt16(A)},A.prototype.readLongLong=function(){var A,t,e,r,n,i,o,s;return A=this.readByte(),t=this.readByte(),e=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),o=this.readByte(),s=this.readByte(),128&A?-1*(72057594037927940*(255^A)+281474976710656*(255^t)+1099511627776*(255^e)+4294967296*(255^r)+16777216*(255^n)+65536*(255^i)+256*(255^o)+(255^s)+1):72057594037927940*A+281474976710656*t+1099511627776*e+4294967296*r+16777216*n+65536*i+256*o+s},A.prototype.writeLongLong=function(A){var t,e;return t=Math.floor(A/4294967296),e=4294967295&A,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},A.prototype.readInt=function(){return this.readInt32()},A.prototype.writeInt=function(A){return this.writeInt32(A)},A.prototype.read=function(A){var t,e;for(t=[],e=0;0<=A?e<A:e>A;e=0<=A?++e:--e)t.push(this.readByte());return t},A.prototype.write=function(A){var t,e,r,n;for(n=[],e=0,r=A.length;e<r;e++)t=A[e],n.push(this.writeByte(t));return n},A}(),Ae=function(){var A;function t(A){var t,e,r;for(this.scalarType=A.readInt(),this.tableCount=A.readShort(),this.searchRange=A.readShort(),this.entrySelector=A.readShort(),this.rangeShift=A.readShort(),this.tables={},e=0,r=this.tableCount;0<=r?e<r:e>r;e=0<=r?++e:--e)t={tag:A.readString(4),checksum:A.readInt(),offset:A.readInt(),length:A.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var e,r,n,i,o,s,a,c,u,l,h,f,B;for(B in h=Object.keys(t).length,s=Math.log(2),u=16*Math.floor(Math.log(h)/s),i=Math.floor(u/s),c=16*h-u,(r=new $t).writeInt(this.scalarType),r.writeShort(h),r.writeShort(u),r.writeShort(i),r.writeShort(c),n=16*h,a=r.pos+n,o=null,f=[],t)for(l=t[B],r.writeString(B),r.writeInt(A(l)),r.writeInt(a),r.writeInt(l.length),f=f.concat(l),"head"===B&&(o=a),a+=l.length;a%4;)f.push(0),a++;return r.write(f),e=2981146554-A(r.data),r.pos=o+8,r.writeUInt32(e),r.data},A=function(A){var t,e,r,n;for(A=fe.call(A);A.length%4;)A.push(0);for(r=new $t(A),e=0,t=0,n=A.length;t<n;t=t+=4)e+=r.readUInt32();return 4294967295&e},t}(),te={}.hasOwnProperty,ee=function(A,t){for(var e in t)te.call(t,e)&&(A[e]=t[e]);function r(){this.constructor=A}return r.prototype=t.prototype,A.prototype=new r,A.__super__=t.prototype,A};Zt=function(){function A(A){var t;this.file=A,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return A.prototype.parse=function(){},A.prototype.encode=function(){},A.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},A}();var re=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return ee(A,Zt),A.prototype.tag="head",A.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.revision=A.readInt(),this.checkSumAdjustment=A.readInt(),this.magicNumber=A.readInt(),this.flags=A.readShort(),this.unitsPerEm=A.readShort(),this.created=A.readLongLong(),this.modified=A.readLongLong(),this.xMin=A.readShort(),this.yMin=A.readShort(),this.xMax=A.readShort(),this.yMax=A.readShort(),this.macStyle=A.readShort(),this.lowestRecPPEM=A.readShort(),this.fontDirectionHint=A.readShort(),this.indexToLocFormat=A.readShort(),this.glyphDataFormat=A.readShort()},A.prototype.encode=function(A){var t;return(t=new $t).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(A),t.writeShort(this.glyphDataFormat),t.data},A}(),ne=function(){function A(A,t){var e,r,n,i,o,s,a,c,u,l,h,f,B,d,g,p,w;switch(this.platformID=A.readUInt16(),this.encodingID=A.readShort(),this.offset=t+A.readInt(),u=A.pos,A.pos=this.offset,this.format=A.readUInt16(),this.length=A.readUInt16(),this.language=A.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=A.readByte();break;case 4:for(h=A.readUInt16(),l=h/2,A.pos+=6,n=function(){var t,e;for(e=[],s=t=0;0<=l?t<l:t>l;s=0<=l?++t:--t)e.push(A.readUInt16());return e}(),A.pos+=2,B=function(){var t,e;for(e=[],s=t=0;0<=l?t<l:t>l;s=0<=l?++t:--t)e.push(A.readUInt16());return e}(),a=function(){var t,e;for(e=[],s=t=0;0<=l?t<l:t>l;s=0<=l?++t:--t)e.push(A.readUInt16());return e}(),c=function(){var t,e;for(e=[],s=t=0;0<=l?t<l:t>l;s=0<=l?++t:--t)e.push(A.readUInt16());return e}(),r=(this.length-A.pos+this.offset)/2,o=function(){var t,e;for(e=[],s=t=0;0<=r?t<r:t>r;s=0<=r?++t:--t)e.push(A.readUInt16());return e}(),s=g=0,w=n.length;g<w;s=++g)for(d=n[s],e=p=f=B[s];f<=d?p<=d:p>=d;e=f<=d?++p:--p)0===c[s]?i=e+a[s]:0!==(i=o[c[s]/2+(e-f)-(l-s)]||0)&&(i+=a[s]),this.codeMap[e]=65535&i}A.pos=u}return A.encode=function(A,t){var e,r,n,i,o,s,a,c,u,l,h,f,B,d,g,p,w,m,Q,C,v,F,y,b,U,L,I,E,x,H,N,S,P,D,k,_,M,O,K,T,R,j,G,V,q,X;switch(E=new $t,i=Object.keys(A).sort((function(A,t){return A-t})),t){case"macroman":for(B=0,d=function(){var A=[];for(f=0;f<256;++f)A.push(0);return A}(),p={0:0},n={},x=0,P=i.length;x<P;x++)null==p[G=A[r=i[x]]]&&(p[G]=++B),n[r]={old:A[r],new:p[A[r]]},d[r]=p[A[r]];return E.writeUInt16(1),E.writeUInt16(0),E.writeUInt32(12),E.writeUInt16(0),E.writeUInt16(262),E.writeUInt16(0),E.write(d),{charMap:n,subtable:E.data,maxGlyphID:B+1};case"unicode":for(L=[],u=[],w=0,p={},e={},g=a=null,H=0,D=i.length;H<D;H++)null==p[Q=A[r=i[H]]]&&(p[Q]=++w),e[r]={old:Q,new:p[Q]},o=p[Q]-r,null!=g&&o===a||(g&&u.push(g),L.push(r),a=o),g=r;for(g&&u.push(g),u.push(65535),L.push(65535),b=2*(y=L.length),F=2*Math.pow(Math.log(y)/Math.LN2,2),l=Math.log(F/2)/Math.LN2,v=2*y-F,s=[],C=[],h=[],f=N=0,k=L.length;N<k;f=++N){if(U=L[f],c=u[f],65535===U){s.push(0),C.push(0);break}if(U-(I=e[U].new)>=32768)for(s.push(0),C.push(2*(h.length+y-f)),r=S=U;U<=c?S<=c:S>=c;r=U<=c?++S:--S)h.push(e[r].new);else s.push(I-U),C.push(0)}for(E.writeUInt16(3),E.writeUInt16(1),E.writeUInt32(12),E.writeUInt16(4),E.writeUInt16(16+8*y+2*h.length),E.writeUInt16(0),E.writeUInt16(b),E.writeUInt16(F),E.writeUInt16(l),E.writeUInt16(v),R=0,_=u.length;R<_;R++)r=u[R],E.writeUInt16(r);for(E.writeUInt16(0),j=0,M=L.length;j<M;j++)r=L[j],E.writeUInt16(r);for(V=0,O=s.length;V<O;V++)o=s[V],E.writeUInt16(o);for(q=0,K=C.length;q<K;q++)m=C[q],E.writeUInt16(m);for(X=0,T=h.length;X<T;X++)B=h[X],E.writeUInt16(B);return{charMap:e,subtable:E.data,maxGlyphID:w+1}}},A}(),ie=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return ee(A,Zt),A.prototype.tag="cmap",A.prototype.parse=function(A){var t,e,r;for(A.pos=this.offset,this.version=A.readUInt16(),r=A.readUInt16(),this.tables=[],this.unicode=null,e=0;0<=r?e<r:e>r;e=0<=r?++e:--e)t=new ne(A,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},A.encode=function(A,t){var e,r;return null==t&&(t="macroman"),e=ne.encode(A,t),(r=new $t).writeUInt16(0),r.writeUInt16(1),e.table=r.data.concat(e.subtable),e},A}(),oe=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return ee(A,Zt),A.prototype.tag="hhea",A.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.ascender=A.readShort(),this.decender=A.readShort(),this.lineGap=A.readShort(),this.advanceWidthMax=A.readShort(),this.minLeftSideBearing=A.readShort(),this.minRightSideBearing=A.readShort(),this.xMaxExtent=A.readShort(),this.caretSlopeRise=A.readShort(),this.caretSlopeRun=A.readShort(),this.caretOffset=A.readShort(),A.pos+=8,this.metricDataFormat=A.readShort(),this.numberOfMetrics=A.readUInt16()},A}(),se=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return ee(A,Zt),A.prototype.tag="OS/2",A.prototype.parse=function(A){if(A.pos=this.offset,this.version=A.readUInt16(),this.averageCharWidth=A.readShort(),this.weightClass=A.readUInt16(),this.widthClass=A.readUInt16(),this.type=A.readShort(),this.ySubscriptXSize=A.readShort(),this.ySubscriptYSize=A.readShort(),this.ySubscriptXOffset=A.readShort(),this.ySubscriptYOffset=A.readShort(),this.ySuperscriptXSize=A.readShort(),this.ySuperscriptYSize=A.readShort(),this.ySuperscriptXOffset=A.readShort(),this.ySuperscriptYOffset=A.readShort(),this.yStrikeoutSize=A.readShort(),this.yStrikeoutPosition=A.readShort(),this.familyClass=A.readShort(),this.panose=function(){var t,e;for(e=[],t=0;t<10;++t)e.push(A.readByte());return e}(),this.charRange=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(A.readInt());return e}(),this.vendorID=A.readString(4),this.selection=A.readShort(),this.firstCharIndex=A.readShort(),this.lastCharIndex=A.readShort(),this.version>0&&(this.ascent=A.readShort(),this.descent=A.readShort(),this.lineGap=A.readShort(),this.winAscent=A.readShort(),this.winDescent=A.readShort(),this.codePageRange=function(){var t,e;for(e=[],t=0;t<2;t=++t)e.push(A.readInt());return e}(),this.version>1))return this.xHeight=A.readShort(),this.capHeight=A.readShort(),this.defaultChar=A.readShort(),this.breakChar=A.readShort(),this.maxContext=A.readShort()},A}(),ae=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return ee(A,Zt),A.prototype.tag="post",A.prototype.parse=function(A){var t,e,r;switch(A.pos=this.offset,this.format=A.readInt(),this.italicAngle=A.readInt(),this.underlinePosition=A.readShort(),this.underlineThickness=A.readShort(),this.isFixedPitch=A.readInt(),this.minMemType42=A.readInt(),this.maxMemType42=A.readInt(),this.minMemType1=A.readInt(),this.maxMemType1=A.readInt(),this.format){case 65536:case 196608:break;case 131072:var n;for(e=A.readUInt16(),this.glyphNameIndex=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)this.glyphNameIndex.push(A.readUInt16());for(this.names=[],r=[];A.pos<this.offset+this.length;)t=A.readByte(),r.push(this.names.push(A.readString(t)));return r;case 151552:return e=A.readUInt16(),this.offsets=A.read(e);case 262144:return this.map=function(){var t,e,r;for(r=[],n=t=0,e=this.file.maxp.numGlyphs;0<=e?t<e:t>e;n=0<=e?++t:--t)r.push(A.readUInt32());return r}.call(this)}},A}(),ce=function(A,t){this.raw=A,this.length=A.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},ue=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return ee(A,Zt),A.prototype.tag="name",A.prototype.parse=function(A){var t,e,r,n,i,o,s,a,c,u,l;for(A.pos=this.offset,A.readShort(),t=A.readShort(),o=A.readShort(),e=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)e.push({platformID:A.readShort(),encodingID:A.readShort(),languageID:A.readShort(),nameID:A.readShort(),length:A.readShort(),offset:this.offset+o+A.readShort()});for(s={},n=c=0,u=e.length;c<u;n=++c)r=e[n],A.pos=r.offset,a=A.readString(r.length),i=new ce(a,r),null==s[l=r.nameID]&&(s[l]=[]),s[r.nameID].push(i);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(A){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},A}(),le=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return ee(A,Zt),A.prototype.tag="maxp",A.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.numGlyphs=A.readUInt16(),this.maxPoints=A.readUInt16(),this.maxContours=A.readUInt16(),this.maxCompositePoints=A.readUInt16(),this.maxComponentContours=A.readUInt16(),this.maxZones=A.readUInt16(),this.maxTwilightPoints=A.readUInt16(),this.maxStorage=A.readUInt16(),this.maxFunctionDefs=A.readUInt16(),this.maxInstructionDefs=A.readUInt16(),this.maxStackElements=A.readUInt16(),this.maxSizeOfInstructions=A.readUInt16(),this.maxComponentElements=A.readUInt16(),this.maxComponentDepth=A.readUInt16()},A}(),he=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return ee(A,Zt),A.prototype.tag="hmtx",A.prototype.parse=function(A){var t,e,r,n,i,o,s;for(A.pos=this.offset,this.metrics=[],t=0,o=this.file.hhea.numberOfMetrics;0<=o?t<o:t>o;t=0<=o?++t:--t)this.metrics.push({advance:A.readUInt16(),lsb:A.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var e,n;for(n=[],t=e=0;0<=r?e<r:e>r;t=0<=r?++e:--e)n.push(A.readInt16());return n}(),this.widths=function(){var A,t,e,r;for(r=[],A=0,t=(e=this.metrics).length;A<t;A++)n=e[A],r.push(n.advance);return r}.call(this),e=this.widths[this.widths.length-1],s=[],t=i=0;0<=r?i<r:i>r;t=0<=r?++i:--i)s.push(this.widths.push(e));return s},A.prototype.forGlyph=function(A){return A in this.metrics?this.metrics[A]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[A-this.metrics.length]}},A}(),fe=[].slice,Be=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return ee(A,Zt),A.prototype.tag="glyf",A.prototype.parse=function(){return this.cache={}},A.prototype.glyphFor=function(A){var t,e,r,n,i,o,s,a,c,u;return A in this.cache?this.cache[A]:(n=this.file.loca,t=this.file.contents,e=n.indexOf(A),0===(r=n.lengthOf(A))?this.cache[A]=null:(t.pos=this.offset+e,i=(o=new $t(t.read(r))).readShort(),a=o.readShort(),u=o.readShort(),s=o.readShort(),c=o.readShort(),this.cache[A]=-1===i?new ge(o,a,u,s,c):new de(o,i,a,u,s,c),this.cache[A]))},A.prototype.encode=function(A,t,e){var r,n,i,o,s;for(i=[],n=[],o=0,s=t.length;o<s;o++)r=A[t[o]],n.push(i.length),r&&(i=i.concat(r.encode(e)));return n.push(i.length),{table:i,offsets:n}},A}(),de=function(){function A(A,t,e,r,n,i){this.raw=A,this.numberOfContours=t,this.xMin=e,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!1}return A.prototype.encode=function(){return this.raw.data},A}(),ge=function(){function A(A,t,e,r,n){var i,o;for(this.raw=A,this.xMin=t,this.yMin=e,this.xMax=r,this.yMax=n,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;o=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&o;)i.pos+=1&o?4:2,128&o?i.pos+=8:64&o?i.pos+=4:8&o&&(i.pos+=2)}return A.prototype.encode=function(){var A,t,e;for(t=new $t(fe.call(this.raw.data)),A=0,e=this.glyphIDs.length;A<e;++A)t.pos=this.glyphOffsets[A];return t.data},A}(),pe=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return ee(A,Zt),A.prototype.tag="loca",A.prototype.parse=function(A){var t,e;return A.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,r;for(r=[],e=0,t=this.length;e<t;e+=2)r.push(2*A.readUInt16());return r}.call(this):function(){var t,r;for(r=[],e=0,t=this.length;e<t;e+=4)r.push(A.readUInt32());return r}.call(this)},A.prototype.indexOf=function(A){return this.offsets[A]},A.prototype.lengthOf=function(A){return this.offsets[A+1]-this.offsets[A]},A.prototype.encode=function(A,t){for(var e=new Uint32Array(this.offsets.length),r=0,n=0,i=0;i<e.length;++i)if(e[i]=r,n<t.length&&t[n]==i){++n,e[i]=r;var o=this.offsets[i],s=this.offsets[i+1]-o;s>0&&(r+=s)}for(var a=new Array(4*e.length),c=0;c<e.length;++c)a[4*c+3]=255&e[c],a[4*c+2]=(65280&e[c])>>8,a[4*c+1]=(16711680&e[c])>>16,a[4*c]=(4278190080&e[c])>>24;return a},A}(),we=function(){function A(A){this.font=A,this.subset={},this.unicodes={},this.next=33}return A.prototype.generateCmap=function(){var A,t,e,r,n;for(t in r=this.font.cmap.tables[0].codeMap,A={},n=this.subset)e=n[t],A[t]=r[e];return A},A.prototype.glyphsFor=function(A){var t,e,r,n,i,o,s;for(r={},i=0,o=A.length;i<o;i++)r[n=A[i]]=this.font.glyf.glyphFor(n);for(n in t=[],r)(null!=(e=r[n])?e.compound:void 0)&&t.push.apply(t,e.glyphIDs);if(t.length>0)for(n in s=this.glyphsFor(t))e=s[n],r[n]=e;return r},A.prototype.encode=function(A,t){var e,r,n,i,o,s,a,c,u,l,h,f,B,d,g;for(r in e=ie.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(A),h={0:0},g=e.charMap)h[(s=g[r]).old]=s.new;for(f in l=e.maxGlyphID,i)f in h||(h[f]=l++);return c=function(A){var t,e;for(t in e={},A)e[A[t]]=t;return e}(h),u=Object.keys(c).sort((function(A,t){return A-t})),B=function(){var A,t,e;for(e=[],A=0,t=u.length;A<t;A++)o=u[A],e.push(c[o]);return e}(),n=this.font.glyf.encode(i,B,h),a=this.font.loca.encode(n.offsets,B),d={cmap:this.font.cmap.raw(),glyf:n.table,loca:a,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(d["OS/2"]=this.font.os2.raw()),this.font.directory.encode(d)},A}();SA.API.PDFObject=function(){var A;function t(){}return A=function(A,t){return(Array(t+1).join("0")+A).slice(-t)},t.convert=function(e){var r,n,i,o;if(Array.isArray(e))return"["+function(){var A,n,i;for(i=[],A=0,n=e.length;A<n;A++)r=e[A],i.push(t.convert(r));return i}().join(" ")+"]";if("string"==typeof e)return"/"+e;if(null!=e?e.isString:void 0)return"("+e+")";if(e instanceof Date)return"(D:"+A(e.getUTCFullYear(),4)+A(e.getUTCMonth(),2)+A(e.getUTCDate(),2)+A(e.getUTCHours(),2)+A(e.getUTCMinutes(),2)+A(e.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(e)){for(n in i=["<<"],e)o=e[n],i.push("/"+n+" "+t.convert(o));return i.push(">>"),i.join("\n")}return""+e},t}();var me="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Qe(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var Ce={exports:{}};
326
+ function(A){A.__bidiEngine__=A.prototype.__bidiEngine__=function(A){var e,r,n,i,o,s,a,c=t,u=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],l=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],h={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},f={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},B=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],d=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),g=!1,p=0;this.__bidiEngine__={};var w=function(A){var t=A.charCodeAt(),e=t>>8,r=f[e];return void 0!==r?c[256*r+(255&t)]:252===e||253===e?"AL":d.test(e)?"L":8===e?"R":"N"},m=function(A){for(var t,e=0;e<A.length;e++){if("L"===(t=w(A.charAt(e))))return!1;if("R"===t)return!0}return!1},Q=function(A,t,o,s){var a,c,u,l,h=t[s];switch(h){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":g=!1;break;case"N":case"AN":break;case"EN":g&&(h="AN");break;case"AL":g=!0,h="R";break;case"WS":case"BN":h="N";break;case"CS":s<1||s+1>=t.length||"EN"!==(a=o[s-1])&&"AN"!==a||"EN"!==(c=t[s+1])&&"AN"!==c?h="N":g&&(c="AN"),h=c===a?c:"N";break;case"ES":h="EN"===(a=s>0?o[s-1]:"B")&&s+1<t.length&&"EN"===t[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===o[s-1]){h="EN";break}if(g){h="N";break}for(u=s+1,l=t.length;u<l&&"ET"===t[u];)u++;h=u<l&&"EN"===t[u]?"EN":"N";break;case"NSM":if(n&&!i){for(l=t.length,u=s+1;u<l&&"NSM"===t[u];)u++;if(u<l){var f=A[s],B=f>=1425&&f<=2303||64286===f;if(a=t[u],B&&("R"===a||"AL"===a)){h="R";break}}}h=s<1||"B"===(a=t[s-1])?"N":o[s-1];break;case"B":g=!1,e=!0,h=p;break;case"S":r=!0,h="N"}return h},C=function(A,t,e){var r=A.split("");return e&&v(r,e,{hiLevel:p}),r.reverse(),t&&t.reverse(),r.join("")},v=function(A,t,n){var i,o,s,a,c,f=-1,B=A.length,d=0,m=[],C=p?l:u,v=[];for(g=!1,e=!1,r=!1,o=0;o<B;o++)v[o]=w(A[o]);for(s=0;s<B;s++){if(c=d,m[s]=Q(A,v,m,s),i=240&(d=C[c][h[m[s]]]),d&=15,t[s]=a=C[d][5],i>0)if(16===i){for(o=f;o<s;o++)t[o]=1;f=-1}else f=-1;if(C[d][6])-1===f&&(f=s);else if(f>-1){for(o=f;o<s;o++)t[o]=a;f=-1}"B"===v[s]&&(t[s]=0),n.hiLevel|=a}r&&function(A,t,e){for(var r=0;r<e;r++)if("S"===A[r]){t[r]=p;for(var n=r-1;n>=0&&"WS"===A[n];n--)t[n]=p}}(v,t,B)},F=function(A,t,r,n,i){if(!(i.hiLevel<A)){if(1===A&&1===p&&!e)return t.reverse(),void(r&&r.reverse());for(var o,s,a,c,u=t.length,l=0;l<u;){if(n[l]>=A){for(a=l+1;a<u&&n[a]>=A;)a++;for(c=l,s=a-1;c<s;c++,s--)o=t[c],t[c]=t[s],t[s]=o,r&&(o=r[c],r[c]=r[s],r[s]=o);l=a}l++}}},y=function(A,t,e){var r=A.split(""),n={hiLevel:p};return e||(e=[]),v(r,e,n),function(A,t,e){if(0!==e.hiLevel&&a)for(var r,n=0;n<A.length;n++)1===t[n]&&(r=B.indexOf(A[n]))>=0&&(A[n]=B[r+1])}(r,e,n),F(2,r,t,e,n),F(1,r,t,e,n),r.join("")};return this.__bidiEngine__.doBidiReorder=function(A,t,e){if(function(A,t){if(t)for(var e=0;e<A.length;e++)t[e]=e;void 0===i&&(i=m(A)),void 0===s&&(s=m(A))}(A,t),n||!o||s)if(n&&o&&i^s)p=i?1:0,A=C(A,t,e);else if(!n&&o&&s)p=i?1:0,A=y(A,t,e),A=C(A,t);else if(!n||i||o||s){if(n&&!o&&i^s)A=C(A,t),i?(p=0,A=y(A,t,e)):(p=1,A=y(A,t,e),A=C(A,t));else if(n&&i&&!o&&s)p=1,A=y(A,t,e),A=C(A,t);else if(!n&&!o&&i^s){var r=a;i?(p=1,A=y(A,t,e),p=0,a=!1,A=y(A,t,e),a=r):(p=0,A=y(A,t,e),A=C(A,t),p=1,a=!1,A=y(A,t,e),a=r,A=C(A,t))}}else p=0,A=y(A,t,e);else p=i?1:0,A=y(A,t,e);return A},this.__bidiEngine__.setOptions=function(A){A&&(n=A.isInputVisual,o=A.isOutputVisual,i=A.isInputRtl,s=A.isOutputRtl,a=A.isSymmetricSwapping)},this.__bidiEngine__.setOptions(A),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],e=new A.__bidiEngine__({isInputVisual:!0});A.API.events.push(["postProcessText",function(A){var t=A.text;A.x,A.y;var r=A.options||{};A.mutex,r.lang;var n=[];if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,e.setOptions(r),"[object Array]"===Object.prototype.toString.call(t)){var i=0;for(n=[],i=0;i<t.length;i+=1)"[object Array]"===Object.prototype.toString.call(t[i])?n.push([e.doBidiReorder(t[i][0]),t[i][1],t[i][2]]):n.push([e.doBidiReorder(t[i])]);A.text=n}else A.text=e.doBidiReorder(t);e.setOptions({isInputVisual:!0})}])}(SA),SA.API.TTFFont=function(){function A(A){var t;if(this.rawData=A,t=this.contents=new $t(A),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new we(this),this.registerTTF()}return A.open=function(t){return new A(t)},A.prototype.parse=function(){return this.directory=new Ae(this.contents),this.head=new re(this),this.name=new ue(this),this.cmap=new ie(this),this.toUnicode={},this.hhea=new oe(this),this.maxp=new le(this),this.hmtx=new he(this),this.post=new ae(this),this.os2=new se(this),this.loca=new pe(this),this.glyf=new Be(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},A.prototype.registerTTF=function(){var A,t,e,r,n;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,e,r,n;for(n=[],t=0,e=(r=this.bbox).length;t<e;t++)A=r[t],n.push(Math.round(A*this.scaleFactor));return n}.call(this),this.stemV=0,this.post.exists?(e=255&(r=this.post.italic_angle),!!(32768&(t=r>>16))&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+e)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(n=this.familyClass)||2===n||3===n||4===n||5===n||7===n,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},A.prototype.characterToGlyph=function(A){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[A]:void 0)||0},A.prototype.widthOfGlyph=function(A){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(A).advance*t},A.prototype.widthOfString=function(A,t,e){var r,n,i,o;for(i=0,n=0,o=(A=""+A).length;0<=o?n<o:n>o;n=0<=o?++n:--n)r=A.charCodeAt(n),i+=this.widthOfGlyph(this.characterToGlyph(r))+e*(1e3/t)||0;return i*(t/1e3)},A.prototype.lineHeight=function(A,t){var e;return null==t&&(t=!1),e=t?this.lineGap:0,(this.ascender+e-this.decender)/1e3*A},A}();var Zt,$t=function(){function A(A){this.data=null!=A?A:[],this.pos=0,this.length=this.data.length}return A.prototype.readByte=function(){return this.data[this.pos++]},A.prototype.writeByte=function(A){return this.data[this.pos++]=A},A.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},A.prototype.writeUInt32=function(A){return this.writeByte(A>>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A)},A.prototype.readInt32=function(){var A;return(A=this.readUInt32())>=2147483648?A-4294967296:A},A.prototype.writeInt32=function(A){return A<0&&(A+=4294967296),this.writeUInt32(A)},A.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},A.prototype.writeUInt16=function(A){return this.writeByte(A>>8&255),this.writeByte(255&A)},A.prototype.readInt16=function(){var A;return(A=this.readUInt16())>=32768?A-65536:A},A.prototype.writeInt16=function(A){return A<0&&(A+=65536),this.writeUInt16(A)},A.prototype.readString=function(A){var t,e;for(e=[],t=0;0<=A?t<A:t>A;t=0<=A?++t:--t)e[t]=String.fromCharCode(this.readByte());return e.join("")},A.prototype.writeString=function(A){var t,e,r;for(r=[],t=0,e=A.length;0<=e?t<e:t>e;t=0<=e?++t:--t)r.push(this.writeByte(A.charCodeAt(t)));return r},A.prototype.readShort=function(){return this.readInt16()},A.prototype.writeShort=function(A){return this.writeInt16(A)},A.prototype.readLongLong=function(){var A,t,e,r,n,i,o,s;return A=this.readByte(),t=this.readByte(),e=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),o=this.readByte(),s=this.readByte(),128&A?-1*(72057594037927940*(255^A)+281474976710656*(255^t)+1099511627776*(255^e)+4294967296*(255^r)+16777216*(255^n)+65536*(255^i)+256*(255^o)+(255^s)+1):72057594037927940*A+281474976710656*t+1099511627776*e+4294967296*r+16777216*n+65536*i+256*o+s},A.prototype.writeLongLong=function(A){var t,e;return t=Math.floor(A/4294967296),e=4294967295&A,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},A.prototype.readInt=function(){return this.readInt32()},A.prototype.writeInt=function(A){return this.writeInt32(A)},A.prototype.read=function(A){var t,e;for(t=[],e=0;0<=A?e<A:e>A;e=0<=A?++e:--e)t.push(this.readByte());return t},A.prototype.write=function(A){var t,e,r,n;for(n=[],e=0,r=A.length;e<r;e++)t=A[e],n.push(this.writeByte(t));return n},A}(),Ae=function(){var A;function t(A){var t,e,r;for(this.scalarType=A.readInt(),this.tableCount=A.readShort(),this.searchRange=A.readShort(),this.entrySelector=A.readShort(),this.rangeShift=A.readShort(),this.tables={},e=0,r=this.tableCount;0<=r?e<r:e>r;e=0<=r?++e:--e)t={tag:A.readString(4),checksum:A.readInt(),offset:A.readInt(),length:A.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var e,r,n,i,o,s,a,c,u,l,h,f,B;for(B in h=Object.keys(t).length,s=Math.log(2),u=16*Math.floor(Math.log(h)/s),i=Math.floor(u/s),c=16*h-u,(r=new $t).writeInt(this.scalarType),r.writeShort(h),r.writeShort(u),r.writeShort(i),r.writeShort(c),n=16*h,a=r.pos+n,o=null,f=[],t)for(l=t[B],r.writeString(B),r.writeInt(A(l)),r.writeInt(a),r.writeInt(l.length),f=f.concat(l),"head"===B&&(o=a),a+=l.length;a%4;)f.push(0),a++;return r.write(f),e=2981146554-A(r.data),r.pos=o+8,r.writeUInt32(e),r.data},A=function(A){var t,e,r,n;for(A=fe.call(A);A.length%4;)A.push(0);for(r=new $t(A),e=0,t=0,n=A.length;t<n;t=t+=4)e+=r.readUInt32();return 4294967295&e},t}(),te={}.hasOwnProperty,ee=function(A,t){for(var e in t)te.call(t,e)&&(A[e]=t[e]);function r(){this.constructor=A}return r.prototype=t.prototype,A.prototype=new r,A.__super__=t.prototype,A};Zt=function(){function A(A){var t;this.file=A,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return A.prototype.parse=function(){},A.prototype.encode=function(){},A.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},A}();var re=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return ee(A,Zt),A.prototype.tag="head",A.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.revision=A.readInt(),this.checkSumAdjustment=A.readInt(),this.magicNumber=A.readInt(),this.flags=A.readShort(),this.unitsPerEm=A.readShort(),this.created=A.readLongLong(),this.modified=A.readLongLong(),this.xMin=A.readShort(),this.yMin=A.readShort(),this.xMax=A.readShort(),this.yMax=A.readShort(),this.macStyle=A.readShort(),this.lowestRecPPEM=A.readShort(),this.fontDirectionHint=A.readShort(),this.indexToLocFormat=A.readShort(),this.glyphDataFormat=A.readShort()},A.prototype.encode=function(A){var t;return(t=new $t).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(A),t.writeShort(this.glyphDataFormat),t.data},A}(),ne=function(){function A(A,t){var e,r,n,i,o,s,a,c,u,l,h,f,B,d,g,p,w;switch(this.platformID=A.readUInt16(),this.encodingID=A.readShort(),this.offset=t+A.readInt(),u=A.pos,A.pos=this.offset,this.format=A.readUInt16(),this.length=A.readUInt16(),this.language=A.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=A.readByte();break;case 4:for(h=A.readUInt16(),l=h/2,A.pos+=6,n=function(){var t,e;for(e=[],s=t=0;0<=l?t<l:t>l;s=0<=l?++t:--t)e.push(A.readUInt16());return e}(),A.pos+=2,B=function(){var t,e;for(e=[],s=t=0;0<=l?t<l:t>l;s=0<=l?++t:--t)e.push(A.readUInt16());return e}(),a=function(){var t,e;for(e=[],s=t=0;0<=l?t<l:t>l;s=0<=l?++t:--t)e.push(A.readUInt16());return e}(),c=function(){var t,e;for(e=[],s=t=0;0<=l?t<l:t>l;s=0<=l?++t:--t)e.push(A.readUInt16());return e}(),r=(this.length-A.pos+this.offset)/2,o=function(){var t,e;for(e=[],s=t=0;0<=r?t<r:t>r;s=0<=r?++t:--t)e.push(A.readUInt16());return e}(),s=g=0,w=n.length;g<w;s=++g)for(d=n[s],e=p=f=B[s];f<=d?p<=d:p>=d;e=f<=d?++p:--p)0===c[s]?i=e+a[s]:0!==(i=o[c[s]/2+(e-f)-(l-s)]||0)&&(i+=a[s]),this.codeMap[e]=65535&i}A.pos=u}return A.encode=function(A,t){var e,r,n,i,o,s,a,c,u,l,h,f,B,d,g,p,w,m,Q,C,v,F,y,b,U,L,I,E,x,H,N,S,P,D,k,_,M,O,K,T,R,j,G,V,q,X;switch(E=new $t,i=Object.keys(A).sort((function(A,t){return A-t})),t){case"macroman":for(B=0,d=function(){var A=[];for(f=0;f<256;++f)A.push(0);return A}(),p={0:0},n={},x=0,P=i.length;x<P;x++)null==p[G=A[r=i[x]]]&&(p[G]=++B),n[r]={old:A[r],new:p[A[r]]},d[r]=p[A[r]];return E.writeUInt16(1),E.writeUInt16(0),E.writeUInt32(12),E.writeUInt16(0),E.writeUInt16(262),E.writeUInt16(0),E.write(d),{charMap:n,subtable:E.data,maxGlyphID:B+1};case"unicode":for(L=[],u=[],w=0,p={},e={},g=a=null,H=0,D=i.length;H<D;H++)null==p[Q=A[r=i[H]]]&&(p[Q]=++w),e[r]={old:Q,new:p[Q]},o=p[Q]-r,null!=g&&o===a||(g&&u.push(g),L.push(r),a=o),g=r;for(g&&u.push(g),u.push(65535),L.push(65535),b=2*(y=L.length),F=2*Math.pow(Math.log(y)/Math.LN2,2),l=Math.log(F/2)/Math.LN2,v=2*y-F,s=[],C=[],h=[],f=N=0,k=L.length;N<k;f=++N){if(U=L[f],c=u[f],65535===U){s.push(0),C.push(0);break}if(U-(I=e[U].new)>=32768)for(s.push(0),C.push(2*(h.length+y-f)),r=S=U;U<=c?S<=c:S>=c;r=U<=c?++S:--S)h.push(e[r].new);else s.push(I-U),C.push(0)}for(E.writeUInt16(3),E.writeUInt16(1),E.writeUInt32(12),E.writeUInt16(4),E.writeUInt16(16+8*y+2*h.length),E.writeUInt16(0),E.writeUInt16(b),E.writeUInt16(F),E.writeUInt16(l),E.writeUInt16(v),R=0,_=u.length;R<_;R++)r=u[R],E.writeUInt16(r);for(E.writeUInt16(0),j=0,M=L.length;j<M;j++)r=L[j],E.writeUInt16(r);for(V=0,O=s.length;V<O;V++)o=s[V],E.writeUInt16(o);for(q=0,K=C.length;q<K;q++)m=C[q],E.writeUInt16(m);for(X=0,T=h.length;X<T;X++)B=h[X],E.writeUInt16(B);return{charMap:e,subtable:E.data,maxGlyphID:w+1}}},A}(),ie=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return ee(A,Zt),A.prototype.tag="cmap",A.prototype.parse=function(A){var t,e,r;for(A.pos=this.offset,this.version=A.readUInt16(),r=A.readUInt16(),this.tables=[],this.unicode=null,e=0;0<=r?e<r:e>r;e=0<=r?++e:--e)t=new ne(A,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},A.encode=function(A,t){var e,r;return null==t&&(t="macroman"),e=ne.encode(A,t),(r=new $t).writeUInt16(0),r.writeUInt16(1),e.table=r.data.concat(e.subtable),e},A}(),oe=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return ee(A,Zt),A.prototype.tag="hhea",A.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.ascender=A.readShort(),this.decender=A.readShort(),this.lineGap=A.readShort(),this.advanceWidthMax=A.readShort(),this.minLeftSideBearing=A.readShort(),this.minRightSideBearing=A.readShort(),this.xMaxExtent=A.readShort(),this.caretSlopeRise=A.readShort(),this.caretSlopeRun=A.readShort(),this.caretOffset=A.readShort(),A.pos+=8,this.metricDataFormat=A.readShort(),this.numberOfMetrics=A.readUInt16()},A}(),se=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return ee(A,Zt),A.prototype.tag="OS/2",A.prototype.parse=function(A){if(A.pos=this.offset,this.version=A.readUInt16(),this.averageCharWidth=A.readShort(),this.weightClass=A.readUInt16(),this.widthClass=A.readUInt16(),this.type=A.readShort(),this.ySubscriptXSize=A.readShort(),this.ySubscriptYSize=A.readShort(),this.ySubscriptXOffset=A.readShort(),this.ySubscriptYOffset=A.readShort(),this.ySuperscriptXSize=A.readShort(),this.ySuperscriptYSize=A.readShort(),this.ySuperscriptXOffset=A.readShort(),this.ySuperscriptYOffset=A.readShort(),this.yStrikeoutSize=A.readShort(),this.yStrikeoutPosition=A.readShort(),this.familyClass=A.readShort(),this.panose=function(){var t,e;for(e=[],t=0;t<10;++t)e.push(A.readByte());return e}(),this.charRange=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(A.readInt());return e}(),this.vendorID=A.readString(4),this.selection=A.readShort(),this.firstCharIndex=A.readShort(),this.lastCharIndex=A.readShort(),this.version>0&&(this.ascent=A.readShort(),this.descent=A.readShort(),this.lineGap=A.readShort(),this.winAscent=A.readShort(),this.winDescent=A.readShort(),this.codePageRange=function(){var t,e;for(e=[],t=0;t<2;t=++t)e.push(A.readInt());return e}(),this.version>1))return this.xHeight=A.readShort(),this.capHeight=A.readShort(),this.defaultChar=A.readShort(),this.breakChar=A.readShort(),this.maxContext=A.readShort()},A}(),ae=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return ee(A,Zt),A.prototype.tag="post",A.prototype.parse=function(A){var t,e,r;switch(A.pos=this.offset,this.format=A.readInt(),this.italicAngle=A.readInt(),this.underlinePosition=A.readShort(),this.underlineThickness=A.readShort(),this.isFixedPitch=A.readInt(),this.minMemType42=A.readInt(),this.maxMemType42=A.readInt(),this.minMemType1=A.readInt(),this.maxMemType1=A.readInt(),this.format){case 65536:case 196608:break;case 131072:var n;for(e=A.readUInt16(),this.glyphNameIndex=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)this.glyphNameIndex.push(A.readUInt16());for(this.names=[],r=[];A.pos<this.offset+this.length;)t=A.readByte(),r.push(this.names.push(A.readString(t)));return r;case 151552:return e=A.readUInt16(),this.offsets=A.read(e);case 262144:return this.map=function(){var t,e,r;for(r=[],n=t=0,e=this.file.maxp.numGlyphs;0<=e?t<e:t>e;n=0<=e?++t:--t)r.push(A.readUInt32());return r}.call(this)}},A}(),ce=function(A,t){this.raw=A,this.length=A.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},ue=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return ee(A,Zt),A.prototype.tag="name",A.prototype.parse=function(A){var t,e,r,n,i,o,s,a,c,u,l;for(A.pos=this.offset,A.readShort(),t=A.readShort(),o=A.readShort(),e=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)e.push({platformID:A.readShort(),encodingID:A.readShort(),languageID:A.readShort(),nameID:A.readShort(),length:A.readShort(),offset:this.offset+o+A.readShort()});for(s={},n=c=0,u=e.length;c<u;n=++c)r=e[n],A.pos=r.offset,a=A.readString(r.length),i=new ce(a,r),null==s[l=r.nameID]&&(s[l]=[]),s[r.nameID].push(i);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(A){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},A}(),le=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return ee(A,Zt),A.prototype.tag="maxp",A.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.numGlyphs=A.readUInt16(),this.maxPoints=A.readUInt16(),this.maxContours=A.readUInt16(),this.maxCompositePoints=A.readUInt16(),this.maxComponentContours=A.readUInt16(),this.maxZones=A.readUInt16(),this.maxTwilightPoints=A.readUInt16(),this.maxStorage=A.readUInt16(),this.maxFunctionDefs=A.readUInt16(),this.maxInstructionDefs=A.readUInt16(),this.maxStackElements=A.readUInt16(),this.maxSizeOfInstructions=A.readUInt16(),this.maxComponentElements=A.readUInt16(),this.maxComponentDepth=A.readUInt16()},A}(),he=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return ee(A,Zt),A.prototype.tag="hmtx",A.prototype.parse=function(A){var t,e,r,n,i,o,s;for(A.pos=this.offset,this.metrics=[],t=0,o=this.file.hhea.numberOfMetrics;0<=o?t<o:t>o;t=0<=o?++t:--t)this.metrics.push({advance:A.readUInt16(),lsb:A.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var e,n;for(n=[],t=e=0;0<=r?e<r:e>r;t=0<=r?++e:--e)n.push(A.readInt16());return n}(),this.widths=function(){var A,t,e,r;for(r=[],A=0,t=(e=this.metrics).length;A<t;A++)n=e[A],r.push(n.advance);return r}.call(this),e=this.widths[this.widths.length-1],s=[],t=i=0;0<=r?i<r:i>r;t=0<=r?++i:--i)s.push(this.widths.push(e));return s},A.prototype.forGlyph=function(A){return A in this.metrics?this.metrics[A]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[A-this.metrics.length]}},A}(),fe=[].slice,Be=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return ee(A,Zt),A.prototype.tag="glyf",A.prototype.parse=function(){return this.cache={}},A.prototype.glyphFor=function(A){var t,e,r,n,i,o,s,a,c,u;return A in this.cache?this.cache[A]:(n=this.file.loca,t=this.file.contents,e=n.indexOf(A),0===(r=n.lengthOf(A))?this.cache[A]=null:(t.pos=this.offset+e,i=(o=new $t(t.read(r))).readShort(),a=o.readShort(),u=o.readShort(),s=o.readShort(),c=o.readShort(),this.cache[A]=-1===i?new ge(o,a,u,s,c):new de(o,i,a,u,s,c),this.cache[A]))},A.prototype.encode=function(A,t,e){var r,n,i,o,s;for(i=[],n=[],o=0,s=t.length;o<s;o++)r=A[t[o]],n.push(i.length),r&&(i=i.concat(r.encode(e)));return n.push(i.length),{table:i,offsets:n}},A}(),de=function(){function A(A,t,e,r,n,i){this.raw=A,this.numberOfContours=t,this.xMin=e,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!1}return A.prototype.encode=function(){return this.raw.data},A}(),ge=function(){function A(A,t,e,r,n){var i,o;for(this.raw=A,this.xMin=t,this.yMin=e,this.xMax=r,this.yMax=n,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;o=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&o;)i.pos+=1&o?4:2,128&o?i.pos+=8:64&o?i.pos+=4:8&o&&(i.pos+=2)}return A.prototype.encode=function(){var A,t,e;for(t=new $t(fe.call(this.raw.data)),A=0,e=this.glyphIDs.length;A<e;++A)t.pos=this.glyphOffsets[A];return t.data},A}(),pe=function(){function A(){return A.__super__.constructor.apply(this,arguments)}return ee(A,Zt),A.prototype.tag="loca",A.prototype.parse=function(A){var t,e;return A.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,r;for(r=[],e=0,t=this.length;e<t;e+=2)r.push(2*A.readUInt16());return r}.call(this):function(){var t,r;for(r=[],e=0,t=this.length;e<t;e+=4)r.push(A.readUInt32());return r}.call(this)},A.prototype.indexOf=function(A){return this.offsets[A]},A.prototype.lengthOf=function(A){return this.offsets[A+1]-this.offsets[A]},A.prototype.encode=function(A,t){for(var e=new Uint32Array(this.offsets.length),r=0,n=0,i=0;i<e.length;++i)if(e[i]=r,n<t.length&&t[n]==i){++n,e[i]=r;var o=this.offsets[i],s=this.offsets[i+1]-o;s>0&&(r+=s)}for(var a=new Array(4*e.length),c=0;c<e.length;++c)a[4*c+3]=255&e[c],a[4*c+2]=(65280&e[c])>>8,a[4*c+1]=(16711680&e[c])>>16,a[4*c]=(4278190080&e[c])>>24;return a},A}(),we=function(){function A(A){this.font=A,this.subset={},this.unicodes={},this.next=33}return A.prototype.generateCmap=function(){var A,t,e,r,n;for(t in r=this.font.cmap.tables[0].codeMap,A={},n=this.subset)e=n[t],A[t]=r[e];return A},A.prototype.glyphsFor=function(A){var t,e,r,n,i,o,s;for(r={},i=0,o=A.length;i<o;i++)r[n=A[i]]=this.font.glyf.glyphFor(n);for(n in t=[],r)(null!=(e=r[n])?e.compound:void 0)&&t.push.apply(t,e.glyphIDs);if(t.length>0)for(n in s=this.glyphsFor(t))e=s[n],r[n]=e;return r},A.prototype.encode=function(A,t){var e,r,n,i,o,s,a,c,u,l,h,f,B,d,g;for(r in e=ie.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(A),h={0:0},g=e.charMap)h[(s=g[r]).old]=s.new;for(f in l=e.maxGlyphID,i)f in h||(h[f]=l++);return c=function(A){var t,e;for(t in e={},A)e[A[t]]=t;return e}(h),u=Object.keys(c).sort((function(A,t){return A-t})),B=function(){var A,t,e;for(e=[],A=0,t=u.length;A<t;A++)o=u[A],e.push(c[o]);return e}(),n=this.font.glyf.encode(i,B,h),a=this.font.loca.encode(n.offsets,B),d={cmap:this.font.cmap.raw(),glyf:n.table,loca:a,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(d["OS/2"]=this.font.os2.raw()),this.font.directory.encode(d)},A}();SA.API.PDFObject=function(){var A;function t(){}return A=function(A,t){return(Array(t+1).join("0")+A).slice(-t)},t.convert=function(e){var r,n,i,o;if(Array.isArray(e))return"["+function(){var A,n,i;for(i=[],A=0,n=e.length;A<n;A++)r=e[A],i.push(t.convert(r));return i}().join(" ")+"]";if("string"==typeof e)return"/"+e;if(null!=e?e.isString:void 0)return"("+e+")";if(e instanceof Date)return"(D:"+A(e.getUTCFullYear(),4)+A(e.getUTCMonth(),2)+A(e.getUTCDate(),2)+A(e.getUTCHours(),2)+A(e.getUTCMinutes(),2)+A(e.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(e)){for(n in i=["<<"],e)o=e[n],i.push("/"+n+" "+t.convert(o));return i.push(">>"),i.join("\n")}return""+e},t}();var me="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Qe(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var Ce={exports:{}};
327
327
  /*!
328
328
  * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
329
329
  * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>