UNPKG

slog-cdn

Version:
2 lines 342 kB
/* https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js */ var jsPdf=function(){"use strict";let f={};function mn(t){return(mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var bn=function(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this}();function x(){bn.console&&"function"==typeof bn.console.log&&bn.console.log.apply(bn.console,arguments)}var vn={log:x,warn:function(t){bn.console&&("function"==typeof bn.console.warn?bn.console.warn.apply(bn.console,arguments):x.call(null,arguments))},error:function(t){bn.console&&("function"==typeof bn.console.error?bn.console.error.apply(bn.console,arguments):x(t))}};function S(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){wn(r.response,e,n)},r.onerror=function(){vn.error("could not download file")},r.send()}function I(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&e.status<=299}function C(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}var wn=bn.saveAs||("object"!==("undefined"==typeof window?"undefined":mn(window))||window!==bn?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var r=bn.URL||bn.webkitURL,i=document.createElement("a");e=e||t.name||"download",i.download=e,i.rel="noopener","string"==typeof t?(i.href=t,i.origin!==location.origin?I(i.href)?S(t,e,n):C(i,i.target="_blank"):C(i)):(i.href=r.createObjectURL(t),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){C(i)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){var r;e=e||t.name||"download","string"==typeof t?I(t)?S(t,e,n):((r=document.createElement("a")).href=t,r.target="_blank",setTimeout(function(){C(r)})):navigator.msSaveOrOpenBlob((t=t,void 0===(n=n)?n={autoBom:!1}:"object"!==mn(n)&&(vn.warn("Deprecated: Expected third argument to be a object"),n={autoBom:!n}),n.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t),e)}:function(t,e,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return S(t,e,n);var i,o,a,e="application/octet-stream"===t.type,n=/constructor/i.test(bn.HTMLElement)||bn.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);(s||e&&n)&&"object"===("undefined"==typeof FileReader?"undefined":mn(FileReader))?((i=new FileReader).onloadend=function(){var t=i.result,t=s?t:t.replace(/^data:[^;]*;/,"data:attachment/file;");r?r.location.href=t:location=t,r=null},i.readAsDataURL(t)):(o=bn.URL||bn.webkitURL,a=o.createObjectURL(t),r?r.location=a:location.href=a,r=null,setTimeout(function(){o.revokeObjectURL(a)},4e4))});function Nn(t){t=t||"",this.ok=!1;t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=(t="#"==t.charAt(0)?t.substr(1,6):t).replace(/ /g,"")).toLowerCase()]||t;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],n=0;n<e.length;n++){var r=e[n].re,i=e[n].process,r=r.exec(t);r&&(i=i(r),this.r=i[0],this.g=i[1],this.b=i[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:255<this.r?255:this.r,this.g=this.g<0||isNaN(this.g)?0:255<this.g?255:this.g,this.b=this.b<0||isNaN(this.b)?0:255<this.b?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return"#"+(t=1==t.length?"0"+t:t)+(e=1==e.length?"0"+e:e)+(n=1==n.length?"0"+n:n)}}function j(t,e){var n=a(t[0],o=t[1],i=t[2],r=t[3],e[0],7,-680876936),r=a(r,n,o,i,e[1],12,-389564586),i=a(i,r,n,o,e[2],17,606105819),o=a(o,i,r,n,e[3],22,-1044525330);n=a(n,o,i,r,e[4],7,-176418897),r=a(r,n,o,i,e[5],12,1200080426),i=a(i,r,n,o,e[6],17,-1473231341),o=a(o,i,r,n,e[7],22,-45705983),n=a(n,o,i,r,e[8],7,1770035416),r=a(r,n,o,i,e[9],12,-1958414417),i=a(i,r,n,o,e[10],17,-42063),o=a(o,i,r,n,e[11],22,-1990404162),n=a(n,o,i,r,e[12],7,1804603682),r=a(r,n,o,i,e[13],12,-40341101),i=a(i,r,n,o,e[14],17,-1502002290),n=s(n,o=a(o,i,r,n,e[15],22,1236535329),i,r,e[1],5,-165796510),r=s(r,n,o,i,e[6],9,-1069501632),i=s(i,r,n,o,e[11],14,643717713),o=s(o,i,r,n,e[0],20,-373897302),n=s(n,o,i,r,e[5],5,-701558691),r=s(r,n,o,i,e[10],9,38016083),i=s(i,r,n,o,e[15],14,-660478335),o=s(o,i,r,n,e[4],20,-405537848),n=s(n,o,i,r,e[9],5,568446438),r=s(r,n,o,i,e[14],9,-1019803690),i=s(i,r,n,o,e[3],14,-187363961),o=s(o,i,r,n,e[8],20,1163531501),n=s(n,o,i,r,e[13],5,-1444681467),r=s(r,n,o,i,e[2],9,-51403784),i=s(i,r,n,o,e[7],14,1735328473),n=c(n,o=s(o,i,r,n,e[12],20,-1926607734),i,r,e[5],4,-378558),r=c(r,n,o,i,e[8],11,-2022574463),i=c(i,r,n,o,e[11],16,1839030562),o=c(o,i,r,n,e[14],23,-35309556),n=c(n,o,i,r,e[1],4,-1530992060),r=c(r,n,o,i,e[4],11,1272893353),i=c(i,r,n,o,e[7],16,-155497632),o=c(o,i,r,n,e[10],23,-1094730640),n=c(n,o,i,r,e[13],4,681279174),r=c(r,n,o,i,e[0],11,-358537222),i=c(i,r,n,o,e[3],16,-722521979),o=c(o,i,r,n,e[6],23,76029189),n=c(n,o,i,r,e[9],4,-640364487),r=c(r,n,o,i,e[12],11,-421815835),i=c(i,r,n,o,e[15],16,530742520),n=u(n,o=c(o,i,r,n,e[2],23,-995338651),i,r,e[0],6,-198630844),r=u(r,n,o,i,e[7],10,1126891415),i=u(i,r,n,o,e[14],15,-1416354905),o=u(o,i,r,n,e[5],21,-57434055),n=u(n,o,i,r,e[12],6,1700485571),r=u(r,n,o,i,e[3],10,-1894986606),i=u(i,r,n,o,e[10],15,-1051523),o=u(o,i,r,n,e[1],21,-2054922799),n=u(n,o,i,r,e[8],6,1873313359),r=u(r,n,o,i,e[15],10,-30611744),i=u(i,r,n,o,e[6],15,-1560198380),o=u(o,i,r,n,e[13],21,1309151649),n=u(n,o,i,r,e[4],6,-145523070),r=u(r,n,o,i,e[11],10,-1120210379),i=u(i,r,n,o,e[2],15,718787259),o=u(o,i,r,n,e[9],21,-343485551),t[0]=H(n,t[0]),t[1]=H(o,t[1]),t[2]=H(i,t[2]),t[3]=H(r,t[3])}function O(t,e,n,r,i,o){return e=H(H(e,t),H(r,o)),H(e<<i|e>>>32-i,n)}function a(t,e,n,r,i,o,a){return O(e&n|~e&r,t,e,i,o,a)}function s(t,e,n,r,i,o,a){return O(e&r|n&~r,t,e,i,o,a)}function c(t,e,n,r,i,o,a){return O(e^n^r,t,e,i,o,a)}function u(t,e,n,r,i,o,a){return O(n^(e|~r),t,e,i,o,a)}function B(t){for(var e=t.length,n=[1732584193,-271733879,-1732584194,271733878],r=64;r<=t.length;r+=64)j(n,function(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}(t.substring(r-64,r)));t=t.substring(r-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(r=0;r<t.length;r++)i[r>>2]|=t.charCodeAt(r)<<(r%4<<3);if(i[r>>2]|=128<<(r%4<<3),55<r)for(j(n,i),r=0;r<16;r++)i[r]=0;return i[14]=8*e,j(n,i),n}var M=bn.atob.bind(bn),Ln=bn.btoa.bind(bn),E="0123456789abcdef".split("");function q(t){for(var e=0;e<t.length;e++)t[e]=function(t){for(var e="",n=0;n<4;n++)e+=E[t>>8*n+4&15]+E[t>>8*n&15];return e}(t[e]);return t.join("")}function T(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function U(t){return B(t).map(T).join("")}var z="5d41402abc4b2a76b9719d911017c592"!=q(B("hello"));function H(t,e){var n;return z?(t>>16)+(e>>16)+((n=(65535&t)+(65535&e))>>16)<<16|65535&n:t+e&4294967295}function W(t,e){var n;if(void 0!==t){n=1+(256/(t=t).length>>0);for(var r=new Array(n+1).join(t),i=[],o=0;o<256;o++)i[o]=o;for(var a=0,o=0;o<256;o++){var s=i[o],a=(a+s+r.charCodeAt(o))%256;i[o]=i[a],i[a]=s}n=i}else i=n;for(var c=e.length,u=0,h=0,l="",o=0;o<c;o++)s=i[u=(u+1)%256],i[u]=i[h=(h+s)%256],i[h]=s,r=i[(i[u]+i[h])%256],l+=String.fromCharCode(e.charCodeAt(o)^r);return l}var V={print:4,modify:8,copy:16,"annot-forms":32};function An(t,e,n,r){this.v=1,this.r=2;var i=192,t=(t.forEach(function(t){if(void 0!==V.perm)throw new Error("Invalid permission: "+t);i+=V[t]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz",(e+this.padding).substr(0,32)),e=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(t,e),this.P=-(1+(255^i)),this.encryptionKey=U(t+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=W(this.encryptionKey,this.padding)}function xn(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,r=0;r<n;r++){var i=t.charCodeAt(r);e+=i<33||35===i||37===i||40===i||41===i||47===i||60===i||62===i||91===i||93===i||123===i||125===i||126<i?"#"+("0"+i.toString(16)).slice(-2):t[r]}return e}function Sn(o){if("object"!==mn(o))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var a={};this.subscribe=function(t,e,n){if(n=n||!1,"string"!=typeof t||"function"!=typeof e||"boolean"!=typeof n)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");a.hasOwnProperty(t)||(a[t]={});var r=Math.random().toString(35);return a[t][r]=[e,!!n],r},this.unsubscribe=function(t){for(var e in a)if(a[e][t])return delete a[e][t],0===Object.keys(a[e]).length&&delete a[e],!0;return!1},this.publish=function(t){if(a.hasOwnProperty(t)){var e,n=Array.prototype.slice.call(arguments,1),r=[];for(e in a[t]){var i=a[t][e];try{i[0].apply(o,n)}catch(t){bn.console&&vn.error("jsPDF PubSub Error",t.message,t)}i[1]&&r.push(e)}r.length&&r.forEach(this.unsubscribe)}},this.getTopics=function(){return a}}function _n(t){if(!(this instanceof _n))return new _n(t);var e,n="opacity,stroke-opacity".split(",");for(e in t)t.hasOwnProperty(e)&&0<=n.indexOf(e)&&(this[e]=t[e]);this.id="",this.objectNumber=-1}function J(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function Pn(t,e,n,r,i){if(!(this instanceof Pn))return new Pn(t,e,n,r,i);this.type="axial"===t?2:3,this.coords=e,this.colors=n,J.call(this,r,i)}function kn(t,e,n,r,i){if(!(this instanceof kn))return new kn(t,e,n,r,i);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,J.call(this,r,i)}function yn(t){var _,i="string"==typeof arguments[0]?arguments[0]:"p",e=arguments[1],o=arguments[2],P=arguments[3],k=[],F=1,I=16,C="S",p=null,j=("object"===mn(t=t||{})&&(i=t.orientation,e=t.unit||e,o=t.format||o,P=t.compress||t.compressPdf||P,null!==(p=t.encryption||null)&&(p.userPassword=p.userPassword||"",p.ownerPassword=p.ownerPassword||"",p.userPermissions=p.userPermissions||[]),F="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(_=t.precision),void 0!==t.floatPrecision&&(I=t.floatPrecision),C=t.defaultPathOperation||"S"),k=t.filters||(!0===P?["FlateEncode"]:k),e=e||"mm",i=(""+(i||"P")).toLowerCase(),t.putOnlyUsedFonts||!1),nt={},a={internal:{},__private__:{}},O=(a.__private__.PubSub=Sn,"1.3"),P=a.__private__.getPdfVersion=function(){return O},B=(a.__private__.setPdfVersion=function(t){O=t},{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]}),M=(a.__private__.getPageFormats=function(){return B},a.__private__.getPageFormat=function(t){return B[t]}),o=o||"a4",G={COMPAT:"compat",ADVANCED:"advanced"},Y=G.COMPAT;function E(){this.saveGraphicsState(),Z(new et(c,0,0,-c,0,pn()*c).toString()+" cm"),this.setFontSize(this.getFontSize()/c),C="n",Y=G.ADVANCED}function q(){this.restoreGraphicsState(),C="S",Y=G.COMPAT}function rt(t){if(Y!==G.ADVANCED)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")}function D(t){return K((t=t,Y===G.COMPAT?pn()-t:Y===G.ADVANCED?t:void 0))}function R(t){St||(_t=t)}function T(t){Vt(t.resourcesOid,!0),Z("<<"),Z("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),se(),ce(),ue(t.objectOid),he(),ae(),Z(">>"),Z("endobj")}function U(){var t,e,n,r=[];for(t in Q)Q.hasOwnProperty(t)&&(!1===j||!0===j&&nt.hasOwnProperty(t))&&ee(Q[t]);for(e in v)v.hasOwnProperty(e)&&oe(v[e]);for(n in N)N.hasOwnProperty(n)&&ne(N[n]);var i,o=r;for(i in b)b.hasOwnProperty(i)&&(b[i]instanceof Pn?re(b[i]):b[i]instanceof kn&&ie(b[i],o));tt.publish("putResources"),r.forEach(T),T({resourcesOid:Jt,objectOid:Number.MAX_SAFE_INTEGER}),tt.publish("postPutResources")}function z(t){m[t.fontName]=m[t.fontName]||{},m[t.fontName][t.fontStyle]=t.id}function H(t,e,n,r,i){return t={id:"F"+(Object.keys(Q).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:n,encoding:r,isStandardFont:i||!1,metadata:{}},tt.publish("addFont",{font:t,instance:this}),Q[t.id]=t,z(t),t.id}function W(t,e){var n,r;switch(i=e||i,"string"==typeof t&&(e=M(t.toLowerCase()),Array.isArray(e)&&(n=e[0],r=e[1])),Array.isArray(t)&&(n=t[0]*c,r=t[1]*c),isNaN(n)&&(n=o[0],r=o[1]),(14400<n||14400<r)&&(vn.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),n=Math.min(14400,n),r=Math.min(14400,r)),o=[n,r],i.substr(0,1)){case"l":n<r&&(o=[r,n]);break;case"p":r<n&&(o=[r,n])}fe(o),ze(Te),Z(Xe),0!==tn&&Z(tn+" J"),0!==en&&Z(en+" j"),tt.publish("addPage",{pageNumber:y})}function V(t,e,n){var r,i=void 0;return n=n||{},t=void 0!==t?t:Q[J].fontName,e=void 0!==e?e:Q[J].fontStyle,r=t.toLowerCase(),void 0!==m[r]&&void 0!==m[r][e]?i=m[r][e]:void 0!==m[t]&&void 0!==m[t][e]?i=m[t][e]:!1===n.disableWarning&&vn.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=m.times[e])&&(i=m.times.normal),i}function it(t){return!0===Array.isArray(Rt)&&-1<Rt.indexOf(t)}var ot,s,n,at,st,J,c,ct,ut,ht,lt,ft=a.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return t=e?400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold":t},dt=(a.advancedAPI=function(t){var e=Y===G.COMPAT;return e&&E.call(this),"function"==typeof t&&(t(this),e&&q.call(this)),this},a.compatAPI=function(t){var e=Y===G.ADVANCED;return e&&q.call(this),"function"==typeof t&&(t(this),e&&E.call(this)),this},a.isAdvancedAPI=function(){return Y===G.ADVANCED},a.roundToPrecision=a.__private__.roundToPrecision=function(t,e){e=_||e;if(isNaN(t)||isNaN(e))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(e).replace(/0+$/,"")}),X=a.hpf=a.__private__.hpf="number"==typeof I?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return dt(t,I)}:"smart"===I?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return dt(t,-1<t&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return dt(t,16)},u=a.f2=a.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return dt(t,2)},h=a.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return dt(t,3)},K=a.scale=a.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return Y===G.COMPAT?t*c:Y===G.ADVANCED?t:void 0},r=(a.__private__.setPrecision=a.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(_=parseInt(t,10))},"00000000000000000000000000000000"),pt=a.__private__.getFileId=function(){return r},gt=a.__private__.setFileId=function(t){return r=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():r.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==p&&(x=new An(p.userPermissions,p.userPassword,p.ownerPassword,r)),r},mt=(a.setFileId=function(t){return gt(t),this},a.getFileId=function(){return pt()},a.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",r=Math.floor(Math.abs(e/60)),e=Math.abs(e%60),n=[n,l(r),"'",l(e),"'"].join("");return["D:",t.getFullYear(),l(t.getMonth()+1),l(t.getDate()),l(t.getHours()),l(t.getMinutes()),l(t.getSeconds()),n].join("")}),bt=a.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),o=parseInt(t.substr(12,2),10),t=parseInt(t.substr(14,2),10);return new Date(e,n,r,i,o,t,0)},vt=a.__private__.setCreationDate=function(t){var e;if((t=void 0===t?new Date:t)instanceof Date)e=mt(t);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(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return ot=e},yt=a.__private__.getCreationDate=function(t){var e=ot;return e="jsDate"===t?bt(ot):e},l=(a.setCreationDate=function(t){return vt(t),this},a.getCreationDate=function(t){return yt(t)},a.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)}),wt=a.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},f=0,Nt=[],Lt=[],At=0,xt=[],d=[],St=!1,_t=Lt,Z=(a.__private__.setCustomOutputDestination=function(t){St=!0,_t=t},a.__private__.resetCustomOutputDestination=function(){St=!1,_t=Lt},a.__private__.out=function(t){return t=t.toString(),At+=t.length+1,_t.push(t),_t}),Pt=a.__private__.write=function(t){return Z(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},kt=a.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},Ft=[["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]],$=(a.__private__.getStandardFonts=function(){return Ft},t.fontSize||16),It=(a.__private__.setFontSize=a.setFontSize=function(t){return $=Y===G.ADVANCED?t/c:t,this},a.__private__.getFontSize=a.getFontSize=function(){return Y===G.COMPAT?$:$*c}),Ct=t.R2L||!1,jt=(a.__private__.setR2L=a.setR2L=function(t){return Ct=t,this},a.__private__.getR2L=a.getR2L=function(){return Ct},a.__private__.setZoomMode=function(t){var e=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))n=t;else if(isNaN(t)){if(-1===e.indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');n=t}else n=parseInt(t,10)}),Ot=(a.__private__.getZoomMode=function(){return n},a.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');at=t}),Bt=(a.__private__.getPageMode=function(){return at},a.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');st=t}),g=(a.__private__.getLayoutMode=function(){return st},a.__private__.setDisplayMode=a.setDisplayMode=function(t,e,n){return jt(t),Bt(e),Ot(n),this},{title:"",subject:"",author:"",keywords:"",creator:""}),Q=(a.__private__.getDocumentProperty=function(t){if(-1===Object.keys(g).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return g[t]},a.__private__.getDocumentProperties=function(){return g},a.__private__.setDocumentProperties=a.setProperties=a.setDocumentProperties=function(t){for(var e in g)g.hasOwnProperty(e)&&t[e]&&(g[e]=t[e]);return this},a.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(g).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return g[t]=e},{}),m={},Mt=[],b={},Et={},v={},qt={},Dt=null,y=0,w=[],tt=new Sn(a),Rt=t.hotfixes||[],N={},Tt={},Ut=[],et=function t(e,n,r,i,o,a){if(!(this instanceof t))return new t(e,n,r,i,o,a);isNaN(e)&&(e=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(o)&&(o=0),isNaN(a)&&(a=0),this._matrix=[e,n,r,i,o,a]},zt=(Object.defineProperty(et.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(et.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(et.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(et.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(et.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(et.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(et.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(et.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(et.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(et.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(et.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(et.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(et.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(et.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(et.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(et.prototype,"isIdentity",{get:function(){return 1===this.sx&&(0===this.shy&&(0===this.shx&&(1===this.sy&&(0===this.tx&&0===this.ty))))}}),et.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(X).join(t)},et.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,r=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,o=t.tx*this.sx+t.ty*this.shx+this.tx,t=t.tx*this.shy+t.ty*this.sy+this.ty;return new et(e,n,r,i,o,t)},et.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,a=Math.sqrt(t*t+e*e),s=(t/=a)*n+(e/=a)*r,c=(n-=t*s,r-=e*s,Math.sqrt(n*n+r*r));return s/=c,t*(r/=c)<e*(n/=c)&&(t=-t,e=-e,s=-s,a=-a),{scale:new et(a,0,0,c,0,0),translate:new et(1,0,0,1,i,o),rotate:new et(t,e,-e,t,0,0),skew:new et(1,0,s,1,0,0)}},et.prototype.toString=function(t){return this.join(" ")},et.prototype.inversed=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,a=1/(t*r-e*n),r=r*a,e=-e*a,n=-n*a,t=t*a;return new et(r,e,n,t,-r*i-n*o,-e*i-t*o)},et.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,t=t.x*this.shy+t.y*this.sy+this.ty;return new rn(e,t)},et.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),t=this.applyToPoint(new rn(t.x+t.w,t.y+t.h));return new on(e.x,e.y,t.x-e.x,t.y-e.y)},et.prototype.clone=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty;return new et(t,e,n,r,i,o)},a.Matrix=et,a.matrixMult=function(t,e){return e.multiply(t)}),Ht=new et(1,0,0,1,0,0),Wt=(a.unitMatrix=a.identityMatrix=Ht,function(t,e){var n;Et[t]||(n=(e instanceof Pn?"Sh":"P")+(Object.keys(b).length+1).toString(10),e.id=n,Et[t]=n,b[n]=e,tt.publish("addPattern",e))}),L=(a.ShadingPattern=Pn,a.TilingPattern=kn,a.addShadingPattern=function(t,e){return rt("addShadingPattern()"),Wt(t,e),this},a.beginTilingPattern=function(t){rt("beginTilingPattern()"),an(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},a.endTilingPattern=function(t,e){rt("endTilingPattern()"),e.stream=d[s].join("\n"),Wt(t,e),tt.publish("endTilingPattern",e),Ut.pop().restore()},a.__private__.newObject=function(){var t=A();return Vt(t,!0),t}),A=a.__private__.newObjectDeferred=function(){return Nt[++f]=function(){return At},f},Vt=function(t,e){return e="boolean"==typeof e&&e,Nt[t]=At,e&&Z(t+" 0 obj"),t},Gt=a.__private__.newAdditionalObject=function(){var t={objId:A(),content:""};return xt.push(t),t},Yt=A(),Jt=A(),Xt=a.__private__.decodeColorString=function(t){for(var e=t.split(" "),n=(2!==e.length||"g"!==e[1]&&"G"!==e[1]?5!==e.length||"k"!==e[4]&&"K"!==e[4]||(e=[(1-e[0])*(1-e[3]),(1-e[1])*(1-e[3]),(1-e[2])*(1-e[3]),"r"]):e=[t=parseFloat(e[0]),t,t,"r"],"#"),r=0;r<3;r++)n+=("0"+Math.floor(255*parseFloat(e[r])).toString(16)).slice(-2);return n},Kt=a.__private__.encodeColorString=function(t){var e,n=(t="string"==typeof t?{ch1:t}:t).ch1,r=t.ch2,i=t.ch3,o=t.ch4,a="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var s=new Nn(n);if(s.ok)n=s.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof(n="string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)?"#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]:n)&&/^#[0-9A-Fa-f]{6}$/.test(n)&&(n=(s=parseInt(n.substr(1),16))>>16&255,r=s>>8&255,i=255&s),void 0===r||void 0===o&&n===r&&r===i)e="string"==typeof n?n+" "+a[0]:2===t.precision?u(n/255)+" "+a[0]:h(n/255)+" "+a[0];else if(void 0===o||"object"===mn(o)){if(o&&!isNaN(o.a)&&0===o.a)return e=["1.","1.","1.",a[1]].join(" ");e=("string"==typeof n?[n,r,i,a[1]]:2===t.precision?[u(n/255),u(r/255),u(i/255),a[1]]:[h(n/255),h(r/255),h(i/255),a[1]]).join(" ")}else e=("string"==typeof n?[n,r,i,o,a[2]]:2===t.precision?[u(n),u(r),u(i),u(o),a[2]]:[h(n),h(r),h(i),h(o),a[2]]).join(" ");return e},Zt=a.__private__.getFilters=function(){return k},$t=a.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||Zt(),r=t.alreadyAppliedFilters||[],i=t.addLength1||!1,o=e.length,a=t.objectId,s=function(t){return t};if(null!==p&&void 0===a)throw new Error("ObjectId must be passed to putStream for file encryption");null!==p&&(s=x.encryptor(a,0));var c={},u=(!0===n&&(n=["FlateEncode"]),t.additionalKeyValues||[]),a=(c=void 0!==yn.API.processDataByFilters?yn.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==c.data.length&&(u.push({key:"Length",value:c.data.length}),!0===i&&u.push({key:"Length1",value:o})),0!=a.length)if(a.split("/").length-1==1)u.push({key:"Filter",value:a});else{u.push({key:"Filter",value:"["+a+"]"});for(var h=0;h<u.length;h+=1)if("DecodeParms"===u[h].key){for(var l=[],f=0;f<c.reverseChain.split("/").length-1;f+=1)l.push("null");l.push(u[h].value),u[h].value="["+l.join(" ")+"]"}}Z("<<");for(var d=0;d<u.length;d++)Z("/"+u[d].key+" "+u[d].value);Z(">>"),0!==c.data.length&&(Z("stream"),Z(s(c.data)),Z("endstream"))},Qt=a.__private__.putPage=function(t){var e=t.number,n=t.data,r=t.objId,i=t.contentsObjId,t=(Vt(r,!0),Z("<</Type /Page"),Z("/Parent "+t.rootDictionaryObjId+" 0 R"),Z("/Resources "+t.resourceDictionaryObjId+" 0 R"),Z("/MediaBox ["+parseFloat(X(t.mediaBox.bottomLeftX))+" "+parseFloat(X(t.mediaBox.bottomLeftY))+" "+X(t.mediaBox.topRightX)+" "+X(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&Z("/CropBox ["+X(t.cropBox.bottomLeftX)+" "+X(t.cropBox.bottomLeftY)+" "+X(t.cropBox.topRightX)+" "+X(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&Z("/BleedBox ["+X(t.bleedBox.bottomLeftX)+" "+X(t.bleedBox.bottomLeftY)+" "+X(t.bleedBox.topRightX)+" "+X(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&Z("/TrimBox ["+X(t.trimBox.bottomLeftX)+" "+X(t.trimBox.bottomLeftY)+" "+X(t.trimBox.topRightX)+" "+X(t.trimBox.topRightY)+"]"),null!==t.artBox&&Z("/ArtBox ["+X(t.artBox.bottomLeftX)+" "+X(t.artBox.bottomLeftY)+" "+X(t.artBox.topRightX)+" "+X(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&Z("/UserUnit "+t.userUnit),tt.publish("putPage",{objId:r,pageContext:w[e],pageNumber:e,page:n}),Z("/Contents "+i+" 0 R"),Z(">>"),Z("endobj"),n.join("\n"));return Y===G.ADVANCED&&(t+="\nQ"),Vt(i,!0),$t({data:t,filters:Zt(),objectId:i}),Z("endobj"),r},te=a.__private__.putPages=function(){for(var t=[],e=1;e<=y;e++)w[e].objId=A(),w[e].contentsObjId=A();for(e=1;e<=y;e++)t.push(Qt({number:e,data:d[e],objId:w[e].objId,contentsObjId:w[e].contentsObjId,mediaBox:w[e].mediaBox,cropBox:w[e].cropBox,bleedBox:w[e].bleedBox,trimBox:w[e].trimBox,artBox:w[e].artBox,userUnit:w[e].userUnit,rootDictionaryObjId:Yt,resourceDictionaryObjId:Jt}));Vt(Yt,!0),Z("<</Type /Pages");for(var n="/Kids [",r=0;r<y;r++)n+=t[r]+" 0 R ";Z(n+"]"),Z("/Count "+y),Z(">>"),Z("endobj"),tt.publish("postPutPages")},ee=function(t){tt.publish("putFont",{font:t,out:Z,newObject:L,putStream:$t}),!0!==t.isAlreadyPutted&&(t.objectNumber=L(),Z("<<"),Z("/Type /Font"),Z("/BaseFont /"+xn(t.postScriptName)),Z("/Subtype /Type1"),"string"==typeof t.encoding&&Z("/Encoding /"+t.encoding),Z("/FirstChar 32"),Z("/LastChar 255"),Z(">>"),Z("endobj"))},ne=function(t){t.objectNumber=L();var e=[],n=(e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[X(t.x),X(t.y),X(t.x+t.width),X(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),t.pages[1].join("\n"));$t({data:n,additionalKeyValues:e,objectId:t.objectNumber}),Z("endobj")},re=function(t,e){e=e||21;var n=L(),r=function(t,e){for(var n=[],r=1/(e-1),i=0;i<1;i+=r)n.push(i);n.push(1),0!=t[0].offset&&(e={offset:0,color:t[0].color},t.unshift(e)),1!=t[t.length-1].offset&&(e={offset:1,color:t[t.length-1].color},t.push(e));for(var o="",a=0,s=0;s<n.length;s++){for(i=n[s];i>t[a+1].offset;)a++;var c=t[a].offset,c=(i-c)/(t[a+1].offset-c),u=t[a].color,h=t[a+1].color;o+=wt(Math.round((1-c)*u[0]+c*h[0]).toString(16))+wt(Math.round((1-c)*u[1]+c*h[1]).toString(16))+wt(Math.round((1-c)*u[2]+c*h[2]).toString(16))}return o.trim()}(t.colors,e),i=[],e=(i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),$t({data:r,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),Z("endobj"),t.objectNumber=L(),Z("<< /ShadingType "+t.type),Z("/ColorSpace /DeviceRGB"),"/Coords ["+X(parseFloat(t.coords[0]))+" "+X(parseFloat(t.coords[1]))+" ");2===t.type?e+=X(parseFloat(t.coords[2]))+" "+X(parseFloat(t.coords[3])):e+=X(parseFloat(t.coords[2]))+" "+X(parseFloat(t.coords[3]))+" "+X(parseFloat(t.coords[4]))+" "+X(parseFloat(t.coords[5])),Z(e+="]"),t.matrix&&Z("/Matrix ["+t.matrix.toString()+"]"),Z("/Function "+n+" 0 R"),Z("/Extend [true true]"),Z(">>"),Z("endobj")},ie=function(t,e){var n=A(),r=L(),e=(e.push({resourcesOid:n,objectOid:r}),t.objectNumber=r,[]);e.push({key:"Type",value:"/Pattern"}),e.push({key:"PatternType",value:"1"}),e.push({key:"PaintType",value:"1"}),e.push({key:"TilingType",value:"1"}),e.push({key:"BBox",value:"["+t.boundingBox.map(X).join(" ")+"]"}),e.push({key:"XStep",value:X(t.xStep)}),e.push({key:"YStep",value:X(t.yStep)}),e.push({key:"Resources",value:n+" 0 R"}),t.matrix&&e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),$t({data:t.stream,additionalKeyValues:e,objectId:t.objectNumber}),Z("endobj")},oe=function(t){for(var e in t.objectNumber=L(),Z("<<"),t)switch(e){case"opacity":Z("/ca "+u(t[e]));break;case"stroke-opacity":Z("/CA "+u(t[e]))}Z(">>"),Z("endobj")},ae=function(){for(var t in Z("/XObject <<"),N)N.hasOwnProperty(t)&&0<=N[t].objectNumber&&Z("/"+t+" "+N[t].objectNumber+" 0 R");tt.publish("putXobjectDict"),Z(">>")},se=function(){for(var t in Z("/Font <<"),Q)Q.hasOwnProperty(t)&&(!1===j||!0===j&&nt.hasOwnProperty(t))&&Z("/"+t+" "+Q[t].objectNumber+" 0 R");Z(">>")},ce=function(){if(0<Object.keys(b).length){for(var t in Z("/Shading <<"),b)b.hasOwnProperty(t)&&b[t]instanceof Pn&&0<=b[t].objectNumber&&Z("/"+t+" "+b[t].objectNumber+" 0 R");tt.publish("putShadingPatternDict"),Z(">>")}},ue=function(t){if(0<Object.keys(b).length){for(var e in Z("/Pattern <<"),b)b.hasOwnProperty(e)&&b[e]instanceof a.TilingPattern&&0<=b[e].objectNumber&&b[e].objectNumber<t&&Z("/"+e+" "+b[e].objectNumber+" 0 R");tt.publish("putTilingPatternDict"),Z(">>")}},he=function(){if(0<Object.keys(v).length){for(var t in Z("/ExtGState <<"),v)v.hasOwnProperty(t)&&0<=v[t].objectNumber&&Z("/"+t+" "+v[t].objectNumber+" 0 R");tt.publish("putGStateDict"),Z(">>")}},le=a.__private__.pdfEscape=a.pdfEscape=function(t,e){return function(t,e){var n,r,i,o,a,s,c=(e=e||{}).sourceEncoding||"Unicode",u=e.outputEncoding;if((e.autoencode||u)&&Q[J].metadata&&Q[J].metadata[c]&&Q[J].metadata[c].encoding&&(c=Q[J].metadata[c].encoding,u="string"==typeof(u=!(u=!u&&Q[J].encoding?Q[J].encoding:u)&&c.codePages?c.codePages[0]:u)?c[u]:u)){for(o=!1,i=[],n=0,r=t.length;n<r;n++)(a=u[t.charCodeAt(n)])?i.push(String.fromCharCode(a)):i.push(t[n]),i[n].charCodeAt(0)>>8&&(o=!0);t=i.join("")}for(n=t.length;void 0===o&&0!==n;)t.charCodeAt(n-1)>>8&&(o=!0),n--;if(!o)return t;for(i=e.noBOM?[]:[254,255],n=0,r=t.length;n<r;n++){if((s=(a=t.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");i.push(s),i.push(a-(s<<8))}return String.fromCharCode.apply(void 0,i)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},fe=a.__private__.beginPage=function(t){d[++y]=[],w[y]={objId:0,contentsObjId:0,userUnit:Number(F),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},de(y),R(d[s])},de=function(t){0<t&&t<=y&&(s=t)},pe=a.__private__.getNumberOfPages=a.getNumberOfPages=function(){return d.length-1},ge=a.__private__.putInfo=function(){var t,e=L(),n=function(t){return t};for(t in null!==p&&(n=x.encryptor(e,0)),Z("<<"),Z("/Producer ("+le(n("jsPDF "+yn.version))+")"),g)g.hasOwnProperty(t)&&g[t]&&Z("/"+t.substr(0,1).toUpperCase()+t.substr(1)+" ("+le(n(g[t]))+")");Z("/CreationDate ("+le(n(ot))+")"),Z(">>"),Z("endobj")},me=a.__private__.putCatalog=function(t){t=(t=t||{}).rootDictionaryObjId||Yt;switch(L(),Z("<<"),Z("/Type /Catalog"),Z("/Pages "+t+" 0 R"),n=n||"fullwidth"){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=""+n;"number"==typeof(n="%"===e.substr(e.length-1)?parseInt(n)/100:n)&&Z("/OpenAction [3 0 R /XYZ null null "+u(n)+"]")}switch(st=st||"continuous"){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")}at&&Z("/PageMode /"+at),tt.publish("putCatalog"),Z(">>"),Z("endobj")},be=a.__private__.putTrailer=function(){Z("trailer"),Z("<<"),Z("/Size "+(f+1)),Z("/Root "+f+" 0 R"),Z("/Info "+(f-1)+" 0 R"),null!==p&&Z("/Encrypt "+x.oid+" 0 R"),Z("/ID [ <"+r+"> <"+r+"> ]"),Z(">>")},ve=a.__private__.putHeader=function(){Z("%PDF-"+O),Z("%ºß¬à")},ye=a.__private__.putXRef=function(){var t="0000000000";Z("xref"),Z("0 "+(f+1)),Z("0000000000 65535 f ");for(var e=1;e<=f;e++)"function"==typeof Nt[e]?Z((t+Nt[e]()).slice(-10)+" 00000 n "):void 0!==Nt[e]?Z((t+Nt[e]).slice(-10)+" 00000 n "):Z("0000000000 00000 n ")},we=a.__private__.buildDocument=function(){At=f=0,Lt=[],Nt=[],xt=[],Yt=A(),Jt=A(),R(Lt),tt.publish("buildDocument"),ve(),te(),tt.publish("putAdditionalObjects");for(var t=0;t<xt.length;t++){var e=xt[t];Vt(e.objId,!0),Z(e.content),Z("endobj")}tt.publish("postPutAdditionalObjects"),U(),null!==p&&(x.oid=L(),Z("<<"),Z("/Filter /Standard"),Z("/V "+x.v),Z("/R "+x.r),Z("/U <"+x.toHexString(x.U)+">"),Z("/O <"+x.toHexString(x.O)+">"),Z("/P "+x.P),Z(">>"),Z("endobj")),ge(),me();var n=At;return ye(),be(),Z("startxref"),Z(""+n),Z("%%EOF"),R(d[s]),Lt.join("\n")},Ne=a.__private__.getBlob=function(t){return new Blob([kt(t)],{type:"application/pdf"})},Le=a.output=a.__private__.output=((lt=function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return we();case"save":a.save(e.filename);break;case"arraybuffer":return kt(we());case"blob":return Ne(we());case"bloburi":case"bloburl":if(void 0!==bn.URL&&"function"==typeof bn.URL.createObjectURL)return bn.URL&&bn.URL.createObjectURL(Ne(we()))||void 0;vn.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=we();try{n=Ln(r)}catch(t){n=Ln(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+e.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(bn))return r="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",n=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"',e.pdfObjectUrl&&(r=e.pdfObjectUrl,n=""),r='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+r+'"'+n+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(e)+");<\/script></body></html>",null!==(n=bn.open())&&n.document.write(r),n;throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":var i,o;if("[object Window]"===Object.prototype.toString.call(bn))return r='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(e.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+e.filename+'" width="500px" height="400px" /></body></html>',null!==(i=bn.open())&&(i.document.write(r),o=this,i.document.documentElement.querySelector("#pdfViewer").onload=function(){i.document.title=e.filename,i.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(o.output("bloburl"))}),i;throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(bn))throw new Error("The option dataurlnewwindow just works in a browser-environment.");n='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",e)+'"></iframe></body></html>',r=bn.open();if(null!==r&&(r.document.write(n),r.document.title=e.filename),r||"undefined"==typeof safari)return r;break;case"datauri":case"dataurl":return bn.document.location.href=this.output("datauristring",e);default:return null}}).foo=function(){try{return lt.apply(this,arguments)}catch(t){var e=t.stack||"",e="Error in function "+(e=~e.indexOf(" at ")?e.split(" at ")[1]:e).split("\n")[0].split("<")[0]+": "+t.message;if(!bn.console)throw new Error(e);bn.console.error(e,t),bn.alert&&alert(e)}},(lt.foo.bar=lt).foo);switch(e){case"pt":c=1;break;case"mm":c=72/25.4;break;case"cm":c=72/2.54;break;case"in":c=72;break;case"px":c=1==it("px_scaling")?.75:96/72;break;case"pc":case"em":c=12;break;case"ex":c=6;break;default:if("number"!=typeof e)throw new Error("Invalid unit: "+e);c=e}function Ae(t){null===t||Y===G.ADVANCED&&void 0===t||(t=ke(t),Z(t))}var x=null,xe=(vt(),gt(),a.__private__.getPageInfo=a.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:w[t].objId,pageNumber:t,pageContext:w[t]}}),Se=a.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in w)if(w[e].objId===t)break;return xe(e)},_e=a.__private__.getCurrentPageInfo=a.getCurrentPageInfo=function(){return{objId:w[s].objId,pageNumber:s,pageContext:w[s]}},Pe=(a.addPage=function(){return W.apply(this,arguments),this},a.setPage=function(){return de.apply(this,arguments),R.call(this,d[s]),this},a.insertPage=function(t){return this.addPage(),this.movePage(s,t),this},a.movePage=function(t,e){if(e<t){for(var n=d[t],r=w[t],i=t;e<i;i--)d[i]=d[i-1],w[i]=w[i-1];d[e]=n,w[e]=r,this.setPage(e)}else if(t<e){n=d[t],r=w[t];for(var o=t;o<e;o++)d[o]=d[o+1],w[o]=w[o+1];d[e]=n,w[e]=r,this.setPage(e)}return this},a.deletePage=function(){return function(t){0<t&&t<=y&&(d.splice(t,1),w.splice(t,1),--y<s&&(s=y),this.setPage(s))}.apply(this,arguments),this},a.__private__.text=a.text=function(t,e,n,r,i){var o,a=(r=r||{}).scope||this;if("number"!=typeof t||"number"!=typeof e||"string"!=typeof n&&!Array.isArray(n)||(c=n,n=e,e=t,t=c),arguments[3]instanceof et==!1?(w=arguments[3],b=i,o=arguments[5],"object"===mn(w)&&null!==w||("string"==typeof b&&(o=b,b=null),"string"==typeof w&&(o=w,w=null),"number"==typeof w&&(b=w,w=null),r={flags:w,angle:b,align:o})):(rt("The transform parameter of text() with a Matrix value"),f=i),isNaN(e)||isNaN(n)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0!==t.length){var s,c="",i="number"==typeof r.lineHeightFactor?r.lineHeightFactor:je,M=a.internal.scaleFactor,u=!1,E=!0;if("string"==typeof t)u=!0;else if(Array.isArray(t)){for(var q,D=t.concat(),h=[],l=D.length;l--;)("string"!=typeof(q=D.shift())||Array.isArray(q)&&"string"!=typeof q[0])&&(E=!1);u=E}if(!1===u)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var f,d=$/a.internal.scaleFactor,p=d*(i-1);switch(r.baseline){case"bottom":n-=p;break;case"top":n+=d-p;break;case"hanging":n+=d-2*p;break;case"middle":n+=d/2-p}0<(P=r.maxWidth||0)&&("string"==typeof t?t=a.splitTextToSize(t,P):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce(function(t,e){return t.concat(a.splitTextToSize(e,P))},[]))),u={text:t,x:e,y:n,options:r,mutex:{pdfEscape:le,activeFontKey:J,fonts:Q,activeFontSize:$}},tt.publish("preProcessText",u),t=u.text,b=(r=u.options).angle,f instanceof et==!1&&b&&"number"==typeof b?(b*=Math.PI/180,0===r.rotationDirection&&(b=-b),Y===G.ADVANCED&&(b=-b),m=Math.cos(b),y=Math.sin(b),f=new et(m,y,-y,m,0,0)):b&&b instanceof et&&(f=b),Y!==G.ADVANCED||f||(f=Ht),void 0!==(U=r.charSpace||Qe)&&(c+=X(K(U))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(y=r.horizontalScale)&&(c+=X(100*y)+" Tz\n");r.lang;var g=-1,m=void 0!==r.renderingMode?r.renderingMode:r.stroke,b=a.internal.getCurrentPageInfo().pageContext;switch(m){case 0:case!1:case"fill":g=0;break;case 1:case!0:case"stroke":g=1;break;case 2:case"fillThenStroke":g=2;break;case 3:case"invisible":g=3;break;case 4:case"fillAndAddForClipping":g=4;break;case 5:case"strokeAndAddPathForClipping":g=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":g=6;break;case 7:case"addToPathForClipping":g=7}var v,y=void 0!==b.usedRenderingMode?b.usedRenderingMode:-1,R=(-1!==g?c+=g+" Tr\n":-1!==y&&(c+="0 Tr\n"),-1!==g&&(b.usedRenderingMode=g),o=r.align||"left",$*i),m=a.internal.pageSize.getWidth(),T=Q[J],U=r.charSpace||Qe,w=(P=r.maxWidth||0,Object.assign({autoencode:!0,noBOM:!0},r.flags)),N=[];if("[object Array]"===Object.prototype.toString.call(t)){h=W(t),"left"!==o&&(v=h.map(function(t){return a.getStringUnitWidth(t,{font:T,charSpace:U,fontSize:$,doKerning:!1})*$/M}));var L,A,x=0;if("right"===o){e-=v[0],t=[];for(var l=h.length,S=0;S<l;S++)L=0===S?(A=Ge(e),Ye(n)):(A=K(x-v[S]),-R),t.push([h[S],A,L]),x=v[S]}else if("center"===o){e-=v[0]/2,t=[],l=h.length;for(var _=0;_<l;_++)L=0===_?(A=Ge(e),Ye(n)):(A=K((x-v[_])/2),-R),t.push([h[_],A,L]),x=v[_]}else if("left"===o){t=[],l=h.length;for(var z=0;z<l;z++)t.push(h[z])}else{if("justify"!==o)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');t=[],l=h.length;for(var P=0!==P?P:m,k=0;k<l;k++)L=0===k?Ye(n):-R,A=0===k?Ge(e):0,k<l-1?N.push(X(K((P-v[k])/(h[k].split(" ").length-1)))):N.push(0),t.push([h[k],A,L])}}u={text:t=!0===("boolean"==typeof r.R2L?r.R2L:Ct)?V(t,function(t,e,n){return[t.split("").reverse().join(""),e,n]}):t,x:e,y:n,options:r,mutex:{pdfEscape:le,activeFontKey:J,fonts:Q,activeFontSize:$}},tt.publish("postProcessText",u),t=u.text,s=u.mutex.isHex||!1;for(var F,I,C,y=Q[J].encoding,j=(h=W(t="WinAnsiEncoding"!==y&&"StandardEncoding"!==y?t:V(t,function(t,e,n){return[(t=(t=t).split("\t").join(Array(r.TabLen||9).join(" ")),le(t,w)),e,n]})),t=[],Array.isArray(h[0])?1:0),O="",H=function(t,e,n){return n instanceof et?(n="number"==typeof r.angle?zt(n,new et(1,0,0,1,t,e)):zt(new et(1,0,0,1,t,e),n),(n=Y===G.ADVANCED?zt(new et(1,0,0,-1,0,0),n):n).join(" ")+" Tm\n"):X(t)+" "+X(e)+" Td\n"},B=0;B<h.length;B++){switch(O="",j){case 1:C=(s?"<":"(")+h[B][0]+(s?">":")"),F=parseFloat(h[B][1]),I=parseFloat(h[B][2]);break;case 0:C=(s?"<":"(")+h[B]+(s?">":")"),F=Ge(e),I=Ye(n)}void 0!==N&&void 0!==N[B]&&(O=N[B]+" Tw\n"),0===B?t.push(O+H(F,I,f)+C):0==j?t.push(O+C):1==j&&t.push(O+H(F,I,f)+C)}t=0==j?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";b="BT\n/",b=(b+=J+" "+$+" Tf\n")+(X($*i)+" TL\n");Z(b=(b=b+(Ze+"\n")+c)+t+"ET"),nt[J]=!0}return a;function W(t){for(var e,n=t.concat(),r=[],i=n.length;i--;)"string"==typeof(e=n.shift())?r.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?r.push(e[0]):r.push([e[0],e[1],e[2]]);return r}function V(t,e){var n;if("string"==typeof t)n=e(t)[0];else if(Array.isArray(t)){for(var r,i=t.concat(),o=[],a=i.length;a--;)"string"==typeof(r=i.shift())?o.push(e(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(r=e(r[0],r[1],r[2]),o.push([r[0],r[1],r[2]]));n=o}return n}},a.__private__.clip=a.clip=function(t){return Z("evenodd"===t?"W*":"W"),this}),S=(a.clipEvenOdd=function(){return Pe("evenodd")},a.__private__.discardPath=a.discardPath=function(){return Z(