PageSourceSearch

https://princeseating.furniture/cdn/shop/t/3/assets/jspdf.debug.js?v=91771614706898362191580277035

js princeseating.furniture collected 2026-10-07 17:30:39 UTC 427,799 bytes, 157 lines download raw bytes

1(function(factory){typeof define=="function"&&define.amd?define(factory):factory()})(function(){"use strict";/** @license
2 * jsPDF - PDF Document creation from JavaScript
3 * Version 1.5.3 Built on 2018-12-27T14:11:42.696Z
4 *                      CommitID d93d28db14
5 *
6 * Copyright (c) 2010-2016 James Hall <[email protected]>, https://github.com/MrRio/jsPDF
7 *               2010 Aaron Spike, https://github.com/acspike
8 *               2012 Willow Systems Corporation, willow-systems.com
9 *               2012 Pablo Hess, https://github.com/pablohess
10 *               2012 Florian Jenett, https://github.com/fjenett
11 *               2013 Warren Weckesser, https://github.com/warrenweckesser
12 *               2013 Youssef Beddad, https://github.com/lifof
13 *               2013 Lee Driscoll, https://github.com/lsdriscoll
14 *               2013 Stefan Slonevskiy, https://github.com/stefslon
15 *               2013 Jeremy Morel, https://github.com/jmorel
16 *               2013 Christoph Hartmann, https://github.com/chris-rock
17 *               2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
18 *               2014 James Makes, https://github.com/dollaruw
19 *               2014 Diego Casorran, https://github.com/diegocr
20 *               2014 Steven Spungin, https://github.com/Flamenco
21 *               2014 Kenneth Glassey, https://github.com/Gavvers
22 *
23 * Licensed under the MIT License
24 *
25 * Contributor(s):
26 *    siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
27 *    kim3er, mfo, alnorth, Flamenco
28 */function _typeof(obj){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(obj2){return typeof obj2}:_typeof=function(obj2){return obj2&&typeof Symbol=="function"&&obj2.constructor===Symbol&&obj2!==Symbol.prototype?"symbol":typeof obj2},_typeof(obj)}(function(global2){if(_typeof(global2.console)!=="object"){global2.console={};for(var con=global2.console,prop,method,dummy=function(){},properties=["memory"],methods="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");prop=properties.pop();)con[prop]||(con[prop]={});for(;method=methods.pop();)con[method]||(con[method]=dummy)}var b64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";typeof global2.btoa=="undefined"&&(global2.btoa=function(data){var o1,o2,o3,h1,h2,h3,h4,bits,i=0,ac=0,enc="",tmp_arr=[];if(!data)return data;do o1=data.charCodeAt(i++),o2=data.charCodeAt(i++),o3=data.charCodeAt(i++),bits=o1<<16|o2<<8|o3,h1=bits>>18&63,h2=bits>>12&63,h3=bits>>6&63,h4=bits&63,tmp_arr[ac++]=b64.charAt(h1)+b64.charAt(h2)+b64.charAt(h3)+b64.charAt(h4);while(i<data.length);enc=tmp_arr.join("");var r=data.length%3;return(r?enc.slice(0,r-3):enc)+"===".slice(r||3)}),typeof global2.atob=="undefined"&&(global2.atob=function(data){var o1,o2,o3,h1,h2,h3,h4,bits,i=0,ac=0,dec="",tmp_arr=[];if(!data)return data;data+="";do h1=b64.indexOf(data.charAt(i++)),h2=b64.indexOf(data.charAt(i++)),h3=b64.indexOf(data.charAt(i++)),h4=b64.indexOf(data.charAt(i++)),bits=h1<<18|h2<<12|h3<<6|h4,o1=bits>>16&255,o2=bits>>8&255,o3=bits&255,h3==64?tmp_arr[ac++]=String.fromCharCode(o1):h4==64?tmp_arr[ac++]=String.fromCharCode(o1,o2):tmp_arr[ac++]=String.fromCharCode(o1,o2,o3);while(i<data.length);return dec=tmp_arr.join(""),dec}),Array.prototype.map||(Array.prototype.map=function(fun){if(this===void 0||this===null||typeof fun!="function")throw new TypeError;for(var t=Object(this),len=t.length>>>0,res=new Array(len),thisArg=arguments.length>1?arguments[1]:void 0,i=0;i<len;i++)i in t&&(res[i]=fun.call(thisArg,t[i],i,t));return res}),Array.isArray||(Array.isArray=function(arg){return Object.prototype.toString.call(arg)==="[object Array]"}),Array.prototype.forEach||(Array.prototype.forEach=function(fun,thisArg){if(this===void 0||this===null||typeof fun!="function")throw new TypeError;for(var t=Object(this),len=t.length>>>0,i=0;i<len;i++)i in t&&fun.call(thisArg,t[i],i,t)}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(predicate){if(this==null)throw new TypeError('"this" is null or not defined');var o=Object(this),len=o.length>>>0;if(typeof predicate!="function")throw new TypeError("predicate must be a function");for(var thisArg=arguments[1],k=0;k<len;){var kValue=o[k];if(predicate.call(thisArg,kValue,k,o))return kValue;k++}},configurable:!0,writable:!0}),Object.keys||(Object.keys=(function(){var hasOwnProperty=Object.prototype.hasOwnProperty,hasDontEnumBug=!{toString:null}.propertyIsEnumerable("toString"),dontEnums=["toString","toLocaleStr
28ing","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;return function(obj){if(_typeof(obj)!=="object"&&(typeof obj!="function"||obj===null))throw new TypeError;var result=[],prop2,i;for(prop2 in obj)hasOwnProperty.call(obj,prop2)&&result.push(prop2);if(hasDontEnumBug)for(i=0;i<dontEnumsLength;i++)hasOwnProperty.call(obj,dontEnums[i])&&result.push(dontEnums[i]);return result}})()),typeof Object.assign!="function"&&(Object.assign=function(target){if(target==null)throw new TypeError("Cannot convert undefined or null to object");target=Object(target);for(var index=1;index<arguments.length;index++){var source=arguments[index];if(source!=null)for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/g,"")}),String.prototype.trimRight||(String.prototype.trimRight=function(){return this.replace(/\s+$/g,"")}),Number.isInteger=Number.isInteger||function(value){return typeof value=="number"&&isFinite(value)&&Math.floor(value)===value}})(typeof self!="undefined"&&self||typeof window!="undefined"&&window||typeof global!="undefined"&&global||Function('return typeof this === "object" && this.content')()||Function("return this")());var jsPDF2=(function(global2){function PubSub(context){if(_typeof(context)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var topics={};this.subscribe=function(topic,callback,once){if(once=once||!1,typeof topic!="string"||typeof callback!="function"||typeof once!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");topics.hasOwnProperty(topic)||(topics[topic]={});var token=Math.random().toString(35);return topics[topic][token]=[callback,!!once],token},this.unsubscribe=function(token){for(var topic in topics)if(topics[topic][token])return delete topics[topic][token],Object.keys(topics[topic]).length===0&&delete topics[topic],!0;return!1},this.publish=function(topic){if(topics.hasOwnProperty(topic)){var args=Array.prototype.slice.call(arguments,1),tokens=[];for(var token in topics[topic]){var sub=topics[topic][token];try{sub[0].apply(context,args)}catch(ex){global2.console&&console.error("jsPDF PubSub Error",ex.message,ex)}sub[1]&&tokens.push(token)}tokens.length&&tokens.forEach(this.unsubscribe)}},this.getTopics=function(){return topics}}function jsPDF3(orientation,unit,format,compressPdf){var options={},filters=[],userUnit=1;_typeof(orientation)==="object"&&(options=orientation,orientation=options.orientation,unit=options.unit||unit,format=options.format||format,compressPdf=options.compress||options.compressPdf||compressPdf,filters=options.filters||(compressPdf===!0?["FlateEncode"]:filters),userUnit=typeof options.userUnit=="number"?Math.abs(options.userUnit):1),unit=unit||"mm",orientation=(""+(orientation||"P")).toLowerCase();var putOnlyUsedFonts=options.putOnlyUsedFonts||!0,usedFonts={},API={internal:{},__private__:{}};API.__private__.PubSub=PubSub;var pdfVersion="1.3",getPdfVersion=API.__private__.getPdfVersion=function(){return pdfVersion},setPdfVersion=API.__private__.setPdfVersion=function(value){pdfVersion=value},pageFormats={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]},getPageFormats=API.__private__.getPageFormats=function(){return pageFormats},getPageFormat=API.__private__.getPageFormat=function(value){return pageFormats[value]};typeof format=="string"&&(format=getPageFormat(format)),format=format||getPageFormat("a4");var f2=API.f2=API.__private__.f2=function(number){if(isNaN(number))throw new Error("Invalid argument passed to 
28jsPDF.f2");return number.toFixed(2)},f3=API.__private__.f3=function(number){if(isNaN(number))throw new Error("Invalid argument passed to jsPDF.f3");return number.toFixed(3)},fileId="00000000000000000000000000000000",getFileId=API.__private__.getFileId=function(){return fileId},setFileId=API.__private__.setFileId=function(value){return value=value||"12345678901234567890123456789012".split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(Math.random()*16))}).join(""),fileId=value,fileId};API.setFileId=function(value){return setFileId(value),this},API.getFileId=function(){return getFileId()};var creationDate,convertDateToPDFDate=API.__private__.convertDateToPDFDate=function(parmDate){var result="",tzoffset=parmDate.getTimezoneOffset(),tzsign=tzoffset<0?"+":"-",tzhour=Math.floor(Math.abs(tzoffset/60)),tzmin=Math.abs(tzoffset%60),timeZoneString=[tzsign,padd2(tzhour),"'",padd2(tzmin),"'"].join("");return result=["D:",parmDate.getFullYear(),padd2(parmDate.getMonth()+1),padd2(parmDate.getDate()),padd2(parmDate.getHours()),padd2(parmDate.getMinutes()),padd2(parmDate.getSeconds()),timeZoneString].join(""),result},convertPDFDateToDate=API.__private__.convertPDFDateToDate=function(parmPDFDate){var year=parseInt(parmPDFDate.substr(2,4),10),month=parseInt(parmPDFDate.substr(6,2),10)-1,date=parseInt(parmPDFDate.substr(8,2),10),hour=parseInt(parmPDFDate.substr(10,2),10),minutes=parseInt(parmPDFDate.substr(12,2),10),seconds=parseInt(parmPDFDate.substr(14,2),10),timeZoneHour=parseInt(parmPDFDate.substr(16,2),10),timeZoneMinutes=parseInt(parmPDFDate.substr(20,2),10),resultingDate=new Date(year,month,date,hour,minutes,seconds,0);return resultingDate},setCreationDate=API.__private__.setCreationDate=function(date){var tmpCreationDateString,regexPDFCreationDate=/^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])\'?$/;if(typeof date=="undefined"&&(date=new Date),_typeof(date)==="object"&&Object.prototype.toString.call(date)==="[object Date]")tmpCreationDateString=convertDateToPDFDate(date);else if(regexPDFCreationDate.test(date))tmpCreationDateString=date;else throw new Error("Invalid argument passed to jsPDF.setCreationDate");return creationDate=tmpCreationDateString,creationDate},getCreationDate=API.__private__.getCreationDate=function(type){var result=creationDate;return type==="jsDate"&&(result=convertPDFDateToDate(creationDate)),result};API.setCreationDate=function(date){return setCreationDate(date),this},API.getCreationDate=function(type){return getCreationDate(type)};var padd2=API.__private__.padd2=function(number){return("0"+parseInt(number)).slice(-2)},outToPages=!1,pages=[],content=[],currentPage,content_length=0,customOutputDestination,setOutputDestination=API.__private__.setCustomOutputDestination=function(destination){customOutputDestination=destination},resetOutputDestination=API.__private__.resetCustomOutputDestination=function(destination){customOutputDestination=void 0},out=API.__private__.out=function(string){var writeArray;return string=typeof string=="string"?string:string.toString(),typeof customOutputDestination=="undefined"?writeArray=outToPages?pages[currentPage]:content:writeArray=customOutputDestination,writeArray.push(string),outToPages||(content_length+=string.length+1),writeArray},write=API.__private__.write=function(value){return out(arguments.length===1?value.toString():Array.prototype.join.call(arguments," "))},getArrayBuffer=API.__private__.getArrayBuffer=function(data){for(var len=data.length,ab=new ArrayBuffer(len),u8=new Uint8Array(ab);len--;)u8[len]=data.charCodeAt(len);return ab},standardFonts=[["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]],getStandardFonts=API.__private__.getStandardFonts=function(data){return standardFonts},activeFontSize=options.fontSize||16,setFontSize=API.__private__.setFontSize=API.setFontSize=function(size){return activeFontSize=size,this},getFontSize=API.__private__.getFontSize=API.getFontSize=function(){return activeFontSize},R2L=options.R2L||!1,setR2L=API.__private__.setR2L=API.setR2L=function(value){return R2L=value,this},getR2L=API.__private__.getR2L=API.getR2L=function(value){return R2L},zoomMode,setZoomMode=API.__private__.setZoomMode=function(zoom){var validZoomModes=[void 0,null,"fullwidth","fullheight","fullpage","original"];
28if(/^\d*\.?\d*\%$/.test(zoom))zoomMode=zoom;else if(!isNaN(zoom))zoomMode=parseInt(zoom,10);else if(validZoomModes.indexOf(zoom)!==-1)zoomMode=zoom;else throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+zoom+'" is not recognized.')},getZoomMode=API.__private__.getZoomMode=function(){return zoomMode},pageMode,setPageMode=API.__private__.setPageMode=function(pmode){var validPageModes=[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"];if(validPageModes.indexOf(pmode)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+pmode+'" is not recognized.');pageMode=pmode},getPageMode=API.__private__.getPageMode=function(){return pageMode},layoutMode,setLayoutMode=API.__private__.setLayoutMode=function(layout){var validLayoutModes=[void 0,null,"continuous","single","twoleft","tworight","two"];if(validLayoutModes.indexOf(layout)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+layout+'" is not recognized.');layoutMode=layout},getLayoutMode=API.__private__.getLayoutMode=function(){return layoutMode},setDisplayMode=API.__private__.setDisplayMode=API.setDisplayMode=function(zoom,layout,pmode){return setZoomMode(zoom),setLayoutMode(layout),setPageMode(pmode),this},documentProperties={title:"",subject:"",author:"",keywords:"",creator:""},getDocumentProperty=API.__private__.getDocumentProperty=function(key){if(Object.keys(documentProperties).indexOf(key)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return documentProperties[key]},getDocumentProperties=API.__private__.getDocumentProperties=function(properties){return documentProperties},setDocumentProperties=API.__private__.setDocumentProperties=API.setProperties=API.setDocumentProperties=function(properties){for(var property in documentProperties)documentProperties.hasOwnProperty(property)&&properties[property]&&(documentProperties[property]=properties[property]);return this},setDocumentProperty=API.__private__.setDocumentProperty=function(key,value){if(Object.keys(documentProperties).indexOf(key)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return documentProperties[key]=value},objectNumber=0,offsets=[],fonts={},fontmap={},activeFontKey,k,page=0,pagesContext=[],additionalObjects=[],events=new PubSub(API),hotfixes=options.hotfixes||[],newObject=API.__private__.newObject=function(){var oid=newObjectDeferred();return newObjectDeferredBegin(oid,!0),oid},newObjectDeferred=API.__private__.newObjectDeferred=function(){return objectNumber++,offsets[objectNumber]=function(){return content_length},objectNumber},newObjectDeferredBegin=function(oid,doOutput){return doOutput=typeof doOutput=="boolean"?doOutput:!1,offsets[oid]=content_length,doOutput&&out(oid+" 0 obj"),oid},newAdditionalObject=API.__private__.newAdditionalObject=function(){var objId=newObjectDeferred(),obj={objId:objId,content:""};return additionalObjects.push(obj),obj},rootDictionaryObjId=newObjectDeferred(),resourceDictionaryObjId=newObjectDeferred(),decodeColorString=API.__private__.decodeColorString=function(color){var colorEncoded=color.split(" ");if(colorEncoded.length===2&&(colorEncoded[1]==="g"||colorEncoded[1]==="G")){var floatVal=parseFloat(colorEncoded[0]);colorEncoded=[floatVal,floatVal,floatVal,"r"]}for(var colorAsRGB="#",i=0;i<3;i++)colorAsRGB+=("0"+Math.floor(parseFloat(colorEncoded[i])*255).toString(16)).slice(-2);return colorAsRGB},encodeColorString=API.__private__.encodeColorString=function(options2){var color;typeof options2=="string"&&(options2={ch1:options2});var ch1=options2.ch1,ch2=options2.ch2,ch3=options2.ch3,ch4=options2.ch4,precision=options2.precision,letterArray=options2.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof ch1=="string"&&ch1.charAt(0)!=="#"){var rgbColor=new RGBColor(ch1);if(rgbColor.ok)ch1=rgbColor.toHex();else if(!/^\d*\.?\d*$/.test(ch1))throw new Error('Invalid color "'+ch1+'" passed to jsPDF.encodeColorString.')}if(typeof ch1=="string"&&/^#[0-9A-Fa-f]{3}$/.test(ch1)&&(ch1="#"+ch1[1]+ch1[1]+ch1[2]+ch1[2]+ch1[3]+ch1[3]),typeof ch1=="string"&&/^#[0-9A-Fa-f]{6}$/.test(ch1)){var hex=parseInt(ch1.substr(1),16);ch1=hex>>16&255,ch2=hex>>8&255,ch3=hex&255}if(typeof ch2=="undefined"||typeof ch4=="undefined"&&ch1===ch2&&ch2===ch3)typeof ch1=="string"?color=ch1+" "+letterArray[0]:options2.precision===2?color=f2(ch1/255)+" "+letterArray[0]:color=f3(ch1/255)+" "+letterArray[0];else if(typeof ch4=="undefined"||_typeof(ch4)==="object"){if(ch4&&!isNaN(ch4.a)&&ch4.a===0)return color=["1.000","1.000","1.000",letterArray[1]].join(" "),color;if(typeof ch1=="string")color=[ch1,ch2,ch3,letterArray[1]].join(" ");else switch(options2.precision){case 2:color=[f2(ch1/255),f2(ch2/255),f2(ch3/255),letterArray[1]].join(" ");break;default:case 3:color=[f3(ch1/255),f3(ch2/255),f3(ch3/255),letterArray[1]].join(" ")}}else typeof ch1=="string"?color=[ch1,ch2,ch3,ch4,letterArray[2]].join(" "):options2.precision===2?color=[f2(ch1/255),f2(ch2/255),f2(ch3/255),f2(ch4/255),letterArray[2]].join(" "):color=[f3(ch1/255),f3(ch2/255),f3(ch3/255),f3(ch4/255),letterArray[2]].join(" ");return color},getFilters=API.__private__.getFilters=function(){return filters},putStream=API.__private__.putStream=function(options2){options2=options2||{};var data=options2.data||"",filters2=options2.filters||getFilters(),alreadyAppliedFilters=options2.alreadyAppliedFilters||[],addLength1=options2.addLength1||!1,valueOfLength1=data.length,processedData={};filters2===!0&&(filters2=["FlateEncode"]);var keyValues=options2.additionalKeyValues||[];typeof jsPDF3.API.processDataByFilters!="undefined"?processedData=jsPDF3.API.processDataByFilters(data,filters2):processedData={data:data,reverseChain:[]};var filterAsString=processedData.reverseChain+(Array.isArray(alreadyAppliedFilters)?alreadyAppliedFilters.join(" "):alreadyAppliedFilters.toString());processedData.data.length!==0&&(keyValues.push({key:"Length",value:processedData.data.length}),addLength1===!0&&keyValues.push({key:"Length1",value:valueOfLength1})),filterAsString.length!=0&&(filterAsString.split("/").length-1===1?keyValues.push({key:"Filter",value:filterAsString}):keyValues.push({key:"Filter",value:"["+filterAsString+"]"})),out("<<");for(var i=0;i<keyValues.length;i++)out("/"+keyValues[i].key+" "+keyValues[i].value);out(">>"),processedData.data.length!==0&&(out("stream"),out(processedData.data),out("endstream"))},putPage=API.__private__.putPage=function(page2){var mediaBox=page2.mediaBox,pageNumber=page2.number,data=page2.data,pageObjectNumber=page2.objId,pageContentsObjId=page2.contentsObjId;newObjectDeferredBegin(pageObjectNumber,!0);var wPt=pagesContext[currentPage].mediaBox.topRightX-pagesContext[currentPage].mediaBox.bottomLeftX,hPt=pagesContext[currentPage].mediaBox.topRightY-pagesContext[currentPage].mediaBox.bottomLeftY;out("<</Type /Page"),out("/Parent "+page2.rootDictionaryObjId+" 0 R"),out("/Resources "+page2.resourceDictionaryObjId+" 0 R"),out("/MediaBox ["+parseFloat(f2(page2.mediaBox.bottomLeftX))+" "+parseFloat(f2(page2.mediaBox.bottomLeftY))+" "+f2(page2.mediaBox.topRightX)+" "+f2(page2.mediaBox.topRightY)+"]"),page2.cropBox!==null&&out("/CropBox ["+f2(page2.cropBox.bottomLeftX)+" "+f2(page2.cropBox.bottomLeftY)+" "+f2(page2.cropBox.topRightX)+" "+f2(page2.cropBox.topRightY)+"]"),page2.bleedBox!==null&&out("/BleedBox ["+f2(page2.bleedBox.bottomLeftX)+" "+f2(page2.bleedBox.bottomLeftY)+" "+f2(page2.bleedBox.topRightX)+" "+f2(page2.bleedBox.topRightY)+"]"),page2.trimBox!==null&&out("/TrimBox ["+f2(page2.trimBox.bottomLeftX)+" "+f2(page2.trimBox.bottomLeftY)+" "+f2(page2.trimBox.topRightX)+" "+f2(page2.trimBox.topRightY)+"]"),page2.artBox!==null&&out("/ArtBox ["+f2(page2.artBox.bottomLeftX)+" "+f2(page2.artBox.bottomLeftY)+" "+f2(page2.artBox.topRightX)+" "+f2(page2.artBox.topRightY)+"]"),typeof page2.userUnit=="number"&&page2.userUnit!==1&&out("/UserUnit "+page2.userUnit),events.publish("putPage",{objId:pageObjectNumber,pageContext:pagesContext[pageNumber],pageNumber:pageNumber,page:data}),out("/Contents "+pageContentsObjId+" 0 R"),out(">>"),out("endobj");var pageContent=data.join("\n");return newObjectDeferredBegin(pageContentsObjId,!0),putStream({data:pageContent,filters:getFilters()}),out("endobj"),pageObjectNumber},putPages=API.__private__.putPages=function(){var n,i,pageObjectNumbers=[];for(n=1;n<=page;n++)pagesContext[n].objId=newObjectDeferred(),pagesContext[n].contentsObjId=newObjectDeferred();for(n=1;n<=page;n++)pageObjectNumbers.push(putPage({number:n,data:pages[n],objId:pagesContext[n].objId,contentsObjId:pagesContext[n].contentsObjId,mediaBox:p
28agesContext[n].mediaBox,cropBox:pagesContext[n].cropBox,bleedBox:pagesContext[n].bleedBox,trimBox:pagesContext[n].trimBox,artBox:pagesContext[n].artBox,userUnit:pagesContext[n].userUnit,rootDictionaryObjId:rootDictionaryObjId,resourceDictionaryObjId:resourceDictionaryObjId}));newObjectDeferredBegin(rootDictionaryObjId,!0),out("<</Type /Pages");var kids="/Kids [";for(i=0;i<page;i++)kids+=pageObjectNumbers[i]+" 0 R ";out(kids+"]"),out("/Count "+page),out(">>"),out("endobj"),events.publish("postPutPages")},putFont=function(font){events.publish("putFont",{font:font,out:out,newObject:newObject,putStream:putStream}),font.isAlreadyPutted!==!0&&(font.objectNumber=newObject(),out("<<"),out("/Type /Font"),out("/BaseFont /"+font.postScriptName),out("/Subtype /Type1"),typeof font.encoding=="string"&&out("/Encoding /"+font.encoding),out("/FirstChar 32"),out("/LastChar 255"),out(">>"),out("endobj"))},putFonts=function(){for(var fontKey in fonts)fonts.hasOwnProperty(fontKey)&&(putOnlyUsedFonts===!1||putOnlyUsedFonts===!0&&usedFonts.hasOwnProperty(fontKey))&&putFont(fonts[fontKey])},putResourceDictionary=function(){out("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),out("/Font <<");for(var fontKey in fonts)fonts.hasOwnProperty(fontKey)&&(putOnlyUsedFonts===!1||putOnlyUsedFonts===!0&&usedFonts.hasOwnProperty(fontKey))&&out("/"+fontKey+" "+fonts[fontKey].objectNumber+" 0 R");out(">>"),out("/XObject <<"),events.publish("putXobjectDict"),out(">>")},putResources=function(){putFonts(),events.publish("putResources"),newObjectDeferredBegin(resourceDictionaryObjId,!0),out("<<"),putResourceDictionary(),out(">>"),out("endobj"),events.publish("postPutResources")},putAdditionalObjects=function(){events.publish("putAdditionalObjects");for(var i=0;i<additionalObjects.length;i++){var obj=additionalObjects[i];newObjectDeferredBegin(obj.objId,!0),out(obj.content),out("endobj")}events.publish("postPutAdditionalObjects")},addToFontDictionary=function(fontKey,fontName,fontStyle){fontmap.hasOwnProperty(fontName)||(fontmap[fontName]={}),fontmap[fontName][fontStyle]=fontKey},addFont=function(postScriptName,fontName,fontStyle,encoding,isStandardFont){isStandardFont=isStandardFont||!1;var fontKey="F"+(Object.keys(fonts).length+1).toString(10),font={id:fontKey,postScriptName:postScriptName,fontName:fontName,fontStyle:fontStyle,encoding:encoding,isStandardFont:isStandardFont,metadata:{}},instance=this;return events.publish("addFont",{font:font,instance:instance}),fontKey!==void 0&&(fonts[fontKey]=font,addToFontDictionary(fontKey,fontName,fontStyle)),fontKey},addFonts=function(arrayOfFonts){for(var i=0,l=standardFonts.length;i<l;i++){var fontKey=addFont(arrayOfFonts[i][0],arrayOfFonts[i][1],arrayOfFonts[i][2],standardFonts[i][3],!0);usedFonts[fontKey]=!0;var parts=arrayOfFonts[i][0].split("-");addToFontDictionary(fontKey,parts[0],parts[1]||"")}events.publish("addFonts",{fonts:fonts,dictionary:fontmap})},SAFE=function(fn){return fn.foo=function(){try{return fn.apply(this,arguments)}catch(e){var stack=e.stack||"";~stack.indexOf(" at ")&&(stack=stack.split(" at ")[1]);var m="Error in function "+stack.split("\n")[0].split("<")[0]+": "+e.message;if(global2.console)global2.console.error(m,e),global2.alert&&alert(m);else throw new Error(m)}},fn.foo.bar=fn,fn.foo},to8bitStream=function(text2,flags){var i,l,sourceEncoding,encodingBlock,outputEncoding,newtext,isUnicode,ch,bch;if(flags=flags||{},sourceEncoding=flags.sourceEncoding||"Unicode",outputEncoding=flags.outputEncoding,(flags.autoencode||outputEncoding)&&fonts[activeFontKey].metadata&&fonts[activeFontKey].metadata[sourceEncoding]&&fonts[activeFontKey].metadata[sourceEncoding].encoding&&(encodingBlock=fonts[activeFontKey].metadata[sourceEncoding].encoding,!outputEncoding&&fonts[activeFontKey].encoding&&(outputEncoding=fonts[activeFontKey].encoding),!outputEncoding&&encodingBlock.codePages&&(outputEncoding=encodingBlock.codePages[0]),typeof outputEncoding=="string"&&(outputEncoding=encodingBlock[outputEncoding]),outputEncoding)){for(isUnicode=!1,newtext=[],i=0,l=text2.length;i<l;i++)ch=outputEncoding[text2.charCodeAt(i)],ch?newtext.push(String.fromCharCode(ch)):newtext.push(text2[i]),newtext[i].charCo
28deAt(0)>>8&&(isUnicode=!0);text2=newtext.join("")}for(i=text2.length;isUnicode===void 0&&i!==0;)text2.charCodeAt(i-1)>>8&&(isUnicode=!0),i--;if(!isUnicode)return text2;for(newtext=flags.noBOM?[]:[254,255],i=0,l=text2.length;i<l;i++){if(ch=text2.charCodeAt(i),bch=ch>>8,bch>>8)throw new Error("Character at position "+i+" of string '"+text2+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");newtext.push(bch),newtext.push(ch-(bch<<8))}return String.fromCharCode.apply(void 0,newtext)},pdfEscape=API.__private__.pdfEscape=API.pdfEscape=function(text2,flags){return to8bitStream(text2,flags).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},beginPage=API.__private__.beginPage=function(width,height){var tmp,orientation2=typeof height=="string"&&height.toLowerCase();if(typeof width=="string"&&(tmp=getPageFormat(width.toLowerCase()))&&(width=tmp[0],height=tmp[1]),Array.isArray(width)&&(height=width[1],width=width[0]),(isNaN(width)||isNaN(height))&&(width=format[0],height=format[1]),orientation2){switch(orientation2.substr(0,1)){case"l":height>width&&(orientation2="s");break;case"p":width>height&&(orientation2="s");break}orientation2==="s"&&(tmp=width,width=height,height=tmp)}(width>14400||height>14400)&&(console.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),width=Math.min(14400,width),height=Math.min(14400,height)),format=[width,height],outToPages=!0,pages[++page]=[],pagesContext[page]={objId:0,contentsObjId:0,userUnit:Number(userUnit),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(width),topRightY:Number(height)}},_setPage(page)},_addPage=function(){beginPage.apply(this,arguments),setLineWidth(lineWidth),out(strokeColor),lineCapID!==0&&out(lineCapID+" J"),lineJoinID!==0&&out(lineJoinID+" j"),events.publish("addPage",{pageNumber:page})},_deletePage=function(n){n>0&&n<=page&&(pages.splice(n,1),page--,currentPage>page&&(currentPage=page),this.setPage(currentPage))},_setPage=function(n){n>0&&n<=page&&(currentPage=n)},getNumberOfPages=API.__private__.getNumberOfPages=API.getNumberOfPages=function(){return pages.length-1},_getFont=function(fontName,fontStyle,options2){var key=void 0,fontNameLowerCase;return options2=options2||{},fontName=fontName!==void 0?fontName:fonts[activeFontKey].fontName,fontStyle=fontStyle!==void 0?fontStyle:fonts[activeFontKey].fontStyle,fontNameLowerCase=fontName.toLowerCase(),fontmap[fontNameLowerCase]!==void 0&&fontmap[fontNameLowerCase][fontStyle]!==void 0?key=fontmap[fontNameLowerCase][fontStyle]:fontmap[fontName]!==void 0&&fontmap[fontName][fontStyle]!==void 0?key=fontmap[fontName][fontStyle]:options2.disableWarning===!1&&console.warn("Unable to look up font label for font '"+fontName+"', '"+fontStyle+"'. Refer to getFontList() for available fonts."),!key&&!options2.noFallback&&(key=fontmap.times[fontStyle],key==null&&(key=fontmap.times.normal)),key},putInfo=API.__private__.putInfo=function(){newObject(),out("<<"),out("/Producer (jsPDF "+jsPDF3.version+")");for(var key in documentProperties)documentProperties.hasOwnProperty(key)&&documentProperties[key]&&out("/"+key.substr(0,1).toUpperCase()+key.substr(1)+" ("+pdfEscape(documentProperties[key])+")");out("/CreationDate ("+creationDate+")"),out(">>"),out("endobj")},putCatalog=API.__private__.putCatalog=function(options2){options2=options2||{};var tmpRootDictionaryObjId=options2.rootDictionaryObjId||rootDictionaryObjId;switch(newObject(),out("<<"),out("/Type /Catalog"),out("/Pages "+tmpRootDictionaryObjId+" 0 R"),zoomMode||(zoomMode="fullwidth"),zoomMode){case"fullwidth":out("/OpenAction [3 0 R /FitH null]");break;case"fullheight":out("/OpenAction [3 0 R /FitV null]");break;case"fullpage":out("/OpenAction [3 0 R /Fit]");break;case"original":out("/OpenAction [3 0 R /XYZ null null 1]");break;default:var pcn=""+zoomMode;pcn.substr(pcn.length-1)==="%"&&(zoomMode=parseInt(zoomMode)/100),typeof zoomMode=="number"&&out("/OpenAction [3 0 R /XYZ null null "+f2(zoomMode)+"]")}switch(layoutMode||(layoutMode="continuous"),layoutMode){case"continuous":out("/PageLayout /OneColumn");break;case"single":out("/PageLayout /SinglePage");break;case"two":case"twoleft":out("/PageLayout /TwoColumnLeft");break;case"tworight":out("/PageLayout /TwoColumnRight");break}pageMode&&out("/PageMode /"+pageMode),events.publish("putCatalog"),out(">>"),out("endobj")},putTrailer=API.__private__.putTrailer=function(){out("trailer"),out("<<"),out("/Size "+(objectNumber+1)),out("/Root "+objectNumber+" 0 R"),out("/Info "+(objectNumber-1)+" 0 R"),out("/ID [ <"+fileId+"> <"+fileId+"> ]"),out(">>")},putHeader=API.__private__.putHeader=function(){out("%PDF-"+pdfVersion),out("%\xBA\xDF\xAC\xE0")},putXRef=API.__private__.putXRef=function(){var i=1,p="0000000000";for(out("xref"),out("0 "+(objectNumber+1)),out("0000000000 65535 f "),i=1;i<=objectNumber;i++){var offset=offsets[i];typeof offset=="function"?out((p+offsets[i]()).slice(-10)+" 00000 n "):typeof offsets[i]!="undefined"?out((p+offsets[i]).slice(-10)+" 00000 n "):out("0000000000 00000 n ")}},buildDocument=API.__private__.buildDocument=function(){outToPages=!1,objectNumber=0,content_length=0,content=[],offsets=[],additionalObjects=[],rootDictionaryObjId=newObjectDeferred(),resourceDictionaryObjId=newObjectDeferred(),events.publish("buildDocument"),putHeader(),putPages(),putAdditionalObjects(),putResources(),putInfo(),putCatalog();var offsetOfXRef=content_length;return putXRef(),putTrailer(),out("startxref"),out(""+offsetOfXRef),out("%%EOF"),outToPages=!0,content.join("\n")},getBlob=API.__private__.getBlob=function(data){return new Blob([getArrayBuffer(data)],{type:"application/pdf"})},output=API.output=API.__private__.output=SAFE(function(type,options2){options2=options2||{};var pdfDocument=buildDocument();switch(typeof options2=="string"?options2={filename:options2}:options2.filename=options2.filename||"generated.pdf",type){case void 0:return pdfDocument;case"save":API.save(options2.filename);break;case"arraybuffer":return getArrayBuffer(pdfDocument);case"blob":return getBlob(pdfDocument);case"bloburi":case"bloburl":if(typeof global2.URL!="undefined"&&typeof global2.URL.createObjectURL=="function")return global2.URL&&global2.URL.createObjectURL(getBlob(pdfDocument))||void 0;console.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":return"data:application/pdf;filename="+options2.filename+";base64,"+btoa(pdfDocument);case"dataurlnewwindow":var htmlForNewWindow='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring")+'"></iframe></body></html>',nW=global2.open();if(nW!==null&&nW.document.write(htmlForNewWindow),nW||typeof safari=="undefined")return nW;case"datauri":case"dataurl":return global2.document.location.href="data:application/pdf;filename="+options2.filename+";base64,"+btoa(pdfDocument);default:return null}}
28),hasHotfix=function(hotfixName){return Array.isArray(hotfixes)===!0&&hotfixes.indexOf(hotfixName)>-1};switch(unit){case"pt":k=1;break;case"mm":k=72/25.4;break;case"cm":k=72/2.54;break;case"in":k=72;break;case"px":hasHotfix("px_scaling")==!0?k=72/96:k=96/72;break;case"pc":k=12;break;case"em":k=12;break;case"ex":k=6;break;default:throw new Error("Invalid unit: "+unit)}setCreationDate(),setFileId();var getPageInfo=API.__private__.getPageInfo=function(pageNumberOneBased){if(isNaN(pageNumberOneBased)||pageNumberOneBased%1!==0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");var objId=pagesContext[pageNumberOneBased].objId;return{objId:objId,pageNumber:pageNumberOneBased,pageContext:pagesContext[pageNumberOneBased]}},getPageInfoByObjId=API.__private__.getPageInfoByObjId=function(objId){for(var pageNumber in pagesContext)if(pagesContext[pageNumber].objId===objId)break;if(isNaN(objId)||objId%1!==0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");return getPageInfo(pageNumber)},getCurrentPageInfo=API.__private__.getCurrentPageInfo=function(){return{objId:pagesContext[currentPage].objId,pageNumber:currentPage,pageContext:pagesContext[currentPage]}};API.addPage=function(){return _addPage.apply(this,arguments),this},API.setPage=function(){return _setPage.apply(this,arguments),this},API.insertPage=function(beforePage){return this.addPage(),this.movePage(currentPage,beforePage),this},API.movePage=function(targetPage,beforePage){if(targetPage>beforePage){for(var tmpPages=pages[targetPage],tmpPagesContext=pagesContext[targetPage],i=targetPage;i>beforePage;i--)pages[i]=pages[i-1],pagesContext[i]=pagesContext[i-1];pages[beforePage]=tmpPages,pagesContext[beforePage]=tmpPagesContext,this.setPage(beforePage)}else if(targetPage<beforePage){for(var tmpPages=pages[targetPage],tmpPagesContext=pagesContext[targetPage],i=targetPage;i<beforePage;i++)pages[i]=pages[i+1],pagesContext[i]=pagesContext[i+1];pages[beforePage]=tmpPages,pagesContext[beforePage]=tmpPagesContext,this.setPage(beforePage)}return this},API.deletePage=function(){return _deletePage.apply(this,arguments),this};var text=API.__private__.text=API.text=function(text2,x,y,options2){var tmp;typeof text2=="number"&&typeof x=="number"&&(typeof y=="string"||Array.isArray(y))&&(tmp=y,y=x,x=text2,text2=tmp);var flags=arguments[3],angle=arguments[4],align=arguments[5];if((_typeof(flags)!=="object"||flags===null)&&(typeof angle=="string"&&(align=angle,angle=null),typeof flags=="string"&&(align=flags,flags=null),typeof flags=="number"&&(angle=flags,flags=null),options2={flags:flags,angle:angle,align:align}),flags=flags||{},flags.noBOM=flags.noBOM||!0,flags.autoencode=flags.autoencode||!0,isNaN(x)||isNaN(y)||typeof text2=="undefined"||text2===null)throw new Error("Invalid arguments passed to jsPDF.text");if(text2.length===0)return scope;var xtra="",isHex=!1,lineHeight=typeof options2.lineHeightFactor=="number"?options2.lineHeightFactor:lineHeightFactor,scope=options2.scope||this;function ESC(s2){return s2=s2.split("	").join(Array(options2.TabLen||9).join(" ")),pdfEscape(s2,flags)}function transformTextToSpecialArray(text3){for(var sa2=text3.concat(),da2=[],len2=sa2.length,curDa2;len2--;)curDa2=sa2.shift(),typeof curDa2=="string"?da2.push(curDa2):Array.isArray(text3)&&curDa2.length===1?da2.push(curDa2[0]):da2.push([curDa2[0],curDa2[1],curDa2[2]]);return da2}function processTextByFunction(text3,processingFunction){var result2;if(typeof text3=="string")result2=processingFunction(text3)[0];else if(Array.isArray(text3)){for(var sa2=text3.concat(),da2=[],len2=sa2.length,curDa2,tmpResult;len2--;)curDa2=sa2.shift(),typeof curDa2=="string"?da2.push(processingFunction(curDa2)[0]):Array.isArray(curDa2)&&curDa2[0]==="string"&&(tmpResult=processingFunction(curDa2[0],curDa2[1],curDa2[2]),da2.push([tmpResult[0],tmpResult[1],tmpResult[2]]));result2=da2}return result2}var textIsOfTypeString=!1,tmpTextIsOfTypeString=!0;if(typeof text2=="string")textIsOfTypeString=!0;else if(Array.isArray(text2)){for(var sa=text2.concat(),da=[],len=sa.length,curDa;len--;
28)curDa=sa.shift(),(typeof curDa!="string"||Array.isArray(curDa)&&typeof curDa[0]!="string")&&(tmpTextIsOfTypeString=!1);textIsOfTypeString=tmpTextIsOfTypeString}if(textIsOfTypeString===!1)throw new Error('Type of text must be string or Array. "'+text2+'" is not recognized.');var activeFontEncoding=fonts[activeFontKey].encoding;(activeFontEncoding==="WinAnsiEncoding"||activeFontEncoding==="StandardEncoding")&&(text2=processTextByFunction(text2,function(text3,posX2,posY2){return[ESC(text3),posX2,posY2]})),typeof text2=="string"&&(text2.match(/[\r?\n]/)?text2=text2.split(/\r\n|\r|\n/g):text2=[text2]);var height=activeFontSize/scope.internal.scaleFactor,descent=height*(lineHeightFactor-1);switch(options2.baseline){case"bottom":y-=descent;break;case"top":y+=height-descent;break;case"hanging":y+=height-2*descent;break;case"middle":y+=height/2-descent;break;default:break}var maxWidth=options2.maxWidth||0;maxWidth>0&&(typeof text2=="string"?text2=scope.splitTextToSize(text2,maxWidth):Object.prototype.toString.call(text2)==="[object Array]"&&(text2=scope.splitTextToSize(text2.join(" "),maxWidth)));var payload={text:text2,x:x,y:y,options:options2,mutex:{pdfEscape:pdfEscape,activeFontKey:activeFontKey,fonts:fonts,activeFontSize:activeFontSize}};events.publish("preProcessText",payload),text2=payload.text,options2=payload.options;var angle=options2.angle,k2=scope.internal.scaleFactor,transformationMatrix=[];if(angle){angle*=Math.PI/180;var c=Math.cos(angle),s=Math.sin(angle);transformationMatrix=[f2(c),f2(s),f2(s*-1),f2(c)]}var charSpace=options2.charSpace;typeof charSpace!="undefined"&&(xtra+=f3(charSpace*k2)+" Tc\n");var lang=options2.lang,tmpRenderingMode=-1,parmRenderingMode=typeof options2.renderingMode!="undefined"?options2.renderingMode:options2.stroke,pageContext=scope.internal.getCurrentPageInfo().pageContext;switch(parmRenderingMode){case 0:case!1:case"fill":tmpRenderingMode=0;break;case 1:case!0:case"stroke":tmpRenderingMode=1;break;case 2:case"fillThenStroke":tmpRenderingMode=2;break;case 3:case"invisible":tmpRenderingMode=3;break;case 4:case"fillAndAddForClipping":tmpRenderingMode=4;break;case 5:case"strokeAndAddPathForClipping":tmpRenderingMode=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":tmpRenderingMode=6;break;case 7:case"addToPathForClipping":tmpRenderingMode=7;break}var usedRenderingMode=typeof pageContext.usedRenderingMode!="undefined"?pageContext.usedRenderingMode:-1;tmpRenderingMode!==-1?xtra+=tmpRenderingMode+" Tr\n":usedRenderingMode!==-1&&(xtra+="0 Tr\n"),tmpRenderingMode!==-1&&(pageContext.usedRenderingMode=tmpRenderingMode);var align=options2.align||"left",leading=activeFontSize*lineHeight,pageWidth=scope.internal.pageSize.getWidth(),k2=scope.internal.scaleFactor,activeFont=fonts[activeFontKey],charSpace=options2.charSpace||activeCharSpace,maxWidth=options2.maxWidth||0,lineWidths,flags={},wordSpacingPerLine=[];if(Object.prototype.toString.call(text2)==="[object Array]"){var da=transformTextToSpecialArray(text2),newY,maxLineLength,lineWidths;align!=="left"&&(lineWidths=da.map(function(v){return scope.getStringUnitWidth(v,{font:activeFont,charSpace:charSpace,fontSize:activeFontSize})*activeFontSize/k2}));var maxLineLength=Math.max.apply(Math,lineWidths),prevWidth=0,delta,newX;if(align==="right"){x-=lineWidths[0],text2=[];for(var i=0,len=da.length;i<len;i++)delta=maxLineLength-lineWidths[i],i===0?(newX=getHorizontalCoordinate(x),newY=getVerticalCoordinate(y)):(newX=(prevWidth-lineWidths[i])*k2,newY=-leading),text2.push([da[i],newX,newY]),prevWidth=lineWidths[i]}else if(align==="center"){x-=lineWidths[0]/2,text2=[];for(var i=0,len=da.length;i<len;i++)delta=(maxLineLength-lineWidths[i])/2,i===0?(newX=getHorizontalCoordinate(x),newY=getVerticalCoordinate(y)):(newX=(prevWidth-lineWidths[i])/2*k2,newY=-leading),text2.push([da[i],newX,newY]),prevWidth=lineWidths[i]}else if(align==="left"){text2=[];for(var i=0,len=da.length;i<len;i++)newY=i===0?getVerticalCoordinate(y):-leading,newX=i===0?getHorizontalCoordinate(x):0,text2.push(da[i])}else if(align==="justify"){text2=[];for(var maxWidth=maxWidth!==0?maxWidth:pageWidth,i=0,len=da.length;i<len;i++)newY=i===0?getVerticalCoordinate(y):-leading,newX=i===0?getHorizontalCoordinate(x):0,i<len-1&&wordSpacingPerLine.push(((maxWidth-lineWidths[i])/(da[i].split(" ").length-1)*k2).toFixed(2)),text2.push([da[i],newX,newY])}else throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".')}var doReversing=typeof options2.R2L=="boolean"?options2.R2L:R2L;doReversing===!0&&(text2=processTextByFunction(text2,function(text3,posX2,posY2){return[text3.split("").reverse().join(""),posX2,posY2]}));var payload={text:text2,x:x,y:y,options:options2,mutex:{pdfEscape:pdfEscape,activeFontKey:activeFontKey,fonts:fonts,activeFontSize:activeFontSize}};events.publish("postProcessText",payload),text2=payload.text,isHex=payload.mutex.isHex;var da=transformTextToSpecialArray(text2);text2=[];for(var variant=0,len=da.length,posX,posY,content2,wordSpacing="",i=0;i<len;i++)wordSpacing="",Array.isArray(da[i])?(posX=parseFloat(da[i][1]),posY=parseFloat(da[i][2]),content2=(isHex?"<":"(")+da[i][0]+(isHex?">":")"),variant=1):(posX=getHorizontalCoordinate(x),posY=getVerticalCoordinate(y),content2=(isHex?"<":"(")+da[i]+(isHex?">":")")),wordSpacingPerLine!==void 0&&wordSpacingPerLine[i]!==void 0&&(wordSpacing=wordSpacingPerLine[i]+" Tw\n"),transformationMatrix.length!==0&&i===0?text2.push(wordSpacing+transformationMatrix.join(" ")+" "+posX.toFixed(2)+" "+posY.toFixed(2)+" Tm\n"+content2):variant===1||variant===0&&i===0?text2.push(wordSpacing+posX.toFixed(2)+" "+posY.toFixed(2)+" Td\n"+content2):text2.push(wordSpacing+content2);variant===0?text2=text2.join(" Tj\nT* "):text2=text2.join(" Tj\n"),text2+=" Tj\n";var result="BT\n/"+activeFontKey+" "+activeFontSize+" Tf\n"+(activeFontSize*lineHeight).toFixed(2)+" TL\n"+textColor+"\n";return result+=xtra,result+=text2,result+="ET",out(result),usedFonts[activeFontKey]=!0,scope},lstext=API.__private__.lstext=API.lstext=function(text2,x,y,charSpace){return console.warn("jsPDF.lstext is deprecated"),this.text(text2,x,y,{charSpace:charSpace})},clip=API.__private__.clip=API.clip=function(rule){out(rule==="evenodd"?"W*":"W"),out("n")}
28,clip_fixed=API.__private__.clip_fixed=API.clip_fixed=function(rule){console.log("clip_fixed is deprecated"),API.clip(rule)},isValidStyle=API.__private__.isValidStyle=function(style){var validStyleVariants=[void 0,null,"S","F","DF","FD","f","f*","B","B*"],result=!1;return validStyleVariants.indexOf(style)!==-1&&(result=!0),result},getStyle=API.__private__.getStyle=function(style){var op="S";return style==="F"?op="f":style==="FD"||style==="DF"?op="B":(style==="f"||style==="f*"||style==="B"||style==="B*")&&(op=style),op},line=API.__private__.line=API.line=function(x1,y1,x2,y2){if(isNaN(x1)||isNaN(y1)||isNaN(x2)||isNaN(y2))throw new Error("Invalid arguments passed to jsPDF.line");return this.lines([[x2-x1,y2-y1]],x1,y1)},lines=API.__private__.lines=API.lines=function(lines2,x,y,scale,style,closed){var scalex,scaley,i,l,leg,x2,y2,x3,y3,x4,y4,tmp;if(typeof lines2=="number"&&(tmp=y,y=x,x=lines2,lines2=tmp),scale=scale||[1,1],closed=closed||!1,isNaN(x)||isNaN(y)||!Array.isArray(lines2)||!Array.isArray(scale)||!isValidStyle(style)||typeof closed!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(out(f3(getHorizontalCoordinate(x))+" "+f3(getVerticalCoordinate(y))+" m "),scalex=scale[0],scaley=scale[1],l=lines2.length,x4=x,y4=y,i=0;i<l;i++)leg=lines2[i],leg.length===2?(x4=leg[0]*scalex+x4,y4=leg[1]*scaley+y4,out(f3(getHorizontalCoordinate(x4))+" "+f3(getVerticalCoordinate(y4))+" l")):(x2=leg[0]*scalex+x4,y2=leg[1]*scaley+y4,x3=leg[2]*scalex+x4,y3=leg[3]*scaley+y4,x4=leg[4]*scalex+x4,y4=leg[5]*scaley+y4,out(f3(getHorizontalCoordinate(x2))+" "+f3(getVerticalCoordinate(y2))+" "+f3(getHorizontalCoordinate(x3))+" "+f3(getVerticalCoordinate(y3))+" "+f3(getHorizontalCoordinate(x4))+" "+f3(getVerticalCoordinate(y4))+" c"));return closed&&out(" h"),style!==null&&out(getStyle(style)),this},rect=API.__private__.rect=API.rect=function(x,y,w,h,style){if(isNaN(x)||isNaN(y)||isNaN(w)||isNaN(h)||!isValidStyle(style))throw new Error("Invalid arguments passed to jsPDF.rect");return out([f2(getHorizontalCoordinate(x)),f2(getVerticalCoordinate(y)),f2(w*k),f2(-h*k),"re"].join(" ")),style!==null&&out(getStyle(style)),this},triangle=API.__private__.triangle=API.triangle=function(x1,y1,x2,y2,x3,y3,style){if(isNaN(x1)||isNaN(y1)||isNaN(x2)||isNaN(y2)||isNaN(x3)||isNaN(y3)||!isValidStyle(style))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[x2-x1,y2-y1],[x3-x2,y3-y2],[x1-x3,y1-y3]],x1,y1,[1,1],style,!0),this},roundedRect=API.__private__.roundedRect=API.roundedRect=function(x,y,w,h,rx,ry,style){if(isNaN(x)||isNaN(y)||isNaN(w)||isNaN(h)||isNaN(rx)||isNaN(ry)||!isValidStyle(style))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var MyArc=4/3*(Math.SQRT2-1);return this.lines([[w-2*rx,0],[rx*MyArc,0,rx,ry-ry*MyArc,rx,ry],[0,h-2*ry],[0,ry*MyArc,-(rx*MyArc),ry,-rx,ry],[-w+2*rx,0],[-(rx*MyArc),0,-rx,-(ry*MyArc),-rx,-ry],[0,-h+2*ry],[0,-(ry*MyArc),rx*MyArc,-ry,rx,-ry]],x+rx,y,[1,1],style),this},ellise=API.__private__.ellipse=API.ellipse=function(x,y,rx,ry,style){if(isNaN(x)||isNaN(y)||isNaN(rx)||isNaN(ry)||!isValidStyle(style))throw new Error("Invalid arguments passed to jsPDF.ellipse");var lx=4/3*(Math.SQRT2-1)*rx,ly=4/3*(Math.SQRT2-1)*ry;return out([f2(getHorizontalCoordinate(x+rx)),f2(getVerticalCoordinate(y)),"m",f2(getHorizontalCoordinate(x+rx)),f2(getVerticalCoordinate(y-ly)),f2(getHorizontalCoordinate(x+lx)),f2(getVerticalCoordinate(y-ry)),f2(getHorizontalCoordinate(x)),f2(getVerticalCoordinate(y-ry)),"c"].join(" ")),out([f2(getHorizontalCoordinate(x-lx)),f2(getVerticalCoordinate(y-ry)),f2(getHorizontalCoordinate(x-rx)),f2(getVerticalCoordinate(y-ly)),f2(getHorizontalCoordinate(x-rx)),f2(getVerticalCoordinate(y)),"c"].join(" ")),out([f2(getHorizontalCoordinate(x-rx)),f2(getVerticalCoordinate(y+ly)),f2(getHorizontalCoordinate(x-lx)),f2(getVerticalCoordinate(y+ry)),f2(getHorizontalCoordinate(x)),f2(getVerticalCoordinate(y+ry)),"c"].join(" ")),out([f2(getHorizontalCoordinate(x+lx)),f2(getVerticalCoordinate(y+ry)),f2(getHorizontalCoordinate(x+rx)),f2(getVerticalCoordinate(y+ly)),f2(getHorizontalCoordinate(x+rx)),f2(getVerticalCoordinate(y)),"c"].join(" ")),style!==null&&out(getStyle(style)),this},circle=API.__private__.circle=API.circle=function(x,y,r,style){if(isNaN(x)||isNaN(y)||isNaN(r)||!isValidStyle(style))throw new Error("Invalid arguments passed to 
28jsPDF.circle");return this.ellipse(x,y,r,r,style)};API.setFont=function(fontName,fontStyle){return activeFontKey=_getFont(fontName,fontStyle,{disableWarning:!1}),this},API.setFontStyle=API.setFontType=function(style){return activeFontKey=_getFont(void 0,style),this};var getFontList=API.__private__.getFontList=API.getFontList=function(){var list={},fontName,fontStyle,tmp;for(fontName in fontmap)if(fontmap.hasOwnProperty(fontName)){list[fontName]=tmp=[];for(fontStyle in fontmap[fontName])fontmap[fontName].hasOwnProperty(fontStyle)&&tmp.push(fontStyle)}return list};API.addFont=function(postScriptName,fontName,fontStyle,encoding){encoding=encoding||"Identity-H",addFont.call(this,postScriptName,fontName,fontStyle,encoding)};var lineWidth=options.lineWidth||.200025,setLineWidth=API.__private__.setLineWidth=API.setLineWidth=function(width){return out((width*k).toFixed(2)+" w"),this},setLineDash=API.__private__.setLineDash=jsPDF3.API.setLineDash=function(dashArray,dashPhase){if(dashArray=dashArray||[],dashPhase=dashPhase||0,isNaN(dashPhase)||!Array.isArray(dashArray))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return dashArray=dashArray.map(function(x){return(x*k).toFixed(3)}).join(" "),dashPhase=parseFloat((dashPhase*k).toFixed(3)),out("["+dashArray+"] "+dashPhase+" d"),this},lineHeightFactor,getLineHeight=API.__private__.getLineHeight=API.getLineHeight=function(){return activeFontSize*lineHeightFactor},lineHeightFactor,getLineHeight=API.__private__.getLineHeight=API.getLineHeight=function(){return activeFontSize*lineHeightFactor},setLineHeightFactor=API.__private__.setLineHeightFactor=API.setLineHeightFactor=function(value){return value=value||1.15,typeof value=="number"&&(lineHeightFactor=value),this},getLineHeightFactor=API.__private__.getLineHeightFactor=API.getLineHeightFactor=function(){return lineHeightFactor};setLineHeightFactor(options.lineHeight);var getHorizontalCoordinate=API.__private__.getHorizontalCoordinate=function(value){return value*k},getVerticalCoordinate=API.__private__.getVerticalCoordinate=function(value){return pagesContext[currentPage].mediaBox.topRightY-pagesContext[currentPage].mediaBox.bottomLeftY-value*k},getHorizontalCoordinateString=API.__private__.getHorizontalCoordinateString=function(value){return f2(value*k)},getVerticalCoordinateString=API.__private__.getVerticalCoordinateString=function(value){return f2(pagesContext[currentPage].mediaBox.topRightY-pagesContext[currentPage].mediaBox.bottomLeftY-value*k)},strokeColor=options.strokeColor||"0 G",getStrokeColor=API.__private__.getStrokeColor=API.getDrawColor=function(){return decodeColorString(strokeColor)},setStrokeColor=API.__private__.setStrokeColor=API.setDrawColor=function(ch1,ch2,ch3,ch4){var options2={ch1:ch1,ch2:ch2,ch3:ch3,ch4:ch4,pdfColorType:"draw",precision:2};return strokeColor=encodeColorString(options2),out(strokeColor),this},fillColor=options.fillColor||"0 g",getFillColor=API.__private__.getFillColor=API.getFillColor=function(){return decodeColorString(fillColor)},setFillColor=API.__private__.setFillColor=API.setFillColor=function(ch1,ch2,ch3,ch4){var options2={ch1:ch1,ch2:ch2,ch3:ch3,ch4:ch4,pdfColorType:"fill",precision:2};return fillColor=encodeColorString(options2),out(fillColor),this},textColor=options.textColor||"0 g",getTextColor=API.__private__.getTextColor=API.getTextColor=function(){return decodeColorString(textColor)},setTextColor=API.__private__.setTextColor=API.setTextColor=function(ch1,ch2,ch3,ch4){var options2={ch1:ch1,ch2:ch2,ch3:ch3,ch4:ch4,pdfColorType:"text",precision:3};return textColor=encodeColorString(options2),this},activeCharSpace=options.charSpace||0,getCharSpace=API.__private__.getCharSpace=API.getCharSpace=function(){return activeCharSpace},setCharSpace=API.__private__.setCharSpace=API.setCharSpace=function(charSpace){if(isNaN(charSpace))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return activeCharSpace=charSpace,this},lineCapID=0;API.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};var setLineCap=API.__private__.setLineCap=API.setLineCap=function(style){var id=API.CapJoinStyles[style];if(id===void 0)throw new Error("Line cap style of '"+style+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return lineCapID=id,out(id+" J"),this},lineJoinID=0,setLineJoin=API.__private__.setLineJoin=API.setLineJoin=function(style){var id=API.CapJoinStyles[style];if(id===void 0)throw new Error("Line join style of '"+style+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return lineJoinID=id,out(id+" j"),this},miterLimit,setMiterLimit=API.__private__.setMiterLimit=API.setMiterLimit=function(length){if(length=length||0,isNaN(length))throw new Error("Invalid argument passed to 
28jsPDF.setMiterLimit");return miterLimit=parseFloat(f2(length*k)),out(miterLimit+" M"),this};API.save=function(filename,options2){if(filename=filename||"generated.pdf",options2=options2||{},options2.returnPromise=options2.returnPromise||!1,options2.returnPromise===!1)saveAs(getBlob(buildDocument()),filename),typeof saveAs.unload=="function"&&global2.setTimeout&&setTimeout(saveAs.unload,911);else return new Promise(function(resolve,reject){try{var result=saveAs(getBlob(buildDocument()),filename);typeof saveAs.unload=="function"&&global2.setTimeout&&setTimeout(saveAs.unload,911),resolve(result)}catch(e){reject(e.message)}})};for(var plugin in jsPDF3.API)jsPDF3.API.hasOwnProperty(plugin)&&(plugin==="events"&&jsPDF3.API.events.length?(function(events2,newEvents){var eventname,handler_and_args,i;for(i=newEvents.length-1;i!==-1;i--)eventname=newEvents[i][0],handler_and_args=newEvents[i][1],events2.subscribe.apply(events2,[eventname].concat(typeof handler_and_args=="function"?[handler_and_args]:handler_and_args))})(events,jsPDF3.API.events):API[plugin]=jsPDF3.API[plugin]);return API.internal={pdfEscape:pdfEscape,getStyle:getStyle,getFont:function(){return fonts[_getFont.apply(API,arguments)]},getFontSize:getFontSize,getCharSpace:getCharSpace,getTextColor:getTextColor,getLineHeight:getLineHeight,getLineHeightFactor:getLineHeightFactor,write:write,getHorizontalCoordinate:getHorizontalCoordinate,getVerticalCoordinate:getVerticalCoordinate,getCoordinateString:getHorizontalCoordinateString,getVerticalCoordinateString:getVerticalCoordinateString,collections:{},newObject:newObject,newAdditionalObject:newAdditionalObject,newObjectDeferred:newObjectDeferred,newObjectDeferredBegin:newObjectDeferredBegin,getFilters:getFilters,putStream:putStream,events:events,scaleFactor:k,pageSize:{getWidth:function(){return(pagesContext[currentPage].mediaBox.topRightX-pagesContext[currentPage].mediaBox.bottomLeftX)/k},setWidth:function(value){pagesContext[currentPage].mediaBox.topRightX=value*k+pagesContext[currentPage].mediaBox.bottomLeftX},getHeight:function(){return(pagesContext[currentPage].mediaBox.topRightY-pagesContext[currentPage].mediaBox.bottomLeftY)/k},setHeight:function(value){pagesContext[currentPage].mediaBox.topRightY=value*k+pagesContext[currentPage].mediaBox.bottomLeftY}},output:output,getNumberOfPages:getNumberOfPages,pages:pages,out:out,f2:f2,f3:f3,getPageInfo:getPageInfo,getPageInfoByObjId:getPageInfoByObjId,getCurrentPageInfo:getCurrentPageInfo,getPDFVersion:getPdfVersion,hasHotfix:hasHotfix},Object.defineProperty(API.internal.pageSize,"width",{get:function(){return(pagesContext[currentPage].mediaBox.topRightX-pagesContext[currentPage].mediaBox.bottomLeftX)/k},set:function(value){pagesContext[currentPage].mediaBox.topRightX=value*k+pagesContext[currentPage].mediaBox.bottomLeftX},enumerable:!0,configurable:!0}),Object.defineProperty(API.internal.pageSize,"height",{get:function(){return(pagesContext[currentPage].mediaBox.topRightY-pagesContext[currentPage].mediaBox.bottomLeftY)/k},set:function(value){pagesContext[currentPage].mediaBox.topRightY=value*k+pagesContext[currentPage].mediaBox.bottomLeftY},enumerable:!0,configurable:!0}),addFonts(standardFonts),activeFontKey="F1",_addPage(format,orientation),events.publish("initialized"),API}return jsPDF3.API={events:[]},jsPDF3.version="1.5.3",typeof define=="function"&&define.amd?define("jsPDF",function(){return jsPDF3}):typeof module!="undefined"&&module.exports?(module.exports=jsPDF3,module.exports.jsPDF=jsPDF3):global2.jsPDF=jsPDF3,jsPDF3})(typeof self!="undefined"&&self||typeof window!="undefined"&&window||typeof global!="undefined"&&global||Function('return typeof this === "object" && this.content')()||Function("return this")());window.tmp=jsPDF2;/**
29 * @license
30 * Copyright (c) 2016 Alexander Weidt,
31 * https://github.com/BiggA94
32 * 
33 * Licensed under the MIT License. http://opensource.org/licenses/mit-license
34 */(function(jsPDFAPI,globalObj){var scope,scaleFactor=1,pdfEscape=function(value){return value.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},pdfUnescape=function(value){return value.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},f2=function(number){if(isNaN(number))throw new Error("Invalid argument passed to 
34jsPDF.f2");return number.toFixed(2)},f5=function(number){if(isNaN(number))throw new Error("Invalid argument passed to jsPDF.f2");return number.toFixed(5)};jsPDFAPI.__acroform__={};var inherit=function(child,parent){child.prototype=Object.create(parent.prototype),child.prototype.constructor=child},scale=function(x){return x*scaleFactor},antiScale=function(x){return x/scaleFactor},createFormXObject=function(formObject){var xobj=new AcroFormXObject,height=AcroFormAppearance.internal.getHeight(formObject)||0,width=AcroFormAppearance.internal.getWidth(formObject)||0;return xobj.BBox=[0,0,Number(f2(width)),Number(f2(height))],xobj},setBit=jsPDFAPI.__acroform__.setBit=function(number,bitPosition){if(number=number||0,bitPosition=bitPosition||0,isNaN(number)||isNaN(bitPosition))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");var bitMask=1<<bitPosition;return number|=bitMask,number},clearBit=jsPDFAPI.__acroform__.clearBit=function(number,bitPosition){if(number=number||0,bitPosition=bitPosition||0,isNaN(number)||isNaN(bitPosition))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");var bitMask=1<<bitPosition;return number&=~bitMask,number},getBit=jsPDFAPI.__acroform__.getBit=function(number,bitPosition){if(isNaN(number)||isNaN(bitPosition))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(number&1<<bitPosition)===0?0:1},getBitForPdf=jsPDFAPI.__acroform__.getBitForPdf=function(number,bitPosition){if(isNaN(number)||isNaN(bitPosition))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return getBit(number,bitPosition-1)},setBitForPdf=jsPDFAPI.__acroform__.setBitForPdf=function(number,bitPosition){if(isNaN(number)||isNaN(bitPosition))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return setBit(number,bitPosition-1)},clearBitForPdf=jsPDFAPI.__acroform__.clearBitForPdf=function(number,bitPosition,value){if(isNaN(number)||isNaN(bitPosition))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return clearBit(number,bitPosition-1)},calculateCoordinates=jsPDFAPI.__acroform__.calculateCoordinates=function(args){var getHorizontalCoordinate=this.internal.getHorizontalCoordinate,getVerticalCoordinate=this.internal.getVerticalCoordinate,x=args[0],y=args[1],w=args[2],h=args[3],coordinates={};return coordinates.lowerLeft_X=getHorizontalCoordinate(x)||0,coordinates.lowerLeft_Y=getVerticalCoordinate(y+h)||0,coordinates.upperRight_X=getHorizontalCoordinate(x+w)||0,coordinates.upperRight_Y=getVerticalCoordinate(y)||0,[Number(f2(coordinates.lowerLeft_X)),Number(f2(coordinates.lowerLeft_Y)),Number(f2(coordinates.upperRight_X)),Number(f2(coordinates.upperRight_Y))]},calculateAppearanceStream=function(formObject){if(formObject.appearanceStreamContent)return formObject.appearanceStreamContent;if(!(!formObject.V&&!formObject.DV)){var stream=[],text=formObject.V||formObject.DV,calcRes=calculateX(formObject,text),fontKey=scope.internal.getFont(formObject.fontName,formObject.fontStyle).id;stream.push("/Tx BMC"),stream.push("q"),stream.push("BT"),stream.push(scope.__private__.encodeColorString(formObject.color)),stream.push("/"+fontKey+" "+f2(calcRes.fontSize)+" Tf"),stream.push("1 0 0 1 0 0 Tm"),stream.push(calcRes.text),stream.push("ET"),stream.push("Q"),stream.push("EMC");var appearanceStreamContent=new createFormXObject(formObject);return appearanceStreamContent.stream=stream.join("\n"),appearanceStreamContent}},calculateX=function(formObject,text){var maxFontSize=formObject.maxFontSize||12,font=formObject.fontName,returnValue={text:"",fontSize:""};text=text.substr(0,1)=="("?text.substr(1):text,text=text.substr(text.length-1)==")"?text.substr(0,text.length-1):text;var textSplit=text.split(" "),color=scope.__private__.encodeColorString(formObject.color),fontSize=maxFontSize,lineSpacing=2,borderPadding=2,height=AcroFormAppearance.internal.getHeight(formObject)||0;height=height<0?-height:height;var width=AcroFormAppearance.internal.getWidth(formObject)||0;width=width<0?-width:width;var isSmallerThanWidth=function(i2,lastLine2,fontSize2){if(i2+1<textSplit.length){var tmp=lastLine2+" "+textSplit[i2+1],TextWidth=calculateFontSpace(tmp,formObject,fontSize2).width,FieldWidth=width-2*borderPadding;return TextWidth<=FieldWidth}else return!1};fontSize++;FontSize:for(;;){var text="";fontSize--;var textHeight=calculateFontSpace("3",formObject,fontSize).height,startY=formObject.multiline?height-fontSize:(height-textHeight)/2;startY+=lineSpacing;var startX=-borderPadding,lastY=startY,firstWordInLine=0,lastWordInLine=0,lastLength=0;if(fontSize<=0){fontSize=12,text="(...) Tj\n",text+="% Width of Text: "+calculateFontSpace(text,formObject,fontSize).width+", FieldWidth:"
34+width+"\n";break}lastLength=calculateFontSpace(textSplit[0]+" ",formObject,fontSize).width;var lastLine="",lineCount=0;Line:for(var i in textSplit)if(textSplit.hasOwnProperty(i)){lastLine+=textSplit[i]+" ",lastLine=lastLine.substr(lastLine.length-1)==" "?lastLine.substr(0,lastLine.length-1):lastLine;var key=parseInt(i);lastLength=calculateFontSpace(lastLine+" ",formObject,fontSize).width;var nextLineIsSmaller=isSmallerThanWidth(key,lastLine,fontSize),isLastWord=i>=textSplit.length-1;if(nextLineIsSmaller&&!isLastWord){lastLine+=" ";continue}else if(!nextLineIsSmaller&&!isLastWord)if(formObject.multiline){if((textHeight+lineSpacing)*(lineCount+2)+lineSpacing>height)continue FontSize;lastWordInLine=key}else continue FontSize;else if(isLastWord)lastWordInLine=key;else if(formObject.multiline&&(textHeight+lineSpacing)*(lineCount+2)+lineSpacing>height)continue FontSize;for(var line="",x=firstWordInLine;x<=lastWordInLine;x++)line+=textSplit[x]+" ";switch(line=line.substr(line.length-1)==" "?line.substr(0,line.length-1):line,lastLength=calculateFontSpace(line,formObject,fontSize).width,formObject.textAlign){case"right":startX=width-lastLength-borderPadding;break;case"center":startX=(width-lastLength)/2;break;default:startX=borderPadding;break}text+=f2(startX)+" "+f2(lastY)+" Td\n",text+="("+pdfEscape(line)+") Tj\n",text+=-f2(startX)+" 0 Td\n",lastY=-(fontSize+lineSpacing),lastLength=0,firstWordInLine=lastWordInLine+1,lineCount++,lastLine="";continue Line}break}return returnValue.text=text,returnValue.fontSize=fontSize,returnValue},calculateFontSpace=function(text,formObject,fontSize){var font=scope.internal.getFont(formObject.fontName,formObject.fontStyle),width=scope.getStringUnitWidth(text,{font:font,fontSize:parseFloat(fontSize),charSpace:0})*parseFloat(fontSize),height=scope.getStringUnitWidth("3",{font:font,fontSize:parseFloat(fontSize),charSpace:0})*parseFloat(fontSize)*1.5;return{height:height,width:width}},acroformPluginTemplate={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},annotReferenceCallback=function(){scope.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var fields=scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in fields)if(fields.hasOwnProperty(i)){var formObject=fields[i];formObject.objId=void 0,formObject.hasAnnotation&&createAnnotationReference.call(scope,formObject)}},putForm=function(formObject){scope.internal.acroformPlugin.printedOut&&(scope.internal.acroformPlugin.printedOut=!1,scope.internal.acroformPlugin.acroFormDictionaryRoot=null),scope.internal.acroformPlugin.acroFormDictionaryRoot||initializeAcroForm.call(scope),scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(formObject)},createAnnotationReference=function(object){var options={type:"reference",object:object},findEntry=function(entry){return entry.type===options.type&&entry.object===options.object};scope.internal.getPageInfo(object.page).pageContext.annotations.find(findEntry)===void 0&&scope.internal.getPageInfo(object.page).pageContext.annotations.push(options)},putCatalogCallback=function(){if(typeof scope.internal.acroformPlugin.acroFormDictionaryRoot!="undefined")scope.internal.write("/AcroForm "+scope.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R");else throw new Error("putCatalogCallback: Root missing.")},AcroFormDictionaryCallback=function(){scope.internal.events.unsubscribe(scope.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete scope.internal.acroformPlugin.acroFormDictionaryRoot._eventID,scope.internal.acroformPlugin.printedOut=!0},createFieldCallback=function(fieldArray){var standardFields=!fieldArray;fieldArray||(scope.internal.newObjectDeferredBegin(scope.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),scope.internal.acroformPlugin.acroFormDictionaryRoot.putStream());var fieldArray=fieldArray||scope.internal.acroformPlugin.acroFormDictionaryRoot.Kids;for(var i in fieldArray)if(fieldArray.hasOwnProperty(i)){var fieldObject=fieldArray[i],keyValueList=[],oldRect=fieldObject.Rect;if(fieldObject.Rect&&(fieldObject.Rect=calculateCoordinates.call(this,fieldObject.Rect)),scope.internal.newObjectDeferredBegin(fieldObject.objId,!0),fieldObject.DA=AcroFormAppearance.createDefaultAppearanceStream(fieldObject),_typeof(fieldObject)==="object"&&typeof fieldObject.getKeyValueListForStream=="function"&&(keyValueList=fieldObject.getKeyValueListForStream()),fieldObject.Rect=oldRect,fieldObject.hasAppearanceStream&&!fieldObject.appearanceStreamContent){var appearance=calculateAppearanceStream.call(this,fieldObject);keyValueList.push({key:"AP",value:"<</N "+appearance+">>"}),scope.internal.acroformPlugin.xForms.push(appearance)}if(fieldObject.appearanceStreamContent){var appearanceStreamString="";for(var k in fieldObject.appearanceStreamContent)if(fieldObject.appearanceStreamContent.hasOwnProperty(k)){var value=fieldObject.appearanceStreamContent[k];if(appearanceStreamString+="/"+k+" ",appearanceStreamString+="<<",Object.keys(value).length>=1||Array.isArray(value)){for(var i in value)if(value.hasOwnProperty(i)){var obj=value[i];typeof obj=="function"&&(obj=obj.call(this,fieldObject)),appearanceStreamString+="/"+i+" "+obj+" ",scope.internal.acroformPlugin.xForms.indexOf(obj)>=0||scope.internal.acroformPlugin.xForms.push(obj)}}else{var obj=value;typeof obj=="function"&&(obj=obj.call(this,fieldObject)),appearanceStreamString+="/"+i+" "+obj,scope.internal.acroformPlugin.xForms.indexOf(obj)>=0||scope.internal.acroformPlugin.xForms.push(obj)}appearanceStreamString+=">>"}keyValueList.push({key:"AP",value:"<<\n"+appearanceStreamString+">>"})}scope.internal.putStream({additionalKeyValues:keyValueList}),scope.internal.out("endobj")}standardFields&&createXFormObjectCallback.call(this,scope.internal.acroformPlugin.xForms)},createXFormObjectCallback=function(fieldArray){for(var i in fieldArray)if(fieldArray.hasOwnProperty(i)){var key=i,fieldObject=fieldArray[i];scope.internal.newObjectDeferredBegin(fieldObject&&fieldObject.objId,!0),_typeof(fieldObject)==="object"&&typeof fieldObject.putStream=="function"&&fieldObject.putStream(),delete fieldArray[key]}},initializeAcroForm=function(){if(this.internal!==void 0&&(this.internal.acroformPlugin===void 0||this.internal.acroformPlugin.isInitialized===!1)){if
34(scope=this,AcroFormField.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(acroformPluginTemplate)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");scaleFactor=scope.internal.scaleFactor,scope.internal.acroformPlugin.acroFormDictionaryRoot=new AcroFormDictionary,scope.internal.acroformPlugin.acroFormDictionaryRoot._eventID=scope.internal.events.subscribe("postPutResources",AcroFormDictionaryCallback),scope.internal.events.subscribe("buildDocument",annotReferenceCallback),scope.internal.events.subscribe("putCatalog",putCatalogCallback),scope.internal.events.subscribe("postPutPages",createFieldCallback),scope.internal.acroformPlugin.isInitialized=!0}},arrayToPdfArray=jsPDFAPI.__acroform__.arrayToPdfArray=function(array){if(Array.isArray(array)){for(var content="[",i=0;i<array.length;i++)switch(i!==0&&(content+=" "),_typeof(array[i])){case"boolean":case"number":case"object":content+=array[i].toString();break;case"string":array[i].substr(0,1)!=="/"?content+="("+pdfEscape(array[i].toString())+")":content+=array[i].toString();break}return content+="]",content}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")};function getMatches(string,regex,index){index||(index=1);for(var matches=[],match;match=regex.exec(string);)matches.push(match[index]);return matches}var pdfArrayToStringArray=function(array){var result=[];return typeof array=="string"&&(result=getMatches(array,/\((.*?)\)/g)),result},toPdfString=function(string){return string=string||"",string.toString(),string="("+pdfEscape(string)+")",string},AcroFormPDFObject=function(){var _objId;Object.defineProperty(this,"objId",{configurable:!0,get:function(){if(_objId||(_objId=scope.internal.newObjectDeferred()),!_objId)throw new Error("AcroFormPDFObject: Couldn't create Object ID");return _objId},set:function(value){_objId=value}})};AcroFormPDFObject.prototype.toString=function(){return this.objId+" 0 R"},AcroFormPDFObject.prototype.putStream=function(){var keyValueList=this.getKeyValueListForStream();scope.internal.putStream({data:this.stream,additionalKeyValues:keyValueList}),scope.internal.out("endobj")},AcroFormPDFObject.prototype.getKeyValueListForStream=function(){var createKeyValueListFromFieldObject=function(fieldObject){var keyValueList=[],keys=Object.getOwnPropertyNames(fieldObject).filter(function(key2){return key2!="content"&&key2!="appearanceStreamContent"&&key2.substring(0,1)!="_"});for(var i in keys)if(Object.getOwnPropertyDescriptor(fieldObject,keys[i]).configurable===!1){var key=keys[i],value=fieldObject[key];value&&(Array.isArray(value)?keyValueList.push({key:key,value:arrayToPdfArray(value)}):value instanceof AcroFormPDFObject?keyValueList.push({key:key,value:value.objId+" 0 R"}):typeof value!="function"&&keyValueList.push({key:key,value:value}))}return keyValueList};return createKeyValueListFromFieldObject(this)};var AcroFormXObject=function(){AcroFormPDFObject.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writeable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writeable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writeable:!0});var _BBox=[];Object.defineProperty(this,"BBox",{configurable:!1,writeable:!0,get:function(){return _BBox},set:function(value){_BBox=value}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writeable:!0});var _stream;Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(value){_stream=value.trim()},get:function(){return _stream||null}})};inherit(AcroFormXObject,AcroFormPDFObject);var AcroFormDictionary=function(){AcroFormPDFObject.call(this);var _Kids=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){if(_Kids.length>0)return _Kids}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return _Kids}});var _DA;Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(_DA)return"("+_DA+")"}
34,set:function(value){_DA=value}})};inherit(AcroFormDictionary,AcroFormPDFObject);var AcroFormField=function AcroFormField2(){AcroFormPDFObject.call(this);var _F=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return _F},set:function(value){if(!isNaN(value))_F=value;else throw new Error('Invalid value "'+value+'" for attribute F supplied.')}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(_F,3)},set:function(value){value?this.F=setBitForPdf(_F,3):this.F=clearBitForPdf(_F,3)}});var _Ff=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return _Ff},set:function(value){if(!isNaN(value))_Ff=value;else throw new Error('Invalid value "'+value+'" for attribute Ff supplied.')}});var _Rect=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(_Rect.length!==0)return _Rect},set:function(value){typeof value!="undefined"?_Rect=value:_Rect=[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!_Rect||isNaN(_Rect[0])?0:antiScale(_Rect[0])},set:function(value){_Rect[0]=scale(value)}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!_Rect||isNaN(_Rect[1])?0:antiScale(_Rect[1])},set:function(value){_Rect[1]=scale(value)}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!_Rect||isNaN(_Rect[2])?0:antiScale(_Rect[2])},set:function(value){_Rect[2]=scale(value)}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!_Rect||isNaN(_Rect[3])?0:antiScale(_Rect[3])},set:function(value){_Rect[3]=scale(value)}});var _FT="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return _FT},set:function(value){switch(value){case"/Btn":case"/Tx":case"/Ch":case"/Sig":_FT=value;break;default:throw new Error('Invalid value "'+value+'" for attribute FT supplied.')}}});var _T=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!_T||_T.length<1){if(this instanceof AcroFormChildClass)return;_T="FieldObject"+AcroFormField2.FieldNum++}return"("+pdfEscape(_T)+")"},set:function(value){_T=value.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return _T},set:function(value){_T=value}});var _fontName="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return _fontName},set:function(value){_fontName=value}});var _fontStyle="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return _fontStyle},set:function(value){_fontStyle=value}});var _fontSize=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return antiScale(_fontSize)},set:function(value){_fontSize=scale(value)}});var _maxFontSize=50;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return antiScale(_maxFontSize)},set:function(value){_maxFontSize=scale(value)}});var _color="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return _color},set:function(value){_color=value}});var _DA="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!_DA||this instanceof AcroFormChildClass||this instanceof AcroFormTextField))return toPdfString(_DA)},set:function(value){value=value.toString(),_DA=value}});var _DV=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(_DV)return this instanceof AcroFormButton?_DV:toPdfString(_DV)},set:function(value){value=value.toString(),this instanceof AcroFormButton?_DV=value:value.substr(0,1)==="("?_DV=pdfUnescape(value.substr(1,value.length-2)):_DV=pdfUnescape(value)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof AcroFormButton?pdfUnescape(_DV.substr(1,_DV.length-1)):_DV},set:function(value){value=value.toString(),this instanceof AcroFormButton?_DV="/"+value:_DV=value}});var _V=null;
34Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(_V)return this instanceof AcroFormButton?_V:toPdfString(_V)},set:function(value){value=value.toString(),this instanceof AcroFormButton?_V=value:value.substr(0,1)==="("?_V=pdfUnescape(value.substr(1,value.length-2)):_V=pdfUnescape(value)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof AcroFormButton?pdfUnescape(_V.substr(1,_V.length-1)):_V},set:function(value){value=value.toString(),this instanceof AcroFormButton?_V="/"+value:_V=value}}),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 _hasAppearanceStream=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,writeable:!0,get:function(){return _hasAppearanceStream},set:function(value){value=!!value,_hasAppearanceStream=value}});var _page;Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writeable:!0,get:function(){if(_page)return _page},set:function(value){_page=value}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(this.Ff,1)},set:function(value){value?this.Ff=setBitForPdf(this.Ff,1):this.Ff=clearBitForPdf(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(this.Ff,2)},set:function(value){value?this.Ff=setBitForPdf(this.Ff,2):this.Ff=clearBitForPdf(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(this.Ff,3)},set:function(value){value?this.Ff=setBitForPdf(this.Ff,3):this.Ff=clearBitForPdf(this.Ff,3)}});var _Q=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(_Q!==null)return _Q},set:function(value){if([0,1,2].indexOf(value)!==-1)_Q=value;else throw new Error('Invalid value "'+value+'" for attribute Q supplied.')}}),Object.defineProperty(this,"textAlign",{get:function(){var result="left";switch(_Q){case 0:default:result="left";break;case 1:result="center";break;case 2:result="right";break}return result},configurable:!0,enumerable:!0,set:function(value){switch(value){case"right":case 2:_Q=2;break;case"center":case 1:_Q=1;break;default:_Q=0}}})};inherit(AcroFormField,AcroFormPDFObject);var AcroFormChoiceField=function(){AcroFormField.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var _TI=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return _TI},set:function(value){_TI=value}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return _TI},set:function(value){_TI=value}});var _Opt=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return arrayToPdfArray(_Opt)},set:function(value){_Opt=pdfArrayToStringArray(value)}}),this.getOptions=function(){return _Opt},this.setOptions=function(value){_Opt=value,this.sort&&_Opt.sort()},this.addOption=function(value){value=value||"",value=value.toString(),_Opt.push(value),this.sort&&_Opt.sort()},this.removeOption=function(value,allEntries){for(allEntries=allEntries||!1,value=value||"",value=value.toString();_Opt.indexOf(value)!==-1&&(_Opt.splice(_Opt.indexOf(value),1),allEntries!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(this.Ff,18)},set:function(value){value?this.Ff=setBitForPdf(this.Ff,18):this.Ff=clearBitForPdf(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(this.Ff,19)},set:function(value){this.combo===!0&&(value?this.Ff=setBitForPdf(this.Ff,19):this.Ff=clearBitForPdf(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(this.Ff,20)},set:function(value){value?(this.Ff=setBitForPdf(this.Ff,20),_Opt.sort()):this.Ff=clearBitForPdf(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(this.Ff,22)},set:function(value){value?this.Ff=setBitForPdf(this.Ff,22):this.Ff=clearBitForPdf(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(this.Ff,23)},set:function(value){value?this.Ff=setBitForPdf(this.Ff,23):this.Ff=clearBitForPdf(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(this.Ff,27)},set:function(value){value?this.Ff=setBitForPdf(this.Ff,27):this.Ff=clearBitForPdf(this.Ff,27)}}),this.hasAppearanceStream=!1};inherit(AcroFormChoiceField,AcroFormField);var AcroFormListBox=function(){AcroFormChoiceField.call(this),this.fontName="helvetica",this.combo=!1};inherit(AcroFormListBox,AcroFormChoiceField);var AcroFormComboBox=function(){AcroFormListBox.call(this),this.combo=!0};inherit(AcroFormComboBox,AcroFormListBox);var AcroFormEditBox=function(){AcroFormComboBox.call(this),this.edit=!0};inherit(AcroFormEditBox,AcroFormComboBox);var AcroFormButton=function(){AcroFormField.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(this.Ff,15)},set:function(value){value?this.Ff=setBitForPdf(this.Ff,15):this.Ff=clearBitForPdf(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(this.Ff,16)},set:function(value){value?this.Ff=setBitForPdf(this.Ff,16):this.Ff=clearBitForPdf(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(this.Ff,17)},set:function(value){value?this.Ff=setBitForPdf(this.Ff,17):this.Ff=clearBitForPdf(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(this.Ff,26)},set:function(value){value?this.Ff=setBitForPdf(this.Ff,26):this.Ff=clearBitForPdf(this.Ff,26)}});var _MK={};
34Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){if(Object.keys(_MK).length!==0){var result=[];result.push("<<");var key;for(key in _MK)result.push("/"+key+" ("+_MK[key]+")");return result.push(">>"),result.join("\n")}},set:function(value){_typeof(value)==="object"&&(_MK=value)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return _MK.CA||""},set:function(value){typeof value=="string"&&(_MK.CA=value)}});var _AS;Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return _AS},set:function(value){_AS=value}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return _AS.substr(1,_AS.length-1)},set:function(value){_AS="/"+value}})};inherit(AcroFormButton,AcroFormField);var AcroFormPushButton=function(){AcroFormButton.call(this),this.pushButton=!0};inherit(AcroFormPushButton,AcroFormButton);var AcroFormRadioButton=function(){AcroFormButton.call(this),this.radio=!0,this.pushButton=!1;var _Kids=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return _Kids},set:function(value){typeof value!="undefined"?_Kids=value:_Kids=[]}})};inherit(AcroFormRadioButton,AcroFormButton);var AcroFormChildClass=function(){AcroFormField.call(this);var _parent;Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return _parent},set:function(value){_parent=value}});var _optionName;Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return _optionName},set:function(value){_optionName=value}});var _MK={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var result=[];result.push("<<");var key;for(key in _MK)result.push("/"+key+" ("+_MK[key]+")");return result.push(">>"),result.join("\n")},set:function(value){_typeof(value)==="object"&&(_MK=value)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return _MK.CA||""},set:function(value){typeof value=="string"&&(_MK.CA=value)}});var _AS;Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return _AS},set:function(value){_AS=value}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return _AS.substr(1,_AS.length-1)},set:function(value){_AS="/"+value}}),this.optionName=name,this.caption="l",this.appearanceState="Off",this._AppearanceType=AcroFormAppearance.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(name)};inherit(AcroFormChildClass,AcroFormField),AcroFormRadioButton.prototype.setAppearance=function(appearance){if(!("createAppearanceStream"in appearance&&"getCA"in appearance))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var objId in this.Kids)if(this.Kids.hasOwnProperty(objId)){var child=this.Kids[objId];child.appearanceStreamContent=appearance.createAppearanceStream(child.optionName),child.caption=appearance.getCA()}},AcroFormRadioButton.prototype.createOption=function(name2){var kidCount=this.Kids.length,child=new AcroFormChildClass;return child.Parent=this,child.optionName=name2,this.Kids.push(child),addField.call(this,child),child};var AcroFormCheckBox=function(){AcroFormButton.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=AcroFormAppearance.CheckBox.createAppearanceStream()};inherit(AcroFormCheckBox,AcroFormButton);var AcroFormTextField=function(){AcroFormField.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(this.Ff,13)},set:function(value){value?this.Ff=setBitForPdf(this.Ff,13):this.Ff=clearBitForPdf(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(this.Ff,21)},set:function(value){value?this.Ff=setBitForPdf(this.Ff,21):this.Ff=clearBitForPdf(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(this.Ff,23)},set:function(value){value?this.Ff=setBitForPdf(this.Ff,23):this.Ff=clearBitForPdf(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(this.Ff,24)}
vendor: 4,099 bytes, line 34
34,set:function(value){value?this.Ff=setBitForPdf(this.Ff,24):this.Ff=clearBitForPdf(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(this.Ff,25)},set:function(value){value?this.Ff=setBitForPdf(this.Ff,25):this.Ff=clearBitForPdf(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(this.Ff,26)},set:function(value){value?this.Ff=setBitForPdf(this.Ff,26):this.Ff=clearBitForPdf(this.Ff,26)}});var _MaxLen=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return _MaxLen},set:function(value){_MaxLen=value}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return _MaxLen},set:function(value){Number.isInteger(value)&&(_MaxLen=value)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};inherit(AcroFormTextField,AcroFormField);var AcroFormPasswordField=function(){AcroFormTextField.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!getBitForPdf(this.Ff,14)},set:function(value){value?this.Ff=setBitForPdf(this.Ff,14):this.Ff=clearBitForPdf(this.Ff,14)}}),this.password=!0};inherit(AcroFormPasswordField,AcroFormTextField);var AcroFormAppearance={CheckBox:{createAppearanceStream:function(){var appearance={N:{On:AcroFormAppearance.CheckBox.YesNormal},D:{On:AcroFormAppearance.CheckBox.YesPushDown,Off:AcroFormAppearance.CheckBox.OffPushDown}};return appearance},YesPushDown:function(formObject){var xobj=createFormXObject(formObject),stream=[],fontKey=scope.internal.getFont(formObject.fontName,formObject.fontStyle).id,encodedColor=scope.__private__.encodeColorString(formObject.color),calcRes=calculateX(formObject,formObject.caption);return stream.push("0.749023 g"),stream.push("0 0 "+f2(AcroFormAppearance.internal.getWidth(formObject))+" "+f2(AcroFormAppearance.internal.getHeight(formObject))+" re"),stream.push("f"),stream.push("BMC"),stream.push("q"),stream.push("0 0 1 rg"),stream.push("/"+fontKey+" "+f2(calcRes.fontSize)+" Tf "+encodedColor),stream.push("BT"),stream.push(calcRes.text),stream.push("ET"),stream.push("Q"),stream.push("EMC"),xobj.stream=stream.join("\n"),xobj},YesNormal:function(formObject){var xobj=createFormXObject(formObject),fontKey=scope.internal.getFont(formObject.fontName,formObject.fontStyle).id,encodedColor=scope.__private__.encodeColorString(formObject.color),stream=[],height=AcroFormAppearance.internal.getHeight(formObject),width=AcroFormAppearance.internal.getWidth(formObject),calcRes=calculateX(formObject,formObject.caption);return stream.push("1 g"),stream.push("0 0 "+f2(width)+" "+f2(height)+" re"),stream.push("f"),stream.push("q"),stream.push("0 0 1 rg"),stream.push("0 0 "+f2(width-1)+" "+f2(height-1)+" re"),stream.push("W"),stream.push("n"),stream.push("0 g"),stream.push("BT"),stream.push("/"+fontKey+" "+f2(calcRes.fontSize)+" Tf "+encodedColor),stream.push(calcRes.text),stream.push("ET"),stream.push("Q"),xobj.stream=stream.join("\n"),xobj},OffPushDown:function(formObject){var xobj=createFormXObject(formObject),stream=[];return stream.push("0.749023 g"),stream.push("0 0 "+f2(AcroFormAppearance.internal.getWidth(formObject))+" "+f2(AcroFormAppearance.internal.getHeight(formObject))+" re"),stream.push("f"),xobj.stream=stream.join("\n"),xobj}},RadioButton:{Circle:{createAppearanceStream:function(name2){var appearanceStreamContent={D:{Off:AcroFormAppearance.RadioButton.Circle.OffPushDown},N:{}};return appearanceStreamContent.N[name2]=AcroFormAppearance.RadioButton.Circle.YesNormal,appearanceStreamContent.D[name2]=AcroFormAppearance.RadioButton.Circle.YesPushDown,appearanceStreamContent},getCA:function(){return"l"},YesNormal:function(formObject){var xobj=createFormXObject(formObject),stream=[],DotRadius=AcroFormAppearance.internal.getWidth(formObject)<=AcroFormAppearance.internal.getHeight(formObject)?AcroFormAppearance.internal.getWidth(formObject)/4:AcroFormAppearance.internal.getHeight(formOb
vendor: 4,353 bytes, line 34
34ject)/4;DotRadius=Number((DotRadius*.9).toFixed(5));var c=AcroFormAppearance.internal.Bezier_C,DotRadiusBezier=Number((DotRadius*c).toFixed(5));return stream.push("q"),stream.push("1 0 0 1 "+f5(AcroFormAppearance.internal.getWidth(formObject)/2)+" "+f5(AcroFormAppearance.internal.getHeight(formObject)/2)+" cm"),stream.push(DotRadius+" 0 m"),stream.push(DotRadius+" "+DotRadiusBezier+" "+DotRadiusBezier+" "+DotRadius+" 0 "+DotRadius+" c"),stream.push("-"+DotRadiusBezier+" "+DotRadius+" -"+DotRadius+" "+DotRadiusBezier+" -"+DotRadius+" 0 c"),stream.push("-"+DotRadius+" -"+DotRadiusBezier+" -"+DotRadiusBezier+" -"+DotRadius+" 0 -"+DotRadius+" c"),stream.push(DotRadiusBezier+" -"+DotRadius+" "+DotRadius+" -"+DotRadiusBezier+" "+DotRadius+" 0 c"),stream.push("f"),stream.push("Q"),xobj.stream=stream.join("\n"),xobj},YesPushDown:function(formObject){var xobj=createFormXObject(formObject),stream=[],DotRadius=AcroFormAppearance.internal.getWidth(formObject)<=AcroFormAppearance.internal.getHeight(formObject)?AcroFormAppearance.internal.getWidth(formObject)/4:AcroFormAppearance.internal.getHeight(formObject)/4,DotRadius=Number((DotRadius*.9).toFixed(5)),k=Number((DotRadius*2).toFixed(5)),kc=Number((k*AcroFormAppearance.internal.Bezier_C).toFixed(5)),dc=Number((DotRadius*AcroFormAppearance.internal.Bezier_C).toFixed(5));return stream.push("0.749023 g"),stream.push("q"),stream.push("1 0 0 1 "+f5(AcroFormAppearance.internal.getWidth(formObject)/2)+" "+f5(AcroFormAppearance.internal.getHeight(formObject)/2)+" cm"),stream.push(k+" 0 m"),stream.push(k+" "+kc+" "+kc+" "+k+" 0 "+k+" c"),stream.push("-"+kc+" "+k+" -"+k+" "+kc+" -"+k+" 0 c"),stream.push("-"+k+" -"+kc+" -"+kc+" -"+k+" 0 -"+k+" c"),stream.push(kc+" -"+k+" "+k+" -"+kc+" "+k+" 0 c"),stream.push("f"),stream.push("Q"),stream.push("0 g"),stream.push("q"),stream.push("1 0 0 1 "+f5(AcroFormAppearance.internal.getWidth(formObject)/2)+" "+f5(AcroFormAppearance.internal.getHeight(formObject)/2)+" cm"),stream.push(DotRadius+" 0 m"),stream.push(""+DotRadius+" "+dc+" "+dc+" "+DotRadius+" 0 "+DotRadius+" c"),stream.push("-"+dc+" "+DotRadius+" -"+DotRadius+" "+dc+" -"+DotRadius+" 0 c"),stream.push("-"+DotRadius+" -"+dc+" -"+dc+" -"+DotRadius+" 0 -"+DotRadius+" c"),stream.push(dc+" -"+DotRadius+" "+DotRadius+" -"+dc+" "+DotRadius+" 0 c"),stream.push("f"),stream.push("Q"),xobj.stream=stream.join("\n"),xobj},OffPushDown:function(formObject){var xobj=createFormXObject(formObject),stream=[],DotRadius=AcroFormAppearance.internal.getWidth(formObject)<=AcroFormAppearance.internal.getHeight(formObject)?AcroFormAppearance.internal.getWidth(formObject)/4:AcroFormAppearance.internal.getHeight(formObject)/4,DotRadius=Number((DotRadius*.9).toFixed(5)),k=Number((DotRadius*2).toFixed(5)),kc=Number((k*AcroFormAppearance.internal.Bezier_C).toFixed(5));return stream.push("0.749023 g"),stream.push("q"),stream.push("1 0 0 1 "+f5(AcroFormAppearance.internal.getWidth(formObject)/2)+" "+f5(AcroFormAppearance.internal.getHeight(formObject)/2)+" cm"),stream.push(k+" 0 m"),stream.push(k+" "+kc+" "+kc+" "+k+" 0 "+k+" c"),stream.push("-"+kc+" "+k+" -"+k+" "+kc+" -"+k+" 0 c"),stream.push("-"+k+" -"+kc+" -"+kc+" -"+k+" 0 -"+k+" c"),stream.push(kc+" -"+k+" "+k+" -"+kc+" "+k+" 0 c"),stream.push("f"),stream.push("Q"),xobj.stream=stream.join("\n"),xobj}},Cross:{createAppearanceStream:function(name2){var appearanceStreamContent={D:{Off:AcroFormAppearance.RadioButton.Cross.OffPushDown},N:{}};return appearanceStreamContent.N[name2]=AcroFormAppearance.RadioButton.Cross.YesNormal,appearanceStreamContent.D[name2]=AcroFormAppearance.RadioButton.Cross.YesPushDown,appearanceStreamContent},getCA:function(){return"8"},YesNormal:function(formObject){var xobj=createFormXObject(formObject),stream=[],cross=AcroFormAppearance.internal.calculateCross(formObject);return stream.push("q"),stream.push("1 1 "+f2(AcroFormAppearance.internal.getWidth(formObject)-2)+" "+f2(AcroFormAppearance.internal.getHeight(formObject)-2)+" re"),stream.push("W"),stream.push("n"),stream.push(f2(cross.x1.x)+" "+f2(cross.x1.y)+" m"),stream.push(f2(cross.x2.x)+" "+f2(cross.x2.y)+" l"),stream.push(f2(cross.x4.x)+" "+f2(cross.x4.y)+" m"),stream.push(f2(cross.x3.x)+" "+f2(cross.x3.y)+" l"),stream.push("s"),stream.push("Q"),xobj.stream=stream.join("\n"),xobj},YesPushDown:function(formObject){var xobj=createFormXObject(formOb
34ject),cross=AcroFormAppearance.internal.calculateCross(formObject),stream=[];return stream.push("0.749023 g"),stream.push("0 0 "+f2(AcroFormAppearance.internal.getWidth(formObject))+" "+f2(AcroFormAppearance.internal.getHeight(formObject))+" re"),stream.push("f"),stream.push("q"),stream.push("1 1 "+f2(AcroFormAppearance.internal.getWidth(formObject)-2)+" "+f2(AcroFormAppearance.internal.getHeight(formObject)-2)+" re"),stream.push("W"),stream.push("n"),stream.push(f2(cross.x1.x)+" "+f2(cross.x1.y)+" m"),stream.push(f2(cross.x2.x)+" "+f2(cross.x2.y)+" l"),stream.push(f2(cross.x4.x)+" "+f2(cross.x4.y)+" m"),stream.push(f2(cross.x3.x)+" "+f2(cross.x3.y)+" l"),stream.push("s"),stream.push("Q"),xobj.stream=stream.join("\n"),xobj},OffPushDown:function(formObject){var xobj=createFormXObject(formObject),stream=[];return stream.push("0.749023 g"),stream.push("0 0 "+f2(AcroFormAppearance.internal.getWidth(formObject))+" "+f2(AcroFormAppearance.internal.getHeight(formObject))+" re"),stream.push("f"),xobj.stream=stream.join("\n"),xobj}}},createDefaultAppearanceStream:function(formObject){var fontKey=scope.internal.getFont(formObject.fontName,formObject.fontStyle).id,encodedColor=scope.__private__.encodeColorString(formObject.color),fontSize=formObject.fontSize,result="/"+fontKey+" "+fontSize+" Tf "+encodedColor;return result}};AcroFormAppearance.internal={Bezier_C:.551915024494,calculateCross:function(formObject){var width=AcroFormAppearance.internal.getWidth(formObject),height=AcroFormAppearance.internal.getHeight(formObject),a=Math.min(width,height),cross={x1:{x:(width-a)/2,y:(height-a)/2+a},x2:{x:(width-a)/2+a,y:(height-a)/2},x3:{x:(width-a)/2,y:(height-a)/2},x4:{x:(width-a)/2+a,y:(height-a)/2+a}};return cross}},AcroFormAppearance.internal.getWidth=function(formObject){var result=0;return _typeof(formObject)==="object"&&(result=scale(formObject.Rect[2])),result},AcroFormAppearance.internal.getHeight=function(formObject){var result=0;return _typeof(formObject)==="object"&&(result=scale(formObject.Rect[3])),result};var addField=jsPDFAPI.addField=function(fieldObject){if(initializeAcroForm.call(this),fieldObject instanceof AcroFormField)putForm.call(this,fieldObject);else throw new Error("Invalid argument passed to jsPDF.addField.");return fieldObject.page=scope.internal.getCurrentPageInfo().pageNumber,this},addButton=jsPDFAPI.addButton=function(button){if(!(button instanceof AcroFormButton))throw new Error("Invalid argument passed to jsPDF.addButton.");return addField.call(this,button)},addTextField=jsPDFAPI.addTextField=function(textField){if(!(textField instanceof AcroFormTextField))throw new Error("Invalid argument passed to jsPDF.addTextField.");return addField.call(this,textField)},addChoiceField=jsPDFAPI.addChoiceField=function(choiceField){if(!(choiceField instanceof AcroFormChoiceField))throw new Error("Invalid argument passed to jsPDF.addChoiceField.");return addField.call(this,choiceField)};_typeof(globalObj)=="object"&&typeof globalObj.ChoiceField=="undefined"&&typeof globalObj.ListBox=="undefined"&&typeof globalObj.ComboBox=="undefined"&&typeof globalObj.EditBox=="undefined"&&typeof globalObj.Button=="undefined"&&typeof globalObj.PushButton=="undefined"&&typeof globalObj.RadioButton=="undefined"&&typeof globalObj.CheckBox=="undefined"&&typeof globalObj.TextField=="undefined"&&typeof globalObj.PasswordField=="undefined"?(globalObj.ChoiceField=AcroFormChoiceField,globalObj.ListBox=AcroFormListBox,globalObj.ComboBox=AcroFormComboBox,globalObj.EditBox=AcroFormEditBox,globalObj.Button=AcroFormButton,globalObj.PushButton=AcroFormPushButton,globalObj.RadioButton=AcroFormRadioButton,globalObj.CheckBox=AcroFormCheckBox,globalObj.TextField=AcroFormTextField,globalObj.PasswordField=AcroFormPasswordField,globalObj.AcroForm={Appearance:AcroFormAppearance}):console.warn("AcroForm-Classes are not populated into global-namespace, because the class-Names exist already."),jsPDFAPI.AcroFormChoiceField=AcroFormChoiceField,jsPDFAPI.AcroFormListBox=AcroFormListBox,jsPDFAPI.AcroFormComboBox=AcroFormComboBox,jsPDFAPI.AcroFormEditBox=AcroFormEditBox,jsPDFAPI.AcroFormButton=AcroFormButton,jsPDFAPI.AcroFormPushButton=AcroFormPushButton,jsPDFAPI.AcroFormRadioButton=AcroFormRadioButton,jsPDFAPI.AcroFormCheckBox=AcroFormCheckBox,jsPDFAPI.AcroFormTextField=AcroFormTextField,jsPDFAPI.AcroFormPasswordField=AcroFormPasswordField,jsPDFAPI.AcroFormAppearance=AcroFormAppearance,jsPDFAPI.AcroForm={ChoiceField:AcroFormChoiceField,ListBox:AcroFormListBox,ComboBox:AcroFormComboBox,EditBox:AcroFormEditBox,Button:AcroFormButton,PushButton:AcroFormPushButton,RadioButton:AcroFormRadioButton,CheckBox:AcroFormCheckBox,TextField:AcroFormTextField,PasswordField:AcroFormPasswordField,Appearance:AcroFormAppearance}})(jsPDF2.API,typeof window!="undefined"&&window||typeof global!="undefined"&&global);/** @license
35 * jsPDF addImage plugin
36 * Copyright (c) 2012 Jason Siefken, https://github.com/siefkenj/
37 *               2013 Chris Dowling, https://github.com/gingerchris
38 *               2013 Trinh Ho, https://github.com/ineedfat
39 *               2013 Edwin Alejandro Perez, https://github.com/eaparango
40 *               2013 Norah Smith, https://github.com/burnburnrocket
41 *               2014 Diego Casorran, https://github.com/diegocr
42 *               2014 James Robb, https://github.com/jamesbrobb
43 *
44 * 
45 */(function(jsPDFAPI){var namespace="addImage_",imageFileTypeHeaders={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]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},getImageFileTypeByImageData=jsPDFAPI.getImageFileTypeByImageData=function(imageData,fallbackFormat){fallbackFormat=fallbackFormat||"UNKNOWN";var i,j,result="UNKNOWN",headerSchemata,compareResult,fileType;jsPDFAPI.isArrayBufferView(imageData)&&(imageData=jsPDFAPI.arrayBufferToBinaryString(imageData));for(fileType in imageFileTypeHeaders)for(headerSchemata=imageFileTypeHeaders[fileType],i=0;i<headerSchemata.length;i+=1){for(compareResult=!0,j=0;j<headerSchemata[i].length;j+=1)if(headerSchemata[i][j]!==void 0&&headerSchemata[i][j]!==imageData.charCodeAt(j)){compareResult=!1;break}if(compareResult===!0){result=fileType;break}}return result==="UNKNOWN"&&fallbackFormat!=="UNKNOWN"&&(console.warn('FileType of Image not recognized. Processing image as "'+fallbackFormat+'".'),result=fallbackFormat),result},putImage=function putImage2(img){for(var objectNumber=this.internal.newObject(),out=this.internal.write,putStream=this.internal.putStream,getFilters=this.internal.getFilters,filters=getFilters();filters.indexOf("FlateEncode")!==-1;)filters.splice(filters.indexOf("FlateEncode"),1);img.n=objectNumber;var additionalKeyValues=[];if(additionalKeyValues.push({key:"Type",value:"/XObject"}),additionalKeyValues.push({key:"Subtype",value:"/Image"}),additionalKeyValues.push({key:"Width",value:img.w}),additionalKeyValues.push({key:"Height",value:img.h}),img.cs===this.color_spaces.INDEXED?additionalKeyValues.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(img.pal.length/3-1)+" "+("smask"in img?objectNumber+2:objectNumber+1)+" 0 R]"}):(additionalKeyValues.push({key:"ColorSpace",value:"/"+img.cs}),img.cs===this.color_spaces.DEVICE_CMYK&&additionalKeyValues.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),additionalKeyValues.push({key:"BitsPerComponent",value:img.bpc}),"dp"in img&&additionalKeyValues.push({key:"DecodeParms",value:"<<"
45+img.dp+">>"}),"trns"in img&&img.trns.constructor==Array){for(var trns="",i=0,len=img.trns.length;i<len;i++)trns+=img.trns[i]+" "+img.trns[i]+" ";additionalKeyValues.push({key:"Mask",value:"["+trns+"]"})}"smask"in img&&additionalKeyValues.push({key:"SMask",value:objectNumber+1+" 0 R"});var alreadyAppliedFilters=typeof img.f!="undefined"?["/"+img.f]:void 0;if(putStream({data:img.data,additionalKeyValues:additionalKeyValues,alreadyAppliedFilters:alreadyAppliedFilters}),out("endobj"),"smask"in img){var dp="/Predictor "+img.p+" /Colors 1 /BitsPerComponent "+img.bpc+" /Columns "+img.w,smask={w:img.w,h:img.h,cs:"DeviceGray",bpc:img.bpc,dp:dp,data:img.smask};"f"in img&&(smask.f=img.f),putImage2.call(this,smask)}img.cs===this.color_spaces.INDEXED&&(this.internal.newObject(),putStream({data:this.arrayBufferToBinaryString(new Uint8Array(img.pal))}),out("endobj"))},putResourcesCallback=function(){var images=this.internal.collections[namespace+"images"];for(var i in images)putImage.call(this,images[i])},putXObjectsDictCallback=function(){var images=this.internal.collections[namespace+"images"],out=this.internal.write,image;for(var i in images)image=images[i],out("/I"+image.i,image.n,"0","R")},checkCompressValue=function(value){return value&&typeof value=="string"&&(value=value.toUpperCase()),value in jsPDFAPI.image_compression?value:jsPDFAPI.image_compression.NONE},getImages=function(){var images=this.internal.collections[namespace+"images"];return images||(this.internal.collections[namespace+"images"]=images={},this.internal.events.subscribe("putResources",putResourcesCallback),this.internal.events.subscribe("putXobjectDict",putXObjectsDictCallback)),images},getImageIndex=function(images){var imageIndex=0;return images&&(imageIndex=Object.keys?Object.keys(images).length:(function(o){var i=0;for(var e in o)o.hasOwnProperty(e)&&i++;return i})(images)),imageIndex},notDefined=function(value){return typeof value=="undefined"||value===null||value.length===0},generateAliasFromImageData=function(imageData){return typeof imageData=="string"?jsPDFAPI.sHashCode(imageData):jsPDFAPI.isArrayBufferView(imageData)?jsPDFAPI.sHashCode(jsPDFAPI.arrayBufferToBinaryString(imageData)):null},isImageTypeSupported=function(type){return typeof jsPDFAPI["process"+type.toUpperCase()]=="function"},isDOMElement=function(object){return _typeof(object)==="object"&&object.nodeType===1},createDataURIFromElement=function(element,format){if(element.nodeName==="IMG"&&element.hasAttribute("src")){var src=""+element.getAttribute("src");if(src.indexOf("data:image/")===0)return unescape(src);var tmpImageData=jsPDFAPI.loadFile(src);if(tmpImageData!==void 0)return btoa(tmpImageData)}if(element.nodeName==="CANVAS"){var canvas=element;return element.toDataURL("image/jpeg",1)}var canvas=document.createElement("canvas");canvas.width=element.clientWidth||element.width,canvas.height=element.clientHeight||element.height;var ctx=canvas.getContext("2d");if(!ctx)throw"addImage requires canvas to be supported by browser.";return ctx.drawImage(element,0,0,canvas.width,canvas.height),canvas.toDataURL((""+format).toLowerCase()=="png"?"image/png":"image/jpeg")},checkImagesForAlias=function(alias,images){var cached_info;if(images){for(var e in images)if(alias===images[e].alias){cached_info=images[e];break}}return cached_info},determineWidthAndHeight=function(w,h,info){return!w&&!h&&(w=-96,h=-96),w<0&&(w=-1*info.w*72/w/this.internal.scaleFactor),h<0&&(h=-1*info.h*72/h/this.internal.scaleFactor),w===0&&(w=h*info.w/info.h),h===0&&(h=w*info.h/info.w),[w,h]},writeImageToPDF=function(x,y,w,h,info,index,images,rotation){var dims=determineWidthAndHeight.call(this,w,h,info),coord=this.internal.getCoordinateString,vcoord=this.internal.getVerticalCoordinateString;if(w=dims[0],h=dims[1],images[index]=info,rotation){rotation*=Math.PI/180;var c=Math.cos(rotation),s=Math.sin(rotation),f4=function(number){return number.toFixed(4)},rotationTransformationMatrix=[f4(c),f4(s),f4(s*-1),f4(c),0,0,"cm"]}this.internal.write("q"),rotation?(this.internal.write([1,"0","0",1,coord(x),vcoord(y+h),"cm"].join(" ")),this.internal.write(rotationTransformationMatrix.join(" ")),this.internal.write([coord(w),"0","0",coord(h),"0","0","cm"].join(" "))):this.internal.write([coord(w),"0","0",coord(h),coord(x),vcoord(y+h),"cm"].join(" ")),this.internal.write("/I"+info.i+" Do"),this.internal.write("Q")};
45jsPDFAPI.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"},jsPDFAPI.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"},jsPDFAPI.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},jsPDFAPI.sHashCode=function(str){str=str||"";var hash=0,i,chr;if(str.length===0)return hash;for(i=0;i<str.length;i++)chr=str.charCodeAt(i),hash=(hash<<5)-hash+chr,hash|=0;return hash},jsPDFAPI.isString=function(object){return typeof object=="string"},jsPDFAPI.validateStringAsBase64=function(possibleBase64String){possibleBase64String=possibleBase64String||"",possibleBase64String.toString().trim();var result=!0;return possibleBase64String.length===0&&(result=!1),possibleBase64String.length%4!==0&&(result=!1),/^[A-Za-z0-9+\/]+$/.test(possibleBase64String.substr(0,possibleBase64String.length-2))===!1&&(result=!1),/^[A-Za-z0-9\/][A-Za-z0-9+\/]|[A-Za-z0-9+\/]=|==$/.test(possibleBase64String.substr(-2))===!1&&(result=!1),result},jsPDFAPI.extractInfoFromBase64DataURI=function(dataURI){return/^data:([\w]+?\/([\w]+?));\S*;*base64,(.+)$/g.exec(dataURI)},jsPDFAPI.extractImageFromDataUrl=function(dataUrl){dataUrl=dataUrl||"";var dataUrlParts=dataUrl.split("base64,"),result=null;if(dataUrlParts.length===2){var extractedInfo=/^data:(\w*\/\w*);*(charset=[\w=-]*)*;*$/.exec(dataUrlParts[0]);Array.isArray(extractedInfo)&&(result={mimeType:extractedInfo[1],charset:extractedInfo[2],data:dataUrlParts[1]})}return result},jsPDFAPI.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"},jsPDFAPI.isArrayBuffer=function(object){return this.supportsArrayBuffer()?object instanceof ArrayBuffer:!1},jsPDFAPI.isArrayBufferView=function(object){return!this.supportsArrayBuffer()||typeof Uint32Array=="undefined"?!1:object instanceof Int8Array||object instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&object instanceof Uint8ClampedArray||object instanceof Int16Array||object instanceof Uint16Array||object instanceof Int32Array||object instanceof Uint32Array||object instanceof Float32Array||object instanceof Float64Array},jsPDFAPI.binaryStringToUint8Array=function(binary_string){for(var len=binary_string.length,bytes=new Uint8Array(len),i=0;i<len;i++)bytes[i]=binary_string.charCodeAt(i);return bytes},jsPDFAPI.arrayBufferToBinaryString=function(buffer){if(typeof atob=="function")return atob(this.arrayBufferToBase64(buffer))},jsPDFAPI.arrayBufferToBase64=function(arrayBuffer){for(var base64="",encodings="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bytes=new Uint8Array(arrayBuffer),byteLength=bytes.byteLength,byteRemainder=byteLength%3,mainLength=byteLength-byteRemainder,a,b,c,d,chunk,i=0;i<mainLength;i=i+3)chunk=bytes[i]<<16|bytes[i+1]<<8|bytes[i+2],a=(chunk&16515072)>>18,b=(chunk&258048)>>12,c=(chunk&4032)>>6,d=chunk&63,base64+=encodings[a]+encodings[b]+encodings[c]+encodings[d];return byteRemainder==1?(chunk=bytes[mainLength],a=(chunk&252)>>2,b=(chunk&3)<<4,base64+=encodings[a]+encodings[b]+"=="):byteRemainder==2&&(chunk=bytes[mainLength]<<8|bytes[mainLength+1],a=(chunk&64512)>>10,b=(chunk&1008)>>4,c=(chunk&15)<<2,base64+=encodings[a]+encodings[b]+encodings[c]+"="),base64},jsPDFAPI.createImageInfo=function(data,wd,ht,cs,bpc,f,imageIndex,alias,dp,trns,pal,smask,p){var info={alias:alias,w:wd,h:ht,cs:cs,bpc:bpc,i:imageIndex,data:data};return f&&(info.f=f),dp&&(info.dp=dp),trns&&(info.trns=trns),pal&&(info.pal=pal),smask&&(info.smask=smask),p&&(info.p=p),info},jsPDFAPI.addImage=function(imageData,format,x,y,w,h,alias,compression,rotation){var tmpImageData="";if(typeof format!="string"){var tmp=h;h=w,w=y,y=x,x=format,format=tmp}if(_typeof(imageData)==="object"&&!isDOMElement(imageData)&&"imageData"in imageData){var options=imageData;imageData=options.imageData,format=options.format||format||"UNKNOWN",x=options.x||x||0,y=options.y||y||0,w=options.w||w,h=options.h||h,alias=options.alias||alias,compression=options.compression||compression,rotation=options.rotation||options.angle||rotation}var filters=this.internal.getFilters();if(compression===void 0&&filters.indexOf("FlateEncode")!==-1&&(compression="SLOW"),typeof imageData=="str
45ing"&&(imageData=unescape(imageData)),isNaN(x)||isNaN(y))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var images=getImages.call(this),info,dataAsBinaryString;if(!(info=checkImagesForAlias(imageData,images))&&(isDOMElement(imageData)&&(imageData=createDataURIFromElement(imageData,format)),notDefined(alias)&&(alias=generateAliasFromImageData(imageData)),!(info=checkImagesForAlias(alias,images)))){if(this.isString(imageData)&&(tmpImageData=this.convertStringToImageData(imageData),tmpImageData!==""?imageData=tmpImageData:(tmpImageData=jsPDFAPI.loadFile(imageData),tmpImageData!==void 0&&(imageData=tmpImageData))),format=this.getImageFileTypeByImageData(imageData,format),!isImageTypeSupported(format))throw new Error("addImage does not support files of type '"+format+"', please ensure that a plugin for '"+format+"' support is added.");if(this.supportsArrayBuffer()&&(imageData instanceof Uint8Array||(dataAsBinaryString=imageData,imageData=this.binaryStringToUint8Array(imageData))),info=this["process"+format.toUpperCase()](imageData,getImageIndex(images),alias,checkCompressValue(compression),dataAsBinaryString),!info)throw new Error("An unknown error occurred whilst processing the image")}return writeImageToPDF.call(this,x,y,w,h,info,info.i,images,rotation),this},jsPDFAPI.convertStringToImageData=function(stringData){var base64Info,imageData="",rawData;if(this.isString(stringData)){var base64Info=this.extractImageFromDataUrl(stringData);rawData=base64Info!==null?base64Info.data:stringData;try{imageData=atob(rawData)}catch(e){throw jsPDFAPI.validateStringAsBase64(rawData)?new Error("atob-Error in jsPDF.convertStringToImageData "+e.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertStringToImageData ")}}return imageData};var getJpegSize=function(imgData){var width,height,numcomponents;if(getImageFileTypeByImageData(imgData)!=="JPEG")throw new Error("getJpegSize requires a binary string jpeg file");for(var blockLength=imgData.charCodeAt(4)*256+imgData.charCodeAt(5),i=4,len=imgData.length;i<len;){if(i+=blockLength,imgData.charCodeAt(i)!==255)throw new Error("getJpegSize could not find the size of the image");if(imgData.charCodeAt(i+1)===192||imgData.charCodeAt(i+1)===193||imgData.charCodeAt(i+1)===194||imgData.charCodeAt(i+1)===195||imgData.charCodeAt(i+1)===196||imgData.charCodeAt(i+1)===197||imgData.charCodeAt(i+1)===198||imgData.charCodeAt(i+1)===199)return height=imgData.charCodeAt(i+5)*256+imgData.charCodeAt(i+6),width=imgData.charCodeAt(i+7)*256+imgData.charCodeAt(i+8),numcomponents=imgData.charCodeAt(i+9),[width,height,numcomponents];i+=2,blockLength=imgData.charCodeAt(i)*256+imgData.charCodeAt(i+1)}},getJpegSizeFromBytes=function(data){var hdr=data[0]<<8|data[1];if(hdr!==65496)throw new Error("Supplied data is not a JPEG");for(var len=data.length,block=(data[4]<<8)+data[5],pos=4,bytes,width,height,numcomponents;pos<len;){if(pos+=block,bytes=readBytes(data,pos),block=(bytes[2]<<8)+bytes[3],(bytes[1]===192||bytes[1]===194)&&bytes[0]===255&&block>7)return bytes=readBytes(data,pos+5),width=(bytes[2]<<8)+bytes[3],height=(bytes[0]<<8)+bytes[1],numcomponents=bytes[4],{width:width,height:height,numcomponents:numcomponents};pos+=2}throw new Error("getJpegSizeFromBytes could not find the size of the image")},readBytes=function(data,offset){return data.subarray(offset,offset+5)};jsPDFAPI.processJPEG=function(data,index,alias,compression,dataAsBinaryString,colorSpace){var filter=this.decode.DCT_DECODE,bpc=8,dims;if(!this.isString(data)&&!this.isArrayBuffer(data)&&!this.isArrayBufferView(data))return null;if(this.isString(data)&&(dims=getJpegSize(data)),this.isArrayBuffer(data)&&(data=new Uint8Array(data)),this.isArrayBufferView(data)&&(dims=getJpegSizeFromBytes(data),data=dataAsBinaryString||this.arrayBufferToBinaryString(data)),colorSpace
45===void 0)switch(dims.numcomponents){case 1:colorSpace=this.color_spaces.DEVICE_GRAY;break;case 4:colorSpace=this.color_spaces.DEVICE_CMYK;break;default:case 3:colorSpace=this.color_spaces.DEVICE_RGB;break}return this.createImageInfo(data,dims.width,dims.height,colorSpace,bpc,filter,index,alias)},jsPDFAPI.processJPG=function(){return this.processJPEG.apply(this,arguments)},jsPDFAPI.getImageProperties=function(imageData){var info,tmpImageData="",format;if(isDOMElement(imageData)&&(imageData=createDataURIFromElement(imageData)),this.isString(imageData)&&(tmpImageData=this.convertStringToImageData(imageData),tmpImageData!==""?imageData=tmpImageData:(tmpImageData=jsPDFAPI.loadFile(imageData),tmpImageData!==void 0&&(imageData=tmpImageData))),format=this.getImageFileTypeByImageData(imageData),!isImageTypeSupported(format))throw new Error("addImage does not support files of type '"+format+"', please ensure that a plugin for '"+format+"' support is added.");if(this.supportsArrayBuffer()&&(imageData instanceof Uint8Array||(imageData=this.binaryStringToUint8Array(imageData))),info=this["process"+format.toUpperCase()](imageData),!info)throw new Error("An unknown error occurred whilst processing the image");return{fileType:format,width:info.w,height:info.h,colorSpace:info.cs,compressionMode:info.f,bitsPerComponent:info.bpc}}})(jsPDF2.API);/**
46 * @license
47 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  [email protected]
48 *
49 * Licensed under the MIT License.
50 * http://opensource.org/licenses/mit-license
51 */(function(jsPDFAPI){return jsPDF2.API.events.push(["addPage",function(addPageData){var pageInfo=this.internal.getPageInfo(addPageData.pageNumber);pageInfo.pageContext.annotations=[]}]),jsPDFAPI.events.push(["putPage",function(putPageData){for(var pageInfo=this.internal.getPageInfoByObjId(putPageData.objId),pageAnnos=putPageData.pageContext.annotations,notEmpty=function(obj){if(typeof obj!="undefined"&&obj!="")return!0},found=!1,a=0;a<pageAnnos.length&&!found;a++){var anno=pageAnnos[a];switch(anno.type){case"link":if(notEmpty(anno.options.url)||notEmpty(anno.options.pageNumber)){found=!0;break}case"reference":case"text":case"freetext":found=!0;break}}if(found!=!1){this.internal.write("/Annots [");for(var pageHeight=this.internal.pageSize.height,getHorizontalCoordinateString=this.internal.getCoordinateString,getVerticalCoordinateString=this.internal.getVerticalCoordinateString,a=0;a<pageAnnos.length;a++){var anno=pageAnnos[a];switch(anno.type){case"reference":this.internal.write(" "+anno.object.objId+" 0 R ");break;case"text":var objText=this.internal.newAdditionalObject(),objPopup=this.internal.newAdditionalObject(),title=anno.title||"Note",rect="/Rect ["+getHorizontalCoordinateString(anno.bounds.x)+" "+getVerticalCoordinateString(anno.bounds.y+anno.bounds.h)+" "+getHorizontalCoordinateString(anno.bounds.x+anno.bounds.w)+" "+getVerticalCoordinateString(anno.bounds.y)+"] ";line="<</Type /Annot /Subtype /Text "+rect+"/Contents ("+anno.contents+")",line+=" /Popup "+objPopup.objId+" 0 R",line+=" /P "+pageInfo.objId+" 0 R",line+=" /T ("+title+") >>",objText.content=line;var parent=objText.objId+" 0 R",popoff=30,rect="/Rect ["+getHorizontalCoordinateString(anno.bounds.x+popoff)+" "+getVerticalCoordinateString(anno.bounds.y+anno.bounds.h)+" "+getHorizontalCoordinateString(anno.bounds.x+anno.bounds.w+popoff)+" "+getVerticalCoordinateString(anno.bounds.y)+"] ";line="<</Type /Annot /Subtype /Popup "+rect+" /Parent "+parent,anno.open&&(line+=" /Open true"),line+=" >>",objPopup.content=line,this.internal.write(objText.objId,"0 R",objPopup.objId,"0 R");break;case"freetext":var rect="/Rect ["+getHorizontalCoordinateString(anno.bounds.x)+" "+getVerticalCoordinateString(anno.bounds.y)+" "+getHorizontalCoordinateString(anno.bounds.x+anno.bounds.w)+" "+getVerticalCoordinateString(anno.bounds.y+anno.bounds.h)+"] ",color=anno.color||"#000000";line="<</Type /Annot /Subtype /FreeText "+rect+"/Contents ("+anno.contents+")",line+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+color+")",line+=" /Border [0 0 0]",line+=" >>",this.internal.write(line);break;case"link":if(anno.options.name){var loc=this.annotations._nameMap[anno.options.name];anno.options.pageNumber=loc.page,anno.options.top=loc.y}else anno.options.top||(anno.options.top=0);var rect="/Rect ["+getHorizontalCoordinateString(anno.x)+" "+getVerticalCoordinateString(anno.y)+" "+getHorizontalCoordinateString(anno.x+anno.w)+" "+getVerticalCoordinateString(anno.y+anno.h)+"] ",line="";if(anno.options.url)line="<</Type /Annot /Subtype /Link "+rect+"/Border [0 0 0] /A <</S /URI /URI ("+anno.options.url+") >>";else if(anno.options.pageNumber){var info=this.internal.getPageInfo(anno.options.pageNumber);switch(line="<</Type /Annot /Subtype /Link "+rect+"/Border [0 0 0] /Dest ["+info.objId+" 0 R",anno.options.magFactor=anno.options.magFactor||"XYZ",anno.options.magFactor){case"Fit":line+=" /Fit]";break;case"FitH":line+=" /FitH "+anno.options.top+"]";break;case"FitV":anno.options.left=anno.options.left||0,line+=" /FitV "+anno.options.left+"]";break;default:var top=getVerticalCoordinateString(anno.options.top);anno.options.left=anno.options.left||0,typeof anno.options.zoom=="undefined"&&(anno.options.zoom=0),line+=" /XYZ "+anno.options.left+" "+top+" "+anno.options.zoom+"]";break}}line!=""&&(line+=" >>",this.internal.write(line));break}}this.internal.write("]")}}
51]),jsPDFAPI.createAnnotation=function(options){var pageInfo=this.internal.getCurrentPageInfo();switch(options.type){case"link":this.link(options.bounds.x,options.bounds.y,options.bounds.w,options.bounds.h,options);break;case"text":case"freetext":pageInfo.pageContext.annotations.push(options);break}},jsPDFAPI.link=function(x,y,w,h,options){var pageInfo=this.internal.getCurrentPageInfo();pageInfo.pageContext.annotations.push({x:x,y:y,w:w,h:h,options:options,type:"link"})},jsPDFAPI.textWithLink=function(text,x,y,options){var width=this.getTextWidth(text),height=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(text,x,y),y+=height*.2,this.link(x,y-height,width,height,options),width},jsPDFAPI.getTextWidth=function(text){var fontSize=this.internal.getFontSize(),txtWidth=this.getStringUnitWidth(text)*fontSize/this.internal.scaleFactor;return txtWidth},this})(jsPDF2.API);/**
52 * @license
53 * Copyright (c) 2017 Aras Abbasi 
54 *
55 * Licensed under the MIT License.
56 * http://opensource.org/licenses/mit-license
57 */(function(jsPDFAPI){var arabicSubstitionA={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,6437
577],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},ligatures={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},arabic_diacritics={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},alfletter=[1570,1571,1573,1575],noChangeInForm=-1,isolatedForm=0,finalForm=1,initialForm=2,medialForm=3;jsPDFAPI.__arabicParser__={};var isInArabicSubstitutionA=jsPDFAPI.__arabicParser__.isInArabicSubstitutionA=function(letter){return typeof arabicSubstitionA[letter.charCodeAt(0)]!="undefined"},isArabicLetter=jsPDFAPI.__arabicParser__.isArabicLetter=function(letter){return typeof letter=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(letter)},isArabicEndLetter=jsPDFAPI.__arabicParser__.isArabicEndLetter=function(letter){return isArabicLetter(letter)&&isInArabicSubstitutionA(letter)&&arabicSubstitionA[letter.charCodeAt(0)].length<=2},isArabicAlfLetter=jsPDFAPI.__arabicParser__.isArabicAlfLetter=function(letter){return isArabicLetter(letter)&&alfletter.indexOf(letter.charCodeAt(0))>=0},arabicLetterHasIsolatedForm=jsPDFAPI.__arabicParser__.arabicLetterHasIsolatedForm=function(letter){return isArabicLetter(letter)&&isInArabicSubstitutionA(letter)&&arabicSubstitionA[letter.charCodeAt(0)].length>=1},arabicLetterHasFinalForm=jsPDFAPI.__arabicParser__.arabicLetterHasFinalForm=function(letter){return isArabicLetter(letter)&&isInArabicSubstitutionA(letter)&&arabicSubstitionA[letter.charCodeAt(0)].length>=2},arabicLetterHasInitialForm=jsPDFAPI.__arabicParser__.arabicLetterHasInitialForm=function(letter){return isArabicLetter(letter)&&isInArabicSubstitutionA(letter)&&arabicSubstitionA[letter.charCodeAt(0)].length>=3},arabicLetterHasMedialForm=jsPDFAPI.__arabicParser__.arabicLetterHasMedialForm=function(letter){return isArabicLetter(letter)&&isInArabicSubstitutionA(letter)&&arabicSubstitionA[letter.charCodeAt(0)].length==4},resolveLigatures=jsPDFAPI.__arabicParser__.resolveLigatures=function(letters){var i=0,tmpLigatures=ligatures,position=isolatedForm,result="",effectedLetters=0;for(i=0;i<letters.length;i+=1)typeof tmpLigatures[letters.charCodeAt(i)]!="undefined"?(effectedLetters++,tmpLigatures=tmpLigatures[letters.charCodeAt(i)],typeof tmpLigatures=="number"&&(position=getCorrectForm(letters.charAt(i),letters.charAt(i-effectedLetters),letters.charAt(i+1)),position=position!==-1?position:0,result+=String.fromCharCode(tmpLigatures),tmpLigatures=ligatures,effectedLetters=0),i===letters.length-1&&(tmpLigatures=ligatures,result+=letters.charAt(i-(effectedLetters-1)),i=i-(effectedLetters-1),effectedLetters=0)):(tmpLigatures=ligatures,result+=letters.charAt(i-effectedLetters),i=i-effectedLetters,effectedLetters=0);return result},isArabicDiacritic=jsPDFAPI.__arabicParser__.isArabicDiacritic=function(letter){return letter!==void 0&&arabic_diacritics[letter.charCodeAt(0)]!==void 0},getCorrectForm=jsPDFAPI.__arabicParser__.getCorrectForm=function(currentChar,beforeChar,nextChar){return isArabicLetter(currentChar)?isInArabicSubstitutionA(currentChar)===!1?noChangeInForm:!arabicLetterHasFinalForm(currentChar)||!isArabicLetter(beforeChar)&&!isArabicLetter(nextChar)||!isArabicLetter(nextChar)&&isArabicEndLetter(beforeChar)||isArabicEndLetter(currentChar)&&!isArabicLetter(beforeChar)||isArabicEndLetter(currentChar)&&isArabicAlfLetter(beforeChar)||isArabicEndLetter(currentChar)&&isArabicEndLetter(beforeChar)?isolatedForm:arabicLetterHasMedialForm(currentChar)&&isArabicLetter(beforeChar)&&!isArabicEndLetter(beforeChar)&&isArabicLetter(nextChar)&&arabicLetterHasFinalForm(nextChar)?medialForm:isArabicEndLetter(currentChar)||!isArabicLetter(nextChar)?finalForm:initialForm:-1},processArabic=jsPDFAPI.__arabicParser__.processArabic=jsPDFAPI.processArabic=function(text){text=text||"";
57var result="",i=0,j=0,position=0,currentLetter="",prevLetter="",nextLetter="",words=text.split("\\s+"),newWords=[];for(i=0;i<words.length;i+=1){for(newWords.push(""),j=0;j<words[i].length;j+=1)currentLetter=words[i][j],prevLetter=words[i][j-1],nextLetter=words[i][j+1],isArabicLetter(currentLetter)?(position=getCorrectForm(currentLetter,prevLetter,nextLetter),position!==-1?newWords[i]+=String.fromCharCode(arabicSubstitionA[currentLetter.charCodeAt(0)][position]):newWords[i]+=currentLetter):newWords[i]+=currentLetter;newWords[i]=resolveLigatures(newWords[i])}return result=newWords.join(" "),result},arabicParserFunction=function(args){var text=args.text,x=args.x,y=args.y,options=args.options||{},mutex=args.mutex||{},lang=options.lang,tmpText=[];if(Object.prototype.toString.call(text)==="[object Array]"){var i=0;for(tmpText=[],i=0;i<text.length;i+=1)Object.prototype.toString.call(text[i])==="[object Array]"?tmpText.push([processArabic(text[i][0]),text[i][1],text[i][2]]):tmpText.push([processArabic(text[i])]);args.text=tmpText}else args.text=processArabic(text)};jsPDFAPI.events.push(["preProcessText",arabicParserFunction])})(jsPDF2.API);/** @license
58 * jsPDF Autoprint Plugin
59 *
60 * Licensed under the MIT License.
61 * http://opensource.org/licenses/mit-license
62 */(function(jsPDFAPI){jsPDFAPI.autoPrint=function(options){var refAutoPrintTag;return options=options||{},options.variant=options.variant||"non-conform",options.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){refAutoPrintTag=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+refAutoPrintTag+" 0 R")})),this}})(jsPDF2.API);/**
63 * @license
64 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  [email protected]
65 *
66 * Licensed under the MIT License.
67 * http://opensource.org/licenses/mit-license
68 */(function(jsPDFAPI){var Canvas=function(){var jsPdfInstance=void 0;Object.defineProperty(this,"pdf",{get:function(){return jsPdfInstance},set:function(value){jsPdfInstance=value}});var _width=150;Object.defineProperty(this,"width",{get:function(){return _width},set:function(value){isNaN(value)||Number.isInteger(value)===!1||value<0?_width=150:_width=value,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=_width+1)}});var _height=300;Object.defineProperty(this,"height",{get:function(){return _height},set:function(value){isNaN(value)||Number.isInteger(value)===!1||value<0?_height=300:_height=value,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=_height+1)}});var _childNodes=[];Object.defineProperty(this,"childNodes",{get:function(){return _childNodes},set:function(value){_childNodes=value}});var _style={};Object.defineProperty(this,"style",{get:function(){return _style},set:function(value){_style=value}}),Object.defineProperty(this,"parentNode",{get:function(){return!1}})};return Canvas.prototype.getContext=function(contextType,contextAttributes){contextType=contextType||"2d";var key;if(contextType!=="2d")return null;for(key in contextAttributes)this.pdf.context2d.hasOwnProperty(key)&&(this.pdf.context2d[key]=contextAttributes[key]);return this.pdf.context2d._canvas=this,this.pdf.context2d},Canvas.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},jsPDFAPI.events.push(["initialized",function(){this.canvas=new Canvas,this.canvas.pdf=this}]),this})(jsPDF2.API);/** 
69 * @license
70 * ====================================================================
71 * Copyright (c) 2013 Youssef Beddad, [email protected]
72 *               2013 Eduardo Menezes de Morais, [email protected]
73 *               2013 Lee Driscoll, https://github.com/lsdriscoll
74 *               2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
75 *               2014 James Hall, [email protected]
76 *               2014 Diego Casorran, https://github.com/diegocr
77 *
78 * 
79 * ====================================================================
80 */(function(jsPDFAPI){var padding=3,margin=13,headerFunction,lastCellPos={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},pages=1,setLastCellPosition=function(x,y,w,h,ln){lastCellPos={x:x,y:y,w:w,h:h,ln:ln}},getLastCellPosition=function(){return lastCellPos},NO_MARGINS={left:0,top:0,bottom:0};jsPDFAPI.setHeaderFunction=function(func){headerFunction=func},jsPDFAPI.getTextDimensions=function(text,options){var fontSize=this.table_font_size||this.internal.getFontSize(),fontStyle=this.internal.getFont().fontStyle;options=options||{};var scaleFactor=options.scaleFactor||this.internal.scaleFactor,width=0,amountOfLines=0,height=0,tempWidth=0;if(typeof text=="string")width=this.getStringUnitWidth(text)*fontSize,width!==0&&(amountOfLines=1);else if(Object.prototype.toString.call(text)==="[object Array]"){for(var i=0;i<text.length;i++)tempWidth=this.getStringUnitWidth(text[i])*fontSize,width<tempWidth&&(width=tempWidth);width!==0&&(amountOfLines=text.length)}else throw new Error("getTextDimensions expects text-parameter to be of type Str
80ing or an Array of Strings.");return width=width/scaleFactor,height=Math.max((amountOfLines*fontSize*this.getLineHeightFactor()-fontSize*(this.getLineHeightFactor()-1))/scaleFactor,0),{w:width,h:height}},jsPDFAPI.cellAddPage=function(){var margins=this.margins||NO_MARGINS;this.addPage(),setLastCellPosition(margins.left,margins.top,void 0,void 0),pages+=1},jsPDFAPI.cellInitialize=function(){lastCellPos={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},pages=1},jsPDFAPI.cell=function(x,y,w,h,txt,ln,align){var curCell=getLastCellPosition(),pgAdded=!1;if(curCell.ln!==void 0)if(curCell.ln===ln)x=curCell.x+curCell.w,y=curCell.y;else{var margins=this.margins||NO_MARGINS;curCell.y+curCell.h+h+margin>=this.internal.pageSize.getHeight()-margins.bottom&&(this.cellAddPage(),pgAdded=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(ln,!0)),y=getLastCellPosition().y+getLastCellPosition().h,pgAdded&&(y=margin+10)}if(txt[0]!==void 0)if(this.printingHeaderRow?this.rect(x,y,w,h,"FD"):this.rect(x,y,w,h),align==="right"){txt instanceof Array||(txt=[txt]);for(var i=0;i<txt.length;i++){var currentLine=txt[i],textSize=this.getStringUnitWidth(currentLine)*this.internal.getFontSize()/this.internal.scaleFactor;this.text(currentLine,x+w-textSize-padding,y+this.internal.getLineHeight()*(i+1))}}else this.text(txt,x+padding,y+this.internal.getLineHeight());return setLastCellPosition(x,y,w,h,ln),this},jsPDFAPI.arrayMax=function(array,comparisonFn){var max=array[0],i,ln,item;for(i=0,ln=array.length;i<ln;i+=1)item=array[i],comparisonFn?comparisonFn(max,item)===-1&&(max=item):item>max&&(max=item);return max},jsPDFAPI.table=function(x,y,data,headers,config){if(!data)throw"No data for PDF table";var headerNames=[],headerPrompts=[],header,i,ln,cln,columnMatrix={},columnWidths={},columnData,column,columnMinWidths=[],j,tableHeaderConfigs=[],model,jln,func,autoSize=!1,printHeaders=!0,fontSize=12,margins=NO_MARGINS;if(margins.width=this.internal.pageSize.getWidth(),config&&(config.autoSize===!0&&(autoSize=!0),config.printHeaders===!1&&(printHeaders=!1),config.fontSize&&(fontSize=config.fontSize),config.css&&typeof config.css["font-size"]!="undefined"&&(fontSize=config.css["font-size"]*16),config.margins&&(margins=config.margins)),this.lnMod=0,lastCellPos={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},pages=1,this.printHeaders=printHeaders,this.margins=margins,this.setFontSize(fontSize),this.table_font_size=fontSize,headers==null)headerNames=Object.keys(data[0]);else if(headers[0]&&typeof headers[0]!="string"){var px2pt=.7499990551181103;for(i=0,ln=headers.length;i<ln;i+=1)header=headers[i],headerNames.push(header.name),headerPrompts.push(header.prompt),columnWidths[header.name]=header.width*px2pt}else headerNames=headers;if(autoSize)for(func=function(rec){return rec[header]},i=0,ln=headerNames.length;i<ln;i+=1){for(header=headerNames[i],columnMatrix[header]=data.map(func),columnMinWidths.push(this.getTextDimensions(headerPrompts[i]||header,{scaleFactor:1}).w),column=columnMatrix[header],j=0,cln=column.length;j<cln;j+=1)columnData=column[j],columnMinWidths.push(this.getTextDimensions(columnData,{scaleFactor:1}).w);columnWidths[header]=jsPDFAPI.arrayMax(columnMinWidths),columnMinWidths=[]}if(printHeaders){var lineHeight=this.calculateLineHeight(headerNames,columnWidths,headerPrompts.length?headerPrompts:headerNames);for(i=0,ln=headerNames.length;i<ln;i+=1)header=headerNames[i],tableHeaderConfigs.push([x,y,columnWidths[header],lineHeight,String(headerPrompts.length?headerPrompts[i]:header)]);this.setTableHeaderRow(tableHeaderConfigs),this.printHeaderRow(1,!1)}for(i=0,ln=data.length;i<ln;i+=1){var lineHeight;for(model=data[i],lineHeight=this.calculateLineHeight(headerNames,columnWidths,model),j=0,jln=headerNames.length;j<jln;j+=1)header=headerNames[j],this.cell(x,y,columnWidths[header],lineHeight,model[header],i+2,header.align)}return this.lastCellPos=lastCellPos,this.table_x=x,this.table_y=y,this},jsPDFAPI.calculateLineHeight=function(headerNames,columnWidths,model){for(var header,lineHeight=0,j=0;j<headerNames.length;j++){header=headerNames[j],model[header]=this.splitTextToSize(String(model[header]),columnWidths[header]-padding);var h=this.internal.getLineHeight()*model[header].length+padding;h>lineHeight&&(lineHeight=h)}return lineHeight},jsPDFAPI.setTableHeaderRow=function(config){this.tableHeaderRow=config},jsPDFAPI.printHeaderRow=function(lineNumber,new_page){if(!this.tableHeaderRow)throw"Property tableHeaderRow does not exist.";var tableHeaderCell,tmpArray,i,ln;if(this.printingHeaderRow=!0,headerFunction!==void 0){var position=headerFunction(this,pages);setLastCellPosition(position[0],position[1],position[2],position[3],-1)}this.setFontStyle("bold");var tempHeaderConf=[];for(i=0,ln=this.tableHeaderRow.length;i<ln;i+=1)this.setFillColor(200,200,200),tableHeaderCell=this.tableHeaderRow[i],new_page&&(this.margins.top=margin,tableHeaderCell[1]=this.margins&&this.margins.top||0,tempHeaderConf.push(tableHeaderCell)),tmpArray=[].concat(tableHeaderCell),this.cell.a
80pply(this,tmpArray.concat(lineNumber));tempHeaderConf.length>0&&this.setTableHeaderRow(tempHeaderConf),this.setFontStyle("normal"),this.printingHeaderRow=!1}})(jsPDF2.API),(function(jsPDFAPI,globalObj){var ContextLayer=function(ctx){return ctx=ctx||{},this.isStrokeTransparent=ctx.isStrokeTransparent||!1,this.strokeOpacity=ctx.strokeOpacity||1,this.strokeStyle=ctx.strokeStyle||"#000000",this.fillStyle=ctx.fillStyle||"#000000",this.isFillTransparent=ctx.isFillTransparent||!1,this.fillOpacity=ctx.fillOpacity||1,this.font=ctx.font||"10px sans-serif",this.textBaseline=ctx.textBaseline||"alphabetic",this.textAlign=ctx.textAlign||"left",this.lineWidth=ctx.lineWidth||1,this.lineJoin=ctx.lineJoin||"miter",this.lineCap=ctx.lineCap||"butt",this.path=ctx.path||[],this.transform=typeof ctx.transform!="undefined"?ctx.transform.clone():new Matrix,this.globalCompositeOperation=ctx.globalCompositeOperation||"normal",this.globalAlpha=ctx.globalAlpha||1,this.clip_path=ctx.clip_path||[],this.currentPoint=ctx.currentPoint||new Point,this.miterLimit=ctx.miterLimit||10,this.lastPoint=ctx.lastPoint||new Point,this.ignoreClearRect=typeof ctx.ignoreClearRect=="boolean"?ctx.ignoreClearRect:!0,this},f2,f3,getHorizontalCoordinateString,getVerticalCoordinateString,getHorizontalCoordinate,getVerticalCoordinate;jsPDFAPI.events.push(["initialized",function(){this.context2d=new Context2D(this),f2=this.internal.f2,f3=this.internal.f3,getHorizontalCoordinateString=this.internal.getCoordinateString,getVerticalCoordinateString=this.internal.getVerticalCoordinateString,getHorizontalCoordinate=this.internal.getHorizontalCoordinate,getVerticalCoordinate=this.internal.getVerticalCoordinate}]);var Context2D=function(pdf){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}}),Object.defineProperty(this,"pdf",{get:function(){return pdf}});var _pageWrapXEnabled=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return _pageWrapXEnabled},set:function(value){_pageWrapXEnabled=!!value}});var _pageWrapYEnabled=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return _pageWrapYEnabled},set:function(value){_pageWrapYEnabled=!!value}});var _posX=0;Object.defineProperty(this,"posX",{get:function(){return _posX},set:function(value){isNaN(value)||(_posX=value)}});var _posY=0;Object.defineProperty(this,"posY",{get:function(){return _posY},set:function(value){isNaN(value)||(_posY=value)}});var _autoPaging=!1;Object.defineProperty(this,"autoPaging",{get:function(){return _autoPaging},set:function(value){_autoPaging=!!value}});var lastBreak=0;Object.defineProperty(this,"lastBreak",{get:function(){return lastBreak},set:function(value){lastBreak=value}});var pageBreaks=[];Object.defineProperty(this,"pageBreaks",{get:function(){return pageBreaks},set:function(value){pageBreaks=value}});var _ctx=new ContextLayer;Object.defineProperty(this,"ctx",{get:function(){return _ctx},set:function(value){value instanceof ContextLayer&&(_ctx=value)}}),Object.defineProperty(this,"path",{get:function(){return _ctx.path},set:function(value){_ctx.path=value}});var _ctxStack=[];Object.defineProperty(this,"ctxStack",{get:function(){return _ctxStack},set:function(value){_ctxStack=value}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(value){var rgba;rgba=getRGBA(value),this.ctx.fillStyle=rgba.style,this.ctx.isFillTransparent=rgba.a===0,this.ctx.fillOpacity=rgba.a,this.pdf.setFillColor(rgba.r,rgba.g,rgba.b,{a:rgba.a}),this.pdf.setTextColor(rgba.r,rgba.g,rgba.b,{a:rgba.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(value){var rgba=getRGBA(value);this.ctx.strokeStyle=rgba.style,this.ctx.isStrokeTransparent=rgba.a===0,this.ctx.strokeOpacity=rgba.a,rgba.a===0?this.pdf.setDrawColor(255,255,255):rgba.a===1?this.pdf.setDrawColor(rgba.r,rgba.g,rgba.b):this.pdf.setDrawColor(rgba.r,rgba.g,rgba.b)}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(value){["butt","round","square"].indexOf(value)!==-1&&(this.ctx.lineCap=value,this.pdf.setLineCap(value))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth}
80,set:function(value){isNaN(value)||(this.ctx.lineWidth=value,this.pdf.setLineWidth(value))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(value){["bevel","round","miter"].indexOf(value)!==-1&&(this.ctx.lineJoin=value,this.pdf.setLineJoin(value))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(value){isNaN(value)||(this.ctx.miterLimit=value,this.pdf.setMiterLimit(value))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(value){this.ctx.textBaseline=value}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(value){["right","end","center","left","start"].indexOf(value)!==-1&&(this.ctx.textAlign=value)}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(value){this.ctx.font=value;var rx,matches;if(rx=/^\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,matches=rx.exec(value),matches!==null)var fontStyle=matches[1],fontVariant=matches[2],fontWeight=matches[3],fontSize=matches[4],fontSizeUnit=matches[5],fontFamily=matches[6];else return;fontSizeUnit==="px"?fontSize=Math.floor(parseFloat(fontSize)):fontSizeUnit==="em"?fontSize=Math.floor(parseFloat(fontSize)*this.pdf.getFontSize()):fontSize=Math.floor(parseFloat(fontSize)),this.pdf.setFontSize(fontSize);var style="";(fontWeight==="bold"||parseInt(fontWeight,10)>=700||fontStyle==="bold")&&(style="bold"),fontStyle==="italic"&&(style+="italic"),style.length===0&&(style="normal");for(var jsPdfFontName="",parts=fontFamily.toLowerCase().replace(/"|'/g,"").split(/\s*,\s*/),fallbackFonts={arial:"Helvetica",verdana:"Helvetica",helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",courier:"Courier",times:"Times",cursive:"Times",fantasy:"Times",serif:"Times"},i=0;i<parts.length;i++)if(this.pdf.internal.getFont(parts[i],style,{noFallback:!0,disableWarning:!0})!==void 0){jsPdfFontName=parts[i];break}else if(style==="bolditalic"&&this.pdf.internal.getFont(parts[i],"bold",{noFallback:!0,disableWarning:!0})!==void 0)jsPdfFontName=parts[i],style="bold";else if(this.pdf.internal.getFont(parts[i],"normal",{noFallback:!0,disableWarning:!0})!==void 0){jsPdfFontName=parts[i],style="normal";break}if(jsPdfFontName===""){for(var i=0;i<parts.length;i++)if(fallbackFonts[parts[i]]){jsPdfFontName=fallbackFonts[parts[i]];break}}jsPdfFontName=jsPdfFontName===""?"Times":jsPdfFontName,this.pdf.setFont(jsPdfFontName,style)}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(value){this.ctx.globalCompositeOperation=value}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(value){this.ctx.globalAlpha=value}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(value){this.ctx.ignoreClearRect=!!value}})};Context2D.prototype.fill=function(){pathPreProcess.call(this,"fill",!1)},Context2D.prototype.stroke=function(){pathPreProcess.call(this,"stroke",!1)},Context2D.prototype.beginPath=function(){this.path=[{type:"begin"}]},Context2D.prototype.moveTo=function(x,y){if(isNaN(x)||isNaN(y))throw console.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var pt=this.ctx.transform.applyToPoint(new Point(x,y));this.path.push({type:"mt",x:pt.x,y:pt.y}),this.ctx.lastPoint=new Point(x,y)},Context2D.prototype.closePath=function(){var pathBegin=new Point(0,0),i=0;for(i=this.path.length-1;i!==-1;i--)if(this.path[i].type==="begin"&&_typeof(this.path[i+1])==="object"&&typeof this.path[i+1].x=="number"){pathBegin=new Point(this.path[i+1].x,this.path[i+1].y),this.path.push({type:"lt",x:pathBegin.x,y:pathBegin.y});break}_typeof(this.path[i+2])==="object"&&typeof this.path[i+2].x=="number"&&this.path.push(JSON.parse(JSON.stringify(this.path[i+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new Point(pathBegin.x,pathBegin.y)},Context2D.prototype.lineTo=function(x,y){if(isNaN(x)||isNaN(y))throw console.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to 
80jsPDF.context2d.lineTo");var pt=this.ctx.transform.applyToPoint(new Point(x,y));this.path.push({type:"lt",x:pt.x,y:pt.y}),this.ctx.lastPoint=new Point(pt.x,pt.y)},Context2D.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),pathPreProcess.call(this,null,!0)},Context2D.prototype.quadraticCurveTo=function(cpx,cpy,x,y){if(isNaN(x)||isNaN(y)||isNaN(cpx)||isNaN(cpy))throw console.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var pt0=this.ctx.transform.applyToPoint(new Point(x,y)),pt1=this.ctx.transform.applyToPoint(new Point(cpx,cpy));this.path.push({type:"qct",x1:pt1.x,y1:pt1.y,x:pt0.x,y:pt0.y}),this.ctx.lastPoint=new Point(pt0.x,pt0.y)},Context2D.prototype.bezierCurveTo=function(cp1x,cp1y,cp2x,cp2y,x,y){if(isNaN(x)||isNaN(y)||isNaN(cp1x)||isNaN(cp1y)||isNaN(cp2x)||isNaN(cp2y))throw console.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var pt0=this.ctx.transform.applyToPoint(new Point(x,y)),pt1=this.ctx.transform.applyToPoint(new Point(cp1x,cp1y)),pt2=this.ctx.transform.applyToPoint(new Point(cp2x,cp2y));this.path.push({type:"bct",x1:pt1.x,y1:pt1.y,x2:pt2.x,y2:pt2.y,x:pt0.x,y:pt0.y}),this.ctx.lastPoint=new Point(pt0.x,pt0.y)},Context2D.prototype.arc=function(x,y,radius,startAngle,endAngle,counterclockwise){if(isNaN(x)||isNaN(y)||isNaN(radius)||isNaN(startAngle)||isNaN(endAngle))throw console.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(counterclockwise=!!counterclockwise,!this.ctx.transform.isIdentity){var xpt=this.ctx.transform.applyToPoint(new Point(x,y));x=xpt.x,y=xpt.y;var x_radPt=this.ctx.transform.applyToPoint(new Point(0,radius)),x_radPt0=this.ctx.transform.applyToPoint(new Point(0,0));
80radius=Math.sqrt(Math.pow(x_radPt.x-x_radPt0.x,2)+Math.pow(x_radPt.y-x_radPt0.y,2))}Math.abs(endAngle-startAngle)>=2*Math.PI&&(startAngle=0,endAngle=2*Math.PI),this.path.push({type:"arc",x:x,y:y,radius:radius,startAngle:startAngle,endAngle:endAngle,counterclockwise:counterclockwise})},Context2D.prototype.arcTo=function(x1,y1,x2,y2,radius){throw new Error("arcTo not implemented.")},Context2D.prototype.rect=function(x,y,w,h){if(isNaN(x)||isNaN(y)||isNaN(w)||isNaN(h))throw console.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(x,y),this.lineTo(x+w,y),this.lineTo(x+w,y+h),this.lineTo(x,y+h),this.lineTo(x,y),this.lineTo(x+w,y),this.lineTo(x,y)},Context2D.prototype.fillRect=function(x,y,w,h){if(isNaN(x)||isNaN(y)||isNaN(w)||isNaN(h))throw console.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!isFillTransparent.call(this)){var tmp={};this.lineCap!=="butt"&&(tmp.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(tmp.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(x,y,w,h),this.fill(),tmp.hasOwnProperty("lineCap")&&(this.lineCap=tmp.lineCap),tmp.hasOwnProperty("lineJoin")&&(this.lineJoin=tmp.lineJoin)}},Context2D.prototype.strokeRect=function(x,y,w,h){if(isNaN(x)||isNaN(y)||isNaN(w)||isNaN(h))throw console.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");isStrokeTransparent.call(this)||(this.beginPath(),this.rect(x,y,w,h),this.stroke())},Context2D.prototype.clearRect=function(x,y,w,h){if(isNaN(x)||isNaN(y)||isNaN(w)||isNaN(h))throw console.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(x,y,w,h))},Context2D.prototype.save=function(doStackPush){doStackPush=typeof doStackPush=="boolean"?doStackPush:!0;for(var tmpPageNumber=this.pdf.internal.getCurrentPageInfo().pageNumber,i=0;i<this.pdf.internal.getNumberOfPages();i++)this.pdf.setPage(i+1),this.pdf.internal.out("q");if(this.pdf.setPage(tmpPageNumber),doStackPush){this.ctx.fontSize=this.pdf.internal.getFontSize();var ctx=new ContextLayer(this.ctx);this.ctxStack.push(this.ctx),this.ctx=ctx}},Context2D.prototype.restore=function(doStackPop){doStackPop=typeof doStackPop=="boolean"?doStackPop:!0;for(var tmpPageNumber=this.pdf.internal.getCurrentPageInfo().pageNumber,i=0;i<this.pdf.internal.getNumberOfPages();i++)this.pdf.setPage(i+1),this.pdf.internal.out("Q");this.pdf.setPage(tmpPageNumber),doStackPop&&this.ctxStack.length!==0&&(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)},Context2D.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var getRGBA=function(style){var rxRgb=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/,rxRgba=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d\.]+)\s*\)/,rxTransparent=/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/,r,g,b,a;if(style.isCanvasGradient===!0&&(style=style.getColor()),!style)return{r:0,g:0,b:0,a:0,style:style};if(rxTransparent.test(style))r=0,g=0,b=0,a=0;else{var matches=rxRgb.exec(style);if(matches!==null)r=parseInt(matches[1]),g=parseInt(matches[2]),b=parseInt(matches[3]),a=1;else if(matches=rxRgba.exec(style),matches!==null)r=parseInt(matches[1]),g=parseInt(matches[2]),b=parseInt(matches[3]),a=parseFloat(matches[4]);else{if(a=1,typeof style=="string"&&style.charAt(0)!=="#"){var rgbColor=new RGBColor(style);rgbColor.ok?style=rgbColor.toHex():style="#000000"}style.length===4?(r=style.substring(1,2),r+=r,g=style.substring(2,3),g+=g,b=style.substring(3,4),b+=b):(r=style.substring(1,3),g=style.substring(3,5),b=style.substring(5,7)),r=parseInt(r,16),g=parseInt(g,16),b=parseInt(b,16)}}return{r:r,g:g,b:b,a:a,style:style}},isFillTransparent=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},isStrokeTransparent=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Context2D.prototype.fillText=function(text,x,y,maxWidth){if(isNaN(x)||isNaN(y)||typeof text!="string")throw console.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to 
80jsPDF.context2d.fillText");if(maxWidth=isNaN(maxWidth)?void 0:maxWidth,!isFillTransparent.call(this)){y=getBaseline.call(this,y);var degs=rad2deg(this.ctx.transform.rotation),scale=this.ctx.transform.scaleX;putText.call(this,{text:text,x:x,y:y,scale:scale,angle:degs,align:this.textAlign,maxWidth:maxWidth})}},Context2D.prototype.strokeText=function(text,x,y,maxWidth){if(isNaN(x)||isNaN(y)||typeof text!="string")throw console.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!isStrokeTransparent.call(this)){maxWidth=isNaN(maxWidth)?void 0:maxWidth,y=getBaseline.call(this,y);var degs=rad2deg(this.ctx.transform.rotation),scale=this.ctx.transform.scaleX;putText.call(this,{text:text,x:x,y:y,scale:scale,renderingMode:"stroke",angle:degs,align:this.textAlign,maxWidth:maxWidth})}},Context2D.prototype.measureText=function(text){if(typeof text!="string")throw console.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var pdf=this.pdf,k=this.pdf.internal.scaleFactor,fontSize=pdf.internal.getFontSize(),txtWidth=pdf.getStringUnitWidth(text)*fontSize/pdf.internal.scaleFactor;txtWidth*=Math.round(k*96/72*1e4)/1e4;var TextMetrics=function(options){options=options||{};var _width=options.width||0;return Object.defineProperty(this,"width",{get:function(){return _width}}),this};return new TextMetrics({width:txtWidth})},Context2D.prototype.scale=function(scalewidth,scaleheight){if(isNaN(scalewidth)||isNaN(scaleheight))throw console.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var matrix=new Matrix(scalewidth,0,0,scaleheight,0,0);this.ctx.transform=this.ctx.transform.multiply(matrix)},Context2D.prototype.rotate=function(angle){if(isNaN(angle))throw console.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var matrix=new Matrix(Math.cos(angle),Math.sin(angle),-Math.sin(angle),Math.cos(angle),0,0);this.ctx.transform=this.ctx.transform.multiply(matrix)},Context2D.prototype.translate=function(x,y){if(isNaN(x)||isNaN(y))throw console.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var matrix=new Matrix(1,0,0,1,x,y);this.ctx.transform=this.ctx.transform.multiply(matrix)},Context2D.prototype.transform=function(a,b,c,d,e,f){if(isNaN(a)||isNaN(b)||isNaN(c)||isNaN(d)||isNaN(e)||isNaN(f))throw console.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var matrix=new Matrix(a,b,c,d,e,f);this.ctx.transform=this.ctx.transform.multiply(matrix)},Context2D.prototype.setTransform=function(a,b,c,d,e,f){a=isNaN(a)?1:a,b=isNaN(b)?0:b,c=isNaN(c)?0:c,d=isNaN(d)?1:d,e=isNaN(e)?0:e,f=isNaN(f)?0:f,this.ctx.transform=new Matrix(a,b,c,d,e,f)},Context2D.prototype.drawImage=function(img,sx,sy,swidth,sheight,x,y,width,height){var imageProperties=this.pdf.getImageProperties(img),factorX=1,factorY=1,clipFactorX=1,clipFactorY=1,scaleFactorX=1;typeof swidth!="undefined"&&typeof width!="undefined"&&(clipFactorX=width/swidth,clipFactorY=height/sheight,factorX=imageProperties.width/swidth*width/swidth,factorY=imageProperties.height/sheight*height/sheight),typeof x=="undefined"&&(x=sx,y=sy,sx=0,sy=0),typeof swidth!="undefined"&&typeof width=="undefined"&&(width=swidth,height=sheight),typeof swidth=="undefined"&&typeof width=="undefined"&&(width=imageProperties.width,height=imageProperties.height);var decomposedTransformationMatrix=this.ctx.transform.decompose(),angle=rad2deg(decomposedTransformationMatrix.rotate.shx);scaleFactorX=decomposedTransformationMatrix.scale.sx,scaleFactorX=decomposedTransformationMatrix.scale.sy;var matrix=new Matrix;matrix=matrix.multiply(decomposedTransformationMatrix.translate),matrix=matrix.multiply(decomposedTransformationMatrix.skew),matrix=matrix.multiply(decomposedTransformationMatrix.scale);for(var mP=matrix.applyToPoint(new Point(width,height)),xRect=matrix.applyToRectangle(new Rectangle(x-sx*clipFactorX,y-sy*clipFactorY,swidth*factorX,sheight*factorY)),pageArray=getPagesByPath.call(this,xRect),pages=[],ii=0;ii<pageArray.length;ii+=1)pages.indexOf(pageArray[ii])===-1&&pages.push(pageArray[ii]);pages.sort();var clipPath;if(this.autoPaging)for(var min=pages[0],max=pages[pages.length-1],i=min;i<max+1;i++){if(this.pdf.setPage(i),this.ctx.clip_path.length!==0){var tmpPaths=this.path;clipPath=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=pathPositionRedo(clipPath,this.posX,-1*this.pdf.internal.pageSize.height*(i-1)+this.posY),drawPaths.call(this,"fill",!0),this.path=tmpPaths}var tmpRect=JSON.parse(JSON.stringify(xRect));tmpRect=pathPositionRedo([tmpRect],this.posX,-1*this.pdf.internal.pageSize.height*(i-1)+this.posY)[0],this.pdf.addImage(img,"jpg",tmpRect.x,tmpRect.y,tmpRect.w,tmpRect.h,null,
80null,angle)}else this.pdf.addImage(img,"jpg",xRect.x,xRect.y,xRect.w,xRect.h,null,null,angle)};var getPagesByPath=function(path,pageWrapX,pageWrapY){var result=[];switch(pageWrapX=pageWrapX||this.pdf.internal.pageSize.width,pageWrapY=pageWrapY||this.pdf.internal.pageSize.height,path.type){default:case"mt":case"lt":result.push(Math.floor((path.y+this.posY)/pageWrapY)+1);break;case"arc":result.push(Math.floor((path.y+this.posY-path.radius)/pageWrapY)+1),result.push(Math.floor((path.y+this.posY+path.radius)/pageWrapY)+1);break;case"qct":var rectOfQuadraticCurve=getQuadraticCurveBoundary(this.ctx.lastPoint.x,this.ctx.lastPoint.y,path.x1,path.y1,path.x,path.y);result.push(Math.floor(rectOfQuadraticCurve.y/pageWrapY)+1),result.push(Math.floor((rectOfQuadraticCurve.y+rectOfQuadraticCurve.h)/pageWrapY)+1);break;case"bct":var rectOfBezierCurve=getBezierCurveBoundary(this.ctx.lastPoint.x,this.ctx.lastPoint.y,path.x1,path.y1,path.x2,path.y2,path.x,path.y);result.push(Math.floor(rectOfBezierCurve.y/pageWrapY)+1),result.push(Math.floor((rectOfBezierCurve.y+rectOfBezierCurve.h)/pageWrapY)+1);break;case"rect":result.push(Math.floor((path.y+this.posY)/pageWrapY)+1),result.push(Math.floor((path.y+path.h+this.posY)/pageWrapY)+1)}for(var i=0;i<result.length;i+=1)for(;this.pdf.internal.getNumberOfPages()<result[i];)addPage.call(this);return result},addPage=function(){var fillStyle=this.fillStyle,strokeStyle=this.strokeStyle,font=this.font,lineCap=this.lineCap,lineWidth=this.lineWidth,lineJoin=this.lineJoin;this.pdf.addPage(),this.fillStyle=fillStyle,this.strokeStyle=strokeStyle,this.font=font,this.lineCap=lineCap,this.lineWidth=lineWidth,this.lineJoin=lineJoin},pathPositionRedo=function(paths,x,y){for(var i=0;i<paths.length;i++)switch(paths[i].type){case"bct":paths[i].x2+=x,paths[i].y2+=y;case"qct":paths[i].x1+=x,paths[i].y1+=y;default:paths[i].x+=x,paths[i].y+=y}return paths},pathPreProcess=function(rule,isClip){for(var fillStyle=this.fillStyle,strokeStyle=this.strokeStyle,font=this.font,lineCap=this.lineCap,lineWidth=this.lineWidth,lineJoin=this.lineJoin,origPath=JSON.parse(JSON.stringify(this.path)),xPath=JSON.parse(JSON.stringify(this.path)),clipPath,tmpPath,pages=[],i=0;i<xPath.length;i++)if(typeof xPath[i].x!="undefined")for(var page=getPagesByPath.call(this,xPath[i]),ii=0;ii<page.length;ii+=1)pages.indexOf(page[ii])===-1&&pages.push(page[ii]);for(var i=0;i<pages.length;i++)for(;this.pdf.internal.getNumberOfPages()<pages[i];)addPage.call(this);if(pages.sort(),this.autoPaging)for(var min=pages[0],max=pages[pages.length-1],i=min;i<max+1;i++){if(this.pdf.setPage(i),this.fillStyle=fillStyle,this.strokeStyle=strokeStyle,this.lineCap=lineCap,this.lineWidth=lineWidth,this.lineJoin=lineJoin,this.ctx.clip_path.length!==0){var tmpPaths=this.path;clipPath=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=pathPositionRedo(clipPath,this.posX,-1*this.pdf.internal.pageSize.height*(i-1)+this.posY),drawPaths.call(this,rule,!0),this.path=tmpPaths}tmpPath=JSON.parse(JSON.stringify(origPath)),this.path=pathPositionRedo(tmpPath,this.posX,-1*this.pdf.internal.pageSize.height*(i-1)+this.posY),(isClip===!1||i===0)&&drawPaths.call(this,rule,isClip)}else drawPaths.call(this,rule,isClip);this.path=origPath},drawPaths=function(rule,isClip){if(!(rule==="stroke"&&!isClip&&isStrokeTransparent.call(this))&&!(rule!=="stroke"&&!isClip&&isFillTransparent.call(this))){var moves=[],alpha=this.ctx.globalAlpha;this.ctx.fillOpacity<1&&(alpha=this.ctx.fillOpacity);for(var xPath=this.path,i=0;i<xPath.length;i++){var pt=xPath[i];switch(pt.type){case"begin":moves.push({begin:!0});break;case"close":moves.push({close:!0});break;case"mt":moves.push({start:pt,deltas:[],abs:[]});break;case"lt":var iii=moves.length;if(!isNaN(xPath[i-1].x)){var delta=[pt.x-xPath[i-1].x,pt.y-xPath[i-1].y];if(iii>0){for(iii;iii>=0;iii--)if(moves[iii-1].close!==!0&&moves[iii-1].begin!==!0){moves[iii-1].deltas.push(delta),moves[iii-1].abs.push(pt);break}}}break;case"bct":var delta=[pt.x1-xPath[i-1].x,pt.y1-xPath[i-1].y,pt.x2-xPath[i-1].x,pt.y2-xPath[i-1].y,pt.x-xPath[i-1].x,pt.y-xPath[i-1].y];moves[moves.length-1].deltas.push(delta);break;case"qct":var x1=xPath[i-1].x+2/3*(pt.x1-xPath[i-1].x),y1=xPath[i-1].y+2/3*(pt.y1-xPath[i-1].y),x2=pt.x+2/3*(pt.x1-pt.x),y2=pt.y+2/3*(pt.y1-pt.y),x3=pt.x,y3=pt.y,delta=[x1-xPath[i-1].x,y1-xPath[i-1].y,x2-xPath[i-1].x,y2-xPath[i-1].y,x3-xPath[i-1].x,y3-xPath[i-1].y];moves[moves.length-1].deltas.push(delta);break;case"arc":moves.push({deltas:[],abs:[],arc:!0}),Array.isArray(moves[moves.length-1].abs)&&moves[moves.length-1].abs.push(pt);break}}var style;
80isClip?style=null:rule==="stroke"?style="stroke":style="fill";for(var i=0;i<moves.length;i++){if(moves[i].arc)for(var arcs=moves[i].abs,ii=0;ii<arcs.length;ii++){var arc=arcs[ii];if(typeof arc.startAngle!="undefined"){var start=rad2deg(arc.startAngle),end=rad2deg(arc.endAngle),x=arc.x,y=arc.y;drawArc.call(this,x,y,arc.radius,start,end,arc.counterclockwise,style,isClip)}else drawLine.call(this,arc.x,arc.y)}if(!moves[i].arc&&moves[i].close!==!0&&moves[i].begin!==!0){var x=moves[i].start.x,y=moves[i].start.y;drawLines.call(this,moves[i].deltas,x,y,null,null)}}style&&putStyle.call(this,style),isClip&&doClip.call(this)}},getBaseline=function(y){var height=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,descent=height*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return y-descent;case"top":return y+height-descent;case"hanging":return y+height-2*descent;case"middle":return y+height/2-descent;case"ideographic":return y;default:return y}};Context2D.prototype.createLinearGradient=function(){var canvasGradient=function(){};return canvasGradient.colorStops=[],canvasGradient.addColorStop=function(offset,color){this.colorStops.push([offset,color])},canvasGradient.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},canvasGradient.isCanvasGradient=!0,canvasGradient},Context2D.prototype.createPattern=function(){return this.createLinearGradient()},Context2D.prototype.createRadialGradient=function(){return this.createLinearGradient()};var drawArc=function(x,y,r,a1,a2,counterclockwise,style,isClip){for(var k=this.pdf.internal.scaleFactor,a1r=deg2rad(a1),a2r=deg2rad(a2),curves=createArc.call(this,r,a1r,a2r,counterclockwise),i=0;i<curves.length;i++){var curve=curves[i];i===0&&doMove.call(this,curve.x1+x,curve.y1+y),drawCurve.call(this,x,y,curve.x2,curve.y2,curve.x3,curve.y3,curve.x4,curve.y4)}isClip?doClip.call(this):putStyle.call(this,style)},putStyle=function(style){switch(style){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f");break}},doClip=function(){this.pdf.clip()},doMove=function(x,y){this.pdf.internal.out(getHorizontalCoordinateString(x)+" "+getVerticalCoordinateString(y)+" m")},putText=function(options){var textAlign;switch(options.align){case"right":case"end":textAlign="right";break;case"center":textAlign="center";break;default:textAlign="left";break}var pt=this.ctx.transform.applyToPoint(new Point(options.x,options.y)),decomposedTransformationMatrix=this.ctx.transform.decompose(),matrix=new Matrix;matrix=matrix.multiply(decomposedTransformationMatrix.translate),matrix=matrix.multiply(decomposedTransformationMatrix.skew),matrix=matrix.multiply(decomposedTransformationMatrix.scale);for(var textDimensions=this.pdf.getTextDimensions(options.text),textRect=this.ctx.transform.applyToRectangle(new Rectangle(options.x,options.y,textDimensions.w,textDimensions.h)),textXRect=matrix.applyToRectangle(new Rectangle(options.x,options.y-textDimensions.h,textDimensions.w,textDimensions.h)),pageArray=getPagesByPath.call(this,textXRect),pages=[],ii=0;ii<pageArray.length;ii+=1)pages.indexOf(pageArray[ii])===-1&&pages.push(pageArray[ii]);pages.sort();var clipPath;if(this.autoPaging===!0)for(var min=pages[0],max=pages[pages.length-1],i=min;i<max+1;i++){if(this.pdf.setPage(i),this.ctx.clip_path.length!==0){var tmpPaths=this.path;clipPath=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=pathPositionRedo(clipPath,this.posX,-1*this.pdf.internal.pageSize.height*(i-1)+this.posY),drawPaths.call(this,"fill",!0),this.path=tmpPaths}var tmpRect=JSON.parse(JSON.stringify(textRect));if(tmpRect=pathPositionRedo([tmpRect],this.posX,-1*this.pdf.internal.pageSize.height*(i-1)+this.posY)[0],options.scale>=.01){var oldSize=this.pdf.internal.getFontSize();this.pdf.setFontSize(oldSize*options.scale)}this.pdf.text(options.text,tmpRect.x,tmpRect.y,{angle:options.angle,align:textAlign,renderingMode:options.renderingMode,maxWidth:options.maxWidth}),options.scale>=.01&&this.pdf.setFontSize(oldSize)}else{if(options.scale>=.01){var oldSize=this.pdf.internal.getFontSize();this.pdf.setFontSize(oldSize*options.scale)}this.pdf.text(options.text,pt.x+this.posX,pt.y+this.posY,{angle:options.angle,align:textAlign,renderingMode:options.renderingMode,maxWidth:options.maxWidth}),options.scale>=.01&&this.pdf.setFontSize(oldSize)}},drawLine=function(x,y,prevX,prevY){prevX=prevX||0,prevY=prevY||0,this.pdf.internal.out(getHorizontalCoordinateString(x+prevX)+" "+getVerticalCoordinateString(y+prevY)+" l")},drawLines=function(lines,x,y){return this.pdf.lines(lines,x,y,null,null)},drawCurve=function(x,y,x1,y1,x2,y2,x3,y3){this.pdf.internal.out([f2(getHorizontalCoordinate(x1+x)),f2(getVerticalCoordinate(y1+y)),f2(getHorizontalCoordinate(x2+x)),f2(getVerticalCoordinate(y2+y)),f2(getHorizontalCoordinate(x3+x)),f2(getVerticalCoordinate(y3+y)),"c"].join(" "))},createArc=function(radius,startAngle,endAngle,anticlockwise){var EPS
80ILON=1e-5,twoPI=Math.PI*2,startAngleN=startAngle;(startAngleN<twoPI||startAngleN>twoPI)&&(startAngleN=startAngleN%twoPI);var endAngleN=endAngle;(endAngleN<twoPI||endAngleN>twoPI)&&(endAngleN=endAngleN%twoPI);for(var curves=[],piOverTwo=Math.PI/2,sgn=anticlockwise?-1:1,a1=startAngle,totalAngle=Math.min(twoPI,Math.abs(endAngleN-startAngleN));totalAngle>EPSILON;){var a2=a1+sgn*Math.min(totalAngle,piOverTwo);curves.push(createSmallArc.call(this,radius,a1,a2)),totalAngle-=Math.abs(a2-a1),a1=a2}return curves},createSmallArc=function(r,a1,a2){var a=(a2-a1)/2,x4=r*Math.cos(a),y4=r*Math.sin(a),x1=x4,y1=-y4,q1=x1*x1+y1*y1,q2=q1+x1*x4+y1*y4,k2=4/3*(Math.sqrt(2*q1*q2)-q2)/(x1*y4-y1*x4),x2=x1-k2*y1,y2=y1+k2*x1,x3=x2,y3=-y2,ar=a+a1,cos_ar=Math.cos(ar),sin_ar=Math.sin(ar);return{x1:r*Math.cos(a1),y1:r*Math.sin(a1),x2:x2*cos_ar-y2*sin_ar,y2:x2*sin_ar+y2*cos_ar,x3:x3*cos_ar-y3*sin_ar,y3:x3*sin_ar+y3*cos_ar,x4:r*Math.cos(a2),y4:r*Math.sin(a2)}},rad2deg=function(value){return value*180/Math.PI},deg2rad=function(deg){return deg*Math.PI/180},getQuadraticCurveBoundary=function(sx,sy,cpx,cpy,ex,ey){var midX1=sx+(cpx-sx)*.5,midY1=sy+(cpy-sy)*.5,midX2=ex+(cpx-ex)*.5,midY2=ey+(cpy-ey)*.5,resultX1=Math.min(sx,ex,midX1,midX2),resultX2=Math.max(sx,ex,midX1,midX2),resultY1=Math.min(sy,ey,midY1,midY2),resultY2=Math.max(sy,ey,midY1,midY2);return new Rectangle(resultX1,resultY1,resultX2-resultX1,resultY2-resultY1)},getBezierCurveBoundary=function(ax,ay,bx,by,cx,cy,dx,dy){for(var tobx=bx-ax,toby=by-ay,tocx=cx-bx,tocy=cy-by,todx=dx-cx,tody=dy-cy,precision=40,d,px,py,qx,qy,rx,ry,tx,ty,sx,sy,x,y,i,minx,miny,maxx,maxy,toqx,toqy,torx,tory,totx,toty,i=0;i<precision+1;i++)d=i/precision,px=ax+d*tobx,py=ay+d*toby,qx=bx+d*tocx,qy=by+d*tocy,rx=cx+d*todx,ry=cy+d*tody,toqx=qx-px,toqy=qy-py,torx=rx-qx,tory=ry-qy,sx=px+d*toqx,sy=py+d*toqy,tx=qx+d*torx,ty=qy+d*tory,totx=tx-sx,toty=ty-sy,x=sx+d*totx,y=sy+d*toty,i==0?(minx=x,miny=y,maxx=x,maxy=y):(minx=Math.min(minx,x),miny=Math.min(miny,y),maxx=Math.max(maxx,x),maxy=Math.max(maxy,y));return new Rectangle(Math.round(minx),Math.round(miny),Math.round(maxx-minx),Math.round(maxy-miny))},Point=function(x,y){var _x=x||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return _x},set:function(value){isNaN(value)||(_x=parseFloat(value))}});var _y=y||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return _y},set:function(value){isNaN(value)||(_y=parseFloat(value))}});var _type="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return _type},set:function(value){_type=value.toString()}}),this},Rectangle=function(x,y,w,h){Point.call(this,x,y),this.type="rect";var _w=w||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return _w},set:function(value){isNaN(value)||(_w=parseFloat(value))}});var _h=h||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return _h},set:function(value){isNaN(value)||(_h=parseFloat(value))}}),this},Matrix=function(sx,shy,shx,sy,tx,ty){var _matrix=[];return Object.defineProperty(this,"sx",{get:function(){return _matrix[0]},set:function(value){_matrix[0]=Math.round(value*1e5)/1e5}}),Object.defineProperty(this,"shy",{get:function(){return _matrix[1]},set:function(value){_matrix[1]=Math.round(value*1e5)/1e5}}),Object.defineProperty(this,"shx",{get:function(){return _matrix[2]},set:function(value){_matrix[2]=Math.round(value*1e5)/1e5}}),Object.defineProperty(this,"sy",{get:function(){return _matrix[3]},set:function(value){_matrix[3]=Math.round(value*1e5)/1e5}}),Object.defineProperty(this,"tx",{get:function(){return _matrix[4]},set:function(value){_matrix[4]=Math.round(value*1e5)/1e5}}),Object.defineProperty(this,"ty",{get:function(){return _matrix[5]},set:function(value){_matrix[5]=Math.round(value*1e5)/1e5}}),Object.defineProperty(this,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(this,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(this,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(this,"isIdentity",{get:function(){return!(this.sx!==1||this.shy!==0||this.shx!==0||this.sy!==1||this.tx!==0||this.ty!==0)}}),this.sx=isNaN(sx)?1:sx,this.shy=isNaN(shy)?0:shy,this.shx=isNaN(shx)?0:shx,this.sy=isNaN(sy)?1:sy,this.tx=isNaN(tx)?0:tx,this.ty=isNaN(ty)?0:ty,this};Matrix.prototype.multiply=function(matrix){var sx=matrix.sx*this.sx+matrix.shy*this.shx,shy=matrix.sx*this.shy+matrix.shy*this.sy,shx=matrix.shx*this.sx+matrix.sy*this.shx,sy=matrix.shx*this.shy+matrix.sy*this.sy,tx=matrix.tx*this.sx+matrix.ty*this.shx+this.tx,ty=matrix.tx*this.shy+matrix.ty*this.sy+this.ty;return new Matrix(sx,shy,shx,sy,tx,ty)},Matrix.prototype.decompose=function(){var a=this.sx,b=this.shy,c=this.shx,d=this.sy,e=this.tx,f=this.t
80y,scaleX=Math.sqrt(a*a+b*b);a/=scaleX,b/=scaleX;var shear=a*c+b*d;c-=a*shear,d-=b*shear;var scaleY=Math.sqrt(c*c+d*d);return c/=scaleY,d/=scaleY,shear/=scaleY,a*d<b*c&&(a=-a,b=-b,shear=-shear,scaleX=-scaleX),{scale:new Matrix(scaleX,0,0,scaleY,0,0),translate:new Matrix(1,0,0,1,e,f),rotate:new Matrix(a,b,-b,a,0,0),skew:new Matrix(1,0,shear,1,0,0)}},Matrix.prototype.applyToPoint=function(pt){var x=pt.x*this.sx+pt.y*this.shx+this.tx,y=pt.x*this.shy+pt.y*this.sy+this.ty;return new Point(x,y)},Matrix.prototype.applyToRectangle=function(rect){var pt1=this.applyToPoint(rect),pt2=this.applyToPoint(new Point(rect.x+rect.w,rect.y+rect.h));return new Rectangle(pt1.x,pt1.y,pt2.x-pt1.x,pt2.y-pt1.y)},Matrix.prototype.clone=function(){var sx=this.sx,shy=this.shy,shx=this.shx,sy=this.sy,tx=this.tx,ty=this.ty;return new Matrix(sx,shy,shx,sy,tx,ty)}})(jsPDF2.API,typeof self!="undefined"&&self||typeof window!="undefined"&&window||typeof global!="undefined"&&global||Function('return typeof this === "object" && this.content')()||Function("return this")()),(function(jsPDFAPI){var ASCII85Encode=function(a){var b,c,d,e,f,g,h,i,j,k;for(/[^\x00-\xFF]/.test(a),b="\0\0\0\0".slice(a.length%4||4),a+=b,c=[],d=0,e=a.length;e>d;d+=4)f=(a.charCodeAt(d)<<24)+(a.charCodeAt(d+1)<<16)+(a.charCodeAt(d+2)<<8)+a.charCodeAt(d+3),f!==0?(k=f%85,f=(f-k)/85,j=f%85,f=(f-j)/85,i=f%85,f=(f-i)/85,h=f%85,f=(f-h)/85,g=f%85,c.push(g+33,h+33,i+33,j+33,k+33)):c.push(122);return(function(a2,b2){for(var c2=b2;c2>0;c2--)a2.pop()})(c,b.length),String.fromCharCode.apply(String,c)+"~>"},ASCII85Decode=function(a){var c,d,e,f,g,h=String,l="length",w=255,x="charCodeAt",y="slice",z="replace";for(a[y](-2),a=a[y](0,-2)[z](/\s/g,"")[z]("z","!!!!!"),c="uuuuu"[y](a[l]%5||5),a+=c,e=[],f=0,g=a[l];g>f;f+=5)d=52200625*(a[x](f)-33)+614125*(a[x](f+1)-33)+7225*(a[x](f+2)-33)+85*(a[x](f+3)-33)+(a[x](f+4)-33),e.push(w&d>>24,w&d>>16,w&d>>8,w&d);return(function(a2,b){for(var c2=b;c2>0;c2--)a2.pop()})(e,c[l]),h.fromCharCode.apply(h,e)},ASCIIHexEncode=function(value){for(var result="",i,i=0;i<value.length;i+=1)result+=("0"+value.charCodeAt(i).toString(16)).slice(-2);return result+=">",result},ASCIIHexDecode=function(value){var regexCheckIfHex=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(value=value.replace(/\s/g,""),value.indexOf(">")!==-1&&(value=value.substr(0,value.indexOf(">"))),value.length%2&&(value+="0"),regexCheckIfHex.test(value)===!1)return"";for(var result="",i,i=0;i<value.length;i+=2)result+=String.fromCharCode("0x"+(value[i]+value[i+1]));return result},FlateEncode=function(data,options){options=Object.assign({predictor:1,colors:1,bitsPerComponent:8,columns:1},options);for(var arr=[],i=data.length,adler32,deflater;i--;)arr[i]=data.charCodeAt(i);return adler32=jsPDFAPI.adler32cs.from(data),deflater=new Deflater(6),deflater.append(new Uint8Array(arr)),data=deflater.flush(),arr=new Uint8Array(data.length+6),arr.set(new Uint8Array([120,156])),arr.set(data,2),arr.set(new Uint8Array([adler32&255,adler32>>8&255,adler32>>16&255,adler32>>24&255]),data.length+2),data=String.fromCharCode.apply(null,arr),data};jsPDFAPI.processDataByFilters=function(origData,filterChain){var i=0,data=origData||"",reverseChain=[];for(filterChain=filterChain||[],typeof filterChain=="string"&&(filterChain=[filterChain]),i=0;i<filterChain.length;i+=1)switch(filterChain[i]){case"ASCII85Decode":case"/ASCII85Decode":data=ASCII85Decode(data),reverseChain.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":data=ASCII85Encode(data),reverseChain.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":data=ASCIIHexDecode(data),reverseChain.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":data=ASCIIHexEncode(data),reverseChain.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":data=FlateEncode(data),reverseChain.push("/FlateDecode");break;default:throw'The filter: "'+filterChain[i]+'" is not implemented'}return{data:data,reverseChain:reverseChain.reverse().join(" ")}}})(jsPDF2.API),(function(jsPDFAPI){jsPDFAPI.loadFile=function(url,sync,callback){sync=sync||!0,callback=callback||function(){};var result,xhr=function(url2,sync2,callback2){var req=new XMLHttpRequest,byteArray=[],i=0,sanitizeUnicode=function(data){var dataLength=data.length,StringFromCharCode=String.fromCharCode;for(i=0;i<dataLength;i+=1)byteArray.push(StringFromCharCode(data.charCodeAt(i)&255));return byteArray.join("")};if(req.open("GET",url2,!sync2),req.overrideMimeType("text/plain;
80 charset=x-user-defined"),sync2===!1&&(req.onload=function(){return sanitizeUnicode(this.responseText)}),req.send(null),req.status!==200){console.warn('Unable to load file "'+url2+'"');return}if(sync2)return sanitizeUnicode(req.responseText)};try{result=xhr(url,sync,callback)}catch(e){result=void 0}return result},jsPDFAPI.loadImageFile=jsPDFAPI.loadFile})(jsPDF2.API),(function(jsPDFAPI,global2){var objType=function(obj){var type=_typeof(obj);return type==="undefined"?"undefined":type==="string"||obj instanceof String?"string":type==="number"||obj instanceof Number?"number":type==="function"||obj instanceof Function?"function":obj&&obj.constructor===Array?"array":obj&&obj.nodeType===1?"element":type==="object"?"object":"unknown"},createElement=function(tagName,opt){var el=document.createElement(tagName);if(opt.className&&(el.className=opt.className),opt.innerHTML){el.innerHTML=opt.innerHTML;for(var scripts=el.getElementsByTagName("script"),i=scripts.length;i-- >0;null)scripts[i].parentNode.removeChild(scripts[i])}for(var key in opt.style)el.style[key]=opt.style[key];return el},cloneNode=function cloneNode2(node,javascriptEnabled){for(var clone=node.nodeType===3?document.createTextNode(node.nodeValue):node.cloneNode(!1),child=node.firstChild;child;child=child.nextSibling)(javascriptEnabled===!0||child.nodeType!==1||child.nodeName!=="SCRIPT")&&clone.appendChild(cloneNode2(child,javascriptEnabled));return node.nodeType===1&&(node.nodeName==="CANVAS"?(clone.width=node.width,clone.height=node.height,clone.getContext("2d").drawImage(node,0,0)):(node.nodeName==="TEXTAREA"||node.nodeName==="SELECT")&&(clone.value=node.value),clone.addEventListener("load",function(){clone.scrollTop=node.scrollTop,clone.scrollLeft=node.scrollLeft},!0)),clone},Worker=function Worker2(opt){var root=Object.assign(Worker2.convert(Promise.resolve()),JSON.parse(JSON.stringify(Worker2.template))),self2=Worker2.convert(Promise.resolve(),root);return self2=self2.setProgress(1,Worker2,1,[Worker2]),self2=self2.set(opt),self2};Worker.prototype=Object.create(Promise.prototype),Worker.prototype.constructor=Worker,Worker.convert=function(promise,inherit){return promise.__proto__=inherit||Worker.prototype,promise},Worker.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:{}}},Worker.prototype.from=function(src,type){function getType(src2){switch(objType(src2)){case"string":return"string";case"element":return src2.nodeName.toLowerCase==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(type=type||getType(src),type){case"string":return this.set({src:createElement("div",{innerHTML:src})});case"element":return this.set({src:src});case"canvas":return this.set({canvas:src});case"img":return this.set({img:src});default:return this.error("Unknown source type.")}})},Worker.prototype.to=function(target){switch(target){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.")}},Worker.prototype.toContainer=function(){var prereqs=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(prereqs).then(function(){var overlayCSS={position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0},containerCSS={position:"relative",display:"inline-block",width:Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:"white"},source=cloneNode(this.prop.src,this.opt.html2canvas.javascriptEnabled);source.tagName==="BODY"&&(containerCSS.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=createElement("div",{className:"html2pdf__overlay",style:overlayCSS}),this.prop.container=createElement("div",{className:"html2pdf__container",style:containerCSS}),this.prop.container.appendChild(source),this.prop.container.firstChild.appendChild(createElement("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"})},Worker.prototype.toCanvas=function(){var prereqs=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(prereqs).then(function(){var options=Object.assign({},this.opt.html2canvas);if(delete options.onrendered,!!this.isHtml2CanvasLoaded())return html2canvas(this.prop.container,options)}).then(function(canvas){var onRendered=this.opt.html2canvas.onrendered||function(){};onRendered(canvas),this.prop.canvas=canvas,document.body.removeChild(this.prop.overlay)})},Worker.prototype.toContext2d=function(){var prereqs=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(prereqs).then(function(){var pdf=this.opt.jsPDF,options=Object.assign({async:!0,allowTaint:!0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete options.onrendered,pdf.context2d.autoPaging=!0,pdf.context2d.posX=this.opt.x,pdf.context2d.posY=this.opt.y,options.windowHeight=options.windowHeight||0,options.windowHeight=options.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):options.windowHeight,!!this.isHtml2CanvasLoaded())return html2canvas(this.prop.container,options)}).then(function(canvas){var onRendered=this.opt.html2canvas.onrendered||function(){};onRendered(canvas),this.prop.canvas=canvas,document.body.removeChild(this.prop.overlay)})},Worker.prototype.toImg=function(){var prereqs=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(prereqs).then(function(){var imgData=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=imgData})},Worker.prototype.toPdf=function(){var prereqs=[function(){return this.toContext2d()}];return this.thenList(prereqs).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},Worker.prototype.output=function(type,options,src){return src=src||"pdf",src.toLowerCase()==="img"||src.toLowerCase()==="image"?this.outputImg(type,options):this.outputPdf(type,options)},Worker.prototype.outputPdf=function(type,options){var prereqs=[function(){return this.prop.pdf||this.toPdf(
80)}];return this.thenList(prereqs).then(function(){return this.prop.pdf.output(type,options)})},Worker.prototype.outputImg=function(type,options){var prereqs=[function(){return this.prop.img||this.toImg()}];return this.thenList(prereqs).then(function(){switch(type){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 "'+type+'" is not supported.'}})},Worker.prototype.isHtml2CanvasLoaded=function(){var result=typeof global2.html2canvas!="undefined";return result||console.error("html2canvas not loaded."),result},Worker.prototype.save=function(filename){var prereqs=[function(){return this.prop.pdf||this.toPdf()}];if(this.isHtml2CanvasLoaded())return this.thenList(prereqs).set(filename?{filename:filename}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Worker.prototype.doCallback=function(filename){var prereqs=[function(){return this.prop.pdf||this.toPdf()}];if(this.isHtml2CanvasLoaded())return this.thenList(prereqs).then(function(){this.prop.callback(this.prop.pdf)})},Worker.prototype.set=function(opt){if(objType(opt)!=="object")return this;var fns=Object.keys(opt||{}).map(function(key){if(key in Worker.template.prop)return function(){this.prop[key]=opt[key]};switch(key){case"margin":return this.setMargin.bind(this,opt.margin);case"jsPDF":return function(){return this.opt.jsPDF=opt.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,opt.pageSize);default:return function(){this.opt[key]=opt[key]}}},this);return this.then(function(){return this.thenList(fns)})},Worker.prototype.get=function(key,cbk){return this.then(function(){var val=key in Worker.template.prop?this.prop[key]:this.opt[key];return cbk?cbk(val):val})},Worker.prototype.setMargin=function(margin){return this.then(function(){switch(objType(margin)){case"number":margin=[margin,margin,margin,margin];case"array":if(margin.length===2&&(margin=[margin[0],margin[1],margin[0],margin[1]]),margin.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=margin}).then(this.setPageSize)},Worker.prototype.setPageSize=function(pageSize){function toPx(val,k){return Math.floor(val*k/72*96)}return this.then(function(){pageSize=pageSize||jsPDF2.getPageSize(this.opt.jsPDF),pageSize.hasOwnProperty("inner")||(pageSize.inner={width:pageSize.width-this.opt.margin[1]-this.opt.margin[3],height:pageSize.height-this.opt.margin[0]-this.opt.margin[2]},pageSize.inner.px={width:toPx(pageSize.inner.width,pageSize.k),height:toPx(pageSize.inner.height,pageSize.k)},pageSize.inner.ratio=pageSize.inner.height/pageSize.inner.width),this.prop.pageSize=pageSize})},Worker.prototype.setProgress=function(val,state,n,stack){return val!=null&&(this.progress.val=val),state!=null&&(this.progress.state=state),n!=null&&(this.progress.n=n),stack!=null&&(this.progress.stack=stack),this.progress.ratio=this.progress.val/this.progress.state,this},Worker.prototype.updateProgress=function(val,state,n,stack){return this.setProgress(val?this.progress.val+val:null,state||null,n?this.progress.n+n:null,stack?this.progress.stack.concat(stack):null)},Worker.prototype.then=function(onFulfilled,onRejected){var self2=this;return this.thenCore(onFulfilled,onRejected,function(onFulfilled2,onRejected2){return self2.updateProgress(null,null,1,[onFulfilled2]),Promise.prototype.then.call(this,function(val){return self2.updateProgress(null,onFulfilled2),val}).then(onFulfilled2,onRejected2).then(function(val){return self2.updateProgress(1),val})})},Worker.prototype.thenCore=function(onFulfilled,onRejected,thenBase){thenBase=thenBase||Promise.prototype.then;var self2=this;onFulfilled&&(onFulfilled=onFulfilled.bind(self2)),onRejected&&(onRejected=onRejected.bind(self2));var isNative=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise",selfPromise=isNative?self2:Worker.convert(Object.assign({},self2),Promise.prototype),returnVal=thenBase.call(selfPromise,onFulfilled,onRejected);return Worker.convert(returnVal,self2.__proto__)},Worker.prototype.thenExternal=function(onFulfilled,onRejected){return Promise.prototype.then.call(this,onFulfilled,onRejected)},Worker.prototype.thenList=function(fns){var self2=this;return fns.forEach(function(fn){self2=self2.thenCore(fn)}),self2},Worker.prototype.catch=function(onRejected){onRejected&&(onRejected=onRejected.bind(this));var returnVal=Promise.prototype.catch.call(this,onRejected);return Worker.convert(returnVal,this)},Worker.prototype.catchExternal=function(onRejected){return Promise.prototype.catch.call(this,onRejected)},Worker.prototype.error=function(msg){return this.then(function(){throw new Error(msg)})},Worker.prototype.using=Worker.prototype.set,Worker.prototype.saveAs=Worker.prototype.save,Worker.prototype.exp
80ort=Worker.prototype.output,Worker.prototype.run=Worker.prototype.then,jsPDF2.getPageSize=function(orientation,unit,format){if(_typeof(orientation)==="object"){var options=orientation;orientation=options.orientation,unit=options.unit||unit,format=options.format||format}unit=unit||"mm",format=format||"a4",orientation=(""+(orientation||"P")).toLowerCase();var format_as_string=(""+format).toLowerCase(),pageFormats={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(unit){case"pt":var k=1;break;case"mm":var k=72/25.4;break;case"cm":var k=72/2.54;break;case"in":var k=72;break;case"px":var k=72/96;break;case"pc":var k=12;break;case"em":var k=12;break;case"ex":var k=6;break;default:throw"Invalid unit: "+unit}if(pageFormats.hasOwnProperty(format_as_string))var pageHeight=pageFormats[format_as_string][1]/k,pageWidth=pageFormats[format_as_string][0]/k;else try{var pageHeight=format[1],pageWidth=format[0]}catch(err){throw new Error("Invalid format: "+format)}if(orientation==="p"||orientation==="portrait"){if(orientation="p",pageWidth>pageHeight){var tmp=pageWidth;pageWidth=pageHeight,pageHeight=tmp}}else if(orientation==="l"||orientation==="landscape"){if(orientation="l",pageHeight>pageWidth){var tmp=pageWidth;pageWidth=pageHeight,pageHeight=tmp}}else throw"Invalid orientation: "+orientation;var info={width:pageWidth,height:pageHeight,unit:unit,k:k};return info},jsPDFAPI.html=function(src,options){options=options||{},options.callback=options.callback||function(){},options.html2canvas=options.html2canvas||{},options.html2canvas.canvas=options.html2canvas.canvas||this.canvas,options.jsPDF=options.jsPDF||this;var pdf=options.jsPDF,worker=new Worker(options);return options.worker?worker:worker.from(src).doCallback()}})(jsPDF2.API,typeof window!="undefined"&&window||typeof global!="undefined"&&global);/**
81 * @license
82 * ==================================================================== 
83 * Copyright (c) 2013 Youssef Beddad, [email protected]
84 * 
85 * 
86 * ====================================================================
87 */(function(jsPDFAPI){var jsNamesObj,jsJsObj,text;jsPDFAPI.addJS=function(javascript){return text=javascript,this.internal.events.subscribe("postPutResources",function(javascript2){jsNamesObj=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(jsNamesObj+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),jsJsObj=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+text+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){jsNamesObj!==void 0&&jsJsObj!==void 0&&this.internal.out("/Names <</JavaScript "+jsNamesObj+" 0 R>>")}),this}})(jsPDF2.API);/**
88 * @license
89 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  [email protected]
90 *
91 * Licensed under the MIT License.
92 * http://opensource.org/licenses/mit-license
93 */(function(jsPDFAPI){return jsPDFAPI.events.push(["postPutResources",function(){var pdf=this,rx=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var lines=pdf.outline.render().split(/\r\n/),i=0;i<lines.length;i++){var line=lines[i],m=rx.exec(line);if(m!=null){var oid=m[1];pdf.internal.newObjectDeferredBegin(oid,!1)}pdf.internal.write(line)}if(this.outline.createNamedDestinations){for(var totalPages=this.internal.pages.length,dests=[],i=0;i<totalPages;i++){var id=pdf.internal.newObject();dests.push(id);var info=pdf.internal.getPageInfo(i+1);pdf.internal.write("<< /D["+info.objId+" 0 R /XYZ null null null]>> endobj")}var names2Oid=pdf.internal.newObject();pdf.internal.write("<< /Names [ ");for(var i=0;i<dests.length;i++)pdf.internal.write("(page_"+(i+1)+")"+dests[i]+" 0 R");pdf.internal.write(" ] >>","endobj");var namesOid2=pdf.internal.newObject();pdf.internal.write("<< /Dests "+names2Oid+" 0 R"),pdf.internal.write(">>","endobj")}}]),jsPDFAPI.events.push(["putCatalog",function(){var pdf=this;pdf.outline.root.children.length>0&&(pdf.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&pdf.internal.write("/Names "+namesOid+" 0 R"))}]),jsPDFAPI.events.push(["initialized",function(){var pdf=this;pdf.outline={createNamedDestinations:!1,root:{children:[]}},pdf.outline.add=function(parent,title,options){var item={title:title,options:options,children:[]};return parent==null&&(parent=this.root),parent.children.push(item),item},pdf.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=pdf,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},pdf.outline.genIds_r=function(node){node.id=pdf.internal.newObjectDeferred();for(var i=0;i<node.children.length;i++)this.genIds_r(node.children[i])},pdf.outline.renderRoot=function(node){this.objStart(node),this.line("/Type /Outlines"),node.children.length>0&&(this.line("/First "+this.makeRef(node.children[0])),this.line("/Last "+this.makeRef(node.children[node.children.length-1]))),this.line("/Count "+this.count_r({count:0},node)),this.objEnd()},pdf.outline.renderItems=function(node){for(var getHorizontalCoordinateString=this.ctx.pdf.internal.getCoordinateString,getVerticalCoordinateString=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<node.children.length;i++){var item=node.children[i];this.objStart(item),this.line("/Title "+this.makeString(item.title)),this.line("/Parent "+this.makeRef(node)),i>0&&this.line("/Prev "+this.makeRef(node.children[i-1])),i<node.children.length-1&&this.line("/Next "+this.makeRef(node.children[i+1])),item.children.length>0&&(this.line("/First "+this.makeRef(item.children[0])),this.line("/Last "+this.makeRef(item.children[item.children.length-1])));var count=this.count=this.count_r({count:0},item);if(count>0&&this.line("/Count "+count),item.options&&item.options.pageNumber){var info=pdf.internal.getPageInfo(item.options.pageNumber);this.line("/Dest ["+info.objId+" 0 R /XYZ 0 "+getVerticalCoordinateString(0)+" 0]")}this.objEnd()}for(var i=0;i<node.children.length;i++){var item=node.children[i];this.renderItems(item)}},pdf.outline.line=function(text){this.ctx.val+=text+"\r\n"},pdf.outline.makeRef=function(node){return node.id+" 0 R"},pdf.outline.makeString=function(val){return"("+pdf.internal.pdfEscape(val)+")"},pdf.outline.objStart=function(node){this.ctx.val+="\r\n"+node.id+" 0 obj\r\n<<\r\n"},pdf.outline.objEnd=function(node){this.ctx.val+=">> \r\nendobj\r\n"},pdf.outline.count_r=function(ctx,node){for(var i=0;i<node.children.length;i++)ctx.count++,this.count_r(ctx,node.children[i]);return ctx.count}}]),this})(jsPDF2.API);/**
94 * @license
95 * 
96 * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
97 *
98 * 
99 * ====================================================================
100 */(function(jsPDFAPI){var doesNotHavePngJS=function(){return typeof P
100NG!="function"||typeof FlateStream!="function"},canCompress=function(value){return value!==jsPDFAPI.image_compression.NONE&&hasCompressionJS()},hasCompressionJS=function(){var inst=typeof Deflater=="function";if(!inst)throw new Error("requires deflate.js for compression");return inst},compressBytes=function(bytes,lineLength,colorsPerPixel,compression){var level=5,filter_method=filterUp;switch(compression){case jsPDFAPI.image_compression.FAST:level=3,filter_method=filterSub;break;case jsPDFAPI.image_compression.MEDIUM:level=6,filter_method=filterAverage;break;case jsPDFAPI.image_compression.SLOW:level=9,filter_method=filterPaeth;break}bytes=applyPngFilterMethod(bytes,lineLength,colorsPerPixel,filter_method);var header=new Uint8Array(createZlibHeader(level)),checksum=adler32(bytes),deflate=new Deflater(level),a=deflate.append(bytes),cBytes=deflate.flush(),len=header.length+a.length+cBytes.length,cmpd=new Uint8Array(len+4);return cmpd.set(header),cmpd.set(a,header.length),cmpd.set(cBytes,header.length+a.length),cmpd[len++]=checksum>>>24&255,cmpd[len++]=checksum>>>16&255,cmpd[len++]=checksum>>>8&255,cmpd[len++]=checksum&255,jsPDFAPI.arrayBufferToBinaryString(cmpd)},createZlibHeader=function(bytes,level){var cm=8,cinfo=Math.LOG2E*Math.log(32768)-8,cmf=cinfo<<4|cm,hdr=cmf<<8,flevel=Math.min(3,(level-1&255)>>1);return hdr|=flevel<<6,hdr|=0,hdr+=31-hdr%31,[cmf,hdr&255&255]},adler32=function(array,param){for(var adler=1,s1=adler&65535,s2=adler>>>16&65535,len=array.length,tlen,i=0;len>0;){tlen=len>param?param:len,len-=tlen;do s1+=array[i++],s2+=s1;while(--tlen);s1%=65521,s2%=65521}return(s2<<16|s1)>>>0},applyPngFilterMethod=function(bytes,lineLength,colorsPerPixel,filter_method){for(var lines=bytes.length/lineLength,result=new Uint8Array(bytes.length+lines),filter_methods=getFilterMethods(),i=0,line,prevLine,offset;i<lines;i++){if(offset=i*lineLength,line=bytes.subarray(offset,offset+lineLength),filter_method)result.set(filter_method(line,colorsPerPixel,prevLine),offset+i);else{for(var j=0,len=filter_methods.length,results=[];j<len;j++)results[j]=filter_methods[j](line,colorsPerPixel,prevLine);var ind=getIndexOfSmallestSum(results.concat());result.set(results[ind],offset+i)}prevLine=line}return result},filterNone=function(line,colorsPerPixel,prevLine){var result=Array.apply([],line);return result.unshift(0),result},filterSub=function(line,colorsPerPixel,prevLine){var result=[],i=0,len=line.length,left;for(result[0]=1;i<len;i++)left=line[i-colorsPerPixel]||0,result[i+1]=line[i]-left+256&255;return result},filterUp=function(line,colorsPerPixel,prevLine){var result=[],i=0,len=line.length,up;for(result[0]=2;i<len;i++)up=prevLine&&prevLine[i]||0,result[i+1]=line[i]-up+256&255;return result},filterAverage=function(line,colorsPerPixel,prevLine){var result=[],i=0,len=line.length,left,up;for(result[0]=3;i<len;i++)left=line[i-colorsPerPixel]||0,up=prevLine&&prevLine[i]||0,result[i+1]=line[i]+256-(left+up>>>1)&255;return result},filterPaeth=function(line,colorsPerPixel,prevLine){var result=[],i=0,len=line.length,left,up,upLeft,paeth;for(result[0]=4;i<len;i++)left=line[i-colorsPerPixel]||0,up=prevLine&&prevLine[i]||0,upLeft=prevLine&&prevLine[i-colorsPerPixel]||0,paeth=paethPredictor(left,up,upLeft),result[i+1]=line[i]-paeth+256&255;return result},paethPredictor=function(left,up,upLeft){var p=left+up-upLeft,pLeft=Math.abs(p-left),pUp=Math.abs(p-up),pUpLeft=Math.abs(p-upLeft);return pLeft<=pUp&&pLeft<=pUpLeft?left:pUp<=pUpLeft?up:upLeft},getFilterMethods=function(){return[filterNone,filterSub,filterUp,filterAverage,filterPaeth]},getIndexOfSmallestSum=function(arrays){for(var i=0,len=arrays.length,sum,min,ind;i<len;)sum=absSum(arrays[i].slice(1)),(sum<min||!min)&&(min=sum,ind=i),i++;return ind},absSum=function(array){for(var i=0,len=array.length,sum=0;i<len;)sum+=Math.abs(array[i++]);return sum},getPredictorFromCompression=function(compression){var predictor;switch(compression){case jsPDFAPI.image_compression.FAST:predictor=11;break;case jsPDFAPI.image_compression.MEDIUM:predictor=13;break;case jsPDFAPI.image_compression.SLOW:predictor=14;break;default:predictor=12;break}return predictor};jsPDFAPI.processPNG=function(imageData,imageIndex,alias,compression,dataAsBinaryString){var colorSpace
100=this.color_spaces.DEVICE_RGB,decode=this.decode.FLATE_DECODE,bpc=8,img,dp,trns,colors,pal,smask;if(this.isArrayBuffer(imageData)&&(imageData=new Uint8Array(imageData)),this.isArrayBufferView(imageData)){if(doesNotHavePngJS())throw new Error("PNG support requires png.js and zlib.js");if(img=new PNG(imageData),imageData=img.imgData,bpc=img.bits,colorSpace=img.colorSpace,colors=img.colors,[4,6].indexOf(img.colorType)!==-1){if(img.bits===8)for(var pixels=img.pixelBitlength==32?new Uint32Array(img.decodePixels().buffer):img.pixelBitlength==16?new Uint16Array(img.decodePixels().buffer):new Uint8Array(img.decodePixels().buffer),len=pixels.length,imgData=new Uint8Array(len*img.colors),alphaData=new Uint8Array(len),pDiff=img.pixelBitlength-img.bits,i=0,n=0,pixel,pbl;i<len;i++){for(pixel=pixels[i],pbl=0;pbl<pDiff;)imgData[n++]=pixel>>>pbl&255,pbl=pbl+img.bits;alphaData[i]=pixel>>>pbl&255}if(img.bits===16){for(var pixels=new Uint32Array(img.decodePixels().buffer),len=pixels.length,imgData=new Uint8Array(len*(32/img.pixelBitlength)*img.colors),alphaData=new Uint8Array(len*(32/img.pixelBitlength)),hasColors=img.colors>1,i=0,n=0,a=0,pixel;i<len;)pixel=pixels[i++],imgData[n++]=pixel>>>0&255,hasColors&&(imgData[n++]=pixel>>>16&255,pixel=pixels[i++],imgData[n++]=pixel>>>0&255),alphaData[a++]=pixel>>>16&255;bpc=8}canCompress(compression)?(imageData=compressBytes(imgData,img.width*img.colors,img.colors,compression),smask=compressBytes(alphaData,img.width,1,compression)):(imageData=imgData,smask=alphaData,decode=null)}if(img.colorType===3&&(colorSpace=this.color_spaces.INDEXED,pal=img.palette,img.transparency.indexed)){for(var trans=img.transparency.indexed,total=0,i=0,len=trans.length;i<len;++i)total+=trans[i];if(total=total/255,total===len-1&&trans.indexOf(0)!==-1)trns=[trans.indexOf(0)];else if(total!==len){for(var pixels=img.decodePixels(),alphaData=new Uint8Array(pixels.length),i=0,len=pixels.length;i<len;i++)alphaData[i]=trans[pixels[i]];smask=compressBytes(alphaData,img.width,1)}}var predictor=getPredictorFromCompression(compression);return decode===this.decode.FLATE_DECODE?dp="/Predictor "+predictor+" /Colors "+colors+" /BitsPerComponent "+bpc+" /Columns "+img.width:dp="/Colors "+colors+" /BitsPerComponent "+bpc+" /Columns "+img.width,(this.isArrayBuffer(imageData)||this.isArrayBufferView(imageData))&&(imageData=this.arrayBufferToBinaryString(imageData)),(smask&&this.isArrayBuffer(smask)||this.isArrayBufferView(smask))&&(smask=this.arrayBufferToBinaryString(smask)),this.createImageInfo(imageData,img.width,img.height,colorSpace,bpc,decode,imageIndex,alias,dp,trns,pal,smask,predictor)}throw new Error("Unsupported PNG image data, try using JPEG instead.")}})(jsPDF2.API);/**
101 * @license
102 * Copyright (c) 2017 Aras Abbasi 
103 *
104 * Licensed under the MIT License.
105 * http://opensource.org/licenses/mit-license
106 */(function(jsPDFAPI){jsPDFAPI.processGIF89A=function(imageData,imageIndex,alias,compression,dataAsBinaryString){var reader=new GifReader(imageData),width=reader.width,height=reader.height,qu=100,pixels=[];reader.decodeAndBlitFrameRGBA(0,pixels);var rawImageData={data:pixels,width:width,height:height},encoder=new JPEGEncoder(qu),data=encoder.encode(rawImageData,qu);return jsPDFAPI.processJPEG.call(this,data,imageIndex,alias,compression)},jsPDFAPI.processGIF87A=jsPDFAPI.processGIF89A})(jsPDF2.API),(function(jsPDFAPI){jsPDFAPI.processBMP=function(imageData,imageIndex,alias,compression,dataAsBinaryString){var reader=new BmpDecoder(imageData,!1),width=reader.width,height=reader.height,qu=100,pixels=reader.getData(),rawImageData={data:pixels,width:width,height:height},encoder=new JPEGEncoder(qu),data=encoder.encode(rawImageData,qu);return jsPDFAPI.processJPEG.call(this,data,imageIndex,alias,compression)}})(jsPDF2.API);/**
107 * @license
108 * Licensed under the MIT License.
109 * http://opensource.org/licenses/mit-license
110 */(function(jsPDFAPI){jsPDFAPI.setLanguage=function(langCode){var langCodes={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canad
110a)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"FYRO Macedonian",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"};return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),langCodes[langCode]!==void 0&&(this.internal.languageSettings.languageCode=langCode,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this}})(jsPDF2.API);/** @license
111 * MIT license.
112 * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
113 *               2014 Diego Casorran, https://github.com/diegocr
114 *
115 * 
116 * ====================================================================
117 */(function(API){var getCharWidthsArray=API.getCharWidthsArray=function(text,options){options=options||{};var activeFont=options.font||this.internal.getFont(),fontSize=options.fontSize||this.internal.getFontSize(),charSpace=options.charSpace||this.internal.getCharSpace(),widths=options.widths?options.widths:activeFont.metadata.Unicode.widths,widthsFractionOf=widths.fof?widths.fof:1,kerning=options.kerning?options.kerning:activeFont.metadata.Unicode.kerning,kerningFractionOf=kerning.fof?kerning.fof:1,i,l,char_code,prior_char_code=0,default_char_width=widths[0]||widthsFractionOf,output=[];for(i=0,l=text.length;i<l;i++)char_code=text.charCodeAt(i),typeof activeFont.metadata.widthOfString=="function"?output.push((activeFont.metadata.widthOfGlyph(activeFont.metadata.characterToGlyph(char_code))+charSpace*(1e3/fontSize)||0)/1e3):output.push((widths[char_code]||default_char_width)/widthsFractionOf+(kerning[char_code]&&kerning[char_code][prior_char_code]||0)/kerningFractionOf),prior_char_code=char_code;return output},getArraySum=API.getArraySum=function(array){for(var i=array.length,output=0;i;)i--,output+=array[i];return output},getStringUnitWidth=API.getStringUnitWidth=function(text,options){options=options||{};var fontSize=options.fontSize||this.internal.getFontSize(),font=options.font||this.internal.getFont(),charSpace=options.charSpace||this.internal.getCharSpace(),result=0;return typeof font.metadata.widthOfString=="function"?result=font.metadata.widthOfString(text,fontSize,charSpace)/fontSize:result=getArraySum(getCharWidthsArray.apply(this,arguments)),result},splitLongWord=function(word,widths_array,firstLineMaxLen,maxLen){for(var answer=[],i=0,l=word.length,workingLen=0;i!==l&&workingLen+widths_array[i]<firstLineMaxLen;
117)workingLen+=widths_array[i],i++;answer.push(word.slice(0,i));var startOfLine=i;for(workingLen=0;i!==l;)workingLen+widths_array[i]>maxLen&&(answer.push(word.slice(startOfLine,i)),workingLen=0,startOfLine=i),workingLen+=widths_array[i],i++;return startOfLine!==i&&answer.push(word.slice(startOfLine,i)),answer},splitParagraphIntoLines=function(text,maxlen,options){options||(options={});var line=[],lines=[line],line_length=options.textIndent||0,separator_length=0,current_word_length=0,word,widths_array,words=text.split(" "),spaceCharWidth=getCharWidthsArray.apply(this,[" ",options])[0],i,l,tmp,lineIndent;if(options.lineIndent===-1?lineIndent=words[0].length+2:lineIndent=options.lineIndent||0,lineIndent){var pad=Array(lineIndent).join(" "),wrds=[];words.map(function(wrd){wrd=wrd.split(/\s*\n/),wrd.length>1?wrds=wrds.concat(wrd.map(function(wrd2,idx){return(idx&&wrd2.length?"\n":"")+wrd2})):wrds.push(wrd[0])}),words=wrds,lineIndent=getStringUnitWidth.apply(this,[pad,options])}for(i=0,l=words.length;i<l;i++){var force=0;if(word=words[i],lineIndent&&word[0]=="\n"&&(word=word.substr(1),force=1),widths_array=getCharWidthsArray.apply(this,[word,options]),current_word_length=getArraySum(widths_array),line_length+separator_length+current_word_length>maxlen||force){if(current_word_length>maxlen){for(tmp=splitLongWord.apply(this,[word,widths_array,maxlen-(line_length+separator_length),maxlen]),line.push(tmp.shift()),line=[tmp.pop()];tmp.length;)lines.push([tmp.shift()]);current_word_length=getArraySum(widths_array.slice(word.length-(line[0]?line[0].length:0)))}else line=[word];lines.push(line),line_length=current_word_length+lineIndent,separator_length=spaceCharWidth}else line.push(word),line_length+=separator_length+current_word_length,separator_length=spaceCharWidth}if(lineIndent)var postProcess=function(ln,idx){return(idx?pad:"")+ln.join(" ")};else var postProcess=function(ln){return ln.join(" ")};return lines.map(postProcess)};API.splitTextToSize=function(text,maxlen,options){options=options||{};var fsize=options.fontSize||this.internal.getFontSize(),newOptions=function(options2){var widths={0:1},kerning={};if(!options2.widths||!options2.kerning){var f=this.internal.getFont(options2.fontName,options2.fontStyle),encoding="Unicode";return f.metadata[encoding]?{widths:f.metadata[encoding].widths||widths,kerning:f.metadata[encoding].kerning||kerning}:{font:f.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}else return{widths:options2.widths,kerning:options2.kerning};return{widths:widths,kerning:kerning}}.call(this,options),paragraphs;Array.isArray(text)?paragraphs=text:paragraphs=text.split(/\r?\n/);var fontUnit_maxLen=1*this.internal.scaleFactor*maxlen/fsize;newOptions.textIndent=options.textIndent?options.textIndent*1*this.internal.scaleFactor/fsize:0,newOptions.lineIndent=options.lineIndent;var i,l,output=[];for(i=0,l=paragraphs.length;i<l;i++)output=output.concat(splitParagraphIntoLines.apply(this,[paragraphs[i],fontUnit_maxLen,newOptions]));return output}})(jsPDF2.API);/** @license
118 jsPDF standard_fonts_metrics plugin
119 * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
120 * MIT license.
121 * 
122 * ====================================================================
123 */(function(API){var uncompress=function(data){for(var decoded="0123456789abcdef",encoded="klmnopqrstuvwxyz",mapping={},i=0;i<encoded.length;i++)mapping[encoded[i]]=decoded[i];var undef,output={},sign=1,stringparts,activeobject=output,parentchain=[],parent_key_pair,keyparts="",valueparts="",key,datalen=data.length-1,ch;for(i=1;i!=datalen;)ch=data[i],i+=1,ch=="'"?stringparts?(key=stringparts.join(""),stringparts=undef):stringparts=[]:stringparts?stringparts.push(ch):ch=="{"?(parentchain.push([activeobject,key]),activeobject={},key=undef):ch=="}"?(parent_key_pair=parentchain.pop(),parent_key_pair[0][parent_key_pair[1]]=activeobject,key=undef,activeobject=parent_key_pair[0]):ch=="-"?sign=-1:key===undef?mapping.hasOwnProperty(ch)?(keyparts+=mapping[ch],key=parseInt(keyparts,16)*sign,sign=1,keyparts=""):keyparts+=ch:mapping.hasOwnProperty(ch)?(valueparts+=mapping[ch],activeobject[key]=parseInt(valueparts,16)*sign,sign=1,key=undef,valueparts=""):valueparts+=ch;return output},encodingBlock={codePages:["WinAnsiEncoding"],WinAnsiEncoding:uncompress("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},encodings={Unicode:{Courier:encodingBlock,"Courier-Bold":encodingBlock,"Courier-BoldOblique":encodingBlock,"Courier-Oblique":encodingBlock,Helvetica:encodingBlock,"Helvetica-Bold":encodingBlock,"Helvetica-BoldOblique":encodingBlock,"Helvetica-Oblique":encodingBlock,"Times-Roman":encodingBlock,"Times-Bold":encodingBlock,"Times-BoldItalic":encodingBlock,"Times-Italic":encodingBlock}},fontMetrics={Unicode:{"Courier-Oblique":uncompress("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":uncompress("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3me
123k3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":uncompress("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
123dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:uncompress("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":uncompress("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":uncompress("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:uncompress("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}
123"),Helvetica:uncompress("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":uncompress("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
123dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:uncompress("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":uncompress("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":uncompress("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}
123fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":uncompress("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":uncompress("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
123dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};API.events.push(["addFont",function(data){var font=data.font,metrics,unicode_section,encoding="Unicode",encodingBlock2;metrics=fontMetrics[encoding][font.postScriptName],metrics&&(font.metadata[encoding]?unicode_section=font.metadata[encoding]:unicode_section=font.metadata[encoding]={},unicode_section.widths=metrics.widths,unicode_section.kerning=metrics.kerning),encodingBlock2=encodings[encoding][font.postScriptName],encodingBlock2&&(font.metadata[encoding]?unicode_section=font.metadata[encoding]:unicode_section=font.metadata[encoding]={},unicode_section.encoding=encodingBlock2,encodingBlock2.codePages&&encodingBlock2.codePages.length&&(font.encoding=encodingBlock2.codePages[0]))}])})(jsPDF2.API);/**
124 * @license
125 * Licensed under the MIT License.
126 * http://opensource.org/licenses/mit-license
127 */(function(jsPDF3,global2){jsPDF3.API.events.push(["addFont",function(data){var font=data.font,instance=data.instance;if(typeof instance!="undefined"&&instance.existsFileInVFS(font.postScriptName)){var file=instance.getFileFromVFS(font.postScriptName);if(typeof file!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+font.postScriptName+"').");font.metadata=jsPDF3.API.TTFFont.open(font.postScriptName,font.fontName,file,font.encoding),font.metadata.Unicode=font.metadata.Unicode||{encoding:{},kerning:{},widths:[]},font.metadata.glyIdsUsed=[0]}else if(font.isStandardFont===!1)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+font.postScriptName+"').")}])})(jsPDF2,typeof self!="undefined"&&self||typeof global!="undefined"&&global||typeof window!="undefined"&&window||Function("return this")());/** @license
128 * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
129 * 
130 * 
131 * ====================================================================
132 */(function(jsPDFAPI){jsPDFAPI.addSvg=function(svgtext,x,y,w,h){var undef;if(x===undef||y===undef)throw new Error("addSVG needs values for 'x' and 'y'");function InjectCSS(cssbody,document2){var styletag=document2.createElement("style");styletag.type="text/css",styletag.styleSheet?styletag.styleSheet.cssText=cssbody:styletag.appendChild(document2.createTextNode(cssbody)),document2.getElementsByTagName("head")[0].appendChild(styletag)}function createWorkerNode(document2){var frameID="childframe",frame=document2.createElement("iframe");return InjectCSS(".jsPDF_sillysvg_iframe {display:none;position:absolute;}",document2),frame.name=frameID,frame.setAttribute("width",0),frame.setAttribute("height",0),frame.setAttribute("frameborder","0"),frame.setAttribute("scrolling","no"),frame.setAttribute("seamless","seamless"),frame.setAttribute("class","jsPDF_sillysvg_iframe"),document2.body.appendChild(frame),frame}function attachSVGToWorkerNode(svgtext2,frame){var framedoc=(frame.contentWindow||frame.contentDocument).document;return framedoc.write(svgtext2),framedoc.close(),framedoc.getElementsByTagName("svg")[0]}function convertPathToPDFLinesArgs(path){for(var x2=parseFloat(path[1]),y2=parseFloat(path[2]),vectors=[],position=3,len=path.length;position<len;)path[position]==="c"?(vectors.push([parseFloat(path[position+1]),parseFloat(path[position+2]),parseFloat(path[position+3]),parseFloat(path[position+4]),parseFloat(path[position+5]),parseFloat(path[position+6])]),position+=7):path[position]==="l"?(vectors.push([parseFloat(path[position+1]),parseFloat(path[position+2])]),position+=3):position+=1;return[x2,y2,vectors]}
132var workernode=createWorkerNode(document),svgnode=attachSVGToWorkerNode(svgtext,workernode),scale=[1,1],svgw=parseFloat(svgnode.getAttribute("width")),svgh=parseFloat(svgnode.getAttribute("height"));svgw&&svgh&&(w&&h?scale=[w/svgw,h/svgh]:w?scale=[w/svgw,w/svgw]:h&&(scale=[h/svgh,h/svgh]));var i,l,tmp,linesargs,items=svgnode.childNodes;for(i=0,l=items.length;i<l;i++)tmp=items[i],tmp.tagName&&tmp.tagName.toUpperCase()==="PATH"&&(linesargs=convertPathToPDFLinesArgs(tmp.getAttribute("d").split(" ")),linesargs[0]=linesargs[0]*scale[0]+x,linesargs[1]=linesargs[1]*scale[1]+y,this.lines.call(this,linesargs[2],linesargs[0],linesargs[1],scale));return this},jsPDFAPI.addSVG=jsPDFAPI.addSvg,jsPDFAPI.addSvgAsImage=function(svg,x,y,w,h,alias,compression,rotation){if(isNaN(x)||isNaN(y))throw console.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(w)||isNaN(h))throw console.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var canvas=document.createElement("canvas");canvas.width=w,canvas.height=h;var ctx=canvas.getContext("2d");return ctx.fillStyle="#fff",ctx.fillRect(0,0,canvas.width,canvas.height),canvg(canvas,svg,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0}),this.addImage(canvas.toDataURL("image/jpeg",1),x,y,w,h,compression,rotation),this}})(jsPDF2.API);/** 
133 * @license
134 * ==================================================================== 
135 * Copyright (c) 2013 Eduardo Menezes de Morais, [email protected]
136 * 
137 * 
138 * ====================================================================
139 */(function(jsPDFAPI){jsPDFAPI.putTotalPages=function(pageExpression){var replaceExpression,totalNumberOfPages=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(replaceExpression=new RegExp(pageExpression,"g"),totalNumberOfPages=this.internal.getNumberOfPages()):(replaceExpression=new RegExp(this.pdfEscape16(pageExpression,this.internal.getFont()),"g"),totalNumberOfPages=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(replaceExpression,totalNumberOfPages);return this}})(jsPDF2.API),(function(jsPDFAPI){jsPDFAPI.viewerPreferences=function(options,doReset){options=options||{},doReset=doReset||!1;var configuration,configurationTemplate={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}},configurationKeys=Object.keys(configurationTemplate),rangeArray=[],i=0,j=0,k=0,isValid=!0,method,value;function arrayContainsElement(array,element){var iterator,result=!1;for(iterator=0;iterator<array.length;iterator+=1)array[iterator]===element&&(result=!0);return result}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(configurationTemplate)),this.internal.viewerpreferences.isSubscribed=!1),configuration=this.internal.viewerpreferences.configuration,options==="reset"||doReset===!0){var len=configurationKeys.length;for(k=0;k<len;k+=1)configuration[configurationKeys[k]].value=configuration[configurationKeys[k]].defaultValue,configuration[configurationKeys[k]].explicitSet=!1}if(_typeof(options)==="object"){for(method in options)if(value=options[method],arrayContainsElement(configurationKeys,method)&&value!==void 0){if(configuration[method].type==="boolean"&&typeof value=="boolean")configuration[method].value=value;else if(configuration[method].type==="name"&&arrayContainsElement(configuration[method].valueSet,value))configuration[method].value=value;else if(configuration[method].type==="integer"&&Number.isInteger(value))configuration[method].value=value;else if(configuration[method].type==="array"){for(i=0;i<value.length;i+=1)if(isValid=!0,value[i].length===1&&typeof value[i][0]=="number")rangeArray.push(String(value[i]-1));else if(value[i].length>1){for(j=0;j<value[i].length;j+=1)typeof value[i][j]!="number"&&(isValid=!1);isValid===!0&&rangeArray.push([value[i][0]-1,value[i][1]-1].join(" "))}configuration[method].value="["+rangeArray.join(" ")+"]"}else configuration[method].value=configuration[method].defaultValue;configuration[method].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var pdfDict=[],vPref;for(vPref in configuration)configuration[vPref].explicitSet===!0&&(configuration[vPref].type==="name"?pdfDict.push("/"+vPref+" /"+configuration[vPref].value):pdfDict.push("/"+vPref+" "+configuration[vPref].value));pdfDict.length!==0&&this.internal.write("/ViewerPreferences\n<<\n"+pdfDict.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=configuration,this}})(jsPDF2.API),(function(jsPDFAPI){var xmpmetadata="",xmpnamespaceuri="",metadata_object_number="";jsPDFAPI.addMetadata=function(metadata,namespaceuri){return xmpnamespaceuri=namespaceuri||"http://jspdf.default.namespaceuri/",xmpmetadata=metadata,this.internal.events.subscribe("postPutResources",function(){if(!xmpmetadata)metadata_object_number="";else{var xmpmeta_beginning='<x:xmpmeta xmlns:x="adobe:ns:meta/">',rdf_beginning='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+xmpnamespaceuri+'"><jspdf:metadata>',rdf_ending="</jspdf:metadata></rdf:Description></rdf:RDF>",xmpmeta_ending="</x:xmpmeta>",utf8_xmpmeta_beginning=unescape(encodeURIComponent(xmpmeta_beginning)),utf8_rdf_beginning=unescape(encodeURIComponent(rdf_beginning)),utf8_metadata=unescape(encodeURIComponent(xmpmetadata)),utf8_rdf_ending=unescape(encodeURIComponent(rdf_ending)),utf8_xmpmeta_ending=unescape(encodeURIComponent(xmpmeta_ending)),total_len=utf8_rdf_beginning.length+utf8_metadata.length+utf8_rdf_ending.length+utf8_xmpmeta_beginning.length+utf8_xmpmeta_ending.length;metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+total_len+" >>"),this.internal.write("stream"),this.internal.write(utf8_xmpmeta_beginning+utf8_rdf_beginning+utf8_metadata+utf8_rdf_ending+utf8_xmpmeta_ending),this.internal.write("endstream"),this.internal.write("endobj")}}),this.internal.events.subscribe("putCatalog",function(){metadata_object_number&&this.internal.write("/Metadata "+metadata_object_number+" 0 R")}),this}})(jsPDF2.API),(function(jsPDF3,global2){var jsPDFAPI=jsPDF3.API;function toHex(str){for(var hex="",i=0;i<str.length;i++)hex+=""+str.charCodeAt(i).toString(16);return hex}var pdfEscape16=jsPDFAPI.pdfEscape16=function(text,font){for(var widths=font.metadata.Unicode.widths,padz=["","0","00","000","0000"],ar=[""],i=0,l=text.length,t;i<l;++i){if(t=font.metadata.characterToGlyph(text.charCodeAt(i)),font.metadata.glyIdsUsed.push(t),font.metadata.toUnicode[t]=text.charCodeAt(i),widths.indexOf(t)==-1&&(widths.push(t),widths.push([parseInt(font.metadata.widthOfGlyph(t),10)])),t=="0")return ar.
139join("");t=t.toString(16),ar.push(padz[4-t.length],t)}return ar.join("")},toUnicodeCmap=function(map){var code,codes,range,unicode,unicodeMap,_i,_len;for(unicodeMap="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",codes=Object.keys(map).sort(function(a,b){return a-b}),range=[],_i=0,_len=codes.length;_i<_len;_i++)code=codes[_i],range.length>=100&&(unicodeMap+="\n"+range.length+" beginbfchar\n"+range.join("\n")+"\nendbfchar",range=[]),unicode=("0000"+map[code].toString(16)).slice(-4),code=("0000"+(+code).toString(16)).slice(-4),range.push("<"+code+"><"+unicode+">");return range.length&&(unicodeMap+="\n"+range.length+" beginbfchar\n"+range.join("\n")+"\nendbfchar\n"),unicodeMap+="endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend",unicodeMap},identityHFunction=function(font,out,newObject,putStream){if(font.metadata instanceof jsPDF3.API.TTFFont&&font.encoding==="Identity-H"){for(var widths=font.metadata.Unicode.widths,data=font.metadata.subset.encode(font.metadata.glyIdsUsed,1),pdfOutput=data,pdfOutput2="",i=0;i<pdfOutput.length;i++)pdfOutput2+=String.fromCharCode(pdfOutput[i]);var fontTable=newObject();putStream({data:pdfOutput2,addLength1:!0}),out("endobj");var cmap=newObject(),cmapData=toUnicodeCmap(font.metadata.toUnicode);putStream({data:cmapData,addLength1:!0}),out("endobj");var fontDescriptor=newObject();out("<<"),out("/Type /FontDescriptor"),out("/FontName /"+font.fontName),out("/FontFile2 "+fontTable+" 0 R"),out("/FontBBox "+jsPDF3.API.PDFObject.convert(font.metadata.bbox)),out("/Flags "+font.metadata.flags),out("/StemV "+font.metadata.stemV),out("/ItalicAngle "+font.metadata.italicAngle),out("/Ascent "+font.metadata.ascender),out("/Descent "+font.metadata.decender),out("/CapHeight "+font.metadata.capHeight),out(">>"),out("endobj");var DescendantFont=newObject();out("<<"),out("/Type /Font"),out("/BaseFont /"+font.fontName),out("/FontDescriptor "+fontDescriptor+" 0 R"),out("/W "+jsPDF3.API.PDFObject.convert(widths)),out("/CIDToGIDMap /Identity"),out("/DW 1000"),out("/Subtype /CIDFontType2"),out("/CIDSystemInfo"),out("<<"),out("/Supplement 0"),out("/Registry (Adobe)"),out("/Ordering ("+font.encoding+")"),out(">>"),out(">>"),out("endobj"),font.objectNumber=newObject(),out("<<"),out("/Type /Font"),out("/Subtype /Type0"),out("/ToUnicode "+cmap+" 0 R"),out("/BaseFont /"+font.fontName),out("/Encoding /"+font.encoding),out("/DescendantFonts ["+DescendantFont+" 0 R]"),out(">>"),out("endobj"),font.isAlreadyPutted=!0}};jsPDFAPI.events.push(["putFont",function(args){identityHFunction(args.font,args.out,args.newObject,args.putStream)}]);var winAnsiEncodingFunction=function(font,out,newObject,putStream){if(font.metadata instanceof jsPDF3.API.TTFFont&&font.encoding==="WinAnsiEncoding"){for(var widths=font.metadata.Unicode.widths,data=font.metadata.rawData,pdfOutput=data,pdfOutput2="",i=0;i<pdfOutput.length;i++)pdfOutput2+=String.fromCharCode(pdfOutput[i]);var fontTable=newObject();putStream({data:pdfOutput2,addLength1:!0}),out("endobj");var cmap=newObject(),cmapData=toUnicodeCmap(font.metadata.toUnicode);putStream({data:cmapData,addLength1:!0}),out("endobj");var fontDescriptor=newObject();out("<<"),out("/Descent "+font.metadata.decender),out("/CapHeight "+font.metadata.capHeight),out("/StemV "+font.metadata.stemV),out("/Type /FontDescriptor"),out("/FontFile2 "+fontTable+" 0 R"),out("/Flags 96"),out("/FontBBox "+jsPDF3.API.PDFObject.convert(font.metadata.bbox)),out("/FontName /"+font.fontName),out("/ItalicAngle "+font.metadata.italicAngle),out("/Ascent "+font.metadata.ascender),out(">>"),out("endobj"),font.objectNumber=newObject();for(var i=0;i<font.metadata.hmtx.widths.length;i++)font.metadata.hmtx.widths[i]=parseInt(font.metadata.hmtx.widths[i]*(1e3/font.metadata.head.unitsPerEm));out("<</Subtype/TrueType/Type/Font/ToUnicode "+cmap+" 0 R/BaseFont/"+font.fontName+"/FontDescriptor "+fontDescriptor+" 0 R/Encoding/"+font.encoding+" /FirstChar 29 /LastChar 255 /Widths "+jsPDF3.API.PDFObject.convert(font.metadata.hmtx.widths)+">>"),out("endobj"),font.isAlreadyPutted=!0}};jsPDFAPI.events.push(["putFont",function(args){winAnsiEncodingFunction(args.font,args.out,args.newObject,args.putStream)}]);var utf8TextFunction=function(args){var text=args.text||"",x=args.x,y=args.y,options=args.options||{},mutex=args.mutex||{},pdfEscape=mutex.pdfEscape,activeFontKey=mutex.activeFontKey,fonts=mutex.fonts,key,fontSize=mutex.activeFontSize,str="",s=0,cmapConfirm,strText="",key=activeFontKey,encoding=fonts[key].encoding;if(fonts[key].encoding!=="Identity-H")return{text:text,x:x,y:y,options:options,mutex:mutex};for(strText=text,key=activeFontKey,Object.prototype.toString.call(text)==="[object Array]"&&(strText=text[0]),s=0;s<strText.length;s+=1)fonts[key].metadata.hasOwnProperty("cmap")&&(cmapConfirm=fonts[key].metadata.cmap.unicode.codeMap[strText[s].charCo
139deAt(0)]),cmapConfirm||strText[s].charCodeAt(0)<256&&fonts[key].metadata.hasOwnProperty("Unicode")?str+=strText[s]:str+="";var result="";return parseInt(key.slice(1))<14||encoding==="WinAnsiEncoding"?result=toHex(pdfEscape(str,key)):encoding==="Identity-H"&&(result=pdfEscape16(str,fonts[key])),mutex.isHex=!0,{text:result,x:x,y:y,options:options,mutex:mutex}},utf8EscapeFunction=function(parms){var text=parms.text||"",x=parms.x,y=parms.y,options=parms.options,mutex=parms.mutex,lang=options.lang,tmpText=[],args={text:text,x:x,y:y,options:options,mutex:mutex};if(Object.prototype.toString.call(text)==="[object Array]"){var i=0;for(i=0;i<text.length;i+=1)Object.prototype.toString.call(text[i])==="[object Array]"?text[i].length===3?tmpText.push([utf8TextFunction(Object.assign({},args,{text:text[i][0]})).text,text[i][1],text[i][2]]):tmpText.push(utf8TextFunction(Object.assign({},args,{text:text[i]})).text):tmpText.push(utf8TextFunction(Object.assign({},args,{text:text[i]})).text);parms.text=tmpText}else parms.text=utf8TextFunction(Object.assign({},args,{text:text})).text};jsPDFAPI.events.push(["postProcessText",utf8EscapeFunction])})(jsPDF2,typeof self!="undefined"&&self||typeof global!="undefined"&&global||typeof window!="undefined"&&window||Function("return this")()),(function(jsPDFAPI){var _initializeVFS=function(instance){return typeof instance=="undefined"?!1:(typeof instance.vFS=="undefined"&&(instance.vFS={}),!0)};jsPDFAPI.existsFileInVFS=function(filename){return _initializeVFS(this.internal)?typeof this.internal.vFS[filename]!="undefined":!1},jsPDFAPI.addFileToVFS=function(filename,filecontent){return _initializeVFS(this.internal),this.internal.vFS[filename]=filecontent,this},jsPDFAPI.getFileFromVFS=function(filename){return _initializeVFS(this.internal),typeof this.internal.vFS[filename]!="undefined"?this.internal.vFS[filename]:null}})(jsPDF2.API),(function(jsPDFAPI){jsPDFAPI.addHTML=function(element,x,y,options,callback){if(typeof html2canvas=="undefined"&&typeof rasterizeHTML=="undefined")throw new Error("You need either https://github.com/niklasvh/html2canvas or https://github.com/cburgmer/rasterizeHTML.js");
139typeof x!="number"&&(options=x,callback=y),typeof options=="function"&&(callback=options,options=null),typeof callback!="function"&&(callback=function(){});var I=this.internal,K=I.scaleFactor,W=I.pageSize.getWidth(),H=I.pageSize.getHeight();if(options=options||{},options.onrendered=function(obj){x=parseInt(x)||0,y=parseInt(y)||0;var dim=options.dim||{},margin=Object.assign({top:0,right:0,bottom:0,left:0,useFor:"content"},options.margin),h=dim.h||Math.min(H,obj.height/K),w=dim.w||Math.min(W,obj.width/K)-x,format=options.format||"JPEG",imageCompression=options.imageCompression||"SLOW",notFittingHeight=obj.height>H-margin.top-margin.bottom;if(notFittingHeight&&options.pagesplit){var cropArea=function(parmObj,parmX,parmY,parmWidth,parmHeight){var canvas=document.createElement("canvas");canvas.height=parmHeight,canvas.width=parmWidth;var ctx=canvas.getContext("2d");return ctx.mozImageSmoothingEnabled=!1,ctx.webkitImageSmoothingEnabled=!1,ctx.msImageSmoothingEnabled=!1,ctx.imageSmoothingEnabled=!1,ctx.fillStyle=options.backgroundColor||"#ffffff",ctx.fillRect(0,0,parmWidth,parmHeight),ctx.drawImage(parmObj,parmX,parmY,parmWidth,parmHeight,0,0,parmWidth,parmHeight),canvas},crop=function(){for(var cy=0,cx=0,position={},isOverWide=!1,width,height;;){if(cx=0,position.top=cy!==0?margin.top:y,position.left=cy!==0?margin.left:x,isOverWide=(W-margin.left-margin.right)*K<obj.width,margin.useFor==="content"?cy===0?(width=Math.min((W-margin.left)*K,obj.width),height=Math.min((H-margin.top)*K,obj.height-cy)):(width=Math.min(W*K,obj.width),height=Math.min(H*K,obj.height-cy),position.top=0):(width=Math.min((W-margin.left-margin.right)*K,obj.width),height=Math.min((H-margin.bottom-margin.top)*K,obj.height-cy)),isOverWide)for(;;){margin.useFor==="content"&&(cx===0?width=Math.min((W-margin.left)*K,obj.width):(width=Math.min(W*K,obj.width-cx),position.left=0));var canvas=cropArea(obj,cx,cy,width,height),args2=[canvas,position.left,position.top,canvas.width/K,canvas.height/K,format,null,imageCompression];if(this.addImage.apply(this,args2),cx+=width,cx>=obj.width)break;this.addPage()}else{var canvas=cropArea(obj,0,cy,width,height),args2=[canvas,position.left,position.top,canvas.width/K,canvas.height/K,format,null,imageCompression];this.addImage.apply(this,args2)}if(cy+=height,cy>=obj.height)break;this.addPage()}callback(w,cy,null,args2)}.bind(this);if(obj.nodeName==="CANVAS"){var img=new Image;img.onload=crop,img.src=obj.toDataURL("image/png"),obj=img}else crop()}else{var alias=Math.random().toString(35),args=[obj,x,y,w,h,format,alias,imageCompression];this.addImage.apply(this,args),callback(w,h,alias,args)}}.bind(this),typeof html2canvas!="undefined"&&!options.rstz)return html2canvas(element,options);if(typeof rasterizeHTML!="undefined"){var meth="drawDocument";return typeof element=="string"&&(meth=/^http/.test(element)?"drawURL":"drawHTML"),options.width=options.width||W*K,rasterizeHTML[meth](element,void 0,options).then(function(r){options.onrendered(r.image)},function(e){callback(null,e)})}return null}})(jsPDF2.API);/**
140 * jsPDF fromHTML plugin. BETA stage. API subject to change. Needs browser
141 * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
142 *               2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
143 *               2014 Diego Casorran, https://github.com/diegocr
144 *               2014 Daniel Husar, https://github.com/danielhusar
145 *               2014 Wolfgang Gassler, https://github.com/woolfg
146 *               2014 Steven Spungin, https://github.com/flamenco
147 *
148 * @license
149 * 
150 * ====================================================================
151 */(function(jsPDFAPI){var clone,_DrillForContent,FontNameDB,FontStyleMap,TextAlignMap,FontWeightMap,FloatMap,ClearMap,GetCSS,PurgeWhiteSpace,Renderer,ResolveFont,ResolveUnitedNumber,UnitedNumberMap,elementHandledElsewhere,images,loadImgs,checkForFooter,process,tableToJson;clone=(function(){return function(obj){return Clone.prototype=obj,new Clone};function Clone(){}})(),PurgeWhiteSpace=function(array){var fragment,i,l,lTrimmed,r,rTrimmed,trailingSpace;for(i=0,l=array.length,fragment=void 0,lTrimmed=!1,rTrimmed=!1;!lTrimmed&&i!==l;)fragment=array[i]=array[i].trimLeft(),fragment&&(lTrimmed=!0),i++;for(i=l-1;l&&!rTrimmed&&i!==-1;)fragment=array[i]=array[i].trimRight(),fragment&&(rTrimmed=!0),i--;for(r=/\s+$/g,trailingSpace=!0,i=0;i!==l;)array[i]!="\u2028"&&(fragment=array[i].replace(/\s+/g," "),trailingSpace&&(fragment=fragment.trimLeft()),fragment&&(trailingSpace=r.test(fragment)),array[i]=fragment),i++;return array},Renderer=function(pdf,x,y,settings){return this.pdf=pdf,this.x=x,this.y=y,this.settings=settings,this.watchFunctions=[],this.init(),this},ResolveFont=function(css_font_family_string){var name2,part,parts;for(name2=void 0,parts=css_font_family_string.split(","),part=parts.shift();!name2&&part;)name2=FontNameDB[part.trim().toLowerCase()],part=parts.shift();return name2},ResolveUnitedNumber=function(css_line_height_string){css_line_height_string=css_line_height_string==="auto"?"0px":css_line_height_string,css_line_height_string.indexOf("em")>-1&&!isNaN(Number(css_line_height_string.replace("em","")))&&(css_line_height_string=Number(css_line_height_string.replace("em",""))*18.719+"px"),css_line_height_string.indexOf("pt")>-1&&!isNaN(Number(css_line_height_string.replace("pt","")))&&(css_line_height_string=Number(css_line_height_string.replace("pt",""))*1.333+"px");var normal,undef,value;return undef=void 0,normal=16,value=UnitedNumberMap[css_line_height_string],value||(value={"xx-small":9,"x-small":11,small:13,medium:16,large:19,"x-large":23,"xx-large":28,auto:0}[css_line_height_string],value!==undef||(value=parseFloat(css_line_height_string))?UnitedNumberMap[css_line_height_string]=value/normal:(value=css_line_height_string.match(/([\d\.]+)(px)/),Array.isArray(value)&&value.length===3?UnitedNumberMap[css_line_height_string]=parseFloat(value[1])/normal:UnitedNumberMap[css_line_height_string]=1))},GetCSS=function(element){var css,tmp,computedCSSElement;return computedCSSElement=(function(el){var compCSS;return compCSS=(function(el2){return document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(el2,null):el2.currentStyle?el2.currentStyle:el2.style})(el),function(prop){return prop=prop.replace(/-\D/g,function(match){return match.charAt(1).toUpperCase()}),compCSS[prop]}})(element),css={},tmp=void 0,css["font-family"]=ResolveFont(computedCSSElement("font-family"))||"times",css["font-style"]=FontStyleMap[computedCSSElement("font-style")]||"normal",css["text-align"]=TextAlignMap[computedCSSElement("text-align")]||"left",tmp=FontWeightMap[computedCSSElement("font-weight")]||"normal",tmp==="bold"&&(css["font-style"]==="normal"?css["font-style"]=tmp:css["font-style"]=tmp+css["font-style"]),css["font-size"]=ResolveUnitedNumber(computedCSSElement("font-size"))||1,css["line-height"]=ResolveUnitedNumber(computedCSSElement("line-height"))||1,css.display=computedCSSElement("display")==="inline"?"inline":"block",tmp=css.display==="block",css["margin-top"]=tmp&&ResolveUnitedNumber(computedCSSElement("margin-top"))||0,css["margin-bottom"]=tmp&&ResolveUnitedNumber(computedCSSElement("margin-bottom"))||0,css["padding-top"]=tmp&&ResolveUnitedNumber(computedCSSElement("padding-top"))||0,css["padding-bottom"]=tmp&&ResolveUnitedNumber(computedCSSElement("padding-bottom"))||0,css["margin-left"]=tmp&&ResolveUnitedNumber(computedCSSElement("margin-left"))||0,css["margin-right"]=tmp&&ResolveUnitedNumber(computedCSSElement("margin-right"))||0,css["padding-left"]=tmp&&ResolveUnitedNumber(computedCSSElement("padding-left"))||0,css["padding-right"]=tmp&&ResolveUnitedNumber(computedCSSElement("padding-right"))||0,css["page-break-before"]=computedCSSElement("page-break-before")||"auto",css.float=FloatMap[computedCSSElement("cssFloat")]||"none",css.clear=ClearMap[computedCSSElement("clear")]||"none",css.color=computedCSSElement("color"),css},elementHandledElsewhere=function(element,renderer,elementHandlers){var handlers,i,isHandledElsewhere,l,classNames;if(isHandledElsewhere=!1,i=void 0,l=void 0,handlers=elementHandlers["#"+element.i
151d],handlers)if(typeof handlers=="function")isHandledElsewhere=handlers(element,renderer);else for(i=0,l=handlers.length;!isHandledElsewhere&&i!==l;)isHandledElsewhere=handlers[i](element,renderer),i++;if(handlers=elementHandlers[element.nodeName],!isHandledElsewhere&&handlers)if(typeof handlers=="function")isHandledElsewhere=handlers(element,renderer);else for(i=0,l=handlers.length;!isHandledElsewhere&&i!==l;)isHandledElsewhere=handlers[i](element,renderer),i++;for(classNames=typeof element.className=="string"?element.className.split(" "):[],i=0;i<classNames.length;i++)if(handlers=elementHandlers["."+classNames[i]],!isHandledElsewhere&&handlers)if(typeof handlers=="function")isHandledElsewhere=handlers(element,renderer);else for(i=0,l=handlers.length;!isHandledElsewhere&&i!==l;)isHandledElsewhere=handlers[i](element,renderer),i++;return isHandledElsewhere},tableToJson=function(table,renderer){var data,headers,i,j,rowData,tableRow,table_obj,table_with,cell,l;for(data=[],headers=[],i=0,l=table.rows[0].cells.length,table_with=table.clientWidth;i<l;)cell=table.rows[0].cells[i],headers[i]={name:cell.textContent.toLowerCase().replace(/\s+/g,""),prompt:cell.textContent.replace(/\r?\n/g,""),width:cell.clientWidth/table_with*renderer.pdf.internal.pageSize.getWidth()},i++;for(i=1;i<table.rows.length;){for(tableRow=table.rows[i],rowData={},j=0;j<tableRow.cells.length;)rowData[headers[j].name]=tableRow.cells[j].textContent.replace(/\r?\n/g,""),j++;data.push(rowData),i++}return table_obj={rows:data,headers:headers}};var SkipNode={SCRIPT:1,STYLE:1,NOSCRIPT:1,OBJECT:1,EMBED:1,SELECT:1},listCount=1;_DrillForContent=function(element,renderer,elementHandlers){var cn,cns,fragmentCSS,i,isBlock,l,table2json,cb;for(cns=element.childNodes,cn=void 0,fragmentCSS=GetCSS(element),isBlock=fragmentCSS.display==="block",isBlock&&(renderer.setBlockBoundary(),renderer.setBlockStyle(fragmentCSS)),i=0,l=cns.length;i<l;){if(cn=cns[i],_typeof(cn)==="object"){if(renderer.executeWatchFunctions(cn),cn.nodeType===1&&cn.nodeName==="HEADER"){var header=cn,oldMarginTop=renderer.pdf.margins_doc.top;renderer.pdf.internal.events.subscribe("addPage",function(pageInfo){renderer.y=oldMarginTop,_DrillForContent(header,renderer,elementHandlers),renderer.pdf.margins_doc.top=renderer.y+10,renderer.y+=10},!1)}if(cn.nodeType===8&&cn.nodeName==="#comment")~cn.textContent.indexOf("ADD_PAGE")&&(renderer.pdf.addPage(),renderer.y=renderer.pdf.margins_doc.top);else if(cn.nodeType===1&&!SkipNode[cn.nodeName]){var cached_image;if(cn.nodeName==="IMG"){var url=cn.getAttribute("src");cached_image=images[renderer.pdf.sHashCode(url)||url]}if(cached_image){renderer.pdf.internal.pageSize.getHeight()-renderer.pdf.margins_doc.bottom<renderer.y+cn.height&&renderer.y>renderer.pdf.margins_doc.top&&(renderer.pdf.addPage(),renderer.y=renderer.pdf.margins_doc.top,renderer.executeWatchFunctions(cn));var imagesCSS=GetCSS(cn),imageX=renderer.x,fontToUnitRatio=12/renderer.pdf.internal.scaleFactor,additionalSpaceLeft=(imagesCSS["margin-left"]+imagesCSS["padding-left"])*fontToUnitRatio,additionalSpaceRight=(imagesCSS["margin-right"]+imagesCSS["padding-right"])*fontToUnitRatio,additionalSpaceTop=(imagesCSS["margin-top"]+imagesCSS["padding-top"])*fontToUnitRatio,additionalSpaceBottom=(imagesCSS["margin-bottom"]+imagesCSS["padding-bottom"])*fontToUnitRatio;imagesCSS.float!==void 0&&imagesCSS.float==="right"?imageX+=renderer.settings.width-cn.width-additionalSpaceRight:imageX+=additionalSpaceLeft,renderer.pdf.addImage(cached_image,imageX,renderer.y+additionalSpaceTop,cn.width,cn.height),cached_image=void 0,imagesCSS.float==="right"||imagesCSS.float==="left"?(renderer.watchFunctions.push(function(diffX,thresholdY,diffWidth,el){return renderer.y>=thresholdY?(renderer.x+=diffX,renderer.settings.width+=diffWidth,!0):el&&el.nodeType===1&&!SkipNode[el.nodeName]&&renderer.x+el.width>renderer.pdf.margins_doc.left+renderer.pdf.margins_doc.width?(renderer.x+=diffX,renderer.y=thresholdY,renderer.settings.width+=diffWidth,!0):!1}.bind(this,imagesCSS.float==="left"?-cn.width-additionalSpaceLeft-additionalSpaceRight:0,renderer.y+cn.height+additionalSpaceTop+additionalSpaceBottom,cn.width)),renderer.watchFunctions.push(function(yPositionAfterFloating,pages,el){return renderer.y<yPositionAfterFloating&&pages===renderer.pdf.internal.getNumberOfPages()?el.nodeType===1&&GetCSS(el).clear==="both"?(renderer.y=yPositionAfterFloating,!0):!1:!0}.bind(this,renderer.y+cn.height,renderer.pdf.internal.getNumberOfPages())),renderer.settings.width-=cn.width+additionalSpaceLeft+additionalSpaceRight,imagesCSS.float==="left"&&(renderer.x+=cn.width+additionalSpaceLeft+additionalSpaceRight)):renderer.y+=cn.height+additionalSpaceTop+additionalSpaceBottom}else if(cn.nodeName==="TABLE")table2json=tableToJson(cn,renderer),renderer.y+=10,renderer.pdf.table(renderer.x,renderer.y,table2json.rows,table2json.headers,{autoSize:!1,printHeaders:elementHandlers.printHeaders,margins:renderer.pdf.margins_doc,css:GetCSS(cn)}),renderer.y=renderer.pdf.lastCellPos.y+renderer.pdf.lastCellPos.h+20;else if(cn.nodeName==="OL"||cn.nodeName==="UL")listCount=1,elementHandledElsewhere(cn,renderer,elementHandlers)||_DrillForContent(cn,renderer,elementHandlers),renderer.y+=10;else if(cn.nodeName==="LI"){var temp=renderer.x;renderer.x+=20/renderer.pdf.internal.scaleFactor,renderer.y+=3,elementHandledElsewhere(cn,renderer,elementHandlers)||_DrillForContent(cn,renderer,elementHandlers),renderer.x=temp}else cn.nodeName==="BR"?(renderer.y+=fragmentCSS["font-size"]*renderer.pdf.internal.scaleFactor,renderer.addText("\u2028",clone(fragmentCSS))):elementHandledElsewhere(cn,renderer,elementHandlers)||_DrillForContent(cn,renderer,elementHandlers)}else if(cn.nodeType===3){var value=cn.nodeValue;if(cn.nodeValue&&cn.parentNode.nodeName==="LI")if(cn.parentNode.parentNode.nodeName==="OL")value=listCount+++". "+value;else{var fontSize=fragmentCSS["font-size"],offsetX=(3-fontSize*.75)*renderer.pdf.internal.scaleFactor,offsetY=fontSize*.75*renderer.pdf.internal.scaleFactor,radius=fontSize*1.74/renderer.pdf.internal.scaleFactor;cb=function(x,y){this.pdf.circle(x+offsetX,y+offsetY,radius,"FD")}}cn.ownerDocument.body.compareDocumentPosition(cn)&16&&renderer.addText(value,fragmentCSS)}
151else typeof cn=="string"&&renderer.addText(cn,fragmentCSS)}i++}if(elementHandlers.outY=renderer.y,isBlock)return renderer.setBlockBoundary(cb)},images={},loadImgs=function(element,renderer,elementHandlers,cb){var imgs=element.getElementsByTagName("img"),l=imgs.length,found_images,x=0;function done(){renderer.pdf.internal.events.publish("imagesLoaded"),cb(found_images)}function loadImage(url,width,height){if(url){var img=new Image;found_images=++x,img.crossOrigin="",img.onerror=img.onload=function(){if(img.complete&&(img.src.indexOf("data:image/")===0&&(img.width=width||img.width||0,img.height=height||img.height||0),img.width+img.height)){var hash=renderer.pdf.sHashCode(url)||url;images[hash]=images[hash]||img}--x||done()},img.src=url}}for(;l--;)loadImage(imgs[l].getAttribute("src"),imgs[l].width,imgs[l].height);return x||done()},checkForFooter=function(elem,renderer,elementHandlers){var footer=elem.getElementsByTagName("footer");if(footer.length>0){footer=footer[0];var oldOut=renderer.pdf.internal.write,oldY=renderer.y;renderer.pdf.internal.write=function(){},_DrillForContent(footer,renderer,elementHandlers);var footerHeight=Math.ceil(renderer.y-oldY)+5;renderer.y=oldY,renderer.pdf.internal.write=oldOut,renderer.pdf.margins_doc.bottom+=footerHeight;for(var renderFooter=function(pageInfo){var pageNumber=pageInfo!==void 0?pageInfo.pageNumber:1,oldPosition=renderer.y;renderer.y=renderer.pdf.internal.pageSize.getHeight()-renderer.pdf.margins_doc.bottom,renderer.pdf.margins_doc.bottom-=footerHeight;for(var spans2=footer.getElementsByTagName("span"),i2=0;i2<spans2.length;++i2)(" "+spans2[i2].className+" ").replace(/[\n\t]/g," ").indexOf(" pageCounter ")>-1&&(spans2[i2].innerHTML=pageNumber),(" "+spans2[i2].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")>-1&&(spans2[i2].innerHTML="###jsPDFVarTotalPages###");_DrillForContent(footer,renderer,elementHandlers),renderer.pdf.margins_doc.bottom+=footerHeight,renderer.y=oldPosition},spans=footer.getElementsByTagName("span"),i=0;i<spans.length;++i)(" "+spans[i].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")>-1&&renderer.pdf.internal.events.subscribe("htmlRenderingFinished",renderer.pdf.putTotalPages.bind(renderer.pdf,"###jsPDFVarTotalPages###"),!0);renderer.pdf.internal.events.subscribe("addPage",renderFooter,!1),renderFooter(),SkipNode.FOOTER=1}},process=function(pdf,element,x,y,settings,callback){if(!element)return!1;typeof element!="string"&&!element.parentNode&&(element=""+element.innerHTML),typeof element=="string"&&(element=(function(element2){var $frame,$hiddendiv,framename,visuallyhidden;return framename="jsPDFhtmlText"+Date.now().toString()+(Math.random()*1e3).toFixed(0),visuallyhidden="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",$hiddendiv=document.createElement("div"),$hiddendiv.style.cssText=visuallyhidden,$hiddendiv.innerHTML='<iframe style="height:1px;width:1px" name="'+framename+'" />',document.body.appendChild($hiddendiv),$frame=window.frames[framename],$frame.document.open(),$frame.document.writeln(element2),$frame.document.close(),$frame.document.body})(element.replace(/<\/?script[^>]*?>/gi,"")));var r=new Renderer(pdf,x,y,settings),out;return loadImgs.call(this,element,r,settings.elementHandlers,function(found_images){checkForFooter(element,r,settings.elementHandlers),_DrillForContent(element,r,settings.elementHandlers),r.pdf.internal.events.publish("htmlRenderingFinished"),out=r.dispose(),typeof callback=="function"?callback(out):found_images&&console.error("jsPDF Warning: rendering issues? provide a callback to fromHTML!")}),out||{x:r.x,y:r.y}},Renderer.prototype.init=function(){return this.paragraph={text:[],style:[]},this.pdf.internal.write("q")},Renderer.prototype.dispose=function(){return this.pdf.internal.write("Q"),{x:this.x,y:this.y,ready:!0}},Renderer.prototype.executeWatchFunctions=function(el){var ret=!1,narray=[];if(this.watchFunctions.length>0){for(var i=0;i<this.watchFunctions.length;++i)this.watchFunctions[i](el)===!0?ret=!0:narray.push(this.watchFunctions[i]);this.watchFunctions=narray}return ret},Renderer.prototype.splitFragmentsIntoLines=function(fragments,styles){var currentLineLength,defaultFontSize,ff,fontMetrics,fontMetricsCache,fragment,fragmentChopped,fragmentLength,fragmentSpecificMetrics,fs,k,line,lines,maxLineLength,style;for(defaultFontSize=12,k=this.pdf.internal.scaleFactor,fontMetricsCache={},ff=void 0,fs=void 0,fontMetrics=void 0,fragment=void 0,style=void 0,fragmentSpecificMetrics=void 0,fragmentLength=void 0,fragmentChopped=void 0,line=[],lines=[line],currentLineLength=0,maxLineLength=this.settings.width;fragments.length;)if(fragment=fragments.shift(),style=styles.shift(),fragment)if(ff=style["font-family"],fs=style["font-style"],fontMetrics=fontMetricsCache[ff+fs],fontMetrics||(fontMetrics=this.pdf.internal.getFont(ff,fs).metadata.Unicode,fontMetricsCache[ff+fs]=fontMetrics),fragmentSpecificMetrics={widths:fontMetrics.widths,kerning:fontMetrics.kerning,fontSize:style["font-size"]*defaultFontSize,textIndent:currentLineLength},fragmentLength=this.pdf.getStringUnitWidth(fragment,fragmentSpecificMetrics)*fragmentSpecificMetrics.fontSize/k,fragment=="\u2028")line=[],lines.push(line);else if(currentLineLength+fragmentLength>maxLineLength){for(fragmentChopped=this.pdf.splitTextToSize(fragment,maxLineLength,fragmentSpecificMetrics),line.push([fragmentChopped.shift(),style]);fragmentChopped.length;)line=[[fragmentChopped.shift(),style]],lines.push(line);currentLineLength=this.pdf.getStringUnitWidth(line[0][0],fragmentSpecificMetrics)*fragmentSpecificMetrics.fontSize/k}else line.push([fragment,style]),currentLineLength+=fragmentLength;if(style["text-align"]!==void 0&&(style["text-align"]==="center"||style["text-align"]==="right"||style["text-align"]==="justify"))for(var i=0;i<lines.length;++i){var length=this.pdf.getStringUnitWidth(lines[i][0][0],fragmentSpecificMetrics)*fragmentSpecificMetrics.fontSize/k;i>0&&(lines[i][0][1]=clone(lines[i][0][1]));
151var space=maxLineLength-length;if(style["text-align"]==="right")lines[i][0][1]["margin-left"]=space;else if(style["text-align"]==="center")lines[i][0][1]["margin-left"]=space/2;else if(style["text-align"]==="justify"){var countSpaces=lines[i][0][0].split(" ").length-1;lines[i][0][1]["word-spacing"]=space/countSpaces,i===lines.length-1&&(lines[i][0][1]["word-spacing"]=0)}}return lines},Renderer.prototype.RenderTextFragment=function(text,style){var defaultFontSize,font,maxLineHeight;maxLineHeight=0,defaultFontSize=12,this.pdf.internal.pageSize.getHeight()-this.pdf.margins_doc.bottom<this.y+this.pdf.internal.getFontSize()&&(this.pdf.internal.write("ET","Q"),this.pdf.addPage(),this.y=this.pdf.margins_doc.top,this.pdf.internal.write("q","BT",this.getPdfColor(style.color),this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td"),maxLineHeight=Math.max(maxLineHeight,style["line-height"],style["font-size"]),this.pdf.internal.write(0,(-1*defaultFontSize*maxLineHeight).toFixed(2),"Td")),font=this.pdf.internal.getFont(style["font-family"],style["font-style"]);var pdfTextColor=this.getPdfColor(style.color);pdfTextColor!==this.lastTextColor&&(this.pdf.internal.write(pdfTextColor),this.lastTextColor=pdfTextColor),style["word-spacing"]!==void 0&&style["word-spacing"]>0&&this.pdf.internal.write(style["word-spacing"].toFixed(2),"Tw"),this.pdf.internal.write("/"+font.id,(defaultFontSize*style["font-size"]).toFixed(2),"Tf","("+this.pdf.internal.pdfEscape(text)+") Tj"),style["word-spacing"]!==void 0&&this.pdf.internal.write(0,"Tw")},Renderer.prototype.getPdfColor=function(style){var textColor,r,g,b,rx=/rgb\s*\(\s*(\d+),\s*(\d+),\s*(\d+\s*)\)/,m=rx.exec(style);if(m!=null)r=parseInt(m[1]),g=parseInt(m[2]),b=parseInt(m[3]);else{if(typeof style=="string"&&style.charAt(0)!="#"){var rgbColor=new RGBColor(style);rgbColor.ok?style=rgbColor.toHex():style="#000000"}r=style.substring(1,3),r=parseInt(r,16),g=style.substring(3,5),g=parseInt(g,16),b=style.substring(5,7),b=parseInt(b,16)}if(typeof r=="string"&&/^#[0-9A-Fa-f]{6}$/.test(r)){var hex=parseInt(r.substr(1),16);r=hex>>16&255,g=hex>>8&255,b=hex&255}var f3=this.f3;return r===0&&g===0&&b===0||typeof g=="undefined"?textColor=f3(r/255)+" g":textColor=[f3(r/255),f3(g/255),f3(b/255),"rg"].join(" "),textColor},Renderer.prototype.f3=function(number){return number.toFixed(3)},Renderer.prototype.renderParagraph=function(cb){var blockstyle,defaultFontSize,fontToUnitRatio,fragments,i,l,line,lines,maxLineHeight,out,paragraphspacing_after,paragraphspacing_before,priorblockstyle,styles,fontSize;if(fragments=PurgeWhiteSpace(this.paragraph.text),styles=this.paragraph.style,blockstyle=this.paragraph.blockstyle,priorblockstyle=this.paragraph.priorblockstyle||{},this.paragraph={text:[],style:[],blockstyle:{},priorblockstyle:blockstyle},!!fragments.join("").trim()){lines=this.splitFragmentsIntoLines(fragments,styles),line=void 0,maxLineHeight=void 0,defaultFontSize=12,fontToUnitRatio=defaultFontSize/this.pdf.internal.scaleFactor,this.priorMarginBottom=this.priorMarginBottom||0,paragraphspacing_before=(Math.max((blockstyle["margin-top"]||0)-this.priorMarginBottom,0)+(blockstyle["padding-top"]||0))*fontToUnitRatio,paragraphspacing_after=((blockstyle["margin-bottom"]||0)+(blockstyle["padding-bottom"]||0))*fontToUnitRatio,this.priorMarginBottom=blockstyle["margin-bottom"]||0,blockstyle["page-break-before"]==="always"&&(this.pdf.addPage(),this.y=0,paragraphspacing_before=((blockstyle["margin-top"]||0)+(blockstyle["padding-top"]||0))*fontToUnitRatio),out=this.pdf.internal.write,i=void 0,l=void 0,this.y+=paragraphspacing_before,out("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td");for(var currentIndent=0;lines.length;){for(line=lines.shift(),maxLineHeight=0,i=0,l=line.length;i!==l;)line[i][0].trim()&&(maxLineHeight=Math.max(maxLineHeight,line[i][1]["line-height"],line[i][1]["font-size"]),fontSize=line[i][1]["font-size"]*7),i++;var indentMove=0,wantedIndent=0;line[0][1]["margin-left"]!==void 0&&line[0][1]["margin-left"]>0&&(wantedIndent=this.pdf.internal.getCoordinateString(line[0][1]["margin-left"]),indentMove=wantedIndent-currentIndent,currentIndent=wantedIndent);var indentMore=Math.max(blockstyle["margin-left"]||0,0)*fontToUnitRatio;for(out(indentMove+indentMore,(-1*defaultFontSize*maxLineHeight).toFixed(2),"Td"),i=0,l=line.length;i!==l;)line[i][0]&&this.RenderTextFragment(line[i][0],line[i][1]),i++;if(this.y+=maxLineHeight*fontToUnitRatio,this.executeWatchFunctions(l
151ine[0][1])&&lines.length>0){var localFragments=[],localStyles=[];lines.forEach(function(localLine){for(var i2=0,l2=localLine.length;i2!==l2;)localLine[i2][0]&&(localFragments.push(localLine[i2][0]+" "),localStyles.push(localLine[i2][1])),++i2}),lines=this.splitFragmentsIntoLines(PurgeWhiteSpace(localFragments),localStyles),out("ET","Q"),out("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td")}}return cb&&typeof cb=="function"&&cb.call(this,this.x-9,this.y-fontSize/2),out("ET","Q"),this.y+=paragraphspacing_after}},Renderer.prototype.setBlockBoundary=function(cb){return this.renderParagraph(cb)},Renderer.prototype.setBlockStyle=function(css){return this.paragraph.blockstyle=css},Renderer.prototype.addText=function(text,css){return this.paragraph.text.push(text),this.paragraph.style.push(css)},FontNameDB={helvetica:"helvetica","sans-serif":"helvetica","times new roman":"times",serif:"times",times:"times",monospace:"courier",courier:"courier"},FontWeightMap={100:"normal",200:"normal",300:"normal",400:"normal",500:"bold",600:"bold",700:"bold",800:"bold",900:"bold",normal:"normal",bold:"bold",bolder:"bold",lighter:"normal"},FontStyleMap={normal:"normal",italic:"italic",oblique:"italic"},TextAlignMap={left:"left",right:"right",center:"center",justify:"justify"},FloatMap={none:"none",right:"right",left:"left"},ClearMap={none:"none",both:"both"},UnitedNumberMap={normal:1},jsPDFAPI.fromHTML=function(HTML,x,y,settings,callback,margins){return this.margins_doc=margins||{top:0,bottom:0},settings||(settings={}),settings.elementHandlers||(settings.elementHandlers={}),process(this,HTML,isNaN(x)?4:x,isNaN(y)?4:y,settings,callback)}})(jsPDF2.API),(function(jsPDFAPI,globalObj){globalObj.html2pdf=function(html,pdf,callback){var canvas=pdf.canvas;if(!canvas){alert("jsPDF canvas plugin not installed");return}canvas.pdf=pdf,pdf.annotations={_nameMap:[],createAnnotation:function(href,bounds){var x=pdf.context2d._wrapX(bounds.left),y=pdf.context2d._wrapY(bounds.top),page=pdf.context2d._page(bounds.top),options2,index=href.indexOf("#");index>=0?options2={name:href.substring(index+1)}:options2={url:href},pdf.link(x,y,bounds.right-bounds.left,bounds.bottom-bounds.top,options2)},setName:function(name2,bounds){var x=pdf.context2d._wrapX(bounds.left),y=pdf.context2d._wrapY(bounds.top),page=pdf.context2d._page(bounds.top);this._nameMap[name2]={page:page,x:x,y:y}}},canvas.annotations=pdf.annotations,pdf.context2d._pageBreakAt=function(y){this.pageBreaks.push(y)},pdf.context2d._gotoPage=function(pageOneBased){for(;pdf.internal.getNumberOfPages()<pageOneBased;)pdf.addPage();pdf.setPage(pageOneBased)};var htmlElement,height;if(typeof html=="string"){html=html.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"");var iframe=document.createElement("iframe");document.body.appendChild(iframe);var doc,body;doc=iframe.contentDocument,(doc==null||doc==null)&&(doc=iframe.contentWindow.document),doc.open(),doc.write(html),doc.close(),htmlElement=doc.body,body=doc.body||{},html=doc.documentElement||{},height=Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight)}else htmlElement=html,body=html.body||{},height=Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight);height=pdf.internal.pageSize.getHeight();var options={async:!0,allowTaint:!0,backgroundColor:"#ffffff",canvas:canvas,imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1,windowHeight:height,scrollY:height};pdf.context2d.pageWrapYEnabled=!0,pdf.context2d.pageWrapY=pdf.internal.pageSize.getHeight();var promise=html2canvas(htmlElement,options).then(function(canvas2){callback&&(iframe&&iframe.parentElement.removeChild(iframe),callback(pdf))})}})(jsPDF2.API,typeof window!="undefined"&&window||typeof global!="undefined"&&global),window.tmp=html2pdf,(function(global2){var BlobBuilder=global2.BlobBuilder||global2.WebKitBlobBuilder||global2.MSBlobBuilder||global2.MozBlobBuilder;global2.URL=global2.URL||global2.webkitURL||function(href,a){return a=document.createElement("a"),a.href=href,a};var origBlob=global2.Blob,createObjectURL=URL.createObjectURL,revokeObjectURL=URL.revokeObjectURL,strTag=global2.Symbol&&global2.Symbol.toStringTag,blobSupported=!1,blobSupportsArrayBufferView=!1,arrayBufferSupported=!!global2.ArrayBuffer,blobBuilderSupported=BlobBuilder&&BlobBuilder.prototype.append&&BlobBuilder.prototype.getBlob;
151try{blobSupported=new Blob(["\xE4"]).size===2,blobSupportsArrayBufferView=new Blob([new Uint8Array([1,2])]).size===2}catch(e){}function mapArrayBufferViews(ary){return ary.map(function(chunk){if(chunk.buffer instanceof ArrayBuffer){var buf=chunk.buffer;if(chunk.byteLength!==buf.byteLength){var copy=new Uint8Array(chunk.byteLength);copy.set(new Uint8Array(buf,chunk.byteOffset,chunk.byteLength)),buf=copy.buffer}return buf}return chunk})}function BlobBuilderConstructor(ary,options){options=options||{};var bb=new BlobBuilder;return mapArrayBufferViews(ary).forEach(function(part){bb.append(part)}),options.type?bb.getBlob(options.type):bb.getBlob()}function BlobConstructor(ary,options){return new origBlob(mapArrayBufferViews(ary),options||{})}global2.Blob&&(BlobBuilderConstructor.prototype=Blob.prototype,BlobConstructor.prototype=Blob.prototype);function FakeBlobBuilder(){function toUTF8Array(str){for(var utf8=[],i=0;i<str.length;i++){var charcode=str.charCodeAt(i);charcode<128?utf8.push(charcode):charcode<2048?utf8.push(192|charcode>>6,128|charcode&63):charcode<55296||charcode>=57344?utf8.push(224|charcode>>12,128|charcode>>6&63,128|charcode&63):(i++,charcode=65536+((charcode&1023)<<10|str.charCodeAt(i)&1023),utf8.push(240|charcode>>18,128|charcode>>12&63,128|charcode>>6&63,128|charcode&63))}return utf8}function fromUtf8Array(array){var out,i,len,c,char2,char3;for(out="",len=array.length,i=0;i<len;)switch(c=array[i++],c>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:out+=String.fromCharCode(c);break;case 12:case 13:char2=array[i++],out+=String.fromCharCode((c&31)<<6|char2&63);break;case 14:char2=array[i++],char3=array[i++],out+=String.fromCharCode((c&15)<<12|(char2&63)<<6|(char3&63)<<0);break}return out}function isDataView(obj){return obj&&DataView.prototype.isPrototypeOf(obj)}function bufferClone(buf){for(var view=new Array(buf.byteLength),array=new Uint8Array(buf),i=view.length;i--;)view[i]=array[i];return view}function encodeByteArray(input){for(var byteToCharMap="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",output=[],i=0;i<input.length;i+=3){var byte1=input[i],haveByte2=i+1<input.length,byte2=haveByte2?input[i+1]:0,haveByte3=i+2<input.length,byte3=haveByte3?input[i+2]:0,outByte1=byte1>>2,outByte2=(byte1&3)<<4|byte2>>4,outByte3=(byte2&15)<<2|byte3>>6,outByte4=byte3&63;haveByte3||(outByte4=64,haveByte2||(outByte3=64)),output.push(byteToCharMap[outByte1],byteToCharMap[outByte2],byteToCharMap[outByte3],byteToCharMap[outByte4])}return output.join("")}var create=Object.create||function(a){function c(){}return c.prototype=a,new c};if(arrayBufferSupported)var viewClasses=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],isArrayBufferView=ArrayBuffer.isView||function(obj){return obj&&viewClasses.indexOf(Object.prototype.toString.call(obj))>-1};function Blob2(chunks,opts){chunks=chunks||[];for(var i=0,len=chunks.length;i<len;i++){var chunk=chunks[i];chunk instanceof Blob2?chunks[i]=chunk._buffer:typeof chunk=="string"?chunks[i]=toUTF8Array(chunk):arrayBufferSupported&&(ArrayBuffer.prototype.isPrototypeOf(chunk)||isArrayBufferView(chunk))?chunks[i]=bufferClone(chunk):arrayBufferSupported&&isDataView(chunk)?chunks[i]=bufferClone(chunk.buffer):chunks[i]=toUTF8Array(String(chunk))}this._buffer=[].concat.apply([],chunks),this.size=this._buffer.length,this.type=opts&&opts.type||""}Blob2.prototype.slice=function(start,end,type){var slice=this._buffer.slice(start||0,end||this._buffer.length);return new Blob2([slice],{type:type})},Blob2.prototype.toString=function(){return"[object Blob]"};function File2(chunks,name2,opts){opts=opts||{};var a=Blob2.call(this,chunks,opts)||this;return a.name=name2,a.lastModifiedDate=opts.lastModified?new Date(opts.lastModified):new Date,a.lastModified=+a.lastModifiedDate,a}if(File2.prototype=create(Blob2.prototype),File2.prototype.constructor=File2,Object.setPrototypeOf)Object.setPrototypeOf(File2,Blob2);else try{File2.__proto__=Blob2}catch(e){}File2.prototype.toString=function(){return"[object File]"};function FileReader2(){if(!(this instanceof FileReader2))throw new TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object c
151onstructor cannot be called as a function.");var delegate=document.createDocumentFragment();this.addEventListener=delegate.addEventListener,this.dispatchEvent=function(evt){var local=this["on"+evt.type];typeof local=="function"&&local(evt),delegate.dispatchEvent(evt)},this.removeEventListener=delegate.removeEventListener}function _read(fr,blob,kind){if(!(blob instanceof Blob2))throw new TypeError("Failed to execute '"+kind+"' on 'FileReader': parameter 1 is not of type 'Blob'.");fr.result="",setTimeout(function(){this.readyState=FileReader2.LOADING,fr.dispatchEvent(new Event("load")),fr.dispatchEvent(new Event("loadend"))})}FileReader2.EMPTY=0,FileReader2.LOADING=1,FileReader2.DONE=2,FileReader2.prototype.error=null,FileReader2.prototype.onabort=null,FileReader2.prototype.onerror=null,FileReader2.prototype.onload=null,FileReader2.prototype.onloadend=null,FileReader2.prototype.onloadstart=null,FileReader2.prototype.onprogress=null,FileReader2.prototype.readAsDataURL=function(blob){_read(this,blob,"readAsDataURL"),this.result="data:"+blob.type+";base64,"+encodeByteArray(blob._buffer)},FileReader2.prototype.readAsText=function(blob){_read(this,blob,"readAsText"),this.result=fromUtf8Array(blob._buffer)},FileReader2.prototype.readAsArrayBuffer=function(blob){_read(this,blob,"readAsText"),this.result=blob._buffer.slice()},FileReader2.prototype.abort=function(){},URL.createObjectURL=function(blob){return blob instanceof Blob2?"data:"+blob.type+";base64,"+encodeByteArray(blob._buffer):createObjectURL.call(URL,blob)},URL.revokeObjectURL=function(url){revokeObjectURL&&revokeObjectURL.call(URL,url)};var _send=global2.XMLHttpRequest&&global2.XMLHttpRequest.prototype.send;_send&&(XMLHttpRequest.prototype.send=function(data){data instanceof Blob2?(this.setRequestHeader("Content-Type",data.type),_send.call(this,fromUtf8Array(data._buffer))):_send.call(this,data)}),global2.FileReader=FileReader2,global2.File=File2,global2.Blob=Blob2}if(strTag)try{File.prototype[strTag]="File",Blob.prototype[strTag]="Blob",FileReader.prototype[strTag]="FileReader"}catch(e){}function fixFileAndXHR(){var isIE=!!global2.ActiveXObject||"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,_send=global2.XMLHttpRequest&&global2.XMLHttpRequest.prototype.send;isIE&&_send&&(XMLHttpRequest.prototype.send=function(data){data instanceof Blob?(this.setRequestHeader("Content-Type",data.type),_send.call(this,data)):_send.call(this,data)});try{new File([],"")}catch(e){try{var klass=new Function('class File extends Blob {constructor(chunks, name, opts) {opts = opts || {};super(chunks, opts || {});this.name = name;this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date;this.lastModified = +this.lastModifiedDate;}};return new File([], ""), File')();global2.File=klass}catch(e2){var klass=function(b,d,c){var blob=new Blob(b,c),t=c&&c.lastModified!==void 0?new Date(c.lastModified):new Date;return blob.name=d,blob.lastModifiedDate=t,blob.lastModified=+t,blob.toString=function(){return"[object File]"},strTag&&(blob[strTag]="File"),blob};global2.File=klass}}}blobSupported?(fixFileAndXHR(),global2.Blob=blobSupportsArrayBufferView?global2.Blob:BlobConstructor):blobBuilderSupported?(fixFileAndXHR(),global2.Blob=BlobBuilderConstructor):FakeBlobBuilder()})(typeof self!="undefined"&&self||typeof window!="undefined"&&window||typeof global!="undefined"&&global||Function('return typeof this === "object" && this.content')()||Function("return this")());/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/src/FileSaver.js */var saveAs=saveAs||(function(view){if(!(typeof view=="undefined"||typeof navigator!="undefined"&&/MSIE [1-9]\./.test(navigator.userAgent))){var doc=view.document,get_URL=function(){return view.URL||view.webkitURL||view},save_link=doc.createElementNS("http://www.w3.org/1999/xhtml","a"),can_use_save_link="download"in save_link,click=function(node){var event=new MouseEvent("click");node.dispatchEvent(event)},is_safari=/constructor/i.test(view.HTMLElement)||view.safari,is_chrome_ios=/CriOS\/[\d]+/.test(navigator.userAgent),setImmediate=view.setImmediate||view.setTimeout,throw_outside=function(ex){setImmediate(function(){throw ex},0)},force_saveable_type="application/octet-stream",arbitrary_revoke_timeout=1e3*40,revoke=function(file){var revoker=function(){typeof file=="string"?get_URL().revokeObjectURL(file):file.remove()};setTimeout(revoker,arbitrary_revoke_timeout)},dispatch=function(filesaver,event_types,event){event_types=[].concat(event_types);for(var i=event_types.length;i--;){var listener=filesaver["on"+event_types[i]];if(typeof listener=="function")try{listener.call(filesaver,event||filesaver)}catch(ex){throw_outside(ex)}}},auto_bom=function(blob){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(blob.type)?new Blob(["\uFEFF",blob],{type:blob.type}):blob},FileSaver=function(blob,name2,no_auto_bom){no_auto_bom||(blob=auto_bom(blob));var filesaver=this,type=blob.type,force=type===force_saveable_type,object_url,dispatch_all=function(){dispatch(filesaver,"writestart progress write writeend".split(" "))},fs_error=function(){if((is_chrome_ios||force&&is_safari)&&view.FileReader){var reader=new FileReader;reader.onloadend=function(){var url=is_chrome_ios?reader.result:reader.result.replace(/^data:[^;]*;/,"data:attachment/file;"),popup=view.open(url,"_blank");popup||(view.location.href=url),url=void 0,filesaver.readyState=filesaver.DONE,dispatch_all()}
151,reader.readAsDataURL(blob),filesaver.readyState=filesaver.INIT;return}if(object_url||(object_url=get_URL().createObjectURL(blob)),force)view.location.href=object_url;else{var opened=view.open(object_url,"_blank");opened||(view.location.href=object_url)}filesaver.readyState=filesaver.DONE,dispatch_all(),revoke(object_url)};if(filesaver.readyState=filesaver.INIT,can_use_save_link){object_url=get_URL().createObjectURL(blob),setImmediate(function(){save_link.href=object_url,save_link.download=name2,click(save_link),dispatch_all(),revoke(object_url),filesaver.readyState=filesaver.DONE},0);return}fs_error()},FS_proto=FileSaver.prototype,saveAs2=function(blob,name2,no_auto_bom){return new FileSaver(blob,name2||blob.name||"download",no_auto_bom)};return typeof navigator!="undefined"&&navigator.msSaveOrOpenBlob?function(blob,name2,no_auto_bom){return name2=name2||blob.name||"download",no_auto_bom||(blob=auto_bom(blob)),navigator.msSaveOrOpenBlob(blob,name2)}:(FS_proto.abort=function(){},FS_proto.readyState=FS_proto.INIT=0,FS_proto.WRITING=1,FS_proto.DONE=2,FS_proto.error=FS_proto.onwritestart=FS_proto.onprogress=FS_proto.onwrite=FS_proto.onabort=FS_proto.onerror=FS_proto.onwriteend=null,saveAs2)}})(typeof self!="undefined"&&self||typeof window!="undefined"&&window||void 0);function GifWriter(buf,width,height,gopts){var p=0,gopts=gopts===void 0?{}:gopts,loop_count=gopts.loop===void 0?null:gopts.loop,global_palette=gopts.palette===void 0?null:gopts.palette;if(width<=0||height<=0||width>65535||height>65535)throw"Width/Height invalid.";function check_palette_and_num_colors(palette){var num_colors=palette.length;if(num_colors<2||num_colors>256||num_colors&num_colors-1)throw"Invalid code/color length, must be power of 2 and 2 .. 256.";return num_colors}buf[p++]=71,buf[p++]=73,buf[p++]=70,buf[p++]=56,buf[p++]=57,buf[p++]=97;var gp_num_colors_pow2=0,background=0;if(global_palette!==null){for(var gp_num_colors=check_palette_and_num_colors(global_palette);gp_num_colors>>=1;)++gp_num_colors_pow2;if(gp_num_colors=1<<gp_num_colors_pow2,--gp_num_colors_pow2,gopts.background!==void 0){if(background=gopts.background,background>=gp_num_colors)throw"Background index out of range.";if(background===0)throw"Background index explicitly passed as 0."}}if(buf[p++]=width&255,buf[p++]=width>>8&255,buf[p++]=height&255,buf[p++]=height>>8&255,buf[p++]=(global_palette!==null?128:0)|gp_num_colors_pow2,buf[p++]=background,buf[p++]=0,global_palette!==null)for(var i=0,il=global_palette.length;i<il;++i){var rgb=global_palette[i];buf[p++]=rgb>>16&255,buf[p++]=rgb>>8&255,buf[p++]=rgb&255}if(loop_count!==null){if(loop_count<0||loop_count>65535)throw"Loop count invalid.";buf[p++]=33,buf[p++]=255,buf[p++]=11,buf[p++]=78,buf[p++]=69,buf[p++]=84,buf[p++]=83,buf[p++]=67,buf[p++]=65,buf[p++]=80,buf[p++]=69,buf[p++]=50,buf[p++]=46,buf[p++]=48,buf[p++]=3,buf[p++]=1,buf[p++]=loop_count&255,buf[p++]=loop_count>>8&255,buf[p++]=0}var ended=!1;this.addFrame=function(x,y,w,h,indexed_pixels,opts){if(ended===!0&&(--p,ended=!1),opts=opts===void 0?{}:opts,x<0||y<0||x>65535||y>
15165535)throw"x/y invalid.";if(w<=0||h<=0||w>65535||h>65535)throw"Width/Height invalid.";if(indexed_pixels.length<w*h)throw"Not enough pixels for the frame size.";var using_local_palette=!0,palette=opts.palette;if(palette==null&&(using_local_palette=!1,palette=global_palette),palette==null)throw"Must supply either a local or global palette.";for(var num_colors=check_palette_and_num_colors(palette),min_code_size=0;num_colors>>=1;)++min_code_size;num_colors=1<<min_code_size;var delay=opts.delay===void 0?0:opts.delay,disposal=opts.disposal===void 0?0:opts.disposal;if(disposal<0||disposal>3)throw"Disposal out of range.";var use_transparency=!1,transparent_index=0;if(opts.transparent!==void 0&&opts.transparent!==null&&(use_transparency=!0,transparent_index=opts.transparent,transparent_index<0||transparent_index>=num_colors))throw"Transparent color index.";if((disposal!==0||use_transparency||delay!==0)&&(buf[p++]=33,buf[p++]=249,buf[p++]=4,buf[p++]=disposal<<2|(use_transparency===!0?1:0),buf[p++]=delay&255,buf[p++]=delay>>8&255,buf[p++]=transparent_index,buf[p++]=0),buf[p++]=44,buf[p++]=x&255,buf[p++]=x>>8&255,buf[p++]=y&255,buf[p++]=y>>8&255,buf[p++]=w&255,buf[p++]=w>>8&255,buf[p++]=h&255,buf[p++]=h>>8&255,buf[p++]=using_local_palette===!0?128|min_code_size-1:0,using_local_palette===!0)for(var i2=0,il2=palette.length;i2<il2;++i2){var rgb2=palette[i2];buf[p++]=rgb2>>16&255,buf[p++]=rgb2>>8&255,buf[p++]=rgb2&255}p=GifWriterOutputLZWCodeStream(buf,p,min_code_size<2?2:min_code_size,indexed_pixels)},this.end=function(){return ended===!1&&(buf[p++]=59,ended=!0),p}}function GifWriterOutputLZWCodeStream(buf,p,min_code_size,index_stream){buf[p++]=min_code_size;var cur_subblock=p++,clear_code=1<<min_code_size,code_mask=clear_code-1,eoi_code=clear_code+1,next_code=eoi_code+1,cur_code_size=min_code_size+1,cur_shift=0,cur=0;function emit_bytes_to_buffer(bit_block_size){for(;cur_shift>=bit_block_size;)buf[p++]=cur&255,cur>>=8,cur_shift-=8,p===cur_subblock+256&&(buf[cur_subblock]=255,cur_subblock=p++)}function emit_code(c){cur|=c<<cur_shift,cur_shift+=cur_code_size,emit_bytes_to_buffer(8)}var ib_code=index_stream[0]&code_mask,code_table={};emit_code(clear_code);for(var i=1,il=index_stream.length;i<il;++i){var k=index_stream[i]&code_mask,cur_key=ib_code<<8|k,cur_code=code_table[cur_key];if(cur_code===void 0){for(cur|=ib_code<<cur_shift,cur_shift+=cur_code_size;cur_shift>=8;)buf[p++]=cur&255,cur>>=8,cur_shift-=8,p===cur_subblock+256&&(buf[cur_subblock]=255,cur_subblock=p++);next_code===4096?(emit_code(clear_code),next_code=eoi_code+1,cur_code_size=min_code_size+1,code_table={}):(next_code>=1<<cur_code_size&&++cur_code_size,code_table[cur_key]=next_code++),ib_code=k}else ib_code=cur_code}return emit_code(ib_code),emit_code(eoi_code),emit_bytes_to_buffer(1),cur_subblock+1===p?buf[cur_subblock]=0:(buf[cur_subblock]=p-cur_subblock-1,buf[p++]=0),p}function GifReader(buf){var p=0;if(buf[p++]!==71||buf[p++]!==73||buf[p++]!==70||buf[p++]!==56||(buf[p++]+1&253)!==56||buf[p++]!==97)throw"Invalid GIF 87a/89a header.";var width=buf[p++]|buf[p++]<<8,height=buf[p++]|buf[p++]<<8,pf0=buf[p++],global_palette_flag=pf0>>7,num_global_colors_pow2=pf0&7,num_global_colors=1<<num_global_colors_pow2+1,background=buf[p++];buf[p++];var global_palette_offset=null;global_palette_flag&&(global_palette_offset=p,p+=num_global_colors*3);var no_eof=!0,frames=[],delay=0,transparent_index=null,disposal=0,loop_count=null;for(this.width=width,this.height=height;no_eof&&p<buf.length;)switch(buf[p++]){case 33:switch(buf[p++]){case 255:if(buf[p]!==11||buf[p+1]==78&&buf[p+2]==69&&buf[p+3]==84&&buf[p+4]==83&&buf[p+5]==67&&buf[p+6]==65&&buf[p+7]==80&&buf[p+8]==69&&buf[p+9]==50&&buf[p+10]==46&&buf[p+11]==48&&buf[p+12]==3&&buf[p+13]==1&&buf[p+16]==0)p+=14,loop_count=buf[p++]|buf[p++]<<8,p++;else for(p+=12;;){var block_size=buf[p++];if(block_size===0)break;p+=block_size}break;case 249:if(buf[p++]!==4||buf[p+4]!==0)throw"Invalid graphics extension block.";var pf1=buf[p++];delay=buf[p++]|buf[p++]<<8,transparent_index=buf[p++],(pf1&1)===0&&(transparent_index=null),disposal=pf1>>2&7,p++;break;case 254:for(;;){var block_size=buf[p++];if(block_size===0)break;p+=block_size}break;default:throw"Unknown graphic control label: 0x"+buf[p-1].toString(16)}break;case 44:var x=buf[p++]|buf[p++]<<8,y=buf[p++]|buf[p++]<<8,w=buf[p++]|buf[p++]<<8,h=buf[p++]|buf[p++]<<8,pf2=buf[p++],local_palette_flag=pf2>>7,interlace_flag=pf2>>6&1,num_local_colors_pow2=pf2&7,num_local_colors=1<<num_local_colors_pow2+1,palette_offset=global_palette_offset,has_local_palette=!1;if(local_palette_flag){var has_local_palette=!0;palette_offset=p,p+=num_local_colors*3}var data_offset=p;for(p++;;){var block_size=buf[p++];if(block_size===0)break;p+=block_size}frames.push({x:x,y:y,width:w,height:h,has_local_palette:has_local_palette,palette_offset:palette_offset,data_offset:data_offset,data_length:p-data_offset,transparent_index:transparent_index,interlaced:!!interlace_flag,delay:delay,disposal:disposal});break;case 59:no_eof=!1;break;default:throw"Unknown gif block: 0x"+buf[p-1].toString(16)}this.numFrames=function(){return frames.length},this.loopCount=function(){return loop_count},this.frameInfo=function(frame_num){if(frame_num<0||frame_num>=frames.length)throw"Frame index out of range.";return frames[frame_num]},this.decodeAndBlitFrameBGRA=function(frame_num,pixels){var frame=this.frameInfo(frame_num),num_pixels=frame.width*frame.height,index_
151stream=new Uint8Array(num_pixels);GifReaderLZWOutputIndexStream(buf,frame.data_offset,index_stream,num_pixels);var palette_offset2=frame.palette_offset,trans=frame.transparent_index;trans===null&&(trans=256);var framewidth=frame.width,framestride=width-framewidth,xleft=framewidth,opbeg=(frame.y*width+frame.x)*4,opend=((frame.y+frame.height)*width+frame.x)*4,op=opbeg,scanstride=framestride*4;frame.interlaced===!0&&(scanstride+=(framewidth+framestride)*4*7);for(var interlaceskip=8,i=0,il=index_stream.length;i<il;++i){var index=index_stream[i];if(xleft===0&&(op+=scanstride,xleft=framewidth,op>=opend&&(scanstride=framestride+(framewidth+framestride)*4*(interlaceskip-1),op=opbeg+(framewidth+framestride)*(interlaceskip<<1),interlaceskip>>=1)),index===trans)op+=4;else{var r=buf[palette_offset2+index*3],g=buf[palette_offset2+index*3+1],b=buf[palette_offset2+index*3+2];pixels[op++]=b,pixels[op++]=g,pixels[op++]=r,pixels[op++]=255}--xleft}},this.decodeAndBlitFrameRGBA=function(frame_num,pixels){var frame=this.frameInfo(frame_num),num_pixels=frame.width*frame.height,index_stream=new Uint8Array(num_pixels);GifReaderLZWOutputIndexStream(buf,frame.data_offset,index_stream,num_pixels);var palette_offset2=frame.palette_offset,trans=frame.transparent_index;trans===null&&(trans=256);var framewidth=frame.width,framestride=width-framewidth,xleft=framewidth,opbeg=(frame.y*width+frame.x)*4,opend=((frame.y+frame.height)*width+frame.x)*4,op=opbeg,scanstride=framestride*4;frame.interlaced===!0&&(scanstride+=(framewidth+framestride)*4*7);for(var interlaceskip=8,i=0,il=index_stream.length;i<il;++i){var index=index_stream[i];if(xleft===0&&(op+=scanstride,xleft=framewidth,op>=opend&&(scanstride=framestride+(framewidth+framestride)*4*(interlaceskip-1),op=opbeg+(framewidth+framestride)*(interlaceskip<<1),interlaceskip>>=1)),index===trans)op+=4;else{var r=buf[palette_offset2+index*3],g=buf[palette_offset2+index*3+1],b=buf[palette_offset2+index*3+2];pixels[op++]=r,pixels[op++]=g,pixels[op++]=b,pixels[op++]=255}--xleft}}}function GifReaderLZWOutputIndexStream(code_stream,p,output,output_length){for(var min_code_size=code_stream[p++],clear_code=1<<min_code_size,eoi_code=clear_code+1,next_code=eoi_code+1,cur_code_size=min_code_size+1,code_mask=(1<<cur_code_size)-1,cur_shift=0,cur=0,op=0,subblock_size=code_stream[p++],code_table=new Int32Array(4096),prev_code=null;;){for(;cur_shift<16&&subblock_size!==0;)cur|=code_stream[p++]<<cur_shift,cur_shift+=8,subblock_size===1?subblock_size=code_stream[p++]:--subblock_size;if(cur_shift<cur_code_size)break;var code=cur&code_mask;if(cur>>=cur_code_size,cur_shift-=cur_code_size,code===clear_code){next_code=eoi_code+1,cur_code_size=min_code_size+1,code_mask=(1<<cur_code_size)-1,prev_code=null;continue}else if(code===eoi_code)break;for(var chase_code=code<next_code?code:prev_code,chase_length=0,chase=chase_code;chase>clear_code;)chase=code_table[chase]>>8,++chase_length;var k=chase,op_end=op+chase_length+(chase_code!==code?1:0);if(op_end>output_length){console.log("Warning, gif stream longer than expected.");return}output[op++]=k,op+=chase_length;var b=op;for(chase_code!==code&&(output[op++]=k),chase=chase_code;chase_length--;)chase=code_table[chase],output[--b]=chase&255,chase>>=8;prev_code!==null&&next_code<4096&&(code_table[next_code++]=prev_code<<8|k,next_code>=code_mask+1&&cur_code_size<12&&(++cur_code_size,code_mask=code_mask<<1|1)),prev_code=code}return op!==output_length&&console.log("Warning, gif stream shorter than expected."),output}try{exports.GifWriter=GifWriter,exports.GifReader=GifReader}catch(e){}window.tmp=GifReader,(function(jsPDF3,callback){jsPDF3.API.adler32cs=callback()})(jsPDF2,function(){var _hasArrayBuffer=typeof ArrayBuffer=="function"&&typeof Uint8Array=="function",_Buffer=null,_isBuffer=(function(){if(!_hasArrayBuffer)return function(){return!1};try{var buffer={};typeof buffer.Buffer=="function"&&(_Buffer=buffer.Buffer)}catch(error){}return function(value){return value instanceof ArrayBuffer||_Buffer!==null&&value instanceof _Buffer}})(),_utf8ToBinary=(function(){return _Buffer!==null?function(utf8String){return new _Buffer(utf8Str
151ing,"utf8").toString("binary")}:function(utf8String){return unescape(encodeURIComponent(utf8String))}})(),MOD=65521,_update=function(checksum,binaryString){for(var a=checksum&65535,b=checksum>>>16,i=0,length=binaryString.length;i<length;i++)a=(a+(binaryString.charCodeAt(i)&255))%MOD,b=(b+a)%MOD;return(b<<16|a)>>>0},_updateUint8Array=function(checksum,uint8Array){for(var a=checksum&65535,b=checksum>>>16,i=0,length=uint8Array.length;i<length;i++)a=(a+uint8Array[i])%MOD,b=(b+a)%MOD;return(b<<16|a)>>>0},exports2={},Adler32=exports2.Adler32=(function(){var ctor=function(checksum){if(!(this instanceof ctor))throw new TypeError("Constructor cannot called be as a function.");if(!isFinite(checksum=checksum==null?1:+checksum))throw new Error("First arguments needs to be a finite number.");this.checksum=checksum>>>0},proto=ctor.prototype={};return proto.constructor=ctor,ctor.from=(function(from){return from.prototype=proto,from})(function(binaryString){if(!(this instanceof ctor))throw new TypeError("Constructor cannot called be as a function.");if(binaryString==null)throw new Error("First argument needs to be a string.");this.checksum=_update(1,binaryString.toString())}),ctor.fromUtf8=(function(fromUtf8){return fromUtf8.prototype=proto,fromUtf8})(function(utf8String){if(!(this instanceof ctor))throw new TypeError("Constructor cannot called be as a function.");if(utf8String==null)throw new Error("First argument needs to be a string.");var binaryString=_utf8ToBinary(utf8String.toString());this.checksum=_update(1,binaryString)}),_hasArrayBuffer&&(ctor.fromBuffer=(function(fromBuffer){return fromBuffer.prototype=proto,fromBuffer})(function(buffer){if(!(this instanceof ctor))throw new TypeError("Constructor cannot called be as a function.");if(!_isBuffer(buffer))throw new Error("First argument needs to be ArrayBuffer.");var array=new Uint8Array(buffer);return this.checksum=_updateUint8Array(1,array)})),proto.update=function(binaryString){if(binaryString==null)throw new Error("First argument needs to be a string.");return binaryString=binaryString.toString(),this.checksum=_update(this.checksum,binaryString)},proto.updateUtf8=function(utf8String){if(utf8String==null)throw new Error("First argument needs to be a string.");var binaryString=_utf8ToBinary(utf8String.toString());return this.checksum=_update(this.checksum,binaryString)},_hasArrayBuffer&&(proto.updateBuffer=function(buffer){if(!_isBuffer(buffer))throw new Error("First argument needs to be ArrayBuffer.");var array=new Uint8Array(buffer);return this.checksum=_updateUint8Array(this.checksum,array)}),proto.clone=function(){return new Adler32(this.checksum)},ctor})();return exports2.from=function(binaryString){if(binaryString==null)throw new Error("First argument needs to be a string.");return _update(1,binaryString.toString())},exports2.fromUtf8=function(utf8String){if(utf8String==null)throw new Error("First argument needs to be a string.");var binaryString=_utf8ToBinary(utf8String.toString());return _update(1,binaryString)},_hasArrayBuffer&&(exports2.fromBuffer=function(buffer){if(!_isBuffer(buffer))throw new Error("First argument need to be ArrayBuffer.");var array=new Uint8Array(buffer);return _updateUint8Array(1,array)}),exports2}),(function(jsPDF3){var bidiUnicodeTypes=["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"];jsPDF3.__bidiEngine__=jsPDF3.prototype.__bidiEngine__=function(options){var _UNICODE_TYPES=_bidiUnicodeTypes,_STATE_TABLE_LTR=[[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]],_STATE_TABLE_RTL=[[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]],_TYPE_NAMES_MAP={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},_UNICODE_RANGES_MAP={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},_SWAP_TABLE=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],_LTR_RANGES_REG_EXPR=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)$/),_lastArabic=!1,_hasUbatB,_hasUbatS,DIR_LTR=0,DIR_RTL=1,_isInVisual,_isInRtl,_isOutVisual,_isOutRtl,_isSymmetricSwapping,_dir=DIR_LTR;this.__bidiEngine__={};var _init=function(text,sourceToTargetMap){if(sourceToTargetMap)for(var i=0;i<text.length;i++)sourceToTargetMap[i]=i;_isInRtl===void 0&&(_isInRtl=_isContextualDirRtl(text)),_isOutRtl===void 0&&(_isOutRtl=_isContextualDirRtl(text))}
151,_getCharType=function(ch){var charCode=ch.charCodeAt(),range=charCode>>8,rangeIdx=_UNICODE_RANGES_MAP[range];return rangeIdx!==void 0?_UNICODE_TYPES[rangeIdx*256+(charCode&255)]:range===252||range===253?"AL":_LTR_RANGES_REG_EXPR.test(range)?"L":range===8?"R":"N"},_isContextualDirRtl=function(text){for(var i=0,charType;i<text.length;i++){if(charType=_getCharType(text.charAt(i)),charType==="L")return!1;if(charType==="R")return!0}return!1},_resolveCharType=function(chars,types,resolvedTypes,index){var cType=types[index],wType,nType,i,len;switch(cType){case"L":case"R":_lastArabic=!1;break;case"N":case"AN":break;case"EN":_lastArabic&&(cType="AN");break;case"AL":_lastArabic=!0,cType="R";break;case"WS":cType="N";break;case"CS":index<1||index+1>=types.length||(wType=resolvedTypes[index-1])!=="EN"&&wType!=="AN"||(nType=types[index+1])!=="EN"&&nType!=="AN"?cType="N":_lastArabic&&(nType="AN"),cType=nType===wType?nType:"N";break;case"ES":wType=index>0?resolvedTypes[index-1]:"B",cType=wType==="EN"&&index+1<types.length&&types[index+1]==="EN"?"EN":"N";break;case"ET":if(index>0&&resolvedTypes[index-1]==="EN"){cType="EN";break}else if(_lastArabic){cType="N";break}for(i=index+1,len=types.length;i<len&&types[i]==="ET";)i++;i<len&&types[i]==="EN"?cType="EN":cType="N";break;case"NSM":if(_isInVisual&&!_isInRtl){for(len=types.length,i=index+1;i<len&&types[i]==="NSM";)i++;if(i<len){var c=chars[index],rtlCandidate=c>=1425&&c<=2303||c===64286;if(wType=types[i],rtlCandidate&&(wType==="R"||wType==="AL")){cType="R";break}}}index<1||(wType=types[index-1])==="B"?cType="N":cType=resolvedTypes[index-1];break;case"B":_lastArabic=!1,_hasUbatB=!0,cType=_dir;break;case"S":_hasUbatS=!0,cType="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":_lastArabic=!1;break;case"BN":cType="N";break}return cType},_handleUbatS=function(types,levels,length){for(var i=0;i<length;i++)if(types[i]==="S"){levels[i]=_dir;for(var j=i-1;j>=0&&types[j]==="WS";j--)levels[j]=_dir}},_invertString=function(text,sourceToTargetMap,levels){var charArray=text.split("");return levels&&_computeLevels(charArray,levels,{hiLevel:_dir}),charArray.reverse(),sourceToTargetMap&&sourceToTargetMap.reverse(),charArray.join("")},_computeLevels=function(chars,levels,params){var action,condition,i,index,newLevel,prevState,condPos=-1,len=chars.length,newState=0,resolvedTypes=[],stateTable=_dir?_STATE_TABLE_RTL:_STATE_TABLE_LTR,types=[];for(_lastArabic=!1,_hasUbatB=!1,_hasUbatS=!1,i=0;i<len;i++)types[i]=_getCharType(chars[i]);for(index=0;index<len;index++){if(prevState=newState,resolvedTypes[index]=_resolveCharType(chars,types,resolvedTypes,index),newState=stateTable[prevState][_TYPE_NAMES_MAP[resolvedTypes[index]]],action=newState&240,newState&=15,levels[index]=newLevel=stateTable[newState][5],action>0)if(action===16){for(i=condPos;i<index;i++)levels[i]=1;condPos=-1}else condPos=-1;if(condition=stateTable[newState][6],condition)condPos===-1&&(condPos=index);else if(condPos>-1){for(i=condPos;i<index;i++)levels[i]=newLevel;condPos=-1}types[index]==="B"&&(levels[index]=0),params.hiLevel|=newLevel}_hasUbatS&&_handleUbatS(types,levels,len)},_invertByLevel=function(level,charArray,sourceToTargetMap,levels,params){if(!(params.hiLevel<level)){if(level===1&&_dir===DIR_RTL&&!_hasUbatB){charArray.reverse(),sourceToTargetMap&&sourceToTargetMap.reverse();return}for(var ch,high,end,low,len=charArray.length,start=0;start<len;){if(levels[start]>=level){for(end=start+1;end<len&&levels[end]>=level;)end++;for(low=start,high=end-1;low<high;low++,high--)ch=charArray[low],charArray[low]=charArray[high],charArray[high]=ch,sourceToTargetMap&&(ch=sourceToTargetMap[low],sourceToTargetMap[low]=sourceToTargetMap[high],sourceToTargetMap[high]=ch);start=end}start++}}},_symmetricSwap=function(charArray,levels,params){if(params.hiLevel!==0&&_isSymmetricSwapping)for(var i=0,index;i<charArray.length;i++)levels[i]===1&&(index=_SWAP_TABLE.indexOf(charArray[i]),index>=0&&(charArray[i]=_SWAP_TABLE[index+1]))},_reorder=function(text,sourceToTargetMap,levels){var charArray=text.split(""),params={hiLevel:_dir};return levels||(levels=[]),_computeLevels(charArray,levels,params),_symmetricSwap(charArray,levels,params),_invertByLevel(DIR_RTL+1,charArray,sourceToTargetMap,levels,params),_invertByLevel(DIR_RTL,charArray,sourceToTargetMap,levels,params),charArray.join("")};return this.__bidiEngine__.doBidiReorder=function(text,sourceToTargetMap,levels){if(_init(text,sourceToTargetMap),!_isInVisual&&_isOutVisual&&!_isOutRtl)_dir=_isInRtl?DIR_RTL:DIR_LTR,text=_reorder(text,sourceToTargetMap,levels);else if(_isInVisual&&_isOutVisual&&_isInRtl^_isOutRtl)_dir=_isInRtl?DIR_RTL:DIR_LTR,text=_invertString(text,sourceToTargetMap,levels);else if(!_isInVisual&&_isOutVisual&&_isOutRtl)_dir=_isInRtl?DIR_RTL:DIR_LTR,text=_reorder(text,sourceToTargetMap,levels),text=_invertString(text,sourceToTargetMap);else if(_isInVisual&&!_isInRtl&&!_isOutVisual&&!_isOutRtl)_dir=DIR_LTR,text=_reorder(text,sourceToTargetMap,levels);else if(_isInVisual&&!_isOutVisual&&_isInRtl^_isOutRtl)text=_invertString(text,sourceToTargetMap),_isInRtl?(_dir=DIR_LTR,text=_reorder(text,sourceToTargetMap,levels)):(_dir=DIR_RTL,text=_reorder(text,sourceToTargetMap,levels),text=_invertString(text,sourceToTargetMap));else if(_isInVisual&&_isInRtl&&!_isOutVisual&&_isOutRtl)_dir=DIR_RTL,text=_reorder(text,sourceToTargetMap,levels),text=_invertString(text,sourceToTargetMap);else if(!_isInVisual&&!_isOutVisual&&_isInRtl^_isOutRtl){var isSymmetricSwappingOrig=_isSymmetricSwapping;_isInRtl?(_dir=DIR_RTL,text=_reorder(text,sourceToTargetMap,levels),_dir=DIR_LTR,_isSymmetricSwapping=!1,text=_reorder(text,sourceToTargetMap,levels),_isSymmetricSwapping=isSymmetricSwappingOrig):(_dir=DIR_LTR,text=_reorder(text,sourceToTargetMap,levels),text=_invertString(text,sourceToTargetMap),_dir=DIR_RTL,_isSymmetricSwapping=!1,text=_reorder(text,sourceToTargetMap,levels),_isSymmetricSwapping=isSymmetricSwappingOrig,text=_invertString(text,sourceToTargetMap))}return text},this.__bidiEngine__.setOptions=function(options2){options2&&(_isInVisual=options2.isInputVisual,_isOutVisual=options2.isOutputVisual,_isInRtl=options2.isInputRtl,_isOutRtl=options2.isOutputRtl,_isSymmetricSwapping=options2.isSymmetricSwapping)},this.__bidiEngine__.setOptions(options),this.__bidiEngine__};var _bidiUnicodeTypes=bidiUnicodeTypes,bidiEngine=new jsPDF3.__bidiEngine__({isInputVisual:!0}),bidiEngineFunction=function(args){var text=args.text,x=args.x,y=args.y,options=args.options||{},mutex=args.mutex||{},lang=options.lang,tmpText=[];
151if(Object.prototype.toString.call(text)==="[object Array]"){var i=0;for(tmpText=[],i=0;i<text.length;i+=1)Object.prototype.toString.call(text[i])==="[object Array]"?tmpText.push([bidiEngine.doBidiReorder(text[i][0]),text[i][1],text[i][2]]):tmpText.push([bidiEngine.doBidiReorder(text[i])]);args.text=tmpText}else args.text=bidiEngine.doBidiReorder(text)};jsPDF3.API.events.push(["postProcessText",bidiEngineFunction])})(jsPDF2);function JPEGEncoder(quality){var ffloor=Math.floor,YTable=new Array(64),UVTable=new Array(64),fdtbl_Y=new Array(64),fdtbl_UV=new Array(64),YDC_HT,UVDC_HT,YAC_HT,UVAC_HT,bitcode=new Array(65535),category=new Array(65535),outputfDCTQuant=new Array(64),DU=new Array(64),byteout=[],bytenew=0,bytepos=7,YDU=new Array(64),UDU=new Array(64),VDU=new Array(64),clt=new Array(256),RGB_YUV_TABLE=new Array(2048),currentQuality,ZigZag=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],std_dc_luminance_nrcodes=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],std_dc_luminance_values=[0,1,2,3,4,5,6,7,8,9,10,11],std_ac_luminance_nrcodes=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],std_ac_luminance_values=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],std_dc_chrominance_nrcodes=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],std_dc_chrominance_values=[0,1,2,3,4,5,6,7,8,9,10,11],std_ac_chrominance_nrcodes=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],std_ac_chrominance_values=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function initQuantTables(sf){for(var YQT=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],i=0;i<64;i++){var t=ffloor((YQT[i]*sf+50)/100);t<1?t=1:t>255&&(t=255),YTable[ZigZag[i]]=t}for(var UVQT=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],j=0;j<64;j++){var u=ffloor((UVQT[j]*sf+50)/100);u<1?u=1:u>255&&(u=255),UVTable[ZigZag[j]]=u}for(var aasf=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],k=0,row=0;row<8;row++)for(var col=0;col<8;col++)fdtbl_Y[k]=1/(YTable[ZigZag[k]]*aasf[row]*aasf[col]*8),fdtbl_UV[k]=1/(UVTable[ZigZag[k]]*aasf[row]*aasf[col]*8),k++}function computeHuffmanTbl(nrcodes,std_table){for(var codevalue=0,pos_in_table=0,HT=new Array,k=1;k<=16;k++){for(var j=1;j<=nrcodes[k];j++)HT[std_table[pos_in_table]]=[],HT[std_table[pos_in_table]][0]=codevalue,HT[std_table[pos_in_table]][1]=k,pos_in_table++,codevalue++;codevalue*=2}return HT}function initHuffmanTbl(){YDC_HT=computeHuffmanTbl(std_dc_luminance_nrcodes,std_dc_luminance_values),UVDC_HT=computeHuffmanTbl(std_dc_chrominance_nrcodes,std_dc_chrominance_values),YAC_HT=computeHuffmanTbl(std_ac_luminance_nrcodes,std_ac_luminance_values),UVAC_HT=computeHuffmanTbl(std_ac_chrominance_nrcodes,std_ac_chrominance_values)}function initCategoryNumber(){for(var nrlower=1,nrupper=2,cat=1;cat<=15;cat++){for(var nr=nrlower;nr<nrupper;nr++)category[32767+nr]=cat,bitcode[32767+nr]=[],bitcode[32767+nr][1]=cat,bitcode[32767+nr][0]=nr;for(var nrneg=-(nrupper-1);nrneg<=-nrlower;nrneg++)category[32767+nrneg]=cat,bitcode[32767+nrneg]=[],bitcode[32767+nrneg][1]=cat,bitcode[32767+nrneg][0]=nrupper-1+nrneg;nrlower<<=1,nrupper<<=1}}function initRGBYUVTable(){for(var i=0;i<256;i++)RGB_YUV_TABLE[i]=19595*i,RGB_YUV_TABLE[i+256>>0]=38470*i,RGB_YUV_TABLE[i+512>>0]=7471*i+32768,RGB_YUV_TABLE[i+768>>0]=-11059*i,RGB_YUV_TABLE[i+1024>>0]=-21709*i,RGB_YUV_TABLE[i+1280>>0]=32768*i+8421375,RGB_YUV_TABLE[i+1536>>0]=-27439*i,RGB_YUV_TABLE[i+1792>>0]=-5329*i}function writeBits(bs){for(var value=bs[0],posval=bs[1]-1;posval>=0;)value&1<<posval&&(bytenew|=1<<bytepos),posval--,bytepos--,bytepos<0&&(bytenew==255?(writeByte(255),writeByte(0)):writeByte(bytenew),bytepos=7,bytenew=0)}function writeByte(value){byteout.push(value)}function writeWord(value){writeByte(value>>8&255),writeByte(value&255)}function fDCTQuant(data,fdtbl){var d0,d1,d2,d3,d4,d5,d6,d7,dataOff=0,i,I8=8,I64=64;for(i=0;i<I8;++i){d0=data[dataOff],d1=data[dataOff+1],d2=data[dataOff+2],d3=data[dataOff+3],d4=data[dataOff+4],d5=data[dataOff+5],d6=data[dataOff+6],d7=data[dataOff+7];var tmp0=d0+d7,tmp7=d0-d7,tmp1=d1+d6,tmp6=d1-d6,tmp2=d2+d5,tmp5=d2-d5,tmp3=d3+d4,tmp4=d3-d4,tmp10=tmp0+tmp3,tmp13=tmp0-tmp3,tmp11=tmp1+tmp2,tmp12=tmp1-tmp2;data[dataOff]=tmp10+tmp11,data[dataOff+4]=tmp10-tmp11;var z1=(tmp12+tmp13)*.707106781;data[dataOff+2]=tmp13+z1,data[dataOff+6]=tmp13-z1,tmp10=tmp4+tmp5,tmp11=tmp5+tmp6,tmp12=tmp6+tmp7;var z5=(tmp10-tmp12)*.382683433,z2=.5411961*tmp10+z5,z4=1.306562965*tmp12+z5,z3=tmp11*.707106781,z11=tmp7+z3,z13=tmp7-z3;data[dataOff+5]=z13+z2,data[dataOff+3]=z13-z2,data[dataOff+1]=z11+z4,data[dataOff+7]=z11-z4,dataOff+=8}for(dataOff=0,i=0;i<I8;++i){d0=data[dataOff],d1=data[dataOff+8],d2=data[dataOff+16],d3=data[dataOff+24],d4=data[dataOff+32],d5=data[dataOff+40],d6=data[dataOff+48],d7=data[dataOff+56];var tmp0p2=d0+d7,tmp7p2=d0-d7,tmp1p2=d1+d6,tmp6p2=d1-d6,tmp2p2=d2+d5,tmp5p2=d2-d5,tmp3p2=d3+d4,tmp4p2=d3-d4,tmp10p2=tmp0p2+tmp3p2,tmp13p2=tmp0p2-tmp3p2,tmp11p2=tmp1p2+tmp2p2,tmp12p2=tmp1p2-tmp2p2;data[dataOff]=tmp10p2+tmp11p2,data[dataOff+32]=tmp10p2-tmp11p2;var z1p2=(tmp12p2+tmp13p2)*.707106781;data[dataOff+16]=tmp13p2+z1p2,data[dataOff+48]=tmp13p2-z1p2,tmp10p2=tmp4p2+tmp5p2,tmp11p2=tmp5p2+tmp6p2,tmp12p2=tmp6p2+tmp7p2;var z5p2=(tmp10p2-tmp12p2)*.382683433,z2p2=.5411961*tmp10p2+z5p2,z4p2=1.306562965*tmp12p2+z5p2,z3p2=tmp11p2*.707106781,z11p2=tmp7p2+z3p2,z13p2=tmp7p2-z3p2;data[dataOff+40]=z13p2+z2p2,data[dataOff+24]=z13p2-z2p2,data[dataOff+8]=z11p2+z4p2,data[dataOff+56]=z11p2-z4p2,dataOff++}var fDCTQuant2;for(i=0;i<I64;++i)fDCTQuant2=data[i]*fdtbl[i],outputfDCTQuant[i]=fDCTQuant2>0?fDCTQuant2+.5|0:fDCTQuant2-.5|0;return outputfDCTQuant}
151function writeAPP0(){writeWord(65504),writeWord(16),writeByte(74),writeByte(70),writeByte(73),writeByte(70),writeByte(0),writeByte(1),writeByte(1),writeByte(0),writeWord(1),writeWord(1),writeByte(0),writeByte(0)}function writeSOF0(width,height){writeWord(65472),writeWord(17),writeByte(8),writeWord(height),writeWord(width),writeByte(3),writeByte(1),writeByte(17),writeByte(0),writeByte(2),writeByte(17),writeByte(1),writeByte(3),writeByte(17),writeByte(1)}function writeDQT(){writeWord(65499),writeWord(132),writeByte(0);for(var i=0;i<64;i++)writeByte(YTable[i]);writeByte(1);for(var j=0;j<64;j++)writeByte(UVTable[j])}function writeDHT(){writeWord(65476),writeWord(418),writeByte(0);for(var i=0;i<16;i++)writeByte(std_dc_luminance_nrcodes[i+1]);for(var j=0;j<=11;j++)writeByte(std_dc_luminance_values[j]);writeByte(16);for(var k=0;k<16;k++)writeByte(std_ac_luminance_nrcodes[k+1]);for(var l=0;l<=161;l++)writeByte(std_ac_luminance_values[l]);writeByte(1);for(var m=0;m<16;m++)writeByte(std_dc_chrominance_nrcodes[m+1]);for(var n=0;n<=11;n++)writeByte(std_dc_chrominance_values[n]);writeByte(17);for(var o=0;o<16;o++)writeByte(std_ac_chrominance_nrcodes[o+1]);for(var p=0;p<=161;p++)writeByte(std_ac_chrominance_values[p])}function writeSOS(){writeWord(65498),writeWord(12),writeByte(3),writeByte(1),writeByte(0),writeByte(2),writeByte(17),writeByte(3),writeByte(17),writeByte(0),writeByte(63),writeByte(0)}function processDU(CDU,fdtbl,DC,HTDC,HTAC){for(var EOB=HTAC[0],M16zeroes=HTAC[240],pos,I16=16,I63=63,I64=64,DU_DCT=fDCTQuant(CDU,fdtbl),j=0;j<I64;++j)DU[ZigZag[j]]=DU_DCT[j];var Diff=DU[0]-DC;DC=DU[0],Diff==0?writeBits(HTDC[0]):(pos=32767+Diff,writeBits(HTDC[category[pos]]),writeBits(bitcode[pos]));for(var end0pos=63;end0pos>0&&DU[end0pos]==0;end0pos--);if(end0pos==0)return writeBits(EOB),DC;for(var i=1,lng;i<=end0pos;){for(var startpos=i;DU[i]==0&&i<=end0pos;++i);var nrzeroes=i-startpos;if(nrzeroes>=I16){lng=nrzeroes>>4;for(var nrmarker=1;nrmarker<=lng;++nrmarker)writeBits(M16zeroes);nrzeroes=nrzeroes&15}pos=32767+DU[i],writeBits(HTAC[(nrzeroes<<4)+category[pos]]),writeBits(bitcode[pos]),i++}return end0pos!=I63&&writeBits(EOB),DC}function initCharLookupTable(){for(var sfcc=String.fromCharCode,i=0;i<256;i++)clt[i]=sfcc(i)}this.encode=function(image,quality2){var time_start=new Date().getTime();quality2&&setQuality(quality2),byteout=new Array,bytenew=0,bytepos=7,writeWord(65496),writeAPP0(),writeDQT(),writeSOF0(image.width,image.height),writeDHT(),writeSOS();var DCY=0,DCU=0,DCV=0;bytenew=0,bytepos=7,this.encode.displayName="_encode_";for(var imageData=image.data,width=image.width,height=image.height,quadWidth=width*4,x,y=0,r,g,b,start,p,col,row,pos;y<height;){for(x=0;x<quadWidth;){for(start=quadWidth*y+x,p=start,col=-1,row=0,pos=0;pos<64;pos++)row=pos>>3,col=(pos&7)*4,p=start+row*quadWidth+col,y+row>=height&&(p-=quadWidth*(y+1+row-height)),x+col>=quadWidth&&(p-=x+col-quadWidth+4),r=imageData[p++],g=imageData[p++],b=imageData[p++],YDU[pos]=(RGB_YUV_TABLE[r]+RGB_YUV_TABLE[g+256>>0]+RGB_YUV_TABLE[b+512>>0]>>16)-128,UDU[pos]=(RGB_YUV_TABLE[r+768>>0]+RGB_YUV_TABLE[g+1024>>0]+RGB_YUV_TABLE[b+1280>>0]>>16)-128,VDU[pos]=(RGB_YUV_TABLE[r+1280>>0]+RGB_YUV_TABLE[g+1536>>0]+RGB_YUV_TABLE[b+1792>>0]>>16)-128;DCY=processDU(YDU,fdtbl_Y,DCY,YDC_HT,YAC_HT),DCU=processDU(UDU,fdtbl_UV,DCU,UVDC_HT,UVAC_HT),DCV=processDU(VDU,fdtbl_UV,DCV,UVDC_HT,UVAC_HT),x+=32}y+=8}if(bytepos>=0){var fillbits=[];fillbits[1]=bytepos+1,fillbits[0]=(1<<bytepos+1)-1,writeBits(fillbits)}return writeWord(65497),new Uint8Array(byteout)};function setQuality(quality2){if(quality2<=0&&(quality2=1),quality2>100&&(quality2=100),currentQuality!=quality2){var sf=0;quality2<50?sf=Math.floor(5e3/quality2):sf=Math.floor(200-quality2*2),initQuantTables(sf),currentQuality=quality2}}function init(){var time_start=new Date().getTime();quality||(quality=50),initCharLookupTable(),initHuffmanTbl(),initCategoryNumber(),initRGBYUVTable(),setQuality(quality);var duration=new Date().getTime()-time_start}init()}window.tmp=JPEGEncoder;function BmpDecoder(buffer,is_with_alpha){if(this.pos=0,this.buffer=buffer,this.datav=new DataView(buffer.buffer),this.is_with_alpha=!!is_with_alpha,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}BmpDecoder.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,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var len=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(len);for(var i=0;i<len;i++){var blue=this.datav.getUint8(this.pos++,!0),green=this.datav.getUint8(this.pos++,!0),red=this.datav.getUint8(this.pos++,!0),quad=this.datav.getUint8(this.pos++,!0);this.palette[i]={red:red,green:green,blue:blue,quad:quad}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},BmpDecoder.prototype.parseBGR=function(){this.pos=this.offset;try{var bitn="bit"+this.bitPP,len=this.width*this.height*4;this.data=new Uint8Array(len),this[bitn]()}catch(e){console.log("bit decode error:"+e)}},BmpDecoder.prototype.bit1=function(){for(var xlen=Math.ceil(this.width/8),mode=xlen%4,y=this.height>=0?this.height-1:-this.height,y=this.height-1;y>=0;y--){for(var line=this.bottom_up?y:this.height-1-y,x=0;x<xlen;x++)for(var b=this.datav.getUint8(this.pos++,!0),location=line*this.width*4+x*8*4,i=0;i<8&&x*8+i<this.width;i++){var rgb=this.palette[b>>7-i&1];this.data[location+i*4]=rgb.blue,this.data[location+i*4+1]=rgb.green,this.data[location+i*4+2]=rgb.red,this.data[location+i*4+3]=255}mode!=0&&(this.pos+=4-mode)}},BmpDecoder.prototype.bit4=function(){for(var xlen=Math.ceil(this.width/2),mode=xlen%4,y=this.height-1;y>=0;y--){for(var line=this.bottom_up?y:this.height-1-y,x=0;x<xlen;x++){var b=this.datav.getUint8(this.pos++,!0),location=line*this.width*4+x*2*4,before=b>>4,after=b&15,rgb=this.palette[before];if(this.data[location]=rgb.blue,this.data[location+1]=rgb.green,this.data[location+2]=rgb.red,this.data[location+3]=255,x*2+1>=this.width)break;rgb=this.palette[after],this.data[location+4]=rgb.blue,this.data[location+4+1]=rgb.green,this.data[location+4+2]=rgb.red,this.data[location+4+3]=255}mode!=0&&(this.pos+=4-mode)}},BmpDecoder.prototype.bit8=function(){for(var mode=this.width%4,y=this.height-1;y>=0;y--){for(var line=this.bottom_up?y:this.height-1-y,x=0;x<this.width;x++){var b=this.datav.getUint8(this.pos++,!0),location=line*this.width*4+x*4;if(b<this.palette.length){var rgb=this.palette[b];this.data[location]=rgb.red,this.data[location+1]=rgb.green,this.data[location+2]=rgb.blue,this.data[location+3]=255}else this.data[location]=255,this.data[location+1]=255,this.data[location+2]=255,this.data[location+3]=255}mode!=0&&(this.pos+=4-mode)}},BmpDecoder.prototype.bit15=function(){for(var dif_w=this.width%3,_11111=parseInt("11111",2),_1_5=_11111,y=this.height-1;y>=0;y--){for(var line=this.bottom_up?y:this.height-1-y,x=0;x<this.width;x++){var B=this.datav.getUint16(this.pos,!0);this.pos+=2;var blue=(B&_1_5)/_1_5*255|0,green=(B>>5&_1_5)/_1_5*255|0,red=(B>>10&_1_5)/_1_5*255|0,alpha=B>>15?255:0,location=line*this.width*4+x*4;this.data[location]=red,this.data[location+1]=green,this.data[location+2]=blue,this.data[location+3]=alpha}this.pos+=dif_w}},BmpDecoder.prototype.bit16=function(){for(var dif_w=this.width%3,_11111=parseInt("11111",2),_1_5=_11111,_111111=parseInt("111111",2),_1_6=_111111,y=this.height-1;y>=0;y--){for(var line=this.bottom_up?y:this.height-1-y,x=0;x<this.width;x++){var B=this.datav.getUint16(this.pos,!0);this.pos+=2;var alpha=255,blue=(B&_1_5)/_1_5*255|0,green=(B>>5&_1_6)/_1_6*255|0,red=(B>>11)/_1_5*255|0,location=line*this.width*4+x*4;this.data[location]=red,this.data[location+1]=green,this.data[location+2]=blue,this.data[location+3]=alpha}this.pos+=dif_w}},BmpDecoder.prototype.bit24=function(){for(var y=this.height-1;y>=0;y--){for(var line=this.bottom_up?y:this.height-1-y,x=0;x<this.width;x++){var blue=this.datav.getUint8(this.pos++,!0),green=this.datav.getUint8(this.pos++,!0),red=this.datav.getUint8(this.pos++,!0),location=line*this.width*4+x*4;this.data[location]=red,this.data[location+1]=green,this.data[location+2]=blue,this.data[location+3]=255}this.pos+=this.width%4}},BmpDecoder.prototype.bit32=function(){for(var y=this.height-1;y>=0;y--)for(var line=this.bottom_up?y:this.height-1-y,x=0;x<this.width;x++){var blue=this.datav.getUint8(this.pos++,!0),green=this.datav.getUint8(this.pos++,!0),red=this.datav.getUint8(this.pos++,!0),alph
151a=this.datav.getUint8(this.pos++,!0),location=line*this.width*4+x*4;this.data[location]=red,this.data[location+1]=green,this.data[location+2]=blue,this.data[location+3]=alpha}},BmpDecoder.prototype.getData=function(){return this.data},window.tmp=BmpDecoder,(function(global2){var MAX_BITS=15,D_CODES=30,BL_CODES=19,LENGTH_CODES=29,LITERALS=256,L_CODES=LITERALS+1+LENGTH_CODES,HEAP_SIZE=2*L_CODES+1,END_BLOCK=256,MAX_BL_BITS=7,REP_3_6=16,REPZ_3_10=17,REPZ_11_138=18,Buf_size=16,Z_DEFAULT_COMPRESSION=-1,Z_FILTERED=1,Z_HUFFMAN_ONLY=2,Z_DEFAULT_STRATEGY=0,Z_NO_FLUSH=0,Z_PARTIAL_FLUSH=1,Z_FULL_FLUSH=3,Z_FINISH=4,Z_OK=0,Z_STREAM_END=1,Z_NEED_DICT=2,Z_STREAM_ERROR=-2,Z_DATA_ERROR=-3,Z_BUF_ERROR=-5,_dist_code=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function Tree(){var that=this;function gen_bitlen(s){var tree=that.dyn_tree,stree=that.stat_desc.static_tree,extra=that.stat_desc.extra_bits,base=that.stat_desc.extra_base,max_length=that.stat_desc.max_length,h,n,m,bits,xbits,f,overflow=0;for(bits=0;bits<=MAX_BITS;bits++)s.bl_count[bits]=0;for(tree[s.heap[s.heap_max]*2+1]=0,h=s.heap_max+1;h<HEAP_SIZE;h++)n=s.heap[h],bits=tree[tree[n*2+1]*2+1]+1,bits>max_length&&(bits=max_length,overflow++),tree[n*2+1]=bits,!(n>that.max_code)&&(s.bl_count[bits]++,xbits=0,n>=base&&(xbits=extra[n-base]),f=tree[n*2],s.opt_len+=f*(bits+xbits),stree&&(s.static_len+=f*(stree[n*2+1]+xbits)));if(overflow!==0){do{for(bits=max_length-1;s.bl_count[bits]===0;)bits--;s.bl_count[bits]--,s.bl_count[bits+1]+=2,s.bl_count[max_length]--,overflow-=2}while(overflow>0);for(bits=max_length;bits!==0;bits--)for(n=s.bl_count[bits];n!==0;)m=s.heap[--h],!(m>that.max_code)&&(tree[m*2+1]!=bits&&(s.opt_len+=(bits-tree[m*2+1])*tree[m*2],tree[m*2+1]=bits),n--)}}function bi_reverse(code,len){var res=0;do res|=code&1,code>>>=1,res<<=1;while(--len>0);return res>>>1}function gen_codes(tree,max_code,bl_count){var next_code=[],code=0,bits,n,len;for(bits=1;bits<=MAX_BITS;bits++)next_code[bits]=code=code+bl_count[bits-1]<<1;for(n=0;n<=max_code;n++)len=tree[n*2+1],len!==0&&(tree[n*2]=bi_reverse(next_code[len]++,len))}that.build_tree=function(s){var tree=that.dyn_tree,stree=that.stat_desc.static_tree,elems=that.stat_desc.elems,n,m,max_code=-1,node;for(s.heap_len=0,s.heap_max=HEAP_SIZE,n=0;n<elems;n++)tree[n*2]!==0?(s.heap[++s.heap_len]=max_code=n,s.depth[n]=0):tree[n*2+1]=0;for(;s.heap_len<2;)node=s.heap[++s.heap_len]=max_code<2?++max_code:0,tree[node*2]=1,s.depth[node]=0,s.opt_len--,stree&&(s.static_len-=stree[node*2+1]);for(that.max_code=max_code,n=Math.floor(s.heap_len/2);n>=1;n--)s.pqdownheap(tree,n);node=elems;do n=s.heap[1],s.heap[1]=s.heap[s.heap_len--],s.pqdownheap(tree,1),m=s.heap[1],s.heap[--s.heap_max]=n,s.heap[--s.heap_max]=m,tree[node*2]=tree[n*2]+tree[m*2],s.depth[node]=Math.max(s.depth[n],s.depth[m])+1,tree[n*2+1]=tree[m*2+1]=node,s.heap[1]=node++,s.pqdownheap(tree,1);while(s.heap_len>=2);s.heap[--s.heap_max]=s.heap[1],gen_bitlen(s),gen_codes(tree,that.max_code,s.bl_count)}
151}Tree._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],Tree.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],Tree.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],Tree.d_code=function(dist){return dist<256?_dist_code[dist]:_dist_code[256+(dist>>>7)]},Tree.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Tree.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Tree.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Tree.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function StaticTree(static_tree,extra_bits,extra_base,elems,max_length){var that=this;that.static_tree=static_tree,that.extra_bits=extra_bits,that.extra_base=extra_base,that.elems=elems,that.max_length=max_length}StaticTree.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],StaticTree.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],StaticTree.static_l_desc=new StaticTree(StaticTree.static_ltree,Tree.extra_lbits,LITERALS+1,L_CODES,MAX_BITS),StaticTree.static_d_desc=new StaticTree(StaticTree.static_dtree,Tree.extra_dbits,0,D_CODES,MAX_BITS),StaticTree.static_bl_desc=new StaticTree(null,Tree.extra_blbits,0,BL_CODES,MAX_BL_BITS);var MAX_MEM_LEVEL=9,DEF_MEM_LEVEL=8;function Config(good_length,max_lazy,nice_length,max_chain,func){var that=this;that.good_length=good_length,that.max_lazy=max_lazy,that.nice_length=nice_length,that.max_chain=max_chain,that.func=func}var STORED=0,FAST=1,SLOW=2,config_table=[new Config(0,0,0,0,STORED),new Config(4,4,8,4,FAST),new Config(4,5,16,8,FAST),new Config(4,6,32,32,FAST),new Config(4,4,16,16,SLOW),new Config(8,16,32,32,SLOW),new Config(8,16,128,128,SLOW),new Config(8,32,128,256,SLOW),new Config(32,128,258,1024,SLOW),new Config(32,258,258,4096,SLOW)],z_errmsg=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],NeedMore=0,BlockDone=1,FinishStarted=2,FinishDone=3,PRESET_DICT=32,INIT_STATE=42,BUSY_STATE=113,FINISH_STATE=666,Z_DEFLATED=8,STORED_BLOCK=0,STATIC_TREES=1,DYN_TREES=2,MIN_MATCH=3,MAX_MATCH=258,MIN_LOOKAHEAD=MAX_MATCH+MIN_MATCH+1;function smaller(tree,n,m,depth){var tn2=tree[n*2],tm2=tree[m*2];return tn2<tm2||tn2==tm2&&depth[n]<=depth[m]}function Deflate(){var that=this,strm,status,pending_buf_size,last_flush,w_size,w_bits,w_mask,window2,window_size,prev,head,ins_h,hash_size,hash_bits,hash_mask,hash_shift,block_start,match_length,prev_match,match_available,strstart,match_start,lookahead,prev_length,max_chain_length,max_lazy_match,level,strategy,good_match,nice_match,dyn_ltree,dyn_dtree,bl_tree,l_desc=new Tree,d_desc=new Tree,bl_desc=new Tree;that.depth=[];var l_buf,lit_bufsize,last_lit,d_buf,matches,last_eob_len,bi_buf,bi_valid;
151that.bl_count=[],that.heap=[],dyn_ltree=[],dyn_dtree=[],bl_tree=[];function lm_init(){var i;for(window_size=2*w_size,head[hash_size-1]=0,i=0;i<hash_size-1;i++)head[i]=0;max_lazy_match=config_table[level].max_lazy,good_match=config_table[level].good_length,nice_match=config_table[level].nice_length,max_chain_length=config_table[level].max_chain,strstart=0,block_start=0,lookahead=0,match_length=prev_length=MIN_MATCH-1,match_available=0,ins_h=0}function init_block(){var i;for(i=0;i<L_CODES;i++)dyn_ltree[i*2]=0;for(i=0;i<D_CODES;i++)dyn_dtree[i*2]=0;for(i=0;i<BL_CODES;i++)bl_tree[i*2]=0;dyn_ltree[END_BLOCK*2]=1,that.opt_len=that.static_len=0,last_lit=matches=0}function tr_init(){l_desc.dyn_tree=dyn_ltree,l_desc.stat_desc=StaticTree.static_l_desc,d_desc.dyn_tree=dyn_dtree,d_desc.stat_desc=StaticTree.static_d_desc,bl_desc.dyn_tree=bl_tree,bl_desc.stat_desc=StaticTree.static_bl_desc,bi_buf=0,bi_valid=0,last_eob_len=8,init_block()}that.pqdownheap=function(tree,k){for(var heap=that.heap,v=heap[k],j=k<<1;j<=that.heap_len&&(j<that.heap_len&&smaller(tree,hea
151p[j+1],heap[j],that.depth)&&j++,!smaller(tree,v,heap[j],that.depth));)heap[k]=heap[j],k=j,j<<=1;heap[k]=v};function scan_tree(tree,max_code){var n,prevlen=-1,curlen,nextlen=tree[1],count=0,max_count=7,min_count=4;for(nextlen===0&&(max_count=138,min_count=3),tree[(max_code+1)*2+1]=65535,n=0;n<=max_code;n++)curlen=nextlen,nextlen=tree[(n+1)*2+1],!(++count<max_count&&curlen==nextlen)&&(count<min_count?bl_tree[curlen*2]+=count:curlen!==0?(curlen!=prevlen&&bl_tree[curlen*2]++,bl_tree[REP_3_6*2]++):count<=10?bl_tree[REPZ_3_10*2]++:bl_tree[REPZ_11_138*2]++,count=0,prevlen=curlen,nextlen===0?(max_count=138,min_count=3):curlen==nextlen?(max_count=6,min_count=3):(max_count=7,min_count=4))}function build_bl_tree(){var max_blindex;for(scan_tree(dyn_ltree,l_desc.max_code),scan_tree(dyn_dtree,d_desc.max_code),bl_desc.build_tree(that),max_blindex=BL_CODES-1;max_blindex>=3&&bl_tree[Tree.bl_order[max_blindex]*2+1]===0;max_blindex--);return that.opt_len+=3*(max_blindex+1)+5+5+4,max_blindex}function put_byte(p){that.pending_buf[that.pending++]=p}function put_short(w){put_byte(w&255),put_byte(w>>>8&255)}function putShortMSB(b){put_byte(b>>8&255),put_byte(b&255&255)}function send_bits(value,length){var val,len=length;bi_valid>Buf_size-len?(val=value,bi_buf|=val<<bi_valid&65535,put_short(bi_buf),bi_buf=val>>>Buf_size-bi_valid,bi_valid+=len-Buf_size):(bi_buf|=value<<bi_valid&65535,bi_valid+=len)}function send_code(c,tree){var c2=c*2;send_bits(tree[c2]&65535,tree[c2+1]&65535)}function send_tree(tree,max_code){var n,prevlen=-1,curlen,nextlen=tree[1],count=0,max_count=7,min_count=4;for(nextlen===0&&(max_count=138,min_count=3),n=0;n<=max_code;n++)if(curlen=nextlen,nextlen=tree[(n+1)*2+1],!(++count<max_count&&curlen==nextlen)){if(count<min_count)do send_code(curlen,bl_tree);while(--count!==0);else curlen!==0?(curlen!=prevlen&&(send_code(curlen,bl_tree),count--),send_code(REP_3_6,bl_tree),send_bits(count-3,2)):count<=10?(send_code(REPZ_3_10,bl_tree),send_bits(count-3,3)):(send_code(REPZ_11_138,bl_tree),send_bits(count-11,7));count=0,prevlen=curlen,nextlen===0?(max_count=138,min_count=3):curlen==nextlen?(max_count=6,min_count=3):(max_count=7,min_count=4)}}
151function send_all_trees(lcodes,dcodes,blcodes){var rank;for(send_bits(lcodes-257,5),send_bits(dcodes-1,5),send_bits(blcodes-4,4),rank=0;rank<blcodes;rank++)send_bits(bl_tree[Tree.bl_order[rank]*2+1],3);send_tree(dyn_ltree,lcodes-1),send_tree(dyn_dtree,dcodes-1)}function bi_flush(){bi_valid==16?(put_short(bi_buf),bi_buf=0,bi_valid=0):bi_valid>=8&&(put_byte(bi_buf&255),bi_buf>>>=8,bi_valid-=8)}function _tr_align(){send_bits(STATIC_TREES<<1,3),send_code(END_BLOCK,StaticTree.static_ltree),bi_flush(),1+last_eob_len+10-bi_valid<9&&(send_bits(STATIC_TREES<<1,3),send_code(END_BLOCK,StaticTree.static_ltree),bi_flush()),last_eob_len=7}function _tr_tally(dist,lc){var out_length,in_length,dcode;if(that.pending_buf[d_buf+last_lit*2]=dist>>>8&255,that.pending_buf[d_buf+last_lit*2+1]=dist&255,that.pending_buf[l_buf+last_lit]=lc&255,last_lit++,dist===0?dyn_ltree[lc*2]++:(matches++,dist--,dyn_ltree[(Tree._length_code[lc]+LITERALS+1)*2]++,dyn_dtree[Tree.d_code(dist)*2]++),(last_lit&8191)===0&&level>2){for(out_length=last_lit*8,in_length=strstart-block_start,dcode=0;dcode<D_CODES;dcode++)out_length+=dyn_dtree[dcode*2]*(5+Tree.extra_dbits[dcode]);if(out_length>>>=3,matches<Math.floor(last_lit/2)&&out_length<Math.floor(in_length/2))return!0}return last_lit==lit_bufsize-1}function compress_block(ltree,dtree){var dist,lc,lx=0,code,extra;if(last_lit!==0)do dist=that.pending_buf[d_buf+lx*2]<<8&65280|that.pending_buf[d_buf+lx*2+1]&255,lc=that.pending_buf[l_buf+lx]&255,lx++,dist===0?send_code(lc,ltree):(code=Tree._length_code[lc],send_code(code+LITERALS+1,ltree),extra=Tree.extra_lbits[code],extra!==0&&(lc-=Tree.base_length[code],send_bits(lc,extra)),dist--,code=Tree.d_code(dist),send_code(code,dtree),extra=Tree.extra_dbits[code],extra!==0&&(dist-=Tree.base_dist[code],send_bits(dist,extra)));while(lx<last_lit);send_code(END_BLOCK,ltree),last_eob_len=ltree[END_BLOCK*2+1]}function bi_windup(){bi_valid>8?put_short(bi_buf):bi_valid>0&&put_byte(bi_buf&255),bi_buf=0,bi_valid=0}function copy_block(buf,len,header){bi_windup(),last_eob_len=8,header&&(put_short(len),put_short(~len)),that.pending_buf.set(window2.subarray(buf,buf+len),that.pending),that.pending+=len}function _tr_stored_block(buf,stored_len,eof){send_bits((STORED_BLOCK<<1)+(eof?1:0),3),copy_block(buf,stored_len,!0)}function _tr_flush_block(buf,stored_len,eof){var opt_lenb,static_lenb,max_blindex=0;level>0?(l_desc.build_tree(that),d_desc.build_tree(that),max_blindex=build_bl_tree(),opt_lenb=that.opt_len+3+7>>>3,static_lenb=that.static_len+3+7>>>3,static_lenb<=opt_lenb&&(opt_lenb=static_lenb)):opt_lenb=static_lenb=stored_len+5,stored_len+4<=opt_lenb&&buf!=-1?_tr_stored_block(buf,stored_len,eof):static_lenb==opt_lenb?(send_bits((STATIC_TREES<<1)+(eof?1:0),3),compress_block(StaticTree.static_ltree,StaticTree.static_dtree)):(send_bits((DYN_TREES<<1)+(eof?1:0),3),send_all_trees(l_desc.max_code+1,d_desc.max_code+1,max_blindex+1),compress_block(dyn_ltree,dyn_dtree)),init_block(),eof&&bi_windup()}function flush_block_only(eof){_tr_flush_block(block_start>=0?block_start:-1,strstart-block_start,eof),block_start=strstart,strm.flush_pending()}function fill_window(){var n,m,p,more;do{if(more=window_size-lookahead-strstart,more===0&&strstart===0&&lookahead===0)more=w_size;else if(more==-1)more--;else if(strstart>=w_size+w_size-MIN_LOOKAHEAD){window2.set(window2.subarray(w_size,w_size+w_size),0),match_start-=w_size,strstart-=w_size,block_start-=w_size,n=hash_size,p=n;do m=head[--p]&65535,head[p]=m>=w_size?m-w_size:0;while(--n!==0);n=w_size,p=n;do m=prev[--p]&65535,prev[p]=m>=w_size?m-w_size:0;while(--n!==0);more+=w_size}if(strm.avail_in===0)return;n=strm.read_buf(window2,strstart+lookahead,more),lookahead+=n,lookahead>=MIN_MATCH&&(ins_h=window2[strstart]&255,ins_h=(ins_h<<hash_shift^window2[strstart+1]&255)&hash_mask)}while(lookahead<MIN_LOOKAHEAD&&strm.avail_in!==0)}function deflate_stored(flush){var max_block_size=65535,max_start;for(max_block_size>pending_buf_size-5&&(max_block_size=pending_buf_size-5);;){if(lookahead<=1){if(fill_window(),lookahead===0&&flush==Z_NO_FLUSH)return NeedMore;if(lookahead===0)break}if(strstart+=lookahead,lookahead=0,max_start=block_start+max_block_size,(strstart===0||strstart>=max_start)&&(lookahead=strstart-max_start,strstart=max_start,flush_block_only(!1),strm.avail_out===0)||strstart-block_start>=w_size-MIN_LOOKAHEAD&&(flush_block_only(!1),strm.avail_out===0))return NeedMore}return flush_block_only(flush==Z_FINISH),strm.avail_out===0?flush==Z_FINISH?FinishStarted:NeedMore:flush==Z_FINISH?FinishDone:BlockDone}function longest_match(cur_match){var chain_length=max_chain_length,scan=strstart,match,len,best_len=prev_length,limit=strstart>w_size-MIN_LOOKAHEAD?strstart-(w_size-MIN_LOOKAHEAD):0,_nice_match=nice_match,wmask=w_mask,strend=strstart+MAX_MATCH,scan_end1=window2[scan+best_len-1],scan_end=window2[scan+best_len];prev_length>=good_match&&(chain_length>>=2),_nice_match>lookahead&&(_nice_match=lookahead);do if(match=cur_match,!(window2[match+best_len]!=scan_end||window2[match+best_len-1]!=scan_end1||window2[match]!=window2[scan]||window2[++match]!=window2[scan+1])){scan+=2,match++;do;while(window2[++scan]==window2[++match]&&window2[++scan]==window2[++match]&&window2[++scan]==window2[++match]&&window2[++scan]==window2[++match]&&window2[++scan]==window2[++match]&&window2[++scan]==window2[++match]&&window2[++scan]==window2[++match]&&window2[++scan]==window2[++match]&&scan<strend
151);if(len=MAX_MATCH-(strend-scan),scan=strend-MAX_MATCH,len>best_len){if(match_start=cur_match,best_len=len,len>=_nice_match)break;scan_end1=window2[scan+best_len-1],scan_end=window2[scan+best_len]}}while((cur_match=prev[cur_match&wmask]&65535)>limit&&--chain_length!==0);return best_len<=lookahead?best_len:lookahead}function deflate_fast(flush){for(var hash_head=0,bflush;;){if(lookahead<MIN_LOOKAHEAD){if(fill_window(),lookahead<MIN_LOOKAHEAD&&flush==Z_NO_FLUSH)return NeedMore;if(lookahead===0)break}if(lookahead>=MIN_MATCH&&(ins_h=(ins_h<<hash_shift^window2[strstart+(MIN_MATCH-1)]&255)&hash_mask,hash_head=head[ins_h]&65535,prev[strstart&w_mask]=head[ins_h],head[ins_h]=strstart),hash_head!==0&&(strstart-hash_head&65535)<=w_size-MIN_LOOKAHEAD&&strategy!=Z_HUFFMAN_ONLY&&(match_length=longest_match(hash_head)),match_length>=MIN_MATCH)if(bflush=_tr_tally(strstart-match_start,match_length-MIN_MATCH),lookahead-=match_length,match_length<=max_lazy_match&&lookahead>=MIN_MATCH){match_length--;do strstart++,ins_h=(ins_h<<hash_shift^window2[strstart+(MIN_MATCH-1)]&255)&hash_mask,hash_head=head[ins_h]&65535,prev[strstart&w_mask]=head[ins_h],head[ins_h]=strstart;while(--match_length!==0);strstart++}else strstart+=match_length,match_length=0,ins_h=window2[strstart]&255,ins_h=(ins_h<<hash_shift^window2[strstart+1]&255)&hash_mask;else bflush=_tr_tally(0,window2[strstart]&255),lookahead--,strstart++;if(bflush&&(flush_block_only(!1),strm.avail_out===0))return NeedMore}return flush_block_only(flush==Z_FINISH),strm.avail_out===0?flush==Z_FINISH?FinishStarted:NeedMore:flush==Z_FINISH?FinishDone:BlockDone}function deflate_slow(flush){for(var hash_head=0,bflush,max_insert;;){if(lookahead<MIN_LOOKAHEAD){if(fill_window(),lookahead<MIN_LOOKAHEAD&&flush==Z_NO_FLUSH)return NeedMore;if(lookahead===0)break}if(lookahead>=MIN_MATCH&&(ins_h=(ins_h<<hash_shift^window2[strstart+(MIN_MATCH-1)]&255)&hash_mask,hash_head=head[ins_h]&65535,prev[strstart&w_mask]=head[ins_h],head[ins_h]=strstart),prev_length=match_length,prev_match=match_start,match_length=MIN_MATCH-1,hash_head!==0&&prev_length<max_lazy_match&&(strstart-hash_head&65535)<=w_size-MIN_LOOKAHEAD&&(strategy!=Z_HUFFMAN_ONLY&&(match_length=longest_match(hash_head)),match_length<=5&&(strategy==Z_FILTERED||match_length==MIN_MATCH&&strstart-match_start>4096)&&(match_length=MIN_MATCH-1)),prev_length>=MIN_MATCH&&match_length<=prev_length){max_insert=strstart+lookahead-MIN_MATCH,bflush=_tr_tally(strstart-1-prev_match,prev_length-MIN_MATCH),lookahead-=prev_length-1,prev_length-=2;do++strstart<=max_insert&&(ins_h=(ins_h<<hash_shift^window2[strstart+(MIN_MATCH-1)]&255)&hash_mask,hash_head=head[ins_h]&65535,prev[strstart&w_mask]=head[ins_h],head[ins_h]=strstart);while(--prev_length!==0);if(match_available=0,match_length=MIN_MATCH-1,strstart++,bflush&&(flush_block_only(!1),strm.avail_out===0))return NeedMore}else if(match_available!==0){if(bflush=_tr_tally(0,window2[strstart-1]&255),bflush&&flush_block_only(!1),strstart++,lookahead--,strm.avail_out===0)return NeedMore}else match_available=1,strstart++,lookahead--}return match_available!==0&&(bflush=_tr_tally(0,window2[strstart-1]&255),match_available=0),flush_block_only(flush==Z_FINISH),strm.avail_out===0?flush==Z_FINISH?FinishStarted:NeedMore:flush==Z_FINISH?FinishDone:BlockDone}function deflateReset(strm2){return strm2.total_in=strm2.total_out=0,strm2.msg=null,that.pending=0,that.pending_out=0,status=BUSY_STATE,last_flush=Z_NO_FLUSH,tr_init(),lm_init(),Z_OK}that.deflateInit=function(strm2,_level,bits,_method,memLevel,_strategy){return _method||(_method=Z_DEFLATED),memLevel||(memLevel=DEF_MEM_LEVEL),_strategy||(_strategy=Z_DEFAULT_STRATEGY),strm2.msg=null,_level==Z_DEFAULT_COMPRESSION&&(_level=6),memLevel<1||memLevel>MAX_MEM_LEVEL||_method!=Z_DEFLATED||bits<9||bits>15||_level<0||_level>9||_strategy<0||_strategy>Z_HUFFMAN_ONLY?Z_STREAM_ERROR:(strm2.dstate=that,w_bits=bits,w_size=1<<w_bits,w_mask=w_size-1,hash_bits=memLevel+7,hash_size=1<<hash_bits,hash_mask=hash_size-1,hash_shift=Math.floor((hash_bits+MIN_MATCH-1)/MIN_MATCH),window2=new Uint8Array(w_size*2),prev=[],head=[],lit_bufsize=1<<memLevel+6,that.pending_buf=new Uint8Array(lit_bufsize*4),pending_buf_size=lit_bufsize*4,d_buf=Math.floor(lit_bufsize/2),l_buf=3*lit_bufsize,level=_level,strategy=_strategy,deflateReset(strm2))},that.deflateEnd=function(){return status!=INIT_STATE&&status!=BUSY_STATE&&status!=FINISH_STATE?Z_STREAM_ERROR:(that.pending_buf=null,head=null,prev=null,window2=null,that.dstate=null,status==BUSY_STATE?Z_DATA_ERROR:Z_OK)},that.deflateParams=function(strm2,_level,_strategy){var err=Z_OK;return _level==Z_DEFAULT_COMPRESSION&&(_level=6),_level<0||_level>9||_strategy<0||_strategy>Z_HUFFMAN_ONLY?Z_STREAM_ERROR:(config_table[level].func!=config_table[_level].func&&strm2.total_in!==0&&(err=strm2.deflate(Z_PARTIAL_FLUSH)),level!=_level&&(level=_level,max_lazy_match=config_table[level].max_lazy,good_match=config_table[level].good_length,nice_match=config_table[level].nice_length,max_chain_length=config_table[level].max_chain),strategy=_strategy,err)},that.deflateSetDictionary=function(strm2,dictionary,dictLength){var length=dictLength,n,index=0;
151if(!dictionary||status!=INIT_STATE)return Z_STREAM_ERROR;if(length<MIN_MATCH)return Z_OK;for(length>w_size-MIN_LOOKAHEAD&&(length=w_size-MIN_LOOKAHEAD,index=dictLength-length),window2.set(dictionary.subarray(index,index+length),0),strstart=length,block_start=length,ins_h=window2[0]&255,ins_h=(ins_h<<hash_shift^window2[1]&255)&hash_mask,n=0;n<=length-MIN_MATCH;n++)ins_h=(ins_h<<hash_shift^window2[n+(MIN_MATCH-1)]&255)&hash_mask,prev[n&w_mask]=head[ins_h],head[ins_h]=n;return Z_OK},that.deflate=function(_strm,flush){var i,header,level_flags,old_flush,bstate;if(flush>Z_FINISH||flush<0)return Z_STREAM_ERROR;if(!_strm.next_out||!_strm.next_in&&_strm.avail_in!==0||status==FINISH_STATE&&flush!=Z_FINISH)return _strm.msg=z_errmsg[Z_NEED_DICT-Z_STREAM_ERROR],Z_STREAM_ERROR;if(_strm.avail_out===0)return _strm.msg=z_errmsg[Z_NEED_DICT-Z_BUF_ERROR],Z_BUF_ERROR;if(strm=_strm,old_flush=last_flush,last_flush=flush,status==INIT_STATE&&(header=Z_DEFLATED+(w_bits-8<<4)<<8,level_flags=(level-1&255)>>1,level_flags>3&&(level_flags=3),header|=level_flags<<6,strstart!==0&&(header|=PRESET_DICT),header+=31-header%31,status=BUSY_STATE,putShortMSB(header)),that.pending!==0){if(strm.flush_pending(),strm.avail_out===0)return last_flush=-1,Z_OK}else if(strm.avail_in===0&&flush<=old_flush&&flush!=Z_FINISH)return strm.msg=z_errmsg[Z_NEED_DICT-Z_BUF_ERROR],Z_BUF_ERROR;if(status==FINISH_STATE&&strm.avail_in!==0)return _strm.msg=z_errmsg[Z_NEED_DICT-Z_BUF_ERROR],Z_BUF_ERROR;if(strm.avail_in!==0||lookahead!==0||flush!=Z_NO_FLUSH&&status!=FINISH_STATE){switch(bstate=-1,config_table[level].func){case STORED:bstate=deflate_stored(flush);break;case FAST:bstate=deflate_fast(flush);break;case SLOW:bstate=deflate_slow(flush);break;default:}if((bstate==FinishStarted||bstate==FinishDone)&&(status=FINISH_STATE),bstate==NeedMore||bstate==FinishStarted)return strm.avail_out===0&&(last_flush=-1),Z_OK;if(bstate==BlockDone){if(flush==Z_PARTIAL_FLUSH)_tr_align();else if(_tr_stored_block(0,0,!1),flush==Z_FULL_FLUSH)for(i=0;i<hash_size;i++)head[i]=0;if(strm.flush_pending(),strm.avail_out===0)return last_flush=-1,Z_OK}}return flush!=Z_FINISH?Z_OK:Z_STREAM_END}}function ZStream(){var that=this;that.next_in_index=0,that.next_out_index=0,that.avail_in=0,that.total_in=0,that.avail_out=0,that.total_out=0}ZStream.prototype={deflateInit:function(level,bits){var that=this;return that.dstate=new Deflate,bits||(bits=MAX_BITS),that.dstate.deflateInit(that,level,bits)},deflate:function(flush){var that=this;return that.dstate?that.dstate.deflate(that,flush):Z_STREAM_ERROR},deflateEnd:function(){var that=this;if(!that.dstate)return Z_STREAM_ERROR;var ret=that.dstate.deflateEnd();return that.dstate=null,ret},deflateParams:function(level,strategy){var that=this;return that.dstate?that.dstate.deflateParams(that,level,strategy):Z_STREAM_ERROR},deflateSetDictionary:function(dictionary,dictLength){var that=this;return that.dstate?that.dstate.deflateSetDictionary(that,dictionary,dictLength):Z_STREAM_ERROR},read_buf:function(buf,start,size){var that=this,len=that.avail_in;return len>size&&(len=size),len===0?0:(that.avail_in-=len,buf.set(that.next_in.subarray(that.next_in_index,that.next_in_index+len),start),that.next_in_index+=len,that.total_in+=len,len)},flush_pending:function(){var that=this,len=that.dstate.pending;len>that.avail_out&&(len=that.avail_out),len!==0&&(that.next_out.set(that.dstate.pending_buf.subarray(that.dstate.pending_out,that.dstate.pending_out+len),that.next_out_index),that.next_out_index+=len,that.dstate.pending_out+=len,that.total_out+=len,that.avail_out-=len,that.dstate.pending-=len,that.dstate.pending===0&&(that.dstate.pending_out=0))}};function Deflater2(options){var that=this,z=new ZStream,bufsize=512,flush=Z_NO_FLUSH,buf=new Uint8Array(bufsize),level=options?options.level:Z_DEFAULT_COMPRESSION;typeof level=="undefined"&&(level=Z_DEFAULT_COMPRESSION),z.deflateInit(level),z.next_out=buf,that.append=function(data,onprogress){var err,buffers=[],lastIndex=0,bufferIndex=0,bufferSize=0,array;if(data.length){z.next_in_index=0,z.next_in=data,z.avail_in=data.length;do{if(z.next_out_index=0,z.avail_out=bufsize,err=z.deflate(flush),err!=Z_OK)throw new Error("deflating: "+z.msg);z.next_out_index&&(z.next_out_index==bufsize?buffers.push(new Uint8Array(buf)):buffers.push(new Uint8Array(buf.subarray(0,z.next_out_index)))),bufferSize+=z.next_out_index,onprogress&&z.next_in_index>0&&z.next_in_index!=lastIndex&&(onprogress(z.next_in_index),lastIndex=z.next_in_index)}while(z.avail_in>0||z.avail_out===0);
151return array=new Uint8Array(bufferSize),buffers.forEach(function(chunk){array.set(chunk,bufferIndex),bufferIndex+=chunk.length}),array}},that.flush=function(){var err,buffers=[],bufferIndex=0,bufferSize=0,array;do{if(z.next_out_index=0,z.avail_out=bufsize,err=z.deflate(Z_FINISH),err!=Z_STREAM_END&&err!=Z_OK)throw new Error("deflating: "+z.msg);bufsize-z.avail_out>0&&buffers.push(new Uint8Array(buf.subarray(0,z.next_out_index))),bufferSize+=z.next_out_index}while(z.avail_in>0||z.avail_out===0);return z.deflateEnd(),array=new Uint8Array(bufferSize),buffers.forEach(function(chunk){array.set(chunk,bufferIndex),bufferIndex+=chunk.length}),array}}var env=global2.zip||global2;env.Deflater=env._jzlib_Deflater=Deflater2})(typeof self!="undefined"&&self||typeof window!="undefined"&&window||typeof global!="undefined"&&global||Function('return typeof this === "object" && this.content')()||Function("return this")());/**
152 * A class to parse color values
153 * @author Stoyan Stefanov <[email protected]>
154 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
155 * @license Use it if you like it
156 */(function(global2){function RGBColor2(color_string){color_string=color_string||"",this.ok=!1,color_string.charAt(0)=="#"&&(color_string=color_string.substr(1,6)),color_string=color_string.replace(/ /g,""),color_string=color_string.toLowerCase();var channels,simple_colors={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:"90ee9
1560",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"};for(var key in simple_colors)color_string==key&&(color_string=simple_colors[key]);for(var color_defs=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(bits2){return[parseInt(bits2[1]),parseInt(bits2[2]),parseInt(bits2[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(bits2){return[parseInt(bits2[1],16),parseInt(bits2[2],16),parseInt(bits2[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(bits2){return[parseInt(bits2[1]+bits2[1],16),parseInt(bits2[2]+bits2[2],16),parseInt(bits2[3]+bits2[3],16)]}}],i=0;i<color_defs.length;i++){var re=color_defs[i].re,processor=color_defs[i].process,bits=re.exec(color_string);bits&&(channels=processor(bits),this.r=channels[0],this.g=channels[1],this.b=channels[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?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 r=this.r.toString(16),g=this.g.toString(16),b=this.b.toString(16);return r.length==1&&(r="0"+r),g.length==1&&(g="0"+g),b.length==1&&(b="0"+b),"#"+r+g+b}}global2.RGBColor=RGBColor2})(typeof self!="undefined"&&self||typeof window!="undefined"&&window||typeof global!="undefined"&&global||Function('return typeof this === "object" && this.content')()||Function("return this")()),(function(jsPDF3){var PLUS=43,SLASH=47,NUMBER=48,LOWER=97,UPPER=65,PLUS_URL_SAFE=45,SLASH_URL_SAFE=95,b64ToByteArray=function(b64){var i,j,l,tmp,placeHolders,arr;if(b64.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var len=b64.length;placeHolders=b64.charAt(len-2)==="="?2:b64.charAt(len-1)==="="?1:0,arr=new Uint8Array(b64.length*3/4-placeHolders),l=placeHolders>0?b64.length-4:b64.length;var L=0;function push(v){arr[L++]=v}for(i=0,j=0;i<l;i+=4,j+=3)tmp=decode(b64.charAt(i))<<18|decode(b64.charAt(i+1))<<12|decode(b64.charAt(i+2))<<6|decode(b64.charAt(i+3)),push((tmp&16711680)>>16),push((tmp&65280)>>8),push(tmp&255);return placeHolders===2?(tmp=decode(b64.charAt(i))<<2|decode(b64.charAt(i+1))>>4,push(tmp&255)):placeHolders===1&&(tmp=decode(b64.charAt(i))<<10|decode(b64.charAt(i+1))<<4|decode(b64.charAt(i+2))>>2,push(tmp>>8&255),push(tmp&255)),arr},decode=function(elt){var code=elt.charCodeAt(0);if(code===PLUS||code===PLUS_URL_SAFE)return 62;if(code===SLASH||code===SLASH_URL_SAFE)return 63;if(code<NUMBER)return-1;if(code<NUMBER+10)return code-NUMBER+26+26;if(code<UPPER+26)return code-UPPER;if(code<LOWER+26)return code-LOWER+26};jsPDF3.API.TTFFont=(function(){TTFFont.open=function(filename,name2,vfs,encoding){var contents;if(typeof vfs!="string")throw new Error("Invalid argument supplied in TTFFont.open");return contents=b64ToByteArray(vfs),new TTFFont(contents,name2,encoding)};function TTFFont(rawData,name2,encoding){var data;if(this.rawData=rawData,data=this.contents=new Data(rawData),this.contents.pos=4,data.readString(4)==="ttcf")throw name2?new Error("Font "+name2+" not found in TTC file."):new Error("Mu
156st specify a font name for TTC files.");data.pos=0,this.parse(),this.subset=new Subset(this),this.registerTTF()}return TTFFont.prototype.parse=function(){return this.directory=new Directory(this.contents),this.head=new HeadTable(this),this.name=new NameTable(this),this.cmap=new CmapTable(this),this.toUnicode=new Map,this.hhea=new HheaTable(this),this.maxp=new MaxpTable(this),this.hmtx=new HmtxTable(this),this.post=new PostTable(this),this.os2=new OS2Table(this),this.loca=new LocaTable(this),this.glyf=new GlyfTable(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]},TTFFont.prototype.registerTTF=function(){var e,hi,low,raw,_ref;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var _i,_len,_ref2,_results;for(_ref2=this.bbox,_results=[],_i=0,_len=_ref2.length;_i<_len;_i++)e=_ref2[_i],_results.push(Math.round(e*this.scaleFactor));return _results}.call(this),this.stemV=0,this.post.exists?(raw=this.post.italic_angle,hi=raw>>16,low=raw&255,hi&!0&&(hi=-((hi^65535)+1)),this.italicAngle=+(""+hi+"."+low)):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=(_ref=this.familyClass)===1||_ref===2||_ref===3||_ref===4||_ref===5||_ref===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},TTFFont.prototype.characterToGlyph=function(character){var _ref;return((_ref=this.cmap.unicode)!=null?_ref.codeMap[character]:void 0)||0},TTFFont.prototype.widthOfGlyph=function(glyph){var scale;return scale=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(glyph).advance*scale},TTFFont.prototype.widthOfString=function(string,size,charSpace){var charCode,i,scale,width,_i,_ref,charSpace;for(string=""+string,width=0,i=_i=0,_ref=string.length;0<=_ref?_i<_ref:_i>_ref;i=0<=_ref?++_i:--_i)charCode=string.charCodeAt(i),width+=this.widthOfGlyph(this.characterToGlyph(charCode))+charSpace*(1e3/size)||0;return scale=size/1e3,width*scale},TTFFont.prototype.lineHeight=function(size,includeGap){var gap;return includeGap==null&&(includeGap=!1),gap=includeGap?this.lineGap:0,(this.ascender+gap-this.decender)/1e3*size},TTFFont})();var Data=(function(){function Data2(data){this.data=data!=null?data:[],this.pos=0,this.length=this.data.length}return Data2.prototype.readByte=function(){return this.data[this.pos++]},Data2.prototype.writeByte=function(byte){return this.data[this.pos++]=byte},Data2.prototype.readUInt32=function(){var b1,b2,b3,b4;return b1=this.readByte()*16777216,b2=this.readByte()<<16,b3=this.readByte()<<8,b4=this.readByte(),b1+b2+b3+b4},Data2.prototype.writeUInt32=function(val){return this.writeByte(val>>>24&255),this.writeByte(val>>16&255),this.writeByte(val>>8&255),this.writeByte(val&255)},Data2.prototype.readInt32=function(){var int;return int=this.readUInt32(),int>=2147483648?int-4294967296:int},Data2.prototype.writeInt32=function(val){return val<0&&(val+=4294967296),this.writeUInt32(val)},Data2.prototype.readUInt16=function(){var b1,b2;return b1=this.readByte()<<8,b2=this.readByte(),b1|b2},Data2.prototype.writeUInt16=function(val){return this.writeByte(val>>8&255),this.writeByte(val&255)},Data2.prototype.readInt16=function(){var int;return int=this.readUInt16(),int>=32768?int-65536:int},Data2.prototype.writeInt16=function(val){return val<0&&(val+=65536),this.writeUInt16(val)},Data2.prototype.readString=function(length){var i,ret,_i;for(ret=[],i=_i=0;0<=length?_i<length:_i>length;i=0<=length?++_i:--_i)ret[i]=String.fromCharCode(this.readByte());return ret.join("")},Data2.prototype.writeString=function(val){var i,_i,_ref,_results;for(_results=[],i=_i=0,_ref=val.length;0<=_ref?_i<_ref:_i>_ref;i=0<=_ref?++_i:--_i)_results.push(this.writeByte(val.charCodeAt(i)));return _results},Data2.prototype.readShort=function(){return this.readInt16()},Data2.prototype.writeShort=function(val){return this.writeInt16(val)},Data2.prototype.readLongLong=function(){var b1,b2,b3,b4,b5,b6,b7,b8;return b1=this.readByte(),b2=this.readByte(),b3=this.readByte(),b4=this.readByte(),b5=this.readByte(),b6=this.readByte(),b7=this.readByte(),b8=this.readByte(),b1&128?((b1^255)*72057594037927940+(b2^255)*281474976710656+(b3^255)*1099511627776+(b4^255)*4294967296+(b5^255)*16777216+(b6^255)*65536+(b7^255)*256+(b8^255)+1)*-1:b1*72057594037927940+b2*281474976710656+b3*1099511627776+b4*4294967296+b5*16777216+b6*65536+b7*256+b8},Data2.prototype.writeLongLong=function(val){var high,low;return high=Math.floor(val/4294967296),low=val&4294967295,this.writeByte(high>>24&255),this.writeByte(high>>16&255),this.writeByte(high>>8&255),this.writeByte(high&255),this.writeByte(low>>24&255),this.writeByte(low>>16&255),this.writeByte(low>>8&255),this.writeByte(low&255)},Data2.prototype.readInt=function(){return this.readInt32()},Data2.prototype.writeInt=function(val){return this.writeInt32(val)},Data2.prototype.read=function(bytes){var buf,i,_i;for(buf=[],i=_i=0;0<=bytes?_i<bytes:_i>bytes;i=0<=bytes?++_i:--_i)buf.push(this.readByte());return buf},Data2.prototype.write=function(bytes){var byte,_i,_len,_results;for(_results=[],_i=0,_len=bytes.length;_i<_len;_i++)byte=bytes[_i],_results.push(this.writeByte(byte));return _results},Data2})(),Directory=(function(){var checksum;function Directory2(data){var entry,i,_i,_ref;for(this.scalarType=data.readInt(),this.tableCount=data.readShort(),this.searchRange=data.readShort(),this.entrySelector=data.readShort(),this.rangeShift=data.readShort(),this.tables={},i=_i=0,_ref=this.tableCount;0<=_ref?_i<_ref:_i>_ref;i=0<=_ref?++_i:--_i)entry={tag:data.readString(4),checksum:data.readInt(),offset:data.readInt(),length:data.readInt()},this.tables[entry.tag]=entry}return Directory2.prototype.encode=function(tables){var adjustment,directory,directoryLength,entrySelector,headOffset,log2,offset,rangeShift,searchR
156ange,sum,table,tableCount,tableData,tag;tableCount=Object.keys(tables).length,log2=Math.log(2),searchRange=Math.floor(Math.log(tableCount)/log2)*16,entrySelector=Math.floor(searchRange/log2),rangeShift=tableCount*16-searchRange,directory=new Data,directory.writeInt(this.scalarType),directory.writeShort(tableCount),directory.writeShort(searchRange),directory.writeShort(entrySelector),directory.writeShort(rangeShift),directoryLength=tableCount*16,offset=directory.pos+directoryLength,headOffset=null,tableData=[];for(tag in tables)for(table=tables[tag],directory.writeString(tag),directory.writeInt(checksum(table)),directory.writeInt(offset),directory.writeInt(table.length),tableData=tableData.concat(table),tag==="head"&&(headOffset=offset),offset+=table.length;offset%4;)tableData.push(0),offset++;return directory.write(tableData),sum=checksum(directory.data),adjustment=2981146554-sum,directory.pos=headOffset+8,directory.writeUInt32(adjustment),directory.data},checksum=function(data){var i,sum,tmp,_i,_ref;for(data=__slice.call(data);data.length%4;)data.push(0);for(tmp=new Data(data),sum=0,i=_i=0,_ref=data.length;_i<_ref;i=_i+=4)sum+=tmp.readUInt32();return sum&4294967295},Directory2})(),Table,__hasProp={}.hasOwnProperty,__extends=function(child,parent){for(var key in parent)__hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child};Table=(function(){function Table2(file){var info;this.file=file,info=this.file.directory.tables[this.tag],this.exists=!!info,info&&(this.offset=info.offset,this.length=info.length,this.parse(this.file.contents))}return Table2.prototype.parse=function(){},Table2.prototype.encode=function(){},Table2.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},Table2})();var HeadTable=(function(_super){__extends(HeadTable2,_super);function HeadTable2(){return HeadTable2.__super__.constructor.apply(this,arguments)}return HeadTable2.prototype.tag="head",HeadTable2.prototype.parse=function(data){return data.pos=this.offset,this.version=data.readInt(),this.revision=data.readInt(),this.checkSumAdjustment=data.readInt(),this.magicNumber=data.readInt(),this.flags=data.readShort(),this.unitsPerEm=data.readShort(),this.created=data.readLongLong(),this.modified=data.readLongLong(),this.xMin=data.readShort(),this.yMin=data.readShort(),this.xMax=data.readShort(),this.yMax=data.readShort(),this.macStyle=data.readShort(),this.lowestRecPPEM=data.readShort(),this.fontDirectionHint=data.readShort(),this.indexToLocFormat=data.readShort(),this.glyphDataFormat=data.readShort()},HeadTable2.prototype.encode=function(indexToLocFormat){var table;return table=new Data,table.writeInt(this.version),table.writeInt(this.revision),table.writeInt(this.checkSumAdjustment),table.writeInt(this.magicNumber),table.writeShort(this.flags),table.writeShort(this.unitsPerEm),table.writeLongLong(this.created),table.writeLongLong(this.modified),table.writeShort(this.xMin),table.writeShort(this.yMin),table.writeShort(this.xMax),table.writeShort(this.yMax),table.writeShort(this.macStyle),table.writeShort(this.lowestRecPPEM),table.writeShort(this.fontDirectionHint),table.writeShort(indexToLocFormat),table.writeShort(this.glyphDataFormat),table.data},HeadTable2})(Table),CmapEntry=(function(){function CmapEntry2(data,offset){var code,count,endCode,glyphId,glyphIds,i,idDelta,idRangeOffset,index,saveOffset,segCount,segCountX2,start,startCode,tail,_i,_j,_k,_len;switch(this.platformID=data.readUInt16(),this.encodingID=data.readShort(),this.offset=offset+data.readInt(),saveOffset=data.pos,data.pos=this.offset,this.format=data.readUInt16(),this.length=data.readUInt16(),this.language=data.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(i=_i=0;_i<256;i=++_i)this.codeMap[i]=data.readByte();break;case 4:for(segCountX2=data.readUInt16(),segCount=segCountX2/2,data.pos+=6,endCode=(function(){var _j2,_results;for(_results=[],i=_j2=0;0<=segCount?_j2<segCount:_j2>segCount;i=0<=segCount?++_j2:--_j2)_results.push(data.readUInt16());return _results})(),data.pos+=2,startCode=(function(){var _j2,_results;for(_results=[],i=_j2=0;0<=segCount?_j2<segCount:_j2>segCount;i=0<=segCount?++_j2:--_j2)_results.push(data.readUInt16());return _results})(),idDelta=(function(){var _j2,_results;for(_results=[],i=_j2=0;0<=segCount?_j2<segCount:_j2>segCount;i=0<=segCount?++_j2:--_j2)_results.push(data.readUInt16());return _results})(),idRangeOffset=(function(){var _j2,_results;for(_results=[],i=_j2=0;0<=segCount?_j2<segCount:_j2>segCount;i=0<=segCount?++_j2:--_j2)_results.push(data.readUInt16());return _results})(),count=(this.length-data.pos+this.offset)/2,glyphIds=(function(){var _j2,_results;for(_results=[],i=_j2=0;0<=count?_j2<count:_j2>count;i=0<=count?++_j2:--_j2)_results.push(data.readUInt16());return _results})(),i=_j=0,_len=endCode.length;_j<_len;i=++_j)for(tail=endCode[i],start=startCode[i],code=_k=start;start<=tail?_k<=tail:_k>=tail;code=start<=tail?++_k:--_k)idRangeOffset[i]===0?glyphId=code+idDelta[i]:(index=idRangeOffset[i]/2+(code-start)-(segCount-i),glyphId=glyphIds[index]||0,glyphId!==0&&(glyphId+=idDelta[i])),this.codeMap[code]=glyphId&65535}data.pos=saveOffset}
156return CmapEntry2.encode=function(charmap,encoding){var charMap,code,codeMap,codes,delta,deltas,diff,endCode,endCodes,entrySelector,glyphIDs,i,id,indexes,last,map,nextID,offset,old,rangeOffsets,rangeShift,result,searchRange,segCount,segCountX2,startCode,startCodes,startGlyph,subtable,_i,_j,_k,_l,_len,_len1,_len2,_len3,_len4,_len5,_len6,_len7,_m,_n,_name,_o,_p,_q;switch(subtable=new Data,codes=Object.keys(charmap).sort(function(a,b){return a-b}),encoding){case"macroman":for(id=0,indexes=(function(){var _i2,_results;for(_results=[],i=_i2=0;_i2<256;i=++_i2)_results.push(0);return _results})(),map={0:0},codeMap={},_i=0,_len=codes.length;_i<_len;_i++)code=codes[_i],map[_name=charmap[code]]==null&&(map[_name]=++id),codeMap[code]={old:charmap[code],new:map[charmap[code]]},indexes[code]=map[charmap[code]];return subtable.writeUInt16(1),subtable.writeUInt16(0),subtable.writeUInt32(12),subtable.writeUInt16(0),subtable.writeUInt16(262),subtable.writeUInt16(0),subtable.write(indexes),result={charMap:codeMap,subtable:subtable.data,maxGlyphID:id+1};case"unicode":for(startCodes=[],endCodes=[],nextID=0,map={},charMap={},last=diff=null,_j=0,_len1=codes.length;_j<_len1;_j++)code=codes[_j],old=charmap[code],map[old]==null&&(map[old]=++nextID),charMap[code]={old:old,new:map[old]},delta=map[old]-code,(last==null||delta!==diff)&&(last&&endCodes.push(last),startCodes.push(code),diff=delta),last=code;for(last&&endCodes.push(last),endCodes.push(65535),startCodes.push(65535),segCount=startCodes.length,segCountX2=segCount*2,searchRange=2*Math.pow(Math.log(segCount)/Math.LN2,2),entrySelector=Math.log(searchRange/2)/Math.LN2,rangeShift=2*segCount-searchRange,deltas=[],rangeOffsets=[],glyphIDs=[],i=_k=0,_len2=startCodes.length;_k<_len2;i=++_k){if(startCode=startCodes[i],endCode=endCodes[i],startCode===65535){deltas.push(0),rangeOffsets.push(0);break}if(startGlyph=charMap[startCode].new,startCode-startGlyph>=32768)for(deltas.push(0),rangeOffsets.push(2*(glyphIDs.length+segCount-i)),code=_l=startCode;startCode<=endCode?_l<=endCode:_l>=endCode;code=startCode<=endCode?++_l:--_l)glyphIDs.push(charMap[code].new);else deltas.push(startGlyph-startCode),rangeOffsets.push(0)}for(subtable.writeUInt16(3),subtable.writeUInt16(1),subtable.writeUInt32(12),subtable.writeUInt16(4),subtable.writeUInt16(16+segCount*8+glyphIDs.length*2),subtable.writeUInt16(0),subtable.writeUInt16(segCountX2),subtable.writeUInt16(searchRange),subtable.writeUInt16(entrySelector),subtable.writeUInt16(rangeShift),_m=0,_len3=endCodes.length;_m<_len3;_m++)code=endCodes[_m],subtable.writeUInt16(code);for(subtable.writeUInt16(0),_n=0,_len4=startCodes.length;_n<_len4;_n++)code=startCodes[_n],subtable.writeUInt16(code);for(_o=0,_len5=deltas.length;_o<_len5;_o++)delta=deltas[_o],subtable.writeUInt16(delta);for(_p=0,_len6=rangeOffsets.length;_p<_len6;_p++)offset=rangeOffsets[_p],subtable.writeUInt16(offset);for(_q=0,_len7=glyphIDs.length;_q<_len7;_q++)id=glyphIDs[_q],subtable.writeUInt16(id);return result={charMap:charMap,subtable:subtable.data,maxGlyphID:nextID+1}}},CmapEntry2})(),CmapTable=(function(_super){__extends(CmapTable2,_super);function CmapTable2(){return CmapTable2.__super__.constructor.apply(this,arguments)}return CmapTable2.prototype.tag="cmap",CmapTable2.prototype.parse=function(data){var entry,i,tableCount,_i;for(data.pos=this.offset,this.version=data.readUInt16(),tableCount=data.readUInt16(),this.tables=[],this.unicode=null,i=_i=0;0<=tableCount?_i<tableCount:_i>tableCount;i=0<=tableCount?++_i:--_i)entry=new CmapEntry(data,this.offset),this.tables.push(entry),entry.isUnicode&&this.unicode==null&&(this.unicode=entry);return!0},CmapTable2.encode=function(charmap,encoding){var result,table;return encoding==null&&(encoding="macroman"),result=CmapEntry.encode(charmap,encoding),table=new Data,table.writeUInt16(0),table.writeUInt16(1),result.table=table.data.concat(result.subtable),result},CmapTable2})(Table),HheaTable=(function(_super){__extends(HheaTable2,_super);function HheaTable2(){return HheaTable2.__super__.constructor.apply(this,arguments)}return HheaTable2.prototype.tag="hhea",HheaTable2.prototype.parse=function(data){return data.pos=this.offset,this.version=data.readInt(),this.ascender=data.readShort(),this.decender=data.readShort(),this.lineGap=data.readShort(),this.advanceWidthMax=data.readShort(),this.minLeftSideBearing=data.readShort(),this.minRightSideBearing=data.readShort(),this.xMaxExtent=data.readShort(),this.caretSlopeRise=data.readShort(),this.caretSlopeRun=data.readShort(),this.caretOffset=data.readShort(),data.pos+=8,this.metricDataFormat=data.readShort(),this.numberOfMetrics=data.readUInt16()},HheaTable2})(Table),OS2Table=(function(_super){__extends(OS2Table2,_super);function OS2Table2(){return OS2Table2.__super__.constructor.apply(this,arguments)}return OS2Table2.prototype.tag="OS/2",OS2Table2.prototype.parse=function(data){var i;if(data.pos=this.offset,this.version=data.readUInt16(),this.averageCharWidth=data.readShort(),this.weightClass=data.readUInt16(),this.widthClass=data.readUInt16(),this.type=data.readShort(),this.ySubscriptXSize=data.readShort(),this.ySubscriptYSize=data.readShort(),this.ySubscriptXOffset=data.readShort(),this.ySubscriptYOffset=data.readShort(),this.ySuperscriptXSize=data.readShort(),this.ySuperscriptYSize=data.readShort(),this.ySuperscriptXOffset=data.readShort(),this.ySuperscriptYOffset=data.readShort(),this.yStrikeoutSize=data.readShort(),this.yStrikeoutPosition=data.readShort(),this.familyClass=data.readShort(),this.panose=(function(){var _i,_results;for(_results=[],i=_i=0;_i<10;i=++_i)_results.push(data.readByte());return _results})(),this.charRange=(function(){var _i,_results;for(_results=[],i=_i=0;_i<4;i=++_i)_results.push(data.readInt());return _results})(),this.vendorID=data.readString(4),this.selection=data.readShort(),this.firstCharIndex=data.readShort(),this.lastCharIndex=data.readShort(),this.version>0&&(this.ascent=data.readShort(),this.descent=data.readShort(),this.lineGap=data.readShort(),this.winAscent=data.readShort(),this.winDescent=data.readShort(),this.codePageRange=(function(){var _i,_results;for(_results=[],i=_i=0;_i<2;i=++_i)_results.push(data.readInt());return _results})(),this.version>1))return this.xHeight=data.readShort(),this.capHeight=data.readShort(),this.defaultChar=data.readShort(),this.breakChar=data.readShort(),this.maxContext=data.readShort()},OS2Table2})(Table),PostTable=(function(_super){__extends(PostTable2,_super);function PostTable2(){return PostTable2.__super__.constructor.apply(this,arguments)}return PostTable2.prototype.tag="post",PostTable2.prototype.parse=function(data){var i,length,numberOfGlyphs,_i,_results;switch(data.pos=this.offset,this.format=data.readInt(),this.italicAngle=data.readInt(),this.underlinePosition=data.readShort(),this.underlineThickness=data.readShort(),this.isFixedPitch=data.readInt(),this.minMemType42=data.readInt(),this.maxMemType42=data.readInt(),this.minMemType1=data.readInt(),this.maxMemType1=data.readInt(),this.format){case 65536:break;case 131072:for(numberOfGlyphs=data.readUInt16(),this.glyphNameIndex=[],i=_i=0;0<=numberOfGlyphs?_i<numberOfGlyphs:_i>numberOfGlyphs;i=0<=numberOfGlyphs?++_i:--_i)this.glyphNameIndex.push(data.readUInt16());for(this.names=[],_results=[];data.pos<this.offset+this.length;)length=data.readByte(),_results.push(this.names.push(data.readString(length)));return _results;case 151552:return numberOfGlyphs=data.readUInt16(),this.offsets=data.read(numberOfGlyphs);case 196608:break;case 262144:return this.map=function(){var _j,_ref,_results1;for(_results1=[],i=_j=0,_ref=this.file.maxp.numGlyphs;0<=_ref?_j<_ref:_j>_ref;i=0<=_ref?++_j:--_j)_results1.push(data.readUInt32());return _results1}.call(this)}},PostTable2})(Table),NameEntry=(function(){function NameEntry2(raw,entry){this.raw=raw,this.length=raw.length,this.platformID=entry.platformID,this.encodingID=entry.encodingID,this.languageID=entry.languageID}return NameEntry2})(),NameTable=(function(_super){__extends(NameTable2,_super);function NameTable2(){return NameTable2.__super__.constructor.apply(this,arguments)}return NameTable2.prototype.tag="name",NameTable2.prototype.parse=function(data){var count,entries,entry,format,i,name2,stringOffset,strings,text,_i,_j,_len,_name;for(data.pos=this.offset,format=data.readShort(),count=data.readShort(),stringOffset=data.readShort(),entries=[],i=_i=0;0<=count?_i<count:_i>count;i=0<=count?++_i:--_i)entries.push({platformID:data.readShort(),encodingID:data.readShort(),languageID:data.readShort(),nameID:data.readShort(),length:data.readShort(),offset:this.offset+stringOffset+data.readShort()});for(strings={},i=_j=0,_len=entries.length;_j<_len;i=++_j)entry=entries[i],data.pos=entry.offset,text=data.readString(entry.length),name2=new NameEntry(text,entry),strings[_name=entry.nameID]==null&&(strings[_name]=[]),strings[entry.nameID].push(name2);this.strings=strings,this.copyright=strings[0],this.fontFamily=strings[1],this.fontSubfam
156ily=strings[2],this.uniqueSubfamily=strings[3],this.fontName=strings[4],this.version=strings[5];try{this.postscriptName=strings[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(e){this.postscriptName=strings[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=strings[7],this.manufacturer=strings[8],this.designer=strings[9],this.description=strings[10],this.vendorUrl=strings[11],this.designerUrl=strings[12],this.license=strings[13],this.licenseUrl=strings[14],this.preferredFamily=strings[15],this.preferredSubfamily=strings[17],this.compatibleFull=strings[18],this.sampleText=strings[19]},NameTable2})(Table),MaxpTable=(function(_super){__extends(MaxpTable2,_super);function MaxpTable2(){return MaxpTable2.__super__.constructor.apply(this,arguments)}return MaxpTable2.prototype.tag="maxp",MaxpTable2.prototype.parse=function(data){return data.pos=this.offset,this.version=data.readInt(),this.numGlyphs=data.readUInt16(),this.maxPoints=data.readUInt16(),this.maxContours=data.readUInt16(),this.maxCompositePoints=data.readUInt16(),this.maxComponentContours=data.readUInt16(),this.maxZones=data.readUInt16(),this.maxTwilightPoints=data.readUInt16(),this.maxStorage=data.readUInt16(),this.maxFunctionDefs=data.readUInt16(),this.maxInstructionDefs=data.readUInt16(),this.maxStackElements=data.readUInt16(),this.maxSizeOfInstructions=data.readUInt16(),this.maxComponentElements=data.readUInt16(),this.maxComponentDepth=data.readUInt16()},MaxpTable2})(Table),HmtxTable=(function(_super){__extends(HmtxTable2,_super);function HmtxTable2(){return HmtxTable2.__super__.constructor.apply(this,arguments)}return HmtxTable2.prototype.tag="hmtx",HmtxTable2.prototype.parse=function(data){var i,last,lsbCount,m,_i,_j,_ref,_results;for(data.pos=this.offset,this.metrics=[],i=_i=0,_ref=this.file.hhea.numberOfMetrics;0<=_ref?_i<_ref:_i>_ref;i=0<=_ref?++_i:--_i)this.metrics.push({advance:data.readUInt16(),lsb:data.readInt16()});for(lsbCount=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var _j2,_results2;for(_results2=[],i=_j2=0;0<=lsbCount?_j2<lsbCount:_j2>lsbCount;i=0<=lsbCount?++_j2:--_j2)_results2.push(data.readInt16());return _results2})(),this.widths=function(){var _j2,_len,_ref1,_results2;for(_ref1=this.metrics,_results2=[],_j2=0,_len=_ref1.length;_j2<_len;_j2++)m=_ref1[_j2],_results2.push(m.advance);return _results2}.call(this),last=this.widths[this.widths.length-1],_results=[],i=_j=0;0<=lsbCount?_j<lsbCount:_j>lsbCount;i=0<=lsbCount?++_j:--_j)_results.push(this.widths.push(last));return _results},HmtxTable2.prototype.forGlyph=function(id){var metrics;return id in this.metrics?this.metrics[id]:metrics={advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[id-this.metrics.length]}},HmtxTable2})(Table),__slice=[].slice,GlyfTable=(function(_super){__extends(GlyfTable2,_super);function GlyfTable2(){return GlyfTable2.__super__.constructor.apply(this,arguments)}return GlyfTable2.prototype.tag="glyf",GlyfTable2.prototype.parse=function(data){return this.cache={}},GlyfTable2.prototype.glyphFor=function(id){id=id;var data,index,length,loca,numberOfContours,raw,xMax,xMin,yMax,yMin;return id in this.cache?this.cache[id]:(loca=this.file.loca,data=this.file.contents,index=loca.indexOf(id),length=loca.lengthOf(id),length===0?this.cache[id]=null:(data.pos=this.offset+index,raw=new Data(data.read(length)),numberOfContours=raw.readShort(),xMin=raw.readShort(),yMin=raw.readShort(),xMax=raw.readShort(),yMax=raw.readShort(),numberOfContours===-1?this.cache[id]=new CompoundGlyph(raw,xMin,yMin,xMax,yMax):this.cache[id]=new SimpleGlyph(raw,numberOfContours,xMin,yMin,xMax,yMax),this.cache[id]))},GlyfTable2.prototype.encode=function(glyphs,mapping,old2new){var glyph,id,offsets,table,_i,_len;for(table=[],offsets=[],_i=0,_len=mapping.length;_i<_len;_i++)id=mapping[_i],glyph=glyphs[id],offsets.push(table.length),glyph&&(table=table.concat(glyph.encode(old2new)));return offsets.push(table.length),{table:table,offsets:offsets}},GlyfTable2})(Table),SimpleGlyph=(function(){function SimpleGlyph2(raw,numberOfContours,xMin,yMin,xMax,yMax){this.raw=raw,this.numberOfContours=numberOfContours,this.xMin=xMin,this.yMin=yMin,this.xMax=xMax,this.yMax=yMax,this.compound=!1}return SimpleGlyph2.prototype.encode=function(){return this.raw.data},SimpleGlyph2})(),CompoundGlyph=(function(){var ARG_1_AND_2_ARE_WORDS,MORE_COMPONENTS,WE_HAVE_AN_X_AND_Y_SCALE,WE_HAVE_A_SCALE,WE_HAVE_A_TWO_BY_TWO;ARG_1_AND_2_ARE_WORDS=1,WE_HAVE_A_SCALE=8,MORE_COMPONENTS=32,WE_HAVE_AN_X_AND_Y_SCALE=64,WE_HAVE_A_TWO_BY_TWO=128;function CompoundGlyph2(raw,xMin,yMin,xMax,yMax){var data,flags;for(this.raw=raw,this.xMin=xMin,this.yMin=yMin,this.xMax=xMax,this.yMax=yMax,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],data=this.raw;flags=data.readShort(),this.glyphOffsets.push(data.pos),this.glyphIDs.push(data.readShort()),!!(flags&MORE_COMPONENTS);)flags&ARG_1_AND_2_ARE_WORDS?data.pos+=4:data.pos+=2,flags&WE_HAVE_A_TWO_BY_TWO?data.pos+=8:flags&WE_HAVE_AN_X_AND_Y_SCALE?data.pos+=4:flags&WE_HAVE_A_SCALE&&(data.pos+=2)}return CompoundGlyph2.prototype.encode=function(mapping){var i,id,result,_i,_len,_ref;for(result=new Data(__slice.call(this.raw.data)),_ref=this.glyphIDs,i=_i=0,_len=_ref.length;_i<_len;i=++_i)id=_ref[i],result.pos=this.glyphOffsets[i];return result.data},CompoundGlyph2})(),LocaTable=(function(_super){__extends(LocaTable2,_super);function LocaTable2(){return LocaTable2.__super__.constructor.apply(this,arguments)}return LocaTable2.prototype.tag="loca",LocaTable2.prototype.parse=function(data){var format,i;return data.pos=this.offset,format=this.file.head.indexToLocFormat,format===0?this.offsets=function(){var _i,_ref,_results;for(_results=[],i=_i=0,_ref=this.length;_i<_ref;i=_i+=2)_results.push(data.readUInt16()*2);return _results}.call(this):this.offsets=function(){var _i,_ref,_results;for(_results=[],i=_i=0,_ref=this.length;_i<_ref;i=_i+=4)_results.push(data.readUInt32());return _results}.call(this)},LocaTable2.prototype.indexOf=function(id){return this.offsets[id]},LocaTable2.prototype.lengthOf=function(id){return this.offsets[id+1]-this.offsets[id]},LocaTable2.prototype.encode=function(offsets,activeGlyphs){for(var LocaTable3=new Uint32Array(this.offsets.length),glyfPtr=0,listGlyf=0,k=0;k<LocaTable3.length;++k)if(LocaTable3[k]=glyfPtr,listGlyf<activeGlyphs.length&&activeGlyphs[listGlyf]==k){++listGlyf,LocaTable3[k]=glyfPtr;var start=this.offsets[k],len=this.offsets[k+1]-start;len>0&&(glyfPtr+=len)}for(var newLocaTable=new Array(LocaTable3.length*4),j=0;j<LocaTable3.length;++j)newLocaTable[4*j+3]=LocaTable3[j]&255,newLocaTable[4*j+2]=(LocaTable3[j]&65280)>>8,newLocaTable[4*j+1]=(LocaTable3[j]&16711680)>>16,newLocaTable[4*j]=(LocaTable3[j]&4278190080)>>24;return newLocaTable},LocaTable2})(Table),invert=function(object){var key,ret,val;ret={};for(key in object)val=object[key],ret[val]=key;return ret},Subset=(function(){function Subset2(font){this.font=font,this.subset={},this.unicodes={},this.next=33}return Subset2.prototype.generateCmap=function(){var mapping,roman,unicode,unicodeCmap,_ref;unicodeCmap=this.font.cmap.tables[0].codeMap,mapping={},_ref=this.subset;for(roman in _ref)unicode=_ref[roman],mapping[roman]=unicodeCmap[unicode];return mapping},Subset2.prototype.glyphsFor=function(glyphIDs){var additionalIDs,glyph,glyphs,id,_i,_len,_ref;for(glyphs={},_i=0,_len=glyphIDs.length;_i<_len;_i++)id=glyphIDs[_i],glyphs[id]=this.font.glyf.glyphFor(id);additionalIDs=[];for(id in glyphs)glyph=glyphs[id],glyph!=null&&glyph.compound&&additionalIDs.push.apply(additionalIDs,glyph.glyphIDs);if(additionalIDs.length>0){_ref=this.glyphsFor(additionalIDs);for(id in _ref)glyph=_ref[id],glyphs[id]=glyph}return glyphs},Subset2.prototype.encode=function(glyID,indexToLocFormat){var cmap,code,glyf,glyphs,id,ids,loca,new2old,newIDs,nextGlyphID,old2new,oldID,oldIDs,tables,_ref;cmap=CmapTable.encode(this.generateCmap(),"unicode"),glyphs=this.glyphsFor(glyID),old2new={0:0}
156,_ref=cmap.charMap;for(code in _ref)ids=_ref[code],old2new[ids.old]=ids.new;nextGlyphID=cmap.maxGlyphID;for(oldID in glyphs)oldID in old2new||(old2new[oldID]=nextGlyphID++);return new2old=invert(old2new),newIDs=Object.keys(new2old).sort(function(a,b){return a-b}),oldIDs=(function(){var _i,_len,_results;for(_results=[],_i=0,_len=newIDs.length;_i<_len;_i++)id=newIDs[_i],_results.push(new2old[id]);return _results})(),glyf=this.font.glyf.encode(glyphs,oldIDs,old2new),loca=this.font.loca.encode(glyf.offsets,oldIDs),tables={cmap:this.font.cmap.raw(),glyf:glyf.table,loca:loca,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(indexToLocFormat)},this.font.os2.exists&&(tables["OS/2"]=this.font.os2.raw()),this.font.directory.encode(tables)},Subset2})();jsPDF3.API.PDFObject=(function(){var pad;function PDFObject(){}return pad=function(str,length){return(Array(length+1).join("0")+str).slice(-length)},PDFObject.convert=function(object){var e,items,key,out,val;if(Array.isArray(object))return items=(function(){var _i,_len,_results;for(_results=[],_i=0,_len=object.length;_i<_len;_i++)e=object[_i],_results.push(PDFObject.convert(e));return _results})().join(" "),"["+items+"]";if(typeof object=="string")return"/"+object;if(object!=null&&object.isString)return"("+object+")";if(object instanceof Date)return"(D:"+pad(object.getUTCFullYear(),4)+pad(object.getUTCMonth(),2)+pad(object.getUTCDate(),2)+pad(object.getUTCHours(),2)+pad(object.getUTCMinutes(),2)+pad(object.getUTCSeconds(),2)+"Z)";if({}.toString.call(object)==="[object Object]"){out=["<<"];for(key in object)val=object[key],out.push("/"+key+" "+PDFObject.convert(val));return out.push(">>"),out.join("\n")}else return""+object},PDFObject})()})(jsPDF2),(function(global2){var PNG2;PNG2=(function(){var APNG_BLEND_OP_SOURCE,APNG_DISPOSE_OP_BACKGROUND,APNG_DISPOSE_OP_PREVIOUS,makeImage,scratchCanvas,scratchCtx;PNG3.load=function(url,canvas,callback){var xhr;return typeof canvas=="function"&&(callback=canvas),xhr=new XMLHttpRequest,xhr.open("GET",url,!0),xhr.responseType="arraybuffer",xhr.onload=function(){var data,png;return data=new Uint8Array(xhr.response||xhr.mozResponseArrayBuffer),png=new PNG3(data),typeof(canvas!=null?canvas.getContext:void 0)=="function"&&png.render(canvas),typeof callback=="function"?callback(png):void 0},xhr.send(null)},APNG_DISPOSE_OP_BACKGROUND=1,APNG_DISPOSE_OP_PREVIOUS=2,APNG_BLEND_OP_SOURCE=0;function PNG3(data){var chunkSize,colors,palLen,delayDen,delayNum,frame,i,index,key,section,palShort,text,_i,_j,_ref;for(this.data=data,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},frame=null;;){switch(chunkSize=this.readUInt32(),section=function(){var _i2,_results;for(_results=[],i=_i2=0;_i2<4;i=++_i2)_results.push(String.fromCharCode(this.data[this.pos++]));return _results}.call(this).join(""),section){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(chunkSize);break;case"fcTL":frame&&this.animation.frames.push(frame),this.pos+=4,frame={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},delayNum=this.readUInt16(),delayDen=this.readUInt16()||100,frame.delay=1e3*delayNum/delayDen,frame.disposeOp=this.data[this.pos++],frame.blendOp=this.data[this.pos++],frame.data=[];break;case"IDAT":case"fdAT":for(section==="fdAT"&&(this.pos+=4,chunkSize-=4),data=(frame!=null?frame.data:void 0)||this.imgData,i=_i=0;0<=chunkSize?_i<chunkSize:_i>chunkSize;i=0<=chunkSize?++_i:--_i)data.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(palLen=this.palette.length/3,this.transparency.indexed=this.read(chunkSize),this.transparency.indexed.length>palLen)throw new Error("More transparent colors than palette size");
156if(palShort=palLen-this.transparency.indexed.length,palShort>0)for(i=_j=0;0<=palShort?_j<palShort:_j>palShort;i=0<=palShort?++_j:--_j)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(chunkSize)[0];break;case 2:this.transparency.rgb=this.read(chunkSize)}break;case"tEXt":text=this.read(chunkSize),index=text.indexOf(0),key=String.fromCharCode.apply(String,text.slice(0,index)),this.text[key]=String.fromCharCode.apply(String,text.slice(index+1));break;case"IEND":frame&&this.animation.frames.push(frame),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(_ref=this.colorType)===4||_ref===6,colors=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*colors,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),this.imgData=new Uint8Array(this.imgData);return;default:this.pos+=chunkSize}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}PNG3.prototype.read=function(bytes){var i,_i,_results;for(_results=[],i=_i=0;0<=bytes?_i<bytes:_i>bytes;i=0<=bytes?++_i:--_i)_results.push(this.data[this.pos++]);return _results},PNG3.prototype.readUInt32=function(){var b1,b2,b3,b4;return b1=this.data[this.pos++]<<24,b2=this.data[this.pos++]<<16,b3=this.data[this.pos++]<<8,b4=this.data[this.pos++],b1|b2|b3|b4},PNG3.prototype.readUInt16=function(){var b1,b2;return b1=this.data[this.pos++]<<8,b2=this.data[this.pos++],b1|b2},PNG3.prototype.decodePixels=function(data){var pixelBytes=this.pixelBitlength/8,fullPixels=new Uint8Array(this.width*this.height*pixelBytes),pos=0,_this=this;if(data==null&&(data=this.imgData),data.length===0)return new Uint8Array(0);data=new FlateStream(data),data=data.getBytes();function pass(x0,y0,dx,dy){var abyte,c,col,i,left,length,p,pa,paeth,pb,pc,pixels,row,scanlineLength,upper,upperLeft,_i,_j,_k,_l,_m,w=Math.ceil((_this.width-x0)/dx),h=Math.ceil((_this.height-y0)/dy),isFull=_this.width==w&&_this.height==h;for(scanlineLength=pixelBytes*w,pixels=isFull?fullPixels:new Uint8Array(scanlineLength*h),length=data.length,row=0,c=0;row<h&&pos<length;){switch(data[pos++]){case 0:for(i=_i=0;_i<scanlineLength;i=_i+=1)pixels[c++]=data[pos++];break;case 1:for(i=_j=0;_j<scanlineLength;i=_j+=1)abyte=data[pos++],left=i<pixelBytes?0:pixels[c-pixelBytes],pixels[c++]=(abyte+left)%256;break;case 2:for(i=_k=0;_k<scanlineLength;i=_k+=1)abyte=data[pos++],col=(i-i%pixelBytes)/pixelBytes,upper=row&&pixels[(row-1)*scanlineLength+col*pixelBytes+i%pixelBytes],pixels[c++]=(upper+abyte)%256;break;case 3:for(i=_l=0;_l<scanlineLength;i=_l+=1)abyte=data[pos++],col=(i-i%pixelBytes)/pixelBytes,left=i<pixelBytes?0:pixels[c-pixelBytes],upper=row&&pixels[(row-1)*scanlineLength+col*pixelBytes+i%pixelBytes],pixels[c++]=(abyte+Math.floor((left+upper)/2))%256;break;case 4:for(i=_m=0;_m<scanlineLength;i=_m+=1)abyte=data[pos++],col=(i-i%pixelBytes)/pixelBytes,left=i<pixelBytes?0:pixels[c-pixelBytes],row===0?upper=upperLeft=0:(upper=pixels[(row-1)*scanlineLength+col*pixelBytes+i%pixelBytes],upperLeft=col&&pixels[(row-1)*scanlineLength+(col-1)*pixelBytes+i%pixelBytes]),p=left+upper-upperLeft,pa=Math.abs(p-left),pb=Math.abs(p-upper),pc=Math.abs(p-upperLeft),pa<=pb&&pa<=pc?paeth=left:pb<=pc?paeth=upper:paeth=upperLeft,pixels[c++]=(abyte+paeth)%256;break;default:throw new Error("Invalid filter algorithm: "+data[pos-1])}if(!isFull){var fullPos=((y0+row*dy)*_this.width+x0)*pixelBytes,partPos=row*scanlineLength;for(i=0;i<w;i+=1){for(var j=0;j<pixelBytes;j+=1)fullPixels[fullPos++]=pixels[partPos++];fullPos+=(dx-1)*pixelBytes}}row++}}return _this.interlaceMethod==1?(pass(0,0,8,8),pass(4,0,8,8),pass(0,4,4,8),pass(2,0,4,4),pass(0,2,2,4),pass(1,0,2,2),pass(0,1,1,2)):pass(0,0,1,1),fullPixels},PNG3.prototype.decodePalette=function(){var c,i,length,palette,pos,ret,transparency,_i,_ref,_ref1;for(palette=this.palette,transparency=this.transparency.indexed||[],ret=new Uint8Array((transparency.length||0)+palette.length),pos=0,length=palette.length,c=0,i=_i=0,_ref=palette.length;_i<_ref;i=_i+=3)ret[pos++]=palette[i],ret[pos++]=palette[i+1],ret[pos++]=palette[i+2],ret[pos++]=(_ref1=trans
156parency[c++])!=null?_ref1:255;return ret},PNG3.prototype.copyToImageData=function(imageData,pixels){var alpha,colors,data,i,input,j,k,length,palette,v,_ref;if(colors=this.colors,palette=null,alpha=this.hasAlphaChannel,this.palette.length&&(palette=(_ref=this._decodedPalette)!=null?_ref:this._decodedPalette=this.decodePalette(),colors=4,alpha=!0),data=imageData.data||imageData,length=data.length,input=palette||pixels,i=j=0,colors===1)for(;i<length;)k=palette?pixels[i/4]*4:j,v=input[k++],data[i++]=v,data[i++]=v,data[i++]=v,data[i++]=alpha?input[k++]:255,j=k;else for(;i<length;)k=palette?pixels[i/4]*4:j,data[i++]=input[k++],data[i++]=input[k++],data[i++]=input[k++],data[i++]=alpha?input[k++]:255,j=k},PNG3.prototype.decode=function(){var ret;return ret=new Uint8Array(this.width*this.height*4),this.copyToImageData(ret,this.decodePixels()),ret};try{scratchCanvas=global2.document.createElement("canvas"),scratchCtx=scratchCanvas.getContext("2d")}catch(e){return-1}return makeImage=function(imageData){var img;return scratchCtx.width=imageData.width,scratchCtx.height=imageData.height,scratchCtx.clearRect(0,0,imageData.width,imageData.height),scratchCtx.putImageData(imageData,0,0),img=new Image,img.src=scratchCanvas.toDataURL(),img},PNG3.prototype.decodeFrames=function(ctx){var frame,i,imageData,pixels,_i,_len,_ref,_results;if(this.animation){for(_ref=this.animation.frames,_results=[],i=_i=0,_len=_ref.length;_i<_len;i=++_i)frame=_ref[i],imageData=ctx.createImageData(frame.width,frame.height),pixels=this.decodePixels(new Uint8Array(frame.data)),this.copyToImageData(imageData,pixels),frame.imageData=imageData,_results.push(frame.image=makeImage(imageData));return _results}},PNG3.prototype.renderFrame=function(ctx,number){var frame,frames,prev;return frames=this.animation.frames,frame=frames[number],prev=frames[number-1],number===0&&ctx.clearRect(0,0,this.width,this.height),(prev!=null?prev.disposeOp:void 0)===APNG_DISPOSE_OP_BACKGROUND?ctx.clearRect(prev.xOffset,prev.yOffset,prev.width,prev.height):(prev!=null?prev.disposeOp:void 0)===APNG_DISPOSE_OP_PREVIOUS&&ctx.putImageData(prev.imageData,prev.xOffset,prev.yOffset),frame.blendOp===APNG_BLEND_OP_SOURCE&&ctx.clearRect(frame.xOffset,frame.yOffset,frame.width,frame.height),ctx.drawImage(frame.image,frame.xOffset,frame.yOffset)},PNG3.prototype.animate=function(ctx){var _doFrame,frameNumber,frames,numFrames,numPlays,_ref,_this=this;return frameNumber=0,_ref=this.animation,numFrames=_ref.numFrames,frames=_ref.frames,numPlays=_ref.numPlays,(_doFrame=function(){var f,frame;if(f=frameNumber++%numFrames,frame=frames[f],_this.renderFrame(ctx,f),numFrames>1&&frameNumber/numFrames<numPlays)return _this.animation._timeout=setTimeout(_doFrame,frame.delay)})()},PNG3.prototype.stopAnimation=function(){var _ref;return clearTimeout((_ref=this.animation)!=null?_ref._timeout:void 0)},PNG3.prototype.render=function(canvas){var ctx,data;return canvas._png&&canvas._png.stopAnimation(),canvas._png=this,canvas.width=this.width,canvas.height=this.height,ctx=canvas.getContext("2d"),this.animation?(this.decodeFrames(ctx),this.animate(ctx)):(data=ctx.createImageData(this.width,this.height),this.copyToImageData(data,this.decodePixels()),ctx.putImageData(data,0,0))},PNG3})(),global2.PNG=PNG2})(typeof self!="undefined"&&self||typeof window!="undefined"&&window||typeof global!="undefined"&&global||Function('return typeof this === "object" && this.content')()||Function("return this")());var DecodeStream=(function(){function constructor(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return constructor.prototype={ensureBuffer:function(requested){var buffer=this.buffer,current=buffer?buffer.byteLength:0;if(requested<current)return buffer;for(var size=512;size<requested;)size<<=1;for(var buffer2=new Uint8Array(size),i=0;i<current;++i)buffer2[i]=buffer[i];return this.buffer=buffer2},getByte:function(){for(var pos=this.pos;this.bufferLength<=pos;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(length){var pos=this.pos;if(length){this.ensureBuffer(pos+length);for(var end=pos+length;!this.eof&&this.bufferLength<end;)this.readBlock();var bufEnd=this.bufferLength;end>bufEnd&&(end=bufEnd)}else{for(;!this.eof;)this.readBlock();var end=this.bufferLength}return this.pos=end,this.buffer.subarray(pos,end)},lookChar:function(){for(var pos=this.pos;this.bufferLength<=pos;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var pos=this.pos;this.bufferLength<=pos;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(start,length,dict){for(var end=start+length;this.bufferLength<=end&&!this.eof;)this.readBlock();return new Stream(this.buffer,start,length,dict)},skip:function(n){n||(n=1),this.pos+=n},reset:function(){this.pos=0}},constructor})(),FlateStream=(function(){if(typeof Uint32Array=="undefined")return;var codeLenCodeMap=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),lengthDecode=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),distDecode=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),fixedLitCo
156deTab=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],fixedDistCodeTab=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];function error(e){throw new Error(e)}function constructor(bytes){var bytesPos=0,cmf=bytes[bytesPos++],flg=bytes[bytesPos++];(cmf==-1||flg==-1)&&error("Invalid header in flate stream"),(cmf&15)!=8&&error("Unknown compression method in flate stream"),((cmf<<8)+flg)%31!=0&&error("Bad FCHECK in flate stream"),flg&32&&error("FDICT bit set in flate stream"),this.bytes=bytes,this.bytesPos=bytesPos,this.codeSize=0,this.codeBuf=0,DecodeStream.call(this)}return constructor.prototype=Object.create(DecodeStream.prototype),constructor.prototype.getBits=function(bits){for(var codeSize=this.codeSize,codeBuf=this.codeBuf,bytes=this.bytes,bytesPos=this.bytesPos,b;codeSize<bits;)typeof(b=bytes[bytesPos++])=="undefined"&&error("Bad encoding in flate stream"),codeBuf|=b<<codeSize,codeSize+=8;return b=codeBuf&(1<<bits)-1,this.codeBuf=codeBuf>>bits,this.codeSize=codeSize-=bits,this.bytesPos=bytesPos,b},constructor.prototype.getCode=function(table){for(var codes=table[0],maxLen=table[1],codeSize=this.codeSize,codeBuf=this.codeBuf,bytes=this.bytes,bytesPos=this.bytesPos;codeSize<maxLen;){var b;typeof(b=bytes[bytesPos++])=="undefined"&&error("Bad encoding in flate stream"),codeBuf|=b<<codeSize,codeSize+=8}var code=codes[codeBuf&(1<<maxLen)-1],codeLen=code>>
15616,codeVal=code&65535;return(codeSize==0||codeSize<codeLen||codeLen==0)&&error("Bad encoding in flate stream"),this.codeBuf=codeBuf>>codeLen,this.codeSize=codeSize-codeLen,this.bytesPos=bytesPos,codeVal},constructor.prototype.generateHuffmanTable=function(lengths){for(var n=lengths.length,maxLen=0,i=0;i<n;++i)lengths[i]>maxLen&&(maxLen=lengths[i]);for(var size=1<<maxLen,codes=new Uint32Array(size),len=1,code=0,skip=2;len<=maxLen;++len,code<<=1,skip<<=1)for(var val=0;val<n;++val)if(lengths[val]==len){for(var code2=0,t=code,i=0;i<len;++i)code2=code2<<1|t&1,t>>=1;for(var i=code2;i<size;i+=skip)codes[i]=len<<16|val;++code}return[codes,maxLen]},constructor.prototype.readBlock=function(){function repeat(stream,array,len2,offset,what){for(var repeat2=stream.getBits(len2)+offset;repeat2-- >0;)array[i++]=what}var hdr=this.getBits(3);if(hdr&1&&(this.eof=!0),hdr>>=1,hdr==0){var bytes=this.bytes,bytesPos=this.bytesPos,b;typeof(b=bytes[bytesPos++])=="undefined"&&error("Bad block header in flate stream");var blockLen=b;typeof(b=bytes[bytesPos++])=="undefined"&&error("Bad block header in flate stream"),blockLen|=b<<8,typeof(b=bytes[bytesPos++])=="undefined"&&error("Bad block header in flate stream");var check=b;typeof(b=bytes[bytesPos++])=="undefined"&&error("Bad block header in flate stream"),check|=b<<8,check!=(~blockLen&65535)&&error("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var bufferLength=this.bufferLength,buffer=this.ensureBuffer(bufferLength+blockLen),end=bufferLength+blockLen;this.bufferLength=end;for(var n=bufferLength;n<end;++n){if(typeof(b=bytes[bytesPos++])=="undefined"){this.eof=!0;break}buffer[n]=b}this.bytesPos=bytesPos;return}var litCodeTable,distCodeTable;
156if(hdr==1)litCodeTable=fixedLitCodeTab,distCodeTable=fixedDistCodeTab;else if(hdr==2){for(var numLitCodes=this.getBits(5)+257,numDistCodes=this.getBits(5)+1,numCodeLenCodes=this.getBits(4)+4,codeLenCodeLengths=Array(codeLenCodeMap.length),i=0;i<numCodeLenCodes;)codeLenCodeLengths[codeLenCodeMap[i++]]=this.getBits(3);for(var codeLenCodeTab=this.generateHuffmanTable(codeLenCodeLengths),len=0,i=0,codes=numLitCodes+numDistCodes,codeLengths=new Array(codes);i<codes;){var code=this.getCode(codeLenCodeTab);code==16?repeat(this,codeLengths,2,3,len):code==17?repeat(this,codeLengths,3,3,len=0):code==18?repeat(this,codeLengths,7,11,len=0):codeLengths[i++]=len=code}litCodeTable=this.generateHuffmanTable(codeLengths.slice(0,numLitCodes)),distCodeTable=this.generateHuffmanTable(codeLengths.slice(numLitCodes,codes))}else error("Unknown block type in flate stream");for(var buffer=this.buffer,limit=buffer?buffer.length:0,pos=this.bufferLength;;){var code1=this.getCode(litCodeTable);if(code1<256){pos+1>=limit&&(buffer=this.ensureBuffer(pos+1),limit=buffer.length),buffer[pos++]=code1;continue}if(code1==256){this.bufferLength=pos;return}code1-=257,code1=lengthDecode[code1];var code2=code1>>16;code2>0&&(code2=this.getBits(code2));var len=(code1&65535)+code2;code1=this.getCode(distCodeTable),code1=distDecode[code1],code2=code1>>16,code2>0&&(code2=this.getBits(code2));var dist=(code1&65535)+code2;pos+len>=limit&&(buffer=this.ensureBuffer(pos+len),limit=buffer.length);for(var k=0;k<len;++k,++pos)buffer[pos]=buffer[pos-dist]}},constructor})();window.tmp=FlateStream});try{module.exports=jsPDF}catch(e){}
157//# sourceMappingURL=/cdn/shop/t/3/assets/jspdf.debug.js.map?v=91771614706898362191580277035

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.