/** @license * * jsPDF - PDF Document creation from JavaScript * Version 2.3.1 Built on 2021-03-08T15:44:11.674Z * CommitID 00000000 * * Copyright (c) 2010-2020 James Hall , https://github.com/MrRio/jsPDF * 2015-2020 yWorks GmbH, http://www.yworks.com * 2015-2020 Lukas Holländer , https://github.com/HackbrettXXX * 2016-2018 Aras Abbasi * 2010 Aaron Spike, https://github.com/acspike * 2012 Willow Systems Corporation, willow-systems.com * 2012 Pablo Hess, https://github.com/pablohess * 2012 Florian Jenett, https://github.com/fjenett * 2013 Warren Weckesser, https://github.com/warrenweckesser * 2013 Youssef Beddad, https://github.com/lifof * 2013 Lee Driscoll, https://github.com/lsdriscoll * 2013 Stefan Slonevskiy, https://github.com/stefslon * 2013 Jeremy Morel, https://github.com/jmorel * 2013 Christoph Hartmann, https://github.com/chris-rock * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria * 2014 James Makes, https://github.com/dollaruw * 2014 Diego Casorran, https://github.com/diegocr * 2014 Steven Spungin, https://github.com/Flamenco * 2014 Kenneth Glassey, https://github.com/Gavvers * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * Contributor(s): * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango, * kim3er, mfo, alnorth, Flamenco */ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,e,r=require("fflate"),n=function(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this}(); /** * A class to parse color values * @author Stoyan Stefanov * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} * @license Use it if you like it */ function i(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6));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.replace(/ /g,"")).toLowerCase()]||t;for(var r=[{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;n255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r}}function a(){n.console&&"function"==typeof n.console.log&&n.console.log.apply(n.console,arguments)}t=require("atob"),e=require("btoa");var o={log:a,warn:function(t){n.console&&("function"==typeof n.console.warn?n.console.warn.apply(n.console,arguments):a.call(null,arguments))},error:function(t){n.console&&("function"==typeof n.console.error?n.console.error.apply(n.console,arguments):a(t))}}; /** * @license * Joseph Myers does not specify a particular license for his work. * * Author: Joseph Myers * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js * * Modified by: Owen Leong */function s(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];r=u(r,n,i,a,e[0],7,-680876936),a=u(a,r,n,i,e[1],12,-389564586),i=u(i,a,r,n,e[2],17,606105819),n=u(n,i,a,r,e[3],22,-1044525330),r=u(r,n,i,a,e[4],7,-176418897),a=u(a,r,n,i,e[5],12,1200080426),i=u(i,a,r,n,e[6],17,-1473231341),n=u(n,i,a,r,e[7],22,-45705983),r=u(r,n,i,a,e[8],7,1770035416),a=u(a,r,n,i,e[9],12,-1958414417),i=u(i,a,r,n,e[10],17,-42063),n=u(n,i,a,r,e[11],22,-1990404162),r=u(r,n,i,a,e[12],7,1804603682),a=u(a,r,n,i,e[13],12,-40341101),i=u(i,a,r,n,e[14],17,-1502002290),r=l(r,n=u(n,i,a,r,e[15],22,1236535329),i,a,e[1],5,-165796510),a=l(a,r,n,i,e[6],9,-1069501632),i=l(i,a,r,n,e[11],14,643717713),n=l(n,i,a,r,e[0],20,-373897302),r=l(r,n,i,a,e[5],5,-701558691),a=l(a,r,n,i,e[10],9,38016083),i=l(i,a,r,n,e[15],14,-660478335),n=l(n,i,a,r,e[4],20,-405537848),r=l(r,n,i,a,e[9],5,568446438),a=l(a,r,n,i,e[14],9,-1019803690),i=l(i,a,r,n,e[3],14,-187363961),n=l(n,i,a,r,e[8],20,1163531501),r=l(r,n,i,a,e[13],5,-1444681467),a=l(a,r,n,i,e[2],9,-51403784),i=l(i,a,r,n,e[7],14,1735328473),r=h(r,n=l(n,i,a,r,e[12],20,-1926607734),i,a,e[5],4,-378558),a=h(a,r,n,i,e[8],11,-2022574463),i=h(i,a,r,n,e[11],16,1839030562),n=h(n,i,a,r,e[14],23,-35309556),r=h(r,n,i,a,e[1],4,-1530992060),a=h(a,r,n,i,e[4],11,1272893353),i=h(i,a,r,n,e[7],16,-155497632),n=h(n,i,a,r,e[10],23,-1094730640),r=h(r,n,i,a,e[13],4,681279174),a=h(a,r,n,i,e[0],11,-358537222),i=h(i,a,r,n,e[3],16,-722521979),n=h(n,i,a,r,e[6],23,76029189),r=h(r,n,i,a,e[9],4,-640364487),a=h(a,r,n,i,e[12],11,-421815835),i=h(i,a,r,n,e[15],16,530742520),r=f(r,n=h(n,i,a,r,e[2],23,-995338651),i,a,e[0],6,-198630844),a=f(a,r,n,i,e[7],10,1126891415),i=f(i,a,r,n,e[14],15,-1416354905),n=f(n,i,a,r,e[5],21,-57434055),r=f(r,n,i,a,e[12],6,1700485571),a=f(a,r,n,i,e[3],10,-1894986606),i=f(i,a,r,n,e[10],15,-1051523),n=f(n,i,a,r,e[1],21,-2054922799),r=f(r,n,i,a,e[8],6,1873313359),a=f(a,r,n,i,e[15],10,-30611744),i=f(i,a,r,n,e[6],15,-1560198380),n=f(n,i,a,r,e[13],21,1309151649),r=f(r,n,i,a,e[4],6,-145523070),a=f(a,r,n,i,e[11],10,-1120210379),i=f(i,a,r,n,e[2],15,718787259),n=f(n,i,a,r,e[9],21,-343485551),t[0]=y(r,t[0]),t[1]=y(n,t[1]),t[2]=y(i,t[2]),t[3]=y(a,t[3])}function c(t,e,r,n,i,a){return e=y(y(e,t),y(n,a)),y(e<>>32-i,r)}function u(t,e,r,n,i,a,o){return c(e&r|~e&n,t,e,i,a,o)}function l(t,e,r,n,i,a,o){return c(e&n|r&~n,t,e,i,a,o)}function h(t,e,r,n,i,a,o){return c(e^r^n,t,e,i,a,o)}function f(t,e,r,n,i,a,o){return c(r^(e|~n),t,e,i,a,o)}function d(t){var e,r=t.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)s(n,p(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(s(n,i),e=0;e<16;e++)i[e]=0;return i[14]=8*r,s(n,i),n}function p(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}var g="0123456789abcdef".split("");function m(t){for(var e="",r=0;r<4;r++)e+=g[t>>8*r+4&15]+g[t>>8*r&15];return e}function v(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function b(t){return d(t).map(v).join("")}function y(t,e){return t+e&4294967295}if("5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e>16)+(e>>16)+(r>>16)<<16|65535&r}} /** * @license * FPDF is released under a permissive license: there is no usage restriction. * You may embed it freely in your application (commercial or not), with or * without modifications. * * Reference: http://www.fpdf.org/en/script/script37.php */function w(t,e){var r,n,i,a;if(t!==r){for(var o=(i=t,a=1+(256/t.length>>0),new Array(a+1).join(i)),s=[],c=0;c<256;c++)s[c]=c;var u=0;for(c=0;c<256;c++){var l=s[c];u=(u+l+o.charCodeAt(c))%256,s[c]=s[u],s[u]=l}r=t,n=s}else s=n;var h=e.length,f=0,d=0,p="";for(c=0;c€/\f©þdSiz";let a=(e+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=b(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=w(this.encryptionKey,this.padding)}function L(t){if("object"!=typeof t)throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,r,n){if(n=n||!1,"string"!=typeof t||"function"!=typeof r||"boolean"!=typeof n)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[r,!!n],i},this.unsubscribe=function(t){for(var r in e)if(e[r][t])return delete e[r][t],0===Object.keys(e[r]).length&&delete e[r],!0;return!1},this.publish=function(r){if(e.hasOwnProperty(r)){var i=Array.prototype.slice.call(arguments,1),a=[];for(var s in e[r]){var c=e[r][s];try{c[0].apply(t,i)}catch(t){n.console&&o.error("jsPDF PubSub Error",t.message,t)}c[1]&&a.push(s)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function x(t){if(!(this instanceof x))return new x(t);var e="opacity,stroke-opacity".split(",");for(var r in t)t.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=t[r]);this.id="",this.objectNumber=-1}function S(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function _(t,e,r,n,i){if(!(this instanceof _))return new _(t,e,r,n,i);this.type="axial"===t?2:3,this.coords=e,this.colors=r,S.call(this,n,i)}function P(t,e,r,n,i){if(!(this instanceof P))return new P(t,e,r,n,i);this.boundingBox=t,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,S.call(this,n,i)}function k(t){var r,a="string"==typeof arguments[0]?arguments[0]:"p",s=arguments[1],c=arguments[2],u=arguments[3],l=[],h=1,f=16,d="S",p=null;"object"==typeof(t=t||{})&&(a=t.orientation,s=t.unit||s,c=t.format||c,u=t.compress||t.compressPdf||u,null!==(p=t.encryption||null)&&(p.userPassword=p.userPassword||"",p.ownerPassword=p.ownerPassword||"",p.userPermissions=p.userPermissions||[]),h="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(r=t.precision),void 0!==t.floatPrecision&&(f=t.floatPrecision),d=t.defaultPathOperation||"S"),l=t.filters||(!0===u?["FlateEncode"]:l),s=s||"mm",a=(""+(a||"P")).toLowerCase();var g=t.putOnlyUsedFonts||!1,m={},v={internal:{},__private__:{}};v.__private__.PubSub=L;var b="1.3",y=v.__private__.getPdfVersion=function(){return b};v.__private__.setPdfVersion=function(t){b=t};var w={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]};v.__private__.getPageFormats=function(){return w};var N=v.__private__.getPageFormat=function(t){return w[t]};c=c||"a4";var S={COMPAT:"compat",ADVANCED:"advanced"},F=S.COMPAT;function I(){this.saveGraphicsState(),ct(new Ut(Lt,0,0,-Lt,0,qr()*Lt).toString()+" cm"),this.setFontSize(this.getFontSize()/Lt),d="n",F=S.ADVANCED}function C(){this.restoreGraphicsState(),d="S",F=S.COMPAT}var j=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 e&&t!==e&&(t=400==e?"italic"==t?"italic":"normal":700==e&&"italic"!==t?"bold":t+""+e),t};v.advancedAPI=function(t){var e=F===S.COMPAT;return e&&I.call(this),"function"!=typeof t||(t(this),e&&C.call(this)),this},v.compatAPI=function(t){var e=F===S.ADVANCED;return e&&C.call(this),"function"!=typeof t||(t(this),e&&I.call(this)),this},v.isAdvancedAPI=function(){return F===S.ADVANCED};var O,B=function(t){if(F!==S.ADVANCED)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},q=v.roundToPrecision=v.__private__.roundToPrecision=function(t,e){var n=r||e;if(isNaN(t)||isNaN(n))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(n).replace(/0+$/,"")};O=v.hpf=v.__private__.hpf="number"==typeof f?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return q(t,f)}:"smart"===f?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return q(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return q(t,16)};var M=v.f2=v.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return q(t,2)},E=v.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return q(t,3)},R=v.scale=v.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return F===S.COMPAT?t*Lt:F===S.ADVANCED?t:void 0},D=function(t){return F===S.COMPAT?qr()-t:F===S.ADVANCED?t:void 0},T=function(t){return R(D(t))};v.__private__.setPrecision=v.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(r=parseInt(t,10))};var z,U="00000000000000000000000000000000",H=v.__private__.getFileId=function(){return U},V=v.__private__.setFileId=function(t){return U=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():U.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==p&&(Ve=new A(p.userPermissions,p.userPassword,p.ownerPassword,U)),U};v.setFileId=function(t){return V(t),this},v.getFileId=function(){return H()};var W=v.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),r=e<0?"+":"-",n=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),a=[r,K(n),"'",K(i),"'"].join("");return["D:",t.getFullYear(),K(t.getMonth()+1),K(t.getDate()),K(t.getHours()),K(t.getMinutes()),K(t.getSeconds()),a].join("")},G=v.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),r=parseInt(t.substr(6,2),10)-1,n=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),a=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return new Date(e,r,n,i,a,o,0)},Y=v.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=W(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 z=e},J=v.__private__.getCreationDate=function(t){var e=z;return"jsDate"===t&&(e=G(z)),e};v.setCreationDate=function(t){return Y(t),this},v.getCreationDate=function(t){return J(t)};var X,K=v.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},Z=v.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},$=0,Q=[],tt=[],et=0,rt=[],nt=[],it=!1,at=tt,ot=function(){$=0,et=0,tt=[],Q=[],rt=[],Kt=Yt(),Zt=Yt()};v.__private__.setCustomOutputDestination=function(t){it=!0,at=t};var st=function(t){it||(at=t)};v.__private__.resetCustomOutputDestination=function(){it=!1,at=tt};var ct=v.__private__.out=function(t){return t=t.toString(),et+=t.length+1,at.push(t),at},ut=v.__private__.write=function(t){return ct(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},lt=v.__private__.getArrayBuffer=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r);e--;)n[e]=t.charCodeAt(e);return r},ht=[["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]];v.__private__.getStandardFonts=function(){return ht};var ft=t.fontSize||16;v.__private__.setFontSize=v.setFontSize=function(t){return ft=F===S.ADVANCED?t/Lt:t,this};var dt,pt=v.__private__.getFontSize=v.getFontSize=function(){return F===S.COMPAT?ft:ft*Lt},gt=t.R2L||!1;v.__private__.setR2L=v.setR2L=function(t){return gt=t,this},v.__private__.getR2L=v.getR2L=function(){return gt};var mt,vt=v.__private__.setZoomMode=function(t){var e=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^\d*\.?\d*%$/.test(t))dt=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.');dt=t}else dt=parseInt(t,10)};v.__private__.getZoomMode=function(){return dt};var bt,yt=v.__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.');mt=t};v.__private__.getPageMode=function(){return mt};var wt=v.__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.');bt=t};v.__private__.getLayoutMode=function(){return bt},v.__private__.setDisplayMode=v.setDisplayMode=function(t,e,r){return vt(t),wt(e),yt(r),this};var Nt={title:"",subject:"",author:"",keywords:"",creator:""};v.__private__.getDocumentProperty=function(t){if(-1===Object.keys(Nt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Nt[t]},v.__private__.getDocumentProperties=function(){return Nt},v.__private__.setDocumentProperties=v.setProperties=v.setDocumentProperties=function(t){for(var e in Nt)Nt.hasOwnProperty(e)&&t[e]&&(Nt[e]=t[e]);return this},v.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(Nt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Nt[t]=e};var At,Lt,xt,St,_t,Pt={},kt={},Ft=[],It={},Ct={},jt={},Ot={},Bt=null,qt=0,Mt=[],Et=new L(v),Rt=t.hotfixes||[],Dt={},Tt={},zt=[],Ut=function(t,e,r,n,i,a){if(!(this instanceof Ut))return new Ut(t,e,r,n,i,a);isNaN(t)&&(t=1),isNaN(e)&&(e=0),isNaN(r)&&(r=0),isNaN(n)&&(n=1),isNaN(i)&&(i=0),isNaN(a)&&(a=0),this._matrix=[t,e,r,n,i,a]};Object.defineProperty(Ut.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Ut.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Ut.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Ut.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Ut.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Ut.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Ut.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Ut.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Ut.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Ut.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Ut.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Ut.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Ut.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ut.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ut.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ut.prototype,"isIdentity",{get:function(){return 1===this.sx&&(0===this.shy&&(0===this.shx&&(1===this.sy&&(0===this.tx&&0===this.ty))))}}),Ut.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(O).join(t)},Ut.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,r=t.sx*this.shy+t.shy*this.sy,n=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,a=t.tx*this.sx+t.ty*this.shx+this.tx,o=t.tx*this.shy+t.ty*this.sy+this.ty;return new Ut(e,r,n,i,a,o)},Ut.prototype.decompose=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,a=this.ty,o=Math.sqrt(t*t+e*e),s=(t/=o)*r+(e/=o)*n;r-=t*s,n-=e*s;var c=Math.sqrt(r*r+n*n);return s/=c,t*(n/=c)>16&255,n=u>>8&255,a=255&u}if(void 0===n||void 0===o&&r===n&&n===a)if("string"==typeof r)e=r+" "+s[0];else switch(t.precision){case 2:e=M(r/255)+" "+s[0];break;case 3:default:e=E(r/255)+" "+s[0]}else if(void 0===o||"object"==typeof o){if(o&&!isNaN(o.a)&&0===o.a)return e=["1.","1.","1.",s[1]].join(" ");if("string"==typeof r)e=[r,n,a,s[1]].join(" ");else switch(t.precision){case 2:e=[M(r/255),M(n/255),M(a/255),s[1]].join(" ");break;default:case 3:e=[E(r/255),E(n/255),E(a/255),s[1]].join(" ")}}else if("string"==typeof r)e=[r,n,a,o,s[2]].join(" ");else switch(t.precision){case 2:e=[M(r),M(n),M(a),M(o),s[2]].join(" ");break;case 3:default:e=[E(r),E(n),E(a),E(o),s[2]].join(" ")}return e},te=v.__private__.getFilters=function(){return l},ee=v.__private__.putStream=function(t){var e=(t=t||{}).data||"",r=t.filters||te(),n=t.alreadyAppliedFilters||[],i=t.addLength1||!1,a=e.length,o=t.objectId,s=function(t){return t};if(null!==p&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==p&&(s=Ve.encryptor(o,0));var c={};!0===r&&(r=["FlateEncode"]);var u=t.additionalKeyValues||[],l=(c=void 0!==k.API.processDataByFilters?k.API.processDataByFilters(e,r):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(n)?n.join(" "):n.toString());if(0!==c.data.length&&(u.push({key:"Length",value:c.data.length}),!0===i&&u.push({key:"Length1",value:a})),0!=l.length)if(l.split("/").length-1==1)u.push({key:"Filter",value:l});else{u.push({key:"Filter",value:"["+l+"]"});for(var h=0;h>"),0!==c.data.length&&(ct("stream"),ct(s(c.data)),ct("endstream"))},re=v.__private__.putPage=function(t){var e=t.number,r=t.data,n=t.objId,i=t.contentsObjId;Jt(n,!0),ct("<>"),ct("endobj");var a=r.join("\n");return F===S.ADVANCED&&(a+="\nQ"),Jt(i,!0),ee({data:a,filters:te(),objectId:i}),ct("endobj"),n},ne=v.__private__.putPages=function(){var t,e,r=[];for(t=1;t<=qt;t++)Mt[t].objId=Yt(),Mt[t].contentsObjId=Yt();for(t=1;t<=qt;t++)r.push(re({number:t,data:nt[t],objId:Mt[t].objId,contentsObjId:Mt[t].contentsObjId,mediaBox:Mt[t].mediaBox,cropBox:Mt[t].cropBox,bleedBox:Mt[t].bleedBox,trimBox:Mt[t].trimBox,artBox:Mt[t].artBox,userUnit:Mt[t].userUnit,rootDictionaryObjId:Kt,resourceDictionaryObjId:Zt}));Jt(Kt,!0),ct("<>"),ct("endobj"),Et.publish("postPutPages")},ie=function(t){var e=function(t,e){return-1!==t.indexOf(" ")?"("+ke(t,e)+")":ke(t,e)};Et.publish("putFont",{font:t,out:ct,newObject:Gt,putStream:ee,pdfEscapeWithNeededParanthesis:e}),!0!==t.isAlreadyPutted&&(t.objectNumber=Gt(),ct("<<"),ct("/Type /Font"),ct("/BaseFont /"+e(t.postScriptName)),ct("/Subtype /Type1"),"string"==typeof t.encoding&&ct("/Encoding /"+t.encoding),ct("/FirstChar 32"),ct("/LastChar 255"),ct(">>"),ct("endobj"))},ae=function(){for(var t in Pt)Pt.hasOwnProperty(t)&&(!1===g||!0===g&&m.hasOwnProperty(t))&&ie(Pt[t])},oe=function(t){t.objectNumber=Gt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[O(t.x),O(t.y),O(t.x+t.width),O(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var r=t.pages[1].join("\n");ee({data:r,additionalKeyValues:e,objectId:t.objectNumber}),ct("endobj")},se=function(){for(var t in Dt)Dt.hasOwnProperty(t)&&oe(Dt[t])},ce=function(t,e){var r,n=[],i=1/(e-1);for(r=0;r<1;r+=i)n.push(r);if(n.push(1),0!=t[0].offset){var a={offset:0,color:t[0].color};t.unshift(a)}if(1!=t[t.length-1].offset){var o={offset:1,color:t[t.length-1].color};t.push(o)}for(var s="",c=0,u=0;ut[c+1].offset;)c++;var l=t[c].offset,h=(r-l)/(t[c+1].offset-l),f=t[c].color,d=t[c+1].color;s+=Z(Math.round((1-h)*f[0]+h*d[0]).toString(16))+Z(Math.round((1-h)*f[1]+h*d[1]).toString(16))+Z(Math.round((1-h)*f[2]+h*d[2]).toString(16))}return s.trim()},ue=function(t,e){e||(e=21);var r=Gt(),n=ce(t.colors,e),i=[];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]"}),ee({data:n,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:r}),ct("endobj"),t.objectNumber=Gt(),ct("<< /ShadingType "+t.type),ct("/ColorSpace /DeviceRGB");var a="/Coords ["+O(parseFloat(t.coords[0]))+" "+O(parseFloat(t.coords[1]))+" ";2===t.type?a+=O(parseFloat(t.coords[2]))+" "+O(parseFloat(t.coords[3])):a+=O(parseFloat(t.coords[2]))+" "+O(parseFloat(t.coords[3]))+" "+O(parseFloat(t.coords[4]))+" "+O(parseFloat(t.coords[5])),ct(a+="]"),t.matrix&&ct("/Matrix ["+t.matrix.toString()+"]"),ct("/Function "+r+" 0 R"),ct("/Extend [true true]"),ct(">>"),ct("endobj")},le=function(t,e){var r=Yt(),n=Gt();e.push({resourcesOid:r,objectOid:n}),t.objectNumber=n;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(O).join(" ")+"]"}),i.push({key:"XStep",value:O(t.xStep)}),i.push({key:"YStep",value:O(t.yStep)}),i.push({key:"Resources",value:r+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),ee({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),ct("endobj")},he=function(t){var e;for(e in It)It.hasOwnProperty(e)&&(It[e]instanceof _?ue(It[e]):It[e]instanceof P&&le(It[e],t))},fe=function(t){for(var e in t.objectNumber=Gt(),ct("<<"),t)switch(e){case"opacity":ct("/ca "+M(t[e]));break;case"stroke-opacity":ct("/CA "+M(t[e]))}ct(">>"),ct("endobj")},de=function(){var t;for(t in jt)jt.hasOwnProperty(t)&&fe(jt[t])},pe=function(){for(var t in ct("/XObject <<"),Dt)Dt.hasOwnProperty(t)&&Dt[t].objectNumber>=0&&ct("/"+t+" "+Dt[t].objectNumber+" 0 R");Et.publish("putXobjectDict"),ct(">>")},ge=function(){Ve.oid=Gt(),ct("<<"),ct("/Filter /Standard"),ct("/V "+Ve.v),ct("/R "+Ve.r),ct("/U <"+Ve.toHexString(Ve.U)+">"),ct("/O <"+Ve.toHexString(Ve.O)+">"),ct("/P "+Ve.P),ct(">>"),ct("endobj")},me=function(){for(var t in ct("/Font <<"),Pt)Pt.hasOwnProperty(t)&&(!1===g||!0===g&&m.hasOwnProperty(t))&&ct("/"+t+" "+Pt[t].objectNumber+" 0 R");ct(">>")},ve=function(){if(Object.keys(It).length>0){for(var t in ct("/Shading <<"),It)It.hasOwnProperty(t)&&It[t]instanceof _&&It[t].objectNumber>=0&&ct("/"+t+" "+It[t].objectNumber+" 0 R");Et.publish("putShadingPatternDict"),ct(">>")}},be=function(t){if(Object.keys(It).length>0){for(var e in ct("/Pattern <<"),It)It.hasOwnProperty(e)&&It[e]instanceof v.TilingPattern&&It[e].objectNumber>=0&&It[e].objectNumber>")}},ye=function(){if(Object.keys(jt).length>0){var t;for(t in ct("/ExtGState <<"),jt)jt.hasOwnProperty(t)&&jt[t].objectNumber>=0&&ct("/"+t+" "+jt[t].objectNumber+" 0 R");Et.publish("putGStateDict"),ct(">>")}},we=function(t){Jt(t.resourcesOid,!0),ct("<<"),ct("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),me(),ve(),be(t.objectOid),ye(),pe(),ct(">>"),ct("endobj")},Ne=function(){var t=[];ae(),de(),se(),he(t),Et.publish("putResources"),t.forEach(we),we({resourcesOid:Zt,objectOid:Number.MAX_SAFE_INTEGER}),Et.publish("postPutResources")},Ae=function(){Et.publish("putAdditionalObjects");for(var t=0;t>8&&(c=!0);t=s.join("")}for(r=t.length;void 0===c&&0!==r;)t.charCodeAt(r-1)>>8&&(c=!0),r--;if(!c)return t;for(s=e.noBOM?[]:[254,255],r=0,n=t.length;r>8)>>8)throw new Error("Character at position "+r+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(l),s.push(u-(l<<8))}return String.fromCharCode.apply(void 0,s)},ke=v.__private__.pdfEscape=v.pdfEscape=function(t,e){return Pe(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Fe=v.__private__.beginPage=function(t){nt[++qt]=[],Mt[qt]={objId:0,contentsObjId:0,userUnit:Number(h),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},je(qt),st(nt[X])},Ie=function(t,e){var r,n,i;switch(a=e||a,"string"==typeof t&&(r=N(t.toLowerCase()),Array.isArray(r)&&(n=r[0],i=r[1])),Array.isArray(t)&&(n=t[0]*Lt,i=t[1]*Lt),isNaN(n)&&(n=c[0],i=c[1]),(n>14400||i>14400)&&(o.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),i=Math.min(14400,i)),c=[n,i],a.substr(0,1)){case"l":i>n&&(c=[i,n]);break;case"p":n>i&&(c=[i,n])}Fe(c),lr(ur),ct(br),0!==xr&&ct(xr+" J"),0!==Sr&&ct(Sr+" j"),Et.publish("addPage",{pageNumber:qt})},Ce=function(t){t>0&&t<=qt&&(nt.splice(t,1),Mt.splice(t,1),qt--,X>qt&&(X=qt),this.setPage(X))},je=function(t){t>0&&t<=qt&&(X=t)},Oe=v.__private__.getNumberOfPages=v.getNumberOfPages=function(){return nt.length-1},Be=function(t,e,r){var n,i=void 0;return r=r||{},t=void 0!==t?t:Pt[At].fontName,e=void 0!==e?e:Pt[At].fontStyle,n=t.toLowerCase(),void 0!==kt[n]&&void 0!==kt[n][e]?i=kt[n][e]:void 0!==kt[t]&&void 0!==kt[t][e]?i=kt[t][e]:!1===r.disableWarning&&o.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||r.noFallback||null==(i=kt.times[e])&&(i=kt.times.normal),i},qe=v.__private__.putInfo=function(){var t=Gt(),e=function(t){return t};for(var r in null!==p&&(e=Ve.encryptor(t,0)),ct("<<"),ct("/Producer ("+ke(e("jsPDF "+k.version))+")"),Nt)Nt.hasOwnProperty(r)&&Nt[r]&&ct("/"+r.substr(0,1).toUpperCase()+r.substr(1)+" ("+ke(e(Nt[r]))+")");ct("/CreationDate ("+ke(e(z))+")"),ct(">>"),ct("endobj")},Me=v.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Kt;switch(Gt(),ct("<<"),ct("/Type /Catalog"),ct("/Pages "+e+" 0 R"),dt||(dt="fullwidth"),dt){case"fullwidth":ct("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ct("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ct("/OpenAction [3 0 R /Fit]");break;case"original":ct("/OpenAction [3 0 R /XYZ null null 1]");break;default:var r=""+dt;"%"===r.substr(r.length-1)&&(dt=parseInt(dt)/100),"number"==typeof dt&&ct("/OpenAction [3 0 R /XYZ null null "+M(dt)+"]")}switch(bt||(bt="continuous"),bt){case"continuous":ct("/PageLayout /OneColumn");break;case"single":ct("/PageLayout /SinglePage");break;case"two":case"twoleft":ct("/PageLayout /TwoColumnLeft");break;case"tworight":ct("/PageLayout /TwoColumnRight")}mt&&ct("/PageMode /"+mt),Et.publish("putCatalog"),ct(">>"),ct("endobj")},Ee=v.__private__.putTrailer=function(){ct("trailer"),ct("<<"),ct("/Size "+($+1)),ct("/Root "+$+" 0 R"),ct("/Info "+($-1)+" 0 R"),null!==p&&ct("/Encrypt "+Ve.oid+" 0 R"),ct("/ID [ <"+U+"> <"+U+"> ]"),ct(">>")},Re=v.__private__.putHeader=function(){ct("%PDF-"+b),ct("%ºß¬à")},De=v.__private__.putXRef=function(){var t="0000000000";ct("xref"),ct("0 "+($+1)),ct("0000000000 65535 f ");for(var e=1;e<=$;e++){"function"==typeof Q[e]?ct((t+Q[e]()).slice(-10)+" 00000 n "):void 0!==Q[e]?ct((t+Q[e]).slice(-10)+" 00000 n "):ct("0000000000 00000 n ")}},Te=v.__private__.buildDocument=function(){ot(),st(tt),Et.publish("buildDocument"),Re(),ne(),Ae(),Ne(),null!==p&&ge(),qe(),Me();var t=et;return De(),Ee(),ct("startxref"),ct(""+t),ct("%%EOF"),st(nt[X]),tt.join("\n")},ze=v.__private__.getBlob=function(t){return new Blob([lt(t)],{type:"application/pdf"})},Ue=v.output=v.__private__.output=_e((function(t,r){switch("string"==typeof(r=r||{})?r={filename:r}:r.filename=r.filename||"generated.pdf",t){case void 0:return Te();case"save":v.save(r.filename);break;case"arraybuffer":return lt(Te());case"blob":return ze(Te());case"bloburi":case"bloburl":if(void 0!==n.URL&&"function"==typeof n.URL.createObjectURL)return n.URL&&n.URL.createObjectURL(ze(Te()))||void 0;o.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var i="",a=Te();try{i=e(a)}catch(t){i=e(unescape(encodeURIComponent(a)))}return"data:application/pdf;filename="+r.filename+";base64,"+i;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(n)){var s='