171 lines
400 KiB
Java
171 lines
400 KiB
Java
|
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/index.es-Dv2Hmdq3.js","js/antd-vue-vendor-BPnV8VqP.js","js/vue-vendor-C7Zq48Yl.js","js/stackblur-es-AyqGX0Lm.js"])))=>i.map(i=>d[i]);
|
|||
|
|
var Mu=Object.defineProperty;var Uu=(t,n,e)=>n in t?Mu(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e;var Ae=(t,n,e)=>Uu(t,typeof n!="symbol"?n+"":n,e);import{_ as il}from"./index-BI6CMai0.js";import{cj as Pe}from"./antd-vue-vendor-BPnV8VqP.js";import{z as Il}from"./browser-B0xVgIeL.js";import"./vue-vendor-C7Zq48Yl.js";import"./vxe-table-vendor-B88kchpX.js";function qu(t){if(Array.isArray(t))return t}function zu(t,n){var e=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var i,a,o,c,l=[],f=!0,d=!1;try{if(o=(e=e.call(t)).next,n===0){if(Object(e)!==e)return;f=!1}else for(;!(f=(i=o.call(e)).done)&&(l.push(i.value),l.length!==n);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(d)throw a}}return l}}function Rh(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,i=Array(n);e<n;e++)i[e]=t[e];return i}function Hu(t,n){if(t){if(typeof t=="string")return Rh(t,n);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Rh(t,n):void 0}}function Wu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jh(t,n){return qu(t)||zu(t,n)||Hu(t,n)||Wu()}function Bh(t,n="utf8"){return new TextDecoder(n).decode(t)}const Gu=new TextEncoder;function Vu(t){return Gu.encode(t)}const Zu=1024*8,$u=(()=>{const t=new Uint8Array(4),n=new Uint32Array(t.buffer);return!((n[0]=1)&t[0])})(),rl={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class Wl{constructor(n=Zu,e={}){Ae(this,"buffer");Ae(this,"byteLength");Ae(this,"byteOffset");Ae(this,"length");Ae(this,"offset");Ae(this,"lastWrittenByte");Ae(this,"littleEndian");Ae(this,"_data");Ae(this,"_mark");Ae(this,"_marks");let i=!1;typeof n=="number"?n=new ArrayBuffer(n):(i=!0,this.lastWrittenByte=n.byteLength);const a=e.offset?e.offset>>>0:0,o=n.byteLength-a;let c=a;(ArrayBuffer.isView(n)||n instanceof Wl)&&(n.byteLength!==n.buffer.byteLength&&(c=n.byteOffset+a),n=n.buffer),i?this.lastWrittenByte=o:this.lastWrittenByte=0,this.buffer=n,this.length=o,this.byteLength=o,this.byteOffset=c,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,c,o),this._mark=0,this._marks=[]}available(n=1){return this.offset+n<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(n=1){return this.offset+=n,this}back(n=1){return this.offset-=n,this}seek(n){return this.offset=n,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const n=this._marks.pop();if(n===void 0)throw new Error("Mark stack empty");return this.seek(n),this}rewind(){return this.offset=0,this}ensureAvailable(n=1){if(!this.available(n)){const i=(this.offset+n)*2,a=new Uint8Array(i);a.set(new Uint8Array(this.buffer)),this.buffer=a.buffer,this.length=i,this.byteLength=i,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(n=1){return this.readArray(n,"uint8")}readArray(n,e){const i=rl[e].BYTES_PER_ELEMENT*n,a=this.byteOffset+this.offset,o=this.buffer.slice(a,a+i);if(this.littleEndian===$u&&e!=="uint8"&&e!=="int8"){const l=new Uint8Array(this.buffer.slice(a,a+i));l.reverse();const f=new rl[e](l.buffer);return this.offset+=i,f.reverse(),f}const c=new rl[e](o);return this.offset+=i,c}readInt16(){const n=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,n}readUint16(){const n=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,n}readInt32(){const n=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,n}readUint32(){const n=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat32(){const n=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat64(){const n=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,n}readBigInt64(){const n=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,n}readBigUint64(){const n=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,n}readChar(){return String.fromCharCode(this.readInt8())}readChars(n=1){let e="";for(let i=0;i<n;i++)e+=this.readChar();return e}readUtf8(n=1){return Bh(this.readBytes(n))}decodeText(n=1,e="utf8"){return Bh(this.readBytes(n),e)}writeBoolean(n){return this.writeUint8(n?255:0),this}writeInt8(n){return this.ensureAvailable(1),this._data.setInt8(this.offset++,n),this._updateLastWrittenByte(),this}writeUint8(n){return this.ensureAvailable(1),this._data.setUint8(this.offset++,n),this._updateLastWrittenByte(),this}writeByte(n){retu
|
|||
|
|
* A class to parse color values
|
|||
|
|
* @author Stoyan Stefanov <sstoo@gmail.com>
|
|||
|
|
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
|
|||
|
|
* @license Use it if you like it
|
|||
|
|
*/function Hf(t){var n;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],i=0;i<e.length;i++){var a=e[i].re,o=e[i].process,c=a.exec(t);c&&(n=o(c),this.r=n[0],this.g=n[1],this.b=n[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 l=this.r.toString(16),f=this.g.toString(16),d=this.b.toString(16);return l.length==1&&(l="0"+l),f.length==1&&(f="0"+f),d.length==1&&(d="0"+d),"#"+l+f+d}}var ls=Yt.atob.bind(Yt),Fc=Yt.btoa.bind(Yt);/**
|
|||
|
|
* @license
|
|||
|
|
* Joseph Myers does not specify a particular license for his work.
|
|||
|
|
*
|
|||
|
|
* Author: Joseph Myers
|
|||
|
|
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
|
|||
|
|
*
|
|||
|
|
* Modified by: Owen Leong
|
|||
|
|
*/function Nl(t,n){var e=t[0],i=t[1],a=t[2],o=t[3];e=wn(e,i,a,o,n[0],7,-680876936),o=wn(o,e,i,a,n[1],12,-389564586),a=wn(a,o,e,i,n[2],17,606105819),i=wn(i,a,o,e,n[3],22,-1044525330),e=wn(e,i,a,o,n[4],7,-176418897),o=wn(o,e,i,a,n[5],12,1200080426),a=wn(a,o,e,i,n[6],17,-1473231341),i=wn(i,a,o,e,n[7],22,-45705983),e=wn(e,i,a,o,n[8],7,1770035416),o=wn(o,e,i,a,n[9],12,-1958414417),a=wn(a,o,e,i,n[10],17,-42063),i=wn(i,a,o,e,n[11],22,-1990404162),e=wn(e,i,a,o,n[12],7,1804603682),o=wn(o,e,i,a,n[13],12,-40341101),a=wn(a,o,e,i,n[14],17,-1502002290),e=_n(e,i=wn(i,a,o,e,n[15],22,1236535329),a,o,n[1],5,-165796510),o=_n(o,e,i,a,n[6],9,-1069501632),a=_n(a,o,e,i,n[11],14,643717713),i=_n(i,a,o,e,n[0],20,-373897302),e=_n(e,i,a,o,n[5],5,-701558691),o=_n(o,e,i,a,n[10],9,38016083),a=_n(a,o,e,i,n[15],14,-660478335),i=_n(i,a,o,e,n[4],20,-405537848),e=_n(e,i,a,o,n[9],5,568446438),o=_n(o,e,i,a,n[14],9,-1019803690),a=_n(a,o,e,i,n[3],14,-187363961),i=_n(i,a,o,e,n[8],20,1163531501),e=_n(e,i,a,o,n[13],5,-1444681467),o=_n(o,e,i,a,n[2],9,-51403784),a=_n(a,o,e,i,n[7],14,1735328473),e=yn(e,i=_n(i,a,o,e,n[12],20,-1926607734),a,o,n[5],4,-378558),o=yn(o,e,i,a,n[8],11,-2022574463),a=yn(a,o,e,i,n[11],16,1839030562),i=yn(i,a,o,e,n[14],23,-35309556),e=yn(e,i,a,o,n[1],4,-1530992060),o=yn(o,e,i,a,n[4],11,1272893353),a=yn(a,o,e,i,n[7],16,-155497632),i=yn(i,a,o,e,n[10],23,-1094730640),e=yn(e,i,a,o,n[13],4,681279174),o=yn(o,e,i,a,n[0],11,-358537222),a=yn(a,o,e,i,n[3],16,-722521979),i=yn(i,a,o,e,n[6],23,76029189),e=yn(e,i,a,o,n[9],4,-640364487),o=yn(o,e,i,a,n[12],11,-421815835),a=yn(a,o,e,i,n[15],16,530742520),e=xn(e,i=yn(i,a,o,e,n[2],23,-995338651),a,o,n[0],6,-198630844),o=xn(o,e,i,a,n[7],10,1126891415),a=xn(a,o,e,i,n[14],15,-1416354905),i=xn(i,a,o,e,n[5],21,-57434055),e=xn(e,i,a,o,n[12],6,1700485571),o=xn(o,e,i,a,n[3],10,-1894986606),a=xn(a,o,e,i,n[10],15,-1051523),i=xn(i,a,o,e,n[1],21,-2054922799),e=xn(e,i,a,o,n[8],6,1873313359),o=xn(o,e,i,a,n[15],10,-30611744),a=xn(a,o,e,i,n[6],15,-1560198380),i=xn(i,a,o,e,n[13],21,1309151649),e=xn(e,i,a,o,n[4],6,-145523070),o=xn(o,e,i,a,n[11],10,-1120210379),a=xn(a,o,e,i,n[2],15,718787259),i=xn(i,a,o,e,n[9],21,-343485551),t[0]=sr(e,t[0]),t[1]=sr(i,t[1]),t[2]=sr(a,t[2]),t[3]=sr(o,t[3])}function ys(t,n,e,i,a,o){return n=sr(sr(n,t),sr(i,o)),sr(n<<a|n>>>32-a,e)}function wn(t,n,e,i,a,o,c){return ys(n&e|~n&i,t,n,a,o,c)}function _n(t,n,e,i,a,o,c){return ys(n&i|e&~i,t,n,a,o,c)}function yn(t,n,e,i,a,o,c){return ys(n^e^i,t,n,a,o,c)}function xn(t,n,e,i,a,o,c){return ys(e^(n|~i),t,n,a,o,c)}function Wf(t){var n,e=t.length,i=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=t.length;n+=64)Nl(i,i5(t.substring(n-64,n)));t=t.substring(n-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n<t.length;n++)a[n>>2]|=t.charCodeAt(n)<<(n%4<<3);if(a[n>>2]|=128<<(n%4<<3),n>55)for(Nl(i,a),n=0;n<16;n++)a[n]=0;return a[14]=8*e,Nl(i,a),i}function i5(t){var n,e=[];for(n=0;n<64;n+=4)e[n>>2]=t.charCodeAt(n)+(t.charCodeAt(n+1)<<8)+(t.charCodeAt(n+2)<<16)+(t.charCodeAt(n+3)<<24);return e}var Oc="0123456789abcdef".split("");function r5(t){for(var n="",e=0;e<4;e++)n+=Oc[t>>8*e+4&15]+Oc[t>>8*e&15];return n}function a5(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function Ul(t){return Wf(t).map(a5).join("")}var o5=(function(t){for(var n=0;n<t.length;n++)t[n]=r5(t[n]);return t.join("")})(Wf("hello"))!="5d41402abc4b2a76b9719d911017c592";function sr(t,n){if(o5){var e=(65535&t)+(65535&n);return(t>>16)+(n>>16)+(e>>16)<<16|65535&e}return t+n&4294967295}/**
|
|||
|
|
* @license
|
|||
|
|
* FPDF is released under a permissive license: there is no usage restriction.
|
|||
|
|
* You may embed it freely in your application (commercial or not), with or
|
|||
|
|
* without modifications.
|
|||
|
|
*
|
|||
|
|
* Reference: http://www.fpdf.org/en/script/script37.php
|
|||
|
|
*/function ql(t,n){var e,i,a,o;if(t!==e){for(var c=(a=t,o=1+(256/t.length|0),new Array(o+1).join(a)),l=[],f=0;f<256;f++)l[f]=f;var d=0;for(f=0;f<256;f++){var m=l[f];d=(d+m+c.charCodeAt(f))%256,l[f]=l[d],l[d]=m}e=t,i=l}else l=i;var A=n.length,L=0,p=0,T="";for(f=0;f<A;f++)p=(p+(m=l[L=(L+1)%256]))%256,l[L]=l[p],l[p]=m,c=l[(l[L]+l[p])%256],T+=String.fromCharCode(n.charCodeAt(f)^c);return T}/**
|
|||
|
|
* @license
|
|||
|
|
* Licensed under the MIT License.
|
|||
|
|
* http://opensource.org/licenses/mit-license
|
|||
|
|
* Author: Owen Leong (@owenl131)
|
|||
|
|
* Date: 15 Oct 2020
|
|||
|
|
* References:
|
|||
|
|
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
|
|||
|
|
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
|
|||
|
|
* http://www.fpdf.org/en/script/script37.php
|
|||
|
|
*/var Tc={print:4,modify:8,copy:16,"annot-forms":32};function ga(t,n,e,i){this.v=1,this.r=2;var a=192;t.forEach(function(l){if(Tc.perm!==void 0)throw new Error("Invalid permission: "+l);a+=Tc[l]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var o=(n+this.padding).substr(0,32),c=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,c),this.P=-(1+(255^a)),this.encryptionKey=Ul(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=ql(this.encryptionKey,this.padding)}function ma(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var n="",e=t.length,i=0;i<e;i++){var a=t.charCodeAt(i);n+=a<33||a===35||a===37||a===40||a===41||a===47||a===60||a===62||a===91||a===93||a===123||a===125||a>126?"#"+("0"+a.toString(16)).slice(-2):t[i]}return n}function Rc(t){if(Pe(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};this.subscribe=function(e,i,a){if(a=a||!1,typeof e!="string"||typeof i!="function"||typeof a!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");n.hasOwnProperty(e)||(n[e]={});var o=Math.random().toString(35);return n[e][o]=[i,!!a],o},this.unsubscribe=function(e){for(var i in n)if(n[i][e])return delete n[i][e],Object.keys(n[i]).length===0&&delete n[i],!0;return!1},this.publish=function(e){if(n.hasOwnProperty(e)){var i=Array.prototype.slice.call(arguments,1),a=[];for(var o in n[e]){var c=n[e][o];try{c[0].apply(t,i)}catch(l){Yt.console&&ke.error("jsPDF PubSub Error",l.message,l)}c[1]&&a.push(o)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function ms(t){if(!(this instanceof ms))return new ms(t);var n="opacity,stroke-opacity".split(",");for(var e in t)t.hasOwnProperty(e)&&n.indexOf(e)>=0&&(this[e]=t[e]);this.id="",this.objectNumber=-1}function Gf(t,n){this.gState=t,this.matrix=n,this.id="",this.objectNumber=-1}function Fr(t,n,e,i,a){if(!(this instanceof Fr))return new Fr(t,n,e,i,a);this.type=t==="axial"?2:3,this.coords=n,this.colors=e,Gf.call(this,i,a)}function ba(t,n,e,i,a){if(!(this instanceof ba))return new ba(t,n,e,i,a);this.boundingBox=t,this.xStep=n,this.yStep=e,this.stream="",this.cloneIndex=0,Gf.call(this,i,a)}function Dt(t){var n,e=typeof arguments[0]=="string"?arguments[0]:"p",i=arguments[1],a=arguments[2],o=arguments[3],c=[],l=1,f=16,d="S",m=null;Pe(t=t||{})==="object"&&(e=t.orientation,i=t.unit||i,a=t.format||a,o=t.compress||t.compressPdf||o,(m=t.encryption||null)!==null&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),l=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(n=t.precision),t.floatPrecision!==void 0&&(f=t.floatPrecision),d=t.defaultPathOperation||"S"),c=t.filters||(o===!0?["FlateEncode"]:c),i=i||"mm",e=(""+(e||"P")).toLowerCase();var A=t.putOnlyUsedFonts||!1,L={},p={internal:{},__private__:{}};p.__private__.PubSub=Rc;var T="1.3",O=p.__private__.getPdfVersion=function(){return T};p.__private__.setPdfVersion=function(h){T=h};var j={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]};p.__private__.getPageFormats=function(){return j};var k=p.__private__.getPageFormat=function(h){return j[h]};a=a||"a4";var Z="compat",$="advanced",M=Z;function l
|
|||
|
|
`),Wn(h,b),_e.publish("endTilingPattern",b),hi.pop().restore()};var Gn,Ue=p.__private__.newObject=function(){var h=an();return ln(h,!0),h},an=p.__private__.newObjectDeferred=function(){return Y++,Q[Y]=function(){return at},Y},ln=function(h,b){return b=typeof b=="boolean"&&b,Q[h]=at,b&&P(h+" 0 obj"),h},dr=p.__private__.newAdditionalObject=function(){var h={objId:an(),content:""};return dt.push(h),h},Hi=an(),Qn=an(),ci=p.__private__.decodeColorString=function(h){var b=h.split(" ");if(b.length!==2||b[1]!=="g"&&b[1]!=="G")b.length!==5||b[4]!=="k"&&b[4]!=="K"||(b=[(1-b[0])*(1-b[3]),(1-b[1])*(1-b[3]),(1-b[2])*(1-b[3]),"r"]);else{var E=parseFloat(b[0]);b=[E,E,E,"r"]}for(var D="#",V=0;V<3;V++)D+=("0"+Math.floor(255*parseFloat(b[V])).toString(16)).slice(-2);return D},ti=p.__private__.encodeColorString=function(h){var b;typeof h=="string"&&(h={ch1:h});var E=h.ch1,D=h.ch2,V=h.ch3,ot=h.ch4,gt=h.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof E=="string"&&E.charAt(0)!=="#"){var Ft=new Hf(E);if(Ft.ok)E=Ft.toHex();else if(!/^\d*\.?\d*$/.test(E))throw new Error('Invalid color "'+E+'" passed to jsPDF.encodeColorString.')}if(typeof E=="string"&&/^#[0-9A-Fa-f]{3}$/.test(E)&&(E="#"+E[1]+E[1]+E[2]+E[2]+E[3]+E[3]),typeof E=="string"&&/^#[0-9A-Fa-f]{6}$/.test(E)){var Ct=parseInt(E.substr(1),16);E=Ct>>16&255,D=Ct>>8&255,V=255&Ct}if(D===void 0||ot===void 0&&E===D&&D===V)b=typeof E=="string"?E+" "+gt[0]:h.precision===2?N(E/255)+" "+gt[0]:F(E/255)+" "+gt[0];else if(ot===void 0||Pe(ot)==="object"){if(ot&&!isNaN(ot.a)&&ot.a===0)return["1.","1.","1.",gt[1]].join(" ");b=typeof E=="string"?[E,D,V,gt[1]].join(" "):h.precision===2?[N(E/255),N(D/255),N(V/255),gt[1]].join(" "):[F(E/255),F(D/255),F(V/255),gt[1]].join(" ")}else b=typeof E=="string"?[E,D,V,ot,gt[2]].join(" "):h.precision===2?[N(E),N(D),N(V),N(ot),gt[2]].join(" "):[F(E),F(D),F(V),F(ot),gt[2]].join(" ");return b},ei=p.__private__.getFilters=function(){return c},Vn=p.__private__.putStream=function(h){var b=(h=h||{}).data||"",E=h.filters||ei(),D=h.alreadyAppliedFilters||[],V=h.addLength1||!1,ot=b.length,gt=h.objectId,Ft=function(Oe){return Oe};if(m!==null&>===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");m!==null&&(Ft=hn.encryptor(gt,0));var Ct={};E===!0&&(E=["FlateEncode"]);var Kt=h.additionalKeyValues||[],te=(Ct=Dt.API.processDataByFilters!==void 0?Dt.API.processDataByFilters(b,E):{data:b,reverseChain:[]}).reverseChain+(Array.isArray(D)?D.join(" "):D.toString());if(Ct.data.length!==0&&(Kt.push({key:"Length",value:Ct.data.length}),V===!0&&Kt.push({key:"Length1",value:ot})),te.length!=0)if(te.split("/").length-1==1)Kt.push({key:"Filter",value:te});else{Kt.push({key:"Filter",value:"["+te+"]"});for(var pe=0;pe<Kt.length;pe+=1)if(Kt[pe].key==="DecodeParms"){for(var Je=[],Le=0;Le<Ct.reverseChain.split("/").length-1;Le+=1)Je.push("null");Je.push(Kt[pe].value),Kt[pe].value="["+Je.join(" ")+"]"}}P("<<");for(var Ne=0;Ne<Kt.length;Ne++)P("/"+Kt[Ne].key+" "+Kt[Ne].value);P(">>"),Ct.data.length!==0&&(P("stream"),P(Ft(Ct.data)),P("endstream"))},pr=p.__private__.putPage=function(h){var b=h.number,E=h.data,D=h.objId,V=h.contentsObjId;ln(D,!0),P("<</Type /Page"),P("/Parent "+h.rootDictionaryObjId+" 0 R"),P("/Resources "+h.resourceDictionaryObjId+" 0 R"),P("/MediaBox ["+parseFloat(tt(h.mediaBox.bottomLeftX))+" "+parseFloat(tt(h.mediaBox.bottomLeftY))+" "+tt(h.mediaBox.topRightX)+" "+tt(h.mediaBox.topRightY)+"]"),h.cropBox!==null&&P("/CropBox ["+tt(h.cropBox.bottomLeftX)+" "+tt(h.cropBox.bottomLeftY)+" "+tt(h.cropBox.topRightX)+" "+tt(h.cropBox.topRightY)+"]"),h.bleedBox!==null&&P("/BleedBox ["+tt(h.bleedBox.bottomLeftX)+" "+tt(h.bleedBox.bottomLeftY)+" "+tt(h.bleedBox.topRightX)+" "+tt(h.bleedBox.topRightY)+"]"),h.trimBox!==null&&P("/TrimBox ["+tt(h.trimBox.bottomLeftX)+" "+tt(h.trimBox.bottomLeftY)+" "+tt(h.trimBox.topRightX)+" "+tt(h.trimBox.topRightY)+"]"),h.artBox!==null&&P("/ArtBox ["+tt(h.artBox.bottomLeftX)+" "+tt(h.artBox.bottomLeftY)+" "+tt(h.artBox.topRightX)+" "+tt(h.artBox.topRightY)+"]"),typeof h.userUnit=="number"&&h.userUnit!==1&&P("/UserUnit "
|
|||
|
|
`);return M===$&&(ot+=`
|
|||
|
|
Q`),ln(V,!0),Vn({data:ot,filters:ei(),objectId:V}),P("endobj"),D},fi=p.__private__.putPages=function(){var h,b,E=[];for(h=1;h<=le;h++)Gt[h].objId=an(),Gt[h].contentsObjId=an();for(h=1;h<=le;h++)E.push(pr({number:h,data:xt[h],objId:Gt[h].objId,contentsObjId:Gt[h].contentsObjId,mediaBox:Gt[h].mediaBox,cropBox:Gt[h].cropBox,bleedBox:Gt[h].bleedBox,trimBox:Gt[h].trimBox,artBox:Gt[h].artBox,userUnit:Gt[h].userUnit,rootDictionaryObjId:Hi,resourceDictionaryObjId:Qn}));ln(Hi,!0),P("<</Type /Pages");var D="/Kids [";for(b=0;b<le;b++)D+=E[b]+" 0 R ";P(D+"]"),P("/Count "+le),P(">>"),P("endobj"),_e.publish("postPutPages")},gr=function(h){_e.publish("putFont",{font:h,out:P,newObject:Ue,putStream:Vn}),h.isAlreadyPutted!==!0&&(h.objectNumber=Ue(),P("<<"),P("/Type /Font"),P("/BaseFont /"+ma(h.postScriptName)),P("/Subtype /Type1"),typeof h.encoding=="string"&&P("/Encoding /"+h.encoding),P("/FirstChar 32"),P("/LastChar 255"),P(">>"),P("endobj"))},Hr=function(h){h.objectNumber=Ue();var b=[];b.push({key:"Type",value:"/XObject"}),b.push({key:"Subtype",value:"/Form"}),b.push({key:"BBox",value:"["+[tt(h.x),tt(h.y),tt(h.x+h.width),tt(h.y+h.height)].join(" ")+"]"}),b.push({key:"Matrix",value:"["+h.matrix.toString()+"]"});var E=h.pages[1].join(`
|
|||
|
|
`);Vn({data:E,additionalKeyValues:b,objectId:h.objectNumber}),P("endobj")},Wr=function(h,b){b||(b=21);var E=Ue(),D=(function(gt,Ft){var Ct,Kt=[],te=1/(Ft-1);for(Ct=0;Ct<1;Ct+=te)Kt.push(Ct);if(Kt.push(1),gt[0].offset!=0){var pe={offset:0,color:gt[0].color};gt.unshift(pe)}if(gt[gt.length-1].offset!=1){var Je={offset:1,color:gt[gt.length-1].color};gt.push(Je)}for(var Le="",Ne=0,Oe=0;Oe<Kt.length;Oe++){for(Ct=Kt[Oe];Ct>gt[Ne+1].offset;)Ne++;var De=gt[Ne].offset,Me=(Ct-De)/(gt[Ne+1].offset-De),gn=gt[Ne].color,Ti=gt[Ne+1].color;Le+=G(Math.round((1-Me)*gn[0]+Me*Ti[0]).toString(16))+G(Math.round((1-Me)*gn[1]+Me*Ti[1]).toString(16))+G(Math.round((1-Me)*gn[2]+Me*Ti[2]).toString(16))}return Le.trim()})(h.colors,b),V=[];V.push({key:"FunctionType",value:"0"}),V.push({key:"Domain",value:"[0.0 1.0]"}),V.push({key:"Size",value:"["+b+"]"}),V.push({key:"BitsPerSample",value:"8"}),V.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),V.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Vn({data:D,additionalKeyValues:V,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:E}),P("endobj"),h.objectNumber=Ue(),P("<< /ShadingType "+h.type),P("/ColorSpace /DeviceRGB");var ot="/Coords ["+tt(parseFloat(h.coords[0]))+" "+tt(parseFloat(h.coords[1]))+" ";h.type===2?ot+=tt(parseFloat(h.coords[2]))+" "+tt(parseFloat(h.coords[3])):ot+=tt(parseFloat(h.coords[2]))+" "+tt(parseFloat(h.coords[3]))+" "+tt(parseFloat(h.coords[4]))+" "+tt(parseFloat(h.coords[5])),P(ot+="]"),h.matrix&&P("/Matrix ["+h.matrix.toString()+"]"),P("/Function "+E+" 0 R"),P("/Extend [true true]"),P(">>"),P("endobj")},Gr=function(h,b){var E=an(),D=Ue();b.push({resourcesOid:E,objectOid:D}),h.objectNumber=D;var V=[];V.push({key:"Type",value:"/Pattern"}),V.push({key:"PatternType",value:"1"}),V.push({key:"PaintType",value:"1"}),V.push({key:"TilingType",value:"1"}),V.push({key:"BBox",value:"["+h.boundingBox.map(tt).join(" ")+"]"}),V.push({key:"XStep",value:tt(h.xStep)}),V.push({key:"YStep",value:tt(h.yStep)}),V.push({key:"Resources",value:E+" 0 R"}),h.matrix&&V.push({key:"Matrix",value:"["+h.matrix.toString()+"]"}),Vn({data:h.stream,additionalKeyValues:V,objectId:h.objectNumber}),P("endobj")},xs=function(h){for(var b in h.objectNumber=Ue(),P("<<"),h)switch(b){case"opacity":P("/ca "+N(h[b]));break;case"stroke-opacity":P("/CA "+N(h[b]))}P(">>"),P("endobj")},Ea=function(h){ln(h.resourcesOid,!0),P("<<"),P("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var b in P("/Font <<"),oe)oe.hasOwnProperty(b)&&(A===!1||A===!0&&L.hasOwnProperty(b))&&P("/"+b+" "+oe[b].objectNumber+" 0 R");P(">>")})(),(function(){if(Object.keys(Ut).length>0){for(var b in P("/Shading <<"),Ut)Ut.hasOwnProperty(b)&&Ut[b]instanceof Fr&&Ut[b].objectNumber>=0&&P("/"+b+" "+Ut[b].objectNumber+" 0 R");_e.publish("putShadingPatternDict"),P(">>")}})(),(function(b){if(Object.keys(Ut).length>0){for(var E in P("/Pattern <<"),Ut)Ut.hasOwnProperty(E)&&Ut[E]instanceof p.TilingPattern&&Ut[E].objectNumber>=0&&Ut[E].objectNumber<b&&P("/"+E+" "+Ut[E].objectNumber+" 0 R");_e.publish("putTilingPatternDict"),P(">>")}})(h.objectOid),(function(){if(Object.keys(Zt).length>0){var b;for(b in P("/ExtGState <<"),Zt)Zt.hasOwnProperty(b)&&Zt[b].objectNumber>=0&&P("/"+b+" "+Zt[b].objectNumber+" 0 R");_e.publish("putGStateDict"),P(">>")}})(),(function(){for(var b in P("/XObject <<"),pn)pn.hasOwnProperty(b)&&pn[b].objectNumber>=0&&P("/"+b+" "+pn[b].objectNumber+" 0 R");_e.publish("putXobjectDict"),P(">>")})(),P(">>"),P("endobj")},bo=function(h){se[h.fontName]=se[h.fontName]||{},se[h.fontName][h.fontStyle]=h.id},vo=function(h,b,E,D,V){var ot={id:"F"+(Object.keys(oe).length+1).toString(10),postScriptName:h,fontName:b,fontStyle:E,encoding:D,isStandardFont:V||!1,metadata:{}};return _e.publish("addFont",{font:ot,instance:this}),oe[ot.id]=ot,bo(ot),ot.id},Zn=p.__private__.pdfEscape=p.pdfEscape=function(h,b){return(function(E,D){var V,ot,gt,Ft,Ct,Kt,te,pe,Je;if(gt=(D=D||{}).sourceEncoding||"Unicode",Ct=D.outputEncoding,(D.autoencode||Ct)&&oe[Rt].metadata&&oe[Rt].metadata[gt]&&oe[Rt].metadata[gt].encoding&&(Ft=oe[Rt].metadata[gt].encoding,!Ct&&oe[
|
|||
|
|
`)},Zr=p.__private__.getBlob=function(h){return new Blob([ae(h)],{type:"application/pdf"})},Fa=function(h){for(;h.firstChild;)h.removeChild(h.firstChild)},Tn=function(h){var b,E=h.document,D=E.documentElement,V=E.head,ot=E.body;return V||(V=E.createElement("head"),D.appendChild(V)),ot||(ot=E.createElement("body"),D.appendChild(ot)),Fa(V),Fa(ot),(b=E.createElement("style")).appendChild(E.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),V.appendChild(b),{document:E,body:ot}},$r=p.output=p.__private__.output=(Gn=function(h,b){switch(typeof(b=b||{})=="string"?b={filename:b}:b.filename=b.filename||"generated.pdf",h){case void 0:return di();case"save":p.save(b.filename);break;case"arraybuffer":return ae(di());case"blob":return Zr(di());case"bloburi":case"bloburl":if(Yt.URL!==void 0&&typeof Yt.URL.createObjectURL=="function")return Yt.URL&&Yt.URL.createObjectURL(Zr(di()))||void 0;ke.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var E="",D=di();try{E=Fc(D)}catch(gn){E=Fc(unescape(encodeURIComponent(D)))}return"data:application/pdf;filename="+encodeURIComponent(b.filename)+";base64,"+E;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Yt)==="[object Window]"){var V="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ot=!b.pdfObjectUrl;ot||(V=b.pdfObjectUrl);var gt=Yt.open();if(gt!==null){var Ft=Tn(gt),Ct=Ft.document.createElement("script"),Kt=this;Ct.src=V,ot&&(Ct.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",Ct.crossOrigin="anonymous"),Ct.onload=function(){gt.PDFObject.embed(Kt.output("dataurlstring"),b)},Ft.body.appendChild(Ct)}return gt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Yt)==="[object Window]"){var te=b.pdfJsUrl||"examples/PDF.js/web/viewer.html",pe=Yt.open();if(pe!==null){var Je=Tn(pe),Le=Je.document.createElement("iframe"),Ne=te.indexOf("?")===-1?"?":"&";Kt=this,Le.id="pdfViewer",Le.width="500px",Le.height="400px",Le.src=te+Ne+"file=&downloadName="+encodeURIComponent(b.filename),Le.onload=function(){pe.document.title=b.filename,Le.contentWindow.PDFViewerApplication.open(Kt.output("bloburl"))},Je.body.appendChild(Le)}return pe}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Yt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Oe=Yt.open();if(Oe!==null){var De=Tn(Oe),Me=De.document.createElement("iframe");Me.src=this.output("datauristring",b),De.body.appendChild(Me),Oe.document.title=b.filename}if(Oe||typeof safari=="undefined")return Oe;break;case"datauri":case"dataurl":return Yt.document.location.href=this.output("datauristring",b);default:return null}},Gn.foo=function(){try{return Gn.apply(this,arguments)}catch(E){var h=E.stack||"";~h.indexOf(" at ")&&(h=h.split(" at ")[1]);var b="Error in function "+h.split(`
|
|||
|
|
`)[0].split("<")[0]+": "+E.message;if(!Yt.console)throw new Error(b);Yt.console.error(b,E),Yt.alert&&alert(b)}},Gn.foo.bar=Gn,Gn.foo),Ei=function(h){return Array.isArray(ur)===!0&&ur.indexOf(h)>-1};switch(i){case"pt":ne=1;break;case"mm":ne=72/25.4;break;case"cm":ne=72/2.54;break;case"in":ne=72;break;case"px":ne=Ei("px_scaling")==1?.75:96/72;break;case"pc":case"em":ne=12;break;case"ex":ne=6;break;default:if(typeof i!="number")throw new Error("Invalid unit: "+i);ne=i}var hn=null;yt(),nt();var No=p.__private__.getPageInfo=p.getPageInfo=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Gt[h].objId,pageNumber:h,pageContext:Gt[h]}},Ns=p.__private__.getPageInfoByObjId=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var b in Gt)if(Gt[b].objId===h)break;return No(b)},Ls=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Gt[R].objId,pageNumber:R,pageContext:Gt[R]}};p.addPage=function(){return wo.apply(this,arguments),this},p.setPage=function(){return _o.apply(this,arguments),zt.call(this,xt[R]),this},p.insertPage=function(h){return this.addPage(),this.movePage(R,h),this},p.movePage=function(h,b){var E,D;if(h>b){E=xt[h],D=Gt[h];for(var V=h;V>b;V--)xt[V]=xt[V-1],Gt[V]=Gt[V-1];xt[b]=E,Gt[b]=D,this.setPage(b)}else if(h<b){E=xt[h],D=Gt[h];for(var ot=h;ot<b;ot++)xt[ot]=xt[ot+1],Gt[ot]=Gt[ot+1];xt[b]=E,Gt[b]=D,this.setPage(b)}return this},p.deletePage=function(){return Ca.apply(this,arguments),this},p.__private__.text=p.text=function(h,b,E,D,V){var ot,gt,Ft,Ct,Kt,te,pe,Je,Le,Ne=(D=D||{}).scope||this;if(typeof h=="number"&&typeof b=="number"&&(typeof E=="string"||Array.isArray(E))){var Oe=E;E=b,b=h,h=Oe}if(arguments[3]instanceof Vt==0?(Ft=arguments[4],Ct=arguments[5],Pe(pe=arguments[3])==="object"&&pe!==null||(typeof Ft=="string"&&(Ct=Ft,Ft=null),typeof pe=="string"&&(Ct=pe,pe=null),typeof pe=="number"&&(Ft=pe,pe=null),D={flags:pe,angle:Ft,align:Ct})):(z("The transform parameter of text() with a Matrix value"),Le=V),isNaN(b)||isNaN(E)||h==null)throw new Error("Invalid arguments passed to jsPDF.text");if(h.length===0)return Ne;var De,Me="",gn=typeof D.lineHeightFactor=="number"?D.lineHeightFactor:mr,Ti=Ne.internal.scaleFactor;function Ma(Ie){return Ie=Ie.split(" ").join(Array(D.TabLen||9).join(" ")),Zn(Ie,pe)}function wr(Ie){for(var Ce,Ge=Ie.concat(),tn=[],ji=Ge.length;ji--;)typeof(Ce=Ge.shift())=="string"?tn.push(Ce):Array.isArray(Ie)&&(Ce.length===1||Ce[1]===void 0&&Ce[2]===void 0)?tn.push(Ce[0]):tn.push([Ce[0],Ce[1],Ce[2]]);return tn}function _r(Ie,Ce){var Ge;if(typeof Ie=="string")Ge=Ce(Ie)[0];else if(Array.isArray(Ie)){for(var tn,ji,Ga=Ie.concat(),ha=[],To=Ga.length;To--;)typeof(tn=Ga.shift())=="string"?ha.push(Ce(tn)[0]):Array.isArray(tn)&&typeof tn[0]=="string"&&(ji=Ce(tn[0],tn[1],tn[2]),ha.push([ji[0],ji[1],ji[2]]));Ge=ha}return Ge}var Zi=!1,yr=!0;if(typeof h=="string")Zi=!0;else if(Array.isArray(h)){var ea=h.concat();gt=[];for(var na,mn=ea.length;mn--;)(typeof(na=ea.shift())!="string"||Array.isArray(na)&&typeof na[0]!="string")&&(yr=!1);Zi=yr}if(Zi===!1)throw new Error('Type of text must be string or Array. "'+h+'" is not recognized.');typeof h=="string"&&(h=h.match(/[\r?\n]/)?h.split(/\r\n|\r|\n/g):[h]);var xr=vt/Ne.internal.scaleFactor,Ar=xr*(gn-1);switch(D.baseline){case"bottom":E-=Ar;break;case"top":E+=xr-Ar;break;case"hanging":E+=xr-2*Ar;break;case"middle":E+=xr/2-Ar}if((te=D.maxWidth||0)>0&&(typeof h=="string"?h=Ne.splitTextToSize(h,te):Object.prototype.toString.call(h)==="[object Array]"&&(h=h.reduce(function(Ie,Ce){return Ie.concat(Ne.splitTextToSize(Ce,te))},[]))),ot={text:h,x:b,y:E,options:D,mutex:{pdfEscape:Zn,activeFontKey:Rt,fonts:oe,activeFontSize:vt}},_e.publish("preProcessText",ot),h=ot.text,Ft=(D=ot.options).angle,Le instanceof Vt==0&&Ft&&typeof Ft=="number"){Ft*=Math.PI/180,D.rotationDirection===0&&(Ft=-Ft),M===$&&(Ft=-Ft);var Ua=Math.cos(Ft),mi=Math.sin(Ft);Le=new Vt(Ua,mi,-mi,Ua,0,0)}else Ft&&Ft instanceof Vt&&(Le=Ft);M!==$||Le||(Le=Pi),(Kt=D.charSpace||Jr)!==void 0&&
|
|||
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(Je=D.horizontalScale)!==void 0&&(Me+=tt(100*Je)+` Tz
|
|||
|
|
`),D.lang;var An=-1,Fo=D.renderingMode!==void 0?D.renderingMode:D.stroke,ia=Ne.internal.getCurrentPageInfo().pageContext;switch(Fo){case 0:case!1:case"fill":An=0;break;case 1:case!0:case"stroke":An=1;break;case 2:case"fillThenStroke":An=2;break;case 3:case"invisible":An=3;break;case 4:case"fillAndAddForClipping":An=4;break;case 5:case"strokeAndAddPathForClipping":An=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":An=6;break;case 7:case"addToPathForClipping":An=7}var Oo=ia.usedRenderingMode!==void 0?ia.usedRenderingMode:-1;An!==-1?Me+=An+` Tr
|
|||
|
|
`:Oo!==-1&&(Me+=`0 Tr
|
|||
|
|
`),An!==-1&&(ia.usedRenderingMode=An),Ct=D.align||"left";var $n,Nr=vt*gn,qa=Ne.internal.pageSize.getWidth(),ra=oe[Rt];Kt=D.charSpace||Jr,te=D.maxWidth||0,pe=Object.assign({autoencode:!0,noBOM:!0},D.flags);var Lr=[],za=function(Ie){return Ne.getStringUnitWidth(Ie,{font:ra,charSpace:Kt,fontSize:vt,doKerning:!1})*vt/Ti};if(Object.prototype.toString.call(h)==="[object Array]"){var Nn;gt=wr(h),Ct!=="left"&&($n=gt.map(za));var En,aa=0;if(Ct==="right"){b-=$n[0],h=[],mn=gt.length;for(var $i=0;$i<mn;$i++)$i===0?(En=Ii(b),Nn=Ci(E)):(En=U(aa-$n[$i]),Nn=-Nr),h.push([gt[$i],En,Nn]),aa=$n[$i]}else if(Ct==="center"){b-=$n[0]/2,h=[],mn=gt.length;for(var Yi=0;Yi<mn;Yi++)Yi===0?(En=Ii(b),Nn=Ci(E)):(En=U((aa-$n[Yi])/2),Nn=-Nr),h.push([gt[Yi],En,Nn]),aa=$n[Yi]}else if(Ct==="left"){h=[],mn=gt.length;for(var oa=0;oa<mn;oa++)h.push(gt[oa])}else if(Ct==="justify"&&ra.encoding==="Identity-H"){h=[],mn=gt.length,te=te!==0?te:qa;for(var Sr=0,Qe=0;Qe<mn;Qe++)if(Nn=Qe===0?Ci(E):-Nr,En=Qe===0?Ii(b):Sr,Qe<mn-1){var Us=U((te-$n[Qe])/(gt[Qe].split(" ").length-1)),bi=gt[Qe].split(" ");h.push([bi[0]+" ",En,Nn]),Sr=0;for(var ni=1;ni<bi.length;ni++){var kr=(za(bi[ni-1]+" "+bi[ni])-za(bi[ni]))*Ti+Us;ni==bi.length-1?h.push([bi[ni],kr,0]):h.push([bi[ni]+" ",kr,0]),Sr-=kr}}else h.push([gt[Qe],En,Nn]);h.push(["",Sr,0])}else{if(Ct!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(h=[],mn=gt.length,te=te!==0?te:qa,Qe=0;Qe<mn;Qe++){Nn=Qe===0?Ci(E):-Nr,En=Qe===0?Ii(b):0;var Ha=gt[Qe].split(" ").length-1,Wa=Ha>0?(te-$n[Qe])/Ha:0;Qe<mn-1?Lr.push(tt(U(Wa))):Lr.push(0),h.push([gt[Qe],En,Nn])}}}(typeof D.R2L=="boolean"?D.R2L:qt)===!0&&(h=_r(h,function(Ie,Ce,Ge){return[Ie.split("").reverse().join(""),Ce,Ge]})),ot={text:h,x:b,y:E,options:D,mutex:{pdfEscape:Zn,activeFontKey:Rt,fonts:oe,activeFontSize:vt}},_e.publish("postProcessText",ot),h=ot.text,De=ot.mutex.isHex||!1;var sa=oe[Rt].encoding;sa!=="WinAnsiEncoding"&&sa!=="StandardEncoding"||(h=_r(h,function(Ie,Ce,Ge){return[Ma(Ie),Ce,Ge]})),gt=wr(h),h=[];for(var Pr,Er,Ki,Ri=Array.isArray(gt[0])?1:0,Xi="",la=function(Ie,Ce,Ge){var tn="";return Ge instanceof Vt?(Ge=typeof D.angle=="number"?ki(Ge,new Vt(1,0,0,1,Ie,Ce)):ki(new Vt(1,0,0,1,Ie,Ce),Ge),M===$&&(Ge=ki(new Vt(1,0,0,-1,0,0),Ge)),tn=Ge.join(" ")+` Tm
|
|||
|
|
`):tn=tt(Ie)+" "+tt(Ce)+` Td
|
|||
|
|
`,tn},bn=0;bn<gt.length;bn++){switch(Xi="",Ri){case 1:Ki=(De?"<":"(")+gt[bn][0]+(De?">":")"),Pr=parseFloat(gt[bn][1]),Er=parseFloat(gt[bn][2]);break;case 0:Ki=(De?"<":"(")+gt[bn]+(De?">":")"),Pr=Ii(b),Er=Ci(E)}Lr!==void 0&&Lr[bn]!==void 0&&(Xi=Lr[bn]+` Tw
|
|||
|
|
`),bn===0?h.push(Xi+la(Pr,Er,Le)+Ki):Ri===0?h.push(Xi+Ki):Ri===1&&h.push(Xi+la(Pr,Er,Le)+Ki)}h=Ri===0?h.join(` Tj
|
|||
|
|
T* `):h.join(` Tj
|
|||
|
|
`),h+=` Tj
|
|||
|
|
`;var vi=`BT
|
|||
|
|
/`;return vi+=Rt+" "+vt+` Tf
|
|||
|
|
`,vi+=tt(vt*gn)+` TL
|
|||
|
|
`,vi+=gi+`
|
|||
|
|
`,vi+=Me,vi+=h,P(vi+="ET"),L[Rt]=!0,Ne};var Ss=p.__private__.clip=p.clip=function(h){return P(h==="evenodd"?"W*":"W"),this};p.clipEvenOdd=function(){return Ss("evenodd")},p.__private__.discardPath=p.discardPath=function(){return P("n"),this};var pi=p.__private__.isValidStyle=function(h){var b=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(h)!==-1&&(b=!0),b};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(h){return pi(h)&&(d=h),this};var Lo=p.__private__.getStyle=p.getStyle=function(h){var b=d;switch(h){case"D":case"S":b="S";break;case"F":b="f";break;case"FD":case"DF":b="B";break;case"f":case"f*":case"B":case"B*":b=h}return b},Yr=p.close=function(){return P("h"),this};p.stroke=function(){return P("S"),this},p.fill=function(h){return Kr("f",h),this},p.fillEvenOdd=function(h){return Kr("f*",h),this},p.fillStroke=function(h){return Kr("B",h),this},p.fillStrokeEvenOdd=function(h){return Kr("B*",h),this};var Kr=function(h,b){Pe(b)==="object"?Ps(b,h):P(h)},Oa=function(h){h===null||M===$&&h===void 0||(h=Lo(h),P(h))};function ks(h,b,E,D,V){var ot=new ba(b||this.boundingBox,E||this.xStep,D||this.yStep,this.gState,V||this.matrix);ot.stream=this.stream;var gt=h+"$$"+this.cloneIndex+++"$$";return Wn(gt,ot),ot}var Ps=function(h,b){var E=Ee[h.key],D=Ut[E];if(D instanceof Fr)P("q"),P(Es(b)),D.gState&&p.setGState(D.gState),P(h.matrix.toString()+" cm"),P("/"+E+" sh"),P("Q");else if(D instanceof ba){var V=new Vt(1,0,0,-1,0,vr());h.matrix&&(V=V.multiply(h.matrix||Pi),E=ks.call(D,h.key,h.boundingBox,h.xStep,h.yStep,V).id),P("q"),P("/Pattern cs"),P("/"+E+" scn"),D.gState&&p.setGState(D.gState),P(b),P("Q")}},Es=function(h){switch(h){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Wi=p.moveTo=function(h,b){return P(tt(U(h))+" "+tt(q(b))+" m"),this},So=p.lineTo=function(h,b){return P(tt(U(h))+" "+tt(q(b))+" l"),this},Gi=p.curveTo=function(h,b,E,D,V,ot){return P([tt(U(h)),tt(q(b)),tt(U(E)),tt(q(D)),tt(U(V)),tt(q(ot)),"c"].join(" ")),this};p.__private__.line=p.line=function(h,b,E,D,V){if(isNaN(h)||isNaN(b)||isNaN(E)||isNaN(D)||!pi(V))throw new Error("Invalid arguments passed to jsPDF.line");return M===Z?this.lines([[E-h,D-b]],h,b,[1,1],V||"S"):this.lines([[E-h,D-b]],h,b,[1,1]).stroke()},p.__private__.lines=p.lines=function(h,b,E,D,V,ot){var gt,Ft,Ct,Kt,te,pe,Je,Le,Ne,Oe,De,Me;if(typeof h=="number"&&(Me=E,E=b,b=h,h=Me),D=D||[1,1],ot=ot||!1,isNaN(b)||isNaN(E)||!Array.isArray(h)||!Array.isArray(D)||!pi(V)||typeof ot!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Wi(b,E),gt=D[0],Ft=D[1],Kt=h.length,Oe=b,De=E,Ct=0;Ct<Kt;Ct++)(te=h[Ct]).length===2?(Oe=te[0]*gt+Oe,De=te[1]*Ft+De,So(Oe,De)):(pe=te[0]*gt+Oe,Je=te[1]*Ft+De,Le=te[2]*gt+Oe,Ne=te[3]*Ft+De,Oe=te[4]*gt+Oe,De=te[5]*Ft+De,Gi(pe,Je,Le,Ne,Oe,De));return ot&&Yr(),Oa(V),this},p.path=function(h){for(var b=0;b<h.length;b++){var E=h[b],D=E.c;switch(E.op){case"m":Wi(D[0],D[1]);break;case"l":So(D[0],D[1]);break;case"c":Gi.apply(this,D);break;case"h":Yr()}}return this},p.__private__.rect=p.rect=function(h,b,E,D,V){if(isNaN(h)||isNaN(b)||isNaN(E)||isNaN(D)||!pi(V))throw new Error("Invalid arguments passed to jsPDF.rect");return M===Z&&(D=-D),P([tt(U(h)),tt(q(b)),tt(U(E)),tt(U(D)),"re"].join(" ")),Oa(V),this},p.__private__.triangle=p.triangle=function(h,b,E,D,V,ot,gt){if(isNaN(h)||isNaN(b)||isNaN(E)||isNaN(D)||isNaN(V)||isNaN(ot)||!pi(gt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[E-h,D-b],[V-E,ot-D],[h-V,b-ot]],h,b,[1,1],gt,!0),this},p.__private__.roundedRect=p.roundedRect=function(h,b,E,D,V,ot,gt){if(isNaN(h)||isNaN(b)||isNaN(E)||isNaN(D)||isNaN(V)||isNaN(ot)||!pi(gt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Ft=4/3*(Math.SQRT2-1);return V=Math.min(V,.5*E),ot=Math.min(ot,.5*D),this.lines([[E-2*V,0],[V*Ft,0,V,ot-ot*Ft,V,ot],[0,D-2*ot],[0,ot*Ft,-V*Ft,ot,-V,ot],[2*V-E,0],[-V*Ft,0,-V,-ot*Ft,-V,-ot],[0,2*ot-D],[0,-ot*Ft,V*Ft,-ot,V,-ot]],h+V,b,[1,1],gt,!0),this},p.__private__.ellipse=p.ellipse=function(h,b,E
|
|||
|
|
`),o}},zl=function(t,n){var e=t.fontSize===0?t.maxFontSize:t.fontSize,i={text:"",fontSize:""},a=(n=(n=n.substr(0,1)=="("?n.substr(1):n).substr(n.length-1)==")"?n.substr(0,n.length-1):n).split(" ");a=t.multiline?a.map(function(N){return N.split(`
|
|||
|
|
`)}):a.map(function(N){return[N]});var o=e,c=It.internal.getHeight(t)||0;c=c<0?-c:c;var l=It.internal.getWidth(t)||0;l=l<0?-l:l;var f=function(N,F,U){if(N+1<a.length){var q=F+" "+a[N+1][0];return rs(q,t,U).width<=l-4}return!1};o++;t:for(;o>0;){n="",o--;var d,m,A=rs("3",t,o).height,L=t.multiline?c-o:(c-A)/2,p=L+=2,T=0,O=0,j=0;if(o<=0){n=`(...) Tj
|
|||
|
|
`,n+="% Width of Text: "+rs(n,t,o=12).width+", FieldWidth:"+l+`
|
|||
|
|
`;break}for(var k="",Z=0,$=0;$<a.length;$++)if(a.hasOwnProperty($)){var M=!1;if(a[$].length!==1&&j!==a[$].length-1){if((A+2)*(Z+2)+2>c)continue t;k+=a[$][j],M=!0,O=$,$--}else{k=(k+=a[$][j]+" ").substr(k.length-1)==" "?k.substr(0,k.length-1):k;var lt=parseInt($),_t=f(lt,k,o),mt=$>=a.length-1;if(_t&&!mt){k+=" ",j=0;continue}if(_t||mt){if(mt)O=lt;else if(t.multiline&&(A+2)*(Z+2)+2>c)continue t}else{if(!t.multiline||(A+2)*(Z+2)+2>c)continue t;O=lt}}for(var tt="",z=T;z<=O;z++){var et=a[z];if(t.multiline){if(z===O){tt+=et[j]+" ",j=(j+1)%et.length;continue}if(z===T){tt+=et[et.length-1]+" ";continue}}tt+=et[0]+" "}switch(tt=tt.substr(tt.length-1)==" "?tt.substr(0,tt.length-1):tt,m=rs(tt,t,o).width,t.textAlign){case"right":d=l-m-2;break;case"center":d=(l-m)/2;break;default:d=2}n+=Xt(d)+" "+Xt(p)+` Td
|
|||
|
|
`,n+="("+zr(tt)+`) Tj
|
|||
|
|
`,n+=-Xt(d)+` 0 Td
|
|||
|
|
`,p=-(o+2),m=0,T=M?O:O+1,Z++,k=""}break}return i.text=n,i.fontSize=o,i},rs=function(t,n,e){var i=n.scope.internal.getFont(n.fontName,n.fontStyle),a=n.scope.getStringUnitWidth(t,{font:i,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:n.scope.getStringUnitWidth("3",{font:i,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:a}},u5={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},d5=function(t,n){var e={type:"reference",object:t};n.internal.getPageInfo(t.page).pageContext.annotations.find(function(i){return i.type===e.type&&i.object===e.object})===void 0&&n.internal.getPageInfo(t.page).pageContext.annotations.push(e)},p5=function(t,n){if(n.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(si.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(u5)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Jl=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new $f,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){(function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})(t)}),t.internal.events.subscribe("buildDocument",function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var i=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var a in i)if(i.hasOwnProperty(a)){var o=i[a];o.objId=void 0,o.hasAnnotation&&d5(o,e)}})(t)}),t.internal.events.subscribe("putCatalog",function(){(function(e){if(e.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(t)}),t.internal.events.subscribe("postPutPages",function(e){(function(i,a){var o=!i;for(var c in i||(a.internal.newObjectDeferredBegin(a.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),a.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),i=i||a.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(i.hasOwnProperty(c)){var l=i[c],f=[],d=l.Rect;if(l.Rect&&(l.Rect=c5(l.Rect,a)),a.internal.newObjectDeferredBegin(l.objId,!0),l.DA=It.createDefaultAppearanceStream(l),Pe(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(f=l.getKeyValueListForStream()),l.Rect=d,l.hasAppearanceStream&&!l.appearanceStreamContent){var m=f5(l);f.push({key:"AP",value:"<</N "+m+">>"}),a.internal.acroformPlugin.xForms.push(m)}if(l.appearanceStreamContent){var A="";for(var L in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(L)){var p=l.appearanceStreamContent[L];if(A+="/"+L+" ",A+="<<",Object.keys(p).length>=1||Array.isArray(p)){for(var c in p)if(p.hasOwnProperty(c)){var T=p[c];typeof T=="function"&&(T=T.call(a,l)),A+="/"+c+" "+T+" ",a.internal.acroformPlugin.xForms.indexOf(T)>=0||a.internal.acroformPlugin.xForms.push(T)}}else typeof(T=p)=="function"&&(T=T.call(a,l)),A+="/"+c+" "+T,a.internal.acroformPlugin.xForms.indexOf(T)>=0||a.internal.acroformPlugin.xForms.push(T);A+=">>"}f.push({key:"AP",value:`<<
|
|||
|
|
`+A+">>"})}a.internal.putStream({additionalKeyValues:f,objectId:l.objId}),a.internal.out("endobj")}o&&(function(O,j){for(var k in O)if(O.hasOwnProperty(k)){var Z=k,$=O[k];j.internal.newObjectDeferredBegin($.objId,!0),Pe($)==="object"&&typeof $.putStream=="function"&&$.putStream(),delete O[Z]}})(a.internal.acroformPlugin.xForms,a)})(e,t)}),t.internal.acroformPlugin.isInitialized=!0}},Vf=He.__acroform__.arrayToPdfArray=function(t,n,e){var i=function(c){return c};if(Array.isArray(t)){for(var a="[",o=0;o<t.length;o++)switch(o!==0&&(a+=" "),Pe(t[o])){case"boolean":case"number":case"object":a+=t[o].toString();break;case"string":t[o].substr(0,1)==="/"?a+="/"+Ur(t[o].substr(1)):(n!==void 0&&e&&(i=e.internal.getEncryptor(n)),a+="("+zr(i(t[o].toString()))+")")}return a+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Ll=function(t,n,e){var i=function(a){return a};return n!==void 0&&e&&(i=e.internal.getEncryptor(n)),(t=t||"").toString(),"("+zr(i(t))+")"},xi=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};xi.prototype.toString=function(){return this.objId+" 0 R"},xi.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},xi.prototype.getKeyValueListForStream=function(){var t=[],n=Object.getOwnPropertyNames(this).filter(function(o){return o!="content"&&o!="appearanceStreamContent"&&o!="scope"&&o!="objId"&&o.substring(0,1)!="_"});for(var e in n)if(Object.getOwnPropertyDescriptor(this,n[e]).configurable===!1){var i=n[e],a=this[i];a&&(Array.isArray(a)?t.push({key:i,value:Vf(a,this.objId,this.scope)}):a instanceof xi?(a.scope=this.scope,t.push({key:i,value:a.objId+" 0 R"})):typeof a!="function"&&t.push({key:i,value:a}))}return t};var Zf=function(){xi.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,n=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};On(Zf,xi);var $f=function(){xi.call(this);var t,n=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return n.length>0?n:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return n}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(i){return i};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+zr(e(t))+")"}},set:function(e){t=e}})};On($f,xi);var si=function t(){xi.call(this);var n=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return n},set:function(k){if(isNaN(k))throw new Error('Invalid value "'+k+'" for attribute F supplied.');n=k}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!$e(n,3)},set:function(k){k?this.F=Ye(n,3):this.F=Ke(n,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(k){if(isNaN(k))throw new Error('Invalid value "'+k+'" for attribute Ff supplied.');e=k}});var i=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(i.length!==0)return i},set:function(k){i=k!==void 0?k:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[0])?0:i[0]},set:function(k){i[0]=k}}),Object.defineProperty(this,"y",{enum
|
|||
|
|
`)}},set:function(e){Pe(e)==="object"&&(n=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(e){typeof e=="string"&&(n.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){var i=e==null?"":e.toString();i.substr(0,1)==="/"&&(i=i.substr(1)),t="/"+Ur(i)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+Ur(e)}})};On(sn,si);var cs=function(){sn.call(this),this.pushButton=!0};On(cs,sn);var xa=function(){sn.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=n!==void 0?n:[]}})};On(xa,sn);var bs=function(){var t,n;si.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(a){t=a}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(a){n=a}});var e,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var a=function(l){return l};this.scope&&(a=this.scope.internal.getEncryptor(this.objId));var o,c=[];for(o in c.push("<<"),i)c.push("/"+o+" ("+zr(a(i[o]))+")");return c.push(">>"),c.join(`
|
|||
|
|
`)},set:function(a){Pe(a)==="object"&&(i=a)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(a){typeof a=="string"&&(i.CA=a)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(a){var o=a==null?"":a.toString();o.substr(0,1)==="/"&&(o=o.substr(1)),e="/"+Ur(o)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(a){var o=a==null?"":a.toString();o.substr(0,1)==="/"&&(o=o.substr(1)),e="/"+Ur(o)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=It.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};On(bs,si),xa.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var n in this.Kids)if(this.Kids.hasOwnProperty(n)){var e=this.Kids[n];e.appearanceStreamContent=t.createAppearanceStream(e.optionName),e.caption=t.getCA()}},xa.prototype.createOption=function(t){var n=new bs;return n.Parent=this,n.optionName=t,this.Kids.push(n),g5.call(this.scope,n),n};var fs=function(){sn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=It.CheckBox.createAppearanceStream()};On(fs,sn);var jr=function(){si.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!$e(this.Ff,13)},set:function(n){n?this.Ff=Ye(this.Ff,13):this.Ff=Ke(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!$e(this.Ff,21)},set:function(n){n?this.Ff=Ye(this.Ff,21):this.Ff=Ke(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!$e(this.Ff,23)},set:function(n){n?this.Ff=Ye(this.Ff,23):this.Ff=Ke(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!$e(this.Ff,24)},set:function(n){n?this.Ff=Ye(this.Ff,24):this.Ff=Ke(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!$e(this.Ff,25)},set:function(n){n?this.Ff=Ye(this.Ff,25):this.Ff=Ke(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!$e(this.Ff,26)},set:function(n){n?this.Ff=Ye(this.Ff,26):this.Ff=Ke(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(n){Number.isInteger(n)&&(t=n)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};On(jr,si);var us=function(){jr.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!$e(this.Ff,14)},set:function(t){t?this.Ff=Ye(this.Ff,14):this.Ff=Ke(this.Ff,14)}}),this.password=!0};On(us,jr);var It={CheckBox:{createAppearanceStream:function(){return{N:{On:It.CheckBox.YesNormal},D:{On:It.CheckBox.YesPushDown,Off:It.CheckBox.OffPushDown}}},YesPushDown:function(t){var n=_i(t);n.scope=t.scope;var e=[],i=t.scope.internal.getFont(t.fontName,t.fontStyle).id,a=t.scope.__private__.encodeColorString(t.color),o=zl(t,t.caption);return e.push("0.749023 g"),e.push("0 0 "+Xt(It.internal.getWidth(t))+" "+Xt(It.internal.getHeight(t))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+i+" "+Xt(o.fontSize)+" Tf "+a),e.push("BT"),e.push(o.text),e.push("ET"),e.push("Q"),e.push("EMC"),n.stream=e.join(`
|
|||
|
|
`),n},YesNormal:function(t){var n=_i(t);n.scope=t.scope;var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),a=[],o=It.internal.getHeight(t),c=It.internal.getWidth(t),l=zl(t,t.caption);return a.push("1 g"),a.push("0 0 "+Xt(c)+" "+Xt(o)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+Xt(c-1)+" "+Xt(o-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+e+" "+Xt(l.fontSize)+" Tf "+i),a.push(l.text),a.push("ET"),a.push("Q"),n.stream=a.join(`
|
|||
|
|
`),n},OffPushDown:function(t){var n=_i(t);n.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Xt(It.internal.getWidth(t))+" "+Xt(It.internal.getHeight(t))+" re"),e.push("f"),n.stream=e.join(`
|
|||
|
|
`),n}},RadioButton:{Circle:{createAppearanceStream:function(t){var n={D:{Off:It.RadioButton.Circle.OffPushDown},N:{}};return n.N[t]=It.RadioButton.Circle.YesNormal,n.D[t]=It.RadioButton.Circle.YesPushDown,n},getCA:function(){return"l"},YesNormal:function(t){var n=_i(t);n.scope=t.scope;var e=[],i=It.internal.getWidth(t)<=It.internal.getHeight(t)?It.internal.getWidth(t)/4:It.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var a=It.internal.Bezier_C,o=Number((i*a).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+rr(It.internal.getWidth(t)/2)+" "+rr(It.internal.getHeight(t)/2)+" cm"),e.push(i+" 0 m"),e.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),e.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),e.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),e.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),e.push("f"),e.push("Q"),n.stream=e.join(`
|
|||
|
|
`),n},YesPushDown:function(t){var n=_i(t);n.scope=t.scope;var e=[],i=It.internal.getWidth(t)<=It.internal.getHeight(t)?It.internal.getWidth(t)/4:It.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var a=Number((2*i).toFixed(5)),o=Number((a*It.internal.Bezier_C).toFixed(5)),c=Number((i*It.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+rr(It.internal.getWidth(t)/2)+" "+rr(It.internal.getHeight(t)/2)+" cm"),e.push(a+" 0 m"),e.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),e.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),e.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),e.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+rr(It.internal.getWidth(t)/2)+" "+rr(It.internal.getHeight(t)/2)+" cm"),e.push(i+" 0 m"),e.push(i+" "+c+" "+c+" "+i+" 0 "+i+" c"),e.push("-"+c+" "+i+" -"+i+" "+c+" -"+i+" 0 c"),e.push("-"+i+" -"+c+" -"+c+" -"+i+" 0 -"+i+" c"),e.push(c+" -"+i+" "+i+" -"+c+" "+i+" 0 c"),e.push("f"),e.push("Q"),n.stream=e.join(`
|
|||
|
|
`),n},OffPushDown:function(t){var n=_i(t);n.scope=t.scope;var e=[],i=It.internal.getWidth(t)<=It.internal.getHeight(t)?It.internal.getWidth(t)/4:It.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var a=Number((2*i).toFixed(5)),o=Number((a*It.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+rr(It.internal.getWidth(t)/2)+" "+rr(It.internal.getHeight(t)/2)+" cm"),e.push(a+" 0 m"),e.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),e.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),e.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),e.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),e.push("f"),e.push("Q"),n.stream=e.join(`
|
|||
|
|
`),n}},Cross:{createAppearanceStream:function(t){var n={D:{Off:It.RadioButton.Cross.OffPushDown},N:{}};return n.N[t]=It.RadioButton.Cross.YesNormal,n.D[t]=It.RadioButton.Cross.YesPushDown,n},getCA:function(){return"8"},YesNormal:function(t){var n=_i(t);n.scope=t.scope;var e=[],i=It.internal.calculateCross(t);return e.push("q"),e.push("1 1 "+Xt(It.internal.getWidth(t)-2)+" "+Xt(It.internal.getHeight(t)-2)+" re"),e.push("W"),e.push("n"),e.push(Xt(i.x1.x)+" "+Xt(i.x1.y)+" m"),e.push(Xt(i.x2.x)+" "+Xt(i.x2.y)+" l"),e.push(Xt(i.x4.x)+" "+Xt(i.x4.y)+" m"),e.push(Xt(i.x3.x)+" "+Xt(i.x3.y)+" l"),e.push("s"),e.push("Q"),n.stream=e.join(`
|
|||
|
|
`),n},YesPushDown:function(t){var n=_i(t);n.scope=t.scope;var e=It.internal.calculateCross(t),i=[];return i.push("0.749023 g"),i.push("0 0 "+Xt(It.internal.getWidth(t))+" "+Xt(It.internal.getHeight(t))+" re"),i.push("f"),i.push("q"),i.push("1 1 "+Xt(It.internal.getWidth(t)-2)+" "+Xt(It.internal.getHeight(t)-2)+" re"),i.push("W"),i.push("n"),i.push(Xt(e.x1.x)+" "+Xt(e.x1.y)+" m"),i.push(Xt(e.x2.x)+" "+Xt(e.x2.y)+" l"),i.push(Xt(e.x4.x)+" "+Xt(e.x4.y)+" m"),i.push(Xt(e.x3.x)+" "+Xt(e.x3.y)+" l"),i.push("s"),i.push("Q"),n.stream=i.join(`
|
|||
|
|
`),n},OffPushDown:function(t){var n=_i(t);n.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Xt(It.internal.getWidth(t))+" "+Xt(It.internal.getHeight(t))+" re"),e.push("f"),n.stream=e.join(`
|
|||
|
|
`),n}}},createDefaultAppearanceStream:function(t){var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color);return"/"+n+" "+t.fontSize+" Tf "+e}};It.internal={Bezier_C:.551915024494,calculateCross:function(t){var n=It.internal.getWidth(t),e=It.internal.getHeight(t),i=Math.min(n,e);return{x1:{x:(n-i)/2,y:(e-i)/2+i},x2:{x:(n-i)/2+i,y:(e-i)/2},x3:{x:(n-i)/2,y:(e-i)/2},x4:{x:(n-i)/2+i,y:(e-i)/2+i}}}},It.internal.getWidth=function(t){var n=0;return Pe(t)==="object"&&(n=jc(t.Rect[2])),n},It.internal.getHeight=function(t){var n=0;return Pe(t)==="object"&&(n=jc(t.Rect[3])),n};var g5=He.addField=function(t){if(p5(this,t),!(t instanceof si))throw new Error("Invalid argument passed to jsPDF.addField.");var n;return(n=t).scope.internal.acroformPlugin.printedOut&&(n.scope.internal.acroformPlugin.printedOut=!1,n.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),n.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(n),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};He.AcroFormChoiceField=wa,He.AcroFormListBox=_a,He.AcroFormComboBox=ya,He.AcroFormEditBox=hs,He.AcroFormButton=sn,He.AcroFormPushButton=cs,He.AcroFormRadioButton=xa,He.AcroFormCheckBox=fs,He.AcroFormTextField=jr,He.AcroFormPasswordField=us,He.AcroFormAppearance=It,He.AcroForm={ChoiceField:wa,ListBox:_a,ComboBox:ya,EditBox:hs,Button:sn,PushButton:cs,RadioButton:xa,CheckBox:fs,TextField:jr,PasswordField:us,Appearance:It},Dt.AcroForm={ChoiceField:wa,ListBox:_a,ComboBox:ya,EditBox:hs,Button:sn,PushButton:cs,RadioButton:xa,CheckBox:fs,TextField:jr,PasswordField:us,Appearance:It};var td=Dt.AcroForm;function Yf(t){return t.reduce(function(n,e,i){return n[e]=i,n},{})}(function(t){var n="addImage_";t.__addimage__={};var e="UNKNOWN",i={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},a=t.__addimage__.getImageFileTypeByImageData=function(N,F){var U,q,it,ft,pt,nt=e;if((F=F||e)==="RGBA"||N.data!==void 0&&N.data instanceof Uint8ClampedArray&&"height"in N&&"width"in N)return"RGBA";if(_t(N))for(pt in i)for(it=i[pt],U=0;U<it.length;U+=1){for(ft=!0,q=0;q<it[U].length;q+=1)if(it[U][q]!==void 0&&it[U][q]!==N[q]){ft=!1;break}if(ft===!0){nt=pt;break}}else for(pt in i)for(it=i[pt],U=0;U<it.length;U+=1){for(ft=!0,q=0;q<it[U].length;q+=1)if(it[U][q]!==void 0&&it[U][q]!==N.charCodeAt(q)){ft=!1;break}if(ft===!0){nt=pt;break}}return nt===e&&F!==e&&(nt=F),nt},o=function N(F){for(var U=this.internal.write,q=this.internal.putStream,it=(0,this.internal.getFilters)();it.indexOf("FlateEncode")!==-1;)it.splice(it.indexOf("FlateEncode"),1);F.objectId=this.internal.newObject();var ft=[];if(ft.push({key:"Type",value:"/XObject"}),ft.push({key:"Subtype",value:"/Image"}),ft.push({key:"Width",value:F.width}),ft.push({key:"Height",value:F.height}),F.colorSpace===k.INDEXED?ft.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(F.palette.length/3-1)+" "+("sMask"in F&&F.sMask!==void 0?F.objectId+2:F.objectId+1)+" 0 R]"}):(ft.push({key:"ColorSpace",value:"/"+F.colorSpace}),F.colorSpace===k.DEVICE_CMYK&&ft.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ft.push({key:"BitsPerComponent",value:F.bitsPerComponent}),"decodeParameters"in F&&F.decodeParameters!==void 0&&ft.push({key:"DecodeParms",value:"<<"+F.decodeParameters+">>"}),"transparency"in F&&Array.isArray(F.transparency)&&F.transparency.length>0){for(var pt="",nt=0,ut=F.transparency.length;nt<ut;nt++)pt+=F.transparency[nt]+" "+F.transparency[nt]+" ";ft.push({key:"Mask",value:"["+pt+"]"})}F.sMask!==void 0&&ft.push({key:"SMask",value:F.objectId+1+" 0 R"});var At=F.filter!==void 0?["/"+F.filter]:void 0;if(q({data:F.data,additionalKeyValues:ft,alreadyAppliedFilters:At,objectId:F.objectId}),U("endobj"),"sMask"in F&&F.sMask!==void 0){var yt
|
|||
|
|
* @license
|
|||
|
|
Copyright (c) 2008, Adobe Systems Incorporated
|
|||
|
|
All rights reserved.
|
|||
|
|
|
|||
|
|
Redistribution and use in source and binary forms, with or without
|
|||
|
|
modification, are permitted provided that the following conditions are
|
|||
|
|
met:
|
|||
|
|
|
|||
|
|
* Redistributions of source code must retain the above copyright notice,
|
|||
|
|
this list of conditions and the following disclaimer.
|
|||
|
|
|
|||
|
|
* Redistributions in binary form must reproduce the above copyright
|
|||
|
|
notice, this list of conditions and the following disclaimer in the
|
|||
|
|
documentation and/or other materials provided with the distribution.
|
|||
|
|
|
|||
|
|
* Neither the name of Adobe Systems Incorporated nor the names of its
|
|||
|
|
contributors may be used to endorse or promote products derived from
|
|||
|
|
this software without specific prior written permission.
|
|||
|
|
|
|||
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|||
|
|
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|||
|
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|||
|
|
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|||
|
|
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|||
|
|
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|||
|
|
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|||
|
|
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|||
|
|
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|||
|
|
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|||
|
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
|
|
*/function El(t){var n,e,i,a,o,c=Math.floor,l=new Array(64),f=new Array(64),d=new Array(64),m=new Array(64),A=new Array(65535),L=new Array(65535),p=new Array(64),T=new Array(64),O=[],j=0,k=7,Z=new Array(64),$=new Array(64),M=new Array(64),lt=new Array(256),_t=new Array(2048),mt=[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],tt=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],z=[0,1,2,3,4,5,6,7,8,9,10,11],et=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],N=[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],F=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],U=[0,1,2,3,4,5,6,7,8,9,10,11],q=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],it=[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 ft(y,R){for(var B=0,G=0,Y=new Array,Q=1;Q<=16;Q++){for(var rt=1;rt<=y[Q];rt++)Y[R[G]]=[],Y[R[G]][0]=B,Y[R[G]][1]=Q,G++,B++;B*=2}return Y}function pt(y){for(var R=y[0],B=y[1]-1;B>=0;)R&1<<B&&(j|=1<<k),B--,--k<0&&(j==255?(nt(255),nt(0)):nt(j),k=7,j=0)}function nt(y){O.push(y)}function ut(y){nt(y>>8&255),nt(255&y)}function At(y,R,B,G,Y){for(var Q,rt=Y[0],at=Y[240],dt=(function(vt,Wt){var Et,qt,Mt,we,he,Jt,fe,ce,Rt,ne,Bt=0;for(Rt=0;Rt<8;++Rt){Et=vt[Bt],qt=vt[Bt+1],Mt=vt[Bt+2],we=vt[Bt+3],he=vt[Bt+4],Jt=vt[Bt+5],fe=vt[Bt+6];var We=Et+(ce=vt[Bt+7]),me=Et-ce,oe=qt+fe,se=qt-fe,Re=Mt+Jt,Ut=Mt-Jt,Ee=we+he,Zt=we-he,Qt=We+Ee,je=We-Ee,le=oe+Re,Gt=oe-Re;vt[Bt]=Qt+le,vt[Bt+4]=Qt-le;var _e=.707106781*(Gt+je);vt[Bt+2]=je+_e,vt[Bt+6]=je-_e;var ur=.382683433*((Qt=Zt+Ut)-(Gt=se+me)),pn=.5411961*Qt+ur,Si=1.306562965*Gt+ur,hi=.707106781*(le=Ut+se),Vt=me+hi,ki=me-hi;vt[Bt+5]=ki+pn,vt[Bt+3]=ki-pn,vt[Bt+1]=Vt+Si,vt[Bt+7]=Vt-Si,Bt+=8}for(Bt=0,Rt=0;Rt<8;++Rt){Et=vt[Bt],qt=vt[Bt+8],Mt=vt[Bt+16],we=vt[Bt+24],he=vt[Bt+32],Jt=vt[Bt+40],fe=vt[Bt+48];var Pi=Et+(ce=vt[Bt+56]),Wn=Et-ce,Gn=qt+fe,Ue=qt-fe,an=Mt+Jt,ln=Mt-Jt,dr=we+he,Hi=we-he,Qn=Pi+dr,ci=Pi-dr,ti=Gn+an,ei=Gn-an;vt[Bt]=Qn+ti,vt[Bt+32]=Qn-ti;var Vn=.707106781*(ei+ci);vt[Bt+16]=ci+Vn,vt[Bt+48]=ci-Vn;var pr=.382683433*((Qn=Hi+ln)-(ei=Ue+Wn)),fi=.5411961*Qn+pr,gr=1.306562965*ei+pr,Hr=.707106781*(ti=ln+Ue),Wr=Wn+Hr,Gr=Wn-Hr;vt[Bt+40]=Gr+fi,vt[Bt+24]=Gr-fi,vt[Bt+8]=Wr+gr,vt[Bt+56]=Wr-gr,Bt++}for(Rt=0;Rt<64;++Rt)ne=vt[Rt]*Wt[Rt],p[Rt]=ne>0?ne+.5|0:ne-.5|0;return p})(y,R),xt=0;xt<64;++xt)T[mt[xt]]=dt[xt];var St=T[0]-B;B=T[0],St==0?pt(G[0]):(pt(G[L[Q=32767+St]]),pt(A[Q]));for(var kt=63;kt>0&&T[kt]==0;)kt--;if(kt==0)return pt(rt),B;for(var zt,P=1;P<=kt;){for(var Lt=P;T[P]==0&&P<=kt;)++P;var ae=P-Lt;if(ae>=16){zt=ae>>4;for(var Ht=1;Ht<=zt;++Ht)pt(at);ae&=15}Q=32767+T[P],pt(Y[(ae<<4)+L[Q]]),pt(A[Q]),P++}return kt!=63&&pt(rt),B}function yt(y){y=Math.min(Math.max(y,1),100),o!=y&&((function(R){for(var B=[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],G=0;G<64;G++){var Y=c((B[G]*R+50)/100);Y=Math.min(Math.max(Y,1),255),l[mt[G]]=Y}for(var Q=[17
|
|||
|
|
* @license
|
|||
|
|
* Copyright (c) 2017 Aras Abbasi
|
|||
|
|
*
|
|||
|
|
* Licensed under the MIT License.
|
|||
|
|
* http://opensource.org/licenses/mit-license
|
|||
|
|
*/function oi(t,n){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!n,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()}function Xc(t){function n(z){if(!z)throw Error("assert :P")}function e(z,et,N){for(var F=0;4>F;F++)if(z[et+F]!=N.charCodeAt(F))return!0;return!1}function i(z,et,N,F,U){for(var q=0;q<U;q++)z[et+q]=N[F+q]}function a(z,et,N,F){for(var U=0;U<F;U++)z[et+U]=N}function o(z){return new Int32Array(z)}function c(z,et){for(var N=[],F=0;F<z;F++)N.push(new et);return N}function l(z,et){var N=[];return(function F(U,q,it){for(var ft=it[q],pt=0;pt<ft&&(U.push(it.length>q+1?[]:new et),!(it.length<q+1));pt++)F(U[pt],q+1,it)})(N,0,z),N}var f=function(){var z=this;function et(r,s){for(var u=1<<s-1>>>0;r&u;)u>>>=1;return u?(r&u-1)+u:r}function N(r,s,u,g,v){n(!(g%u));do r[s+(g-=u)]=v;while(0<g)}function F(r,s,u,g,v){if(n(2328>=v),512>=v)var w=o(512);else if((w=o(v))==null)return 0;return(function(_,x,S,I,H,J){var C,W,K=x,st=1<<S,X=o(16),ht=o(16);for(n(H!=0),n(I!=null),n(_!=null),n(0<S),W=0;W<H;++W){if(15<I[W])return 0;++X[I[W]]}if(X[0]==H)return 0;for(ht[1]=0,C=1;15>C;++C){if(X[C]>1<<C)return 0;ht[C+1]=ht[C]+X[C]}for(W=0;W<H;++W)C=I[W],0<I[W]&&(J[ht[C]++]=W);if(ht[15]==1)return(I=new U).g=0,I.value=J[0],N(_,K,1,st,I),st;var ct,wt=-1,bt=st-1,jt=0,Pt=1,ie=1,Ot=1<<S;for(W=0,C=1,H=2;C<=S;++C,H<<=1){if(Pt+=ie<<=1,0>(ie-=X[C]))return 0;for(;0<X[C];--X[C])(I=new U).g=C,I.value=J[W++],N(_,K+jt,H,Ot,I),jt=et(jt,C)}for(C=S+1,H=2;15>=C;++C,H<<=1){if(Pt+=ie<<=1,0>(ie-=X[C]))return 0;for(;0<X[C];--X[C]){if(I=new U,(jt&bt)!=wt){for(K+=Ot,ct=1<<(wt=C)-S;15>wt&&!(0>=(ct-=X[wt]));)++wt,ct<<=1;st+=Ot=1<<(ct=wt-S),_[x+(wt=jt&bt)].g=ct+S,_[x+wt].value=K-x-wt}I.g=C-S,I.value=J[W++],N(_,K+(jt>>S),H,Ot,I),jt=et(jt,C)}}return Pt!=2*ht[15]-1?0:st})(r,s,u,g,v,w)}function U(){this.value=this.g=0}function q(){this.value=this.g=0}function it(){this.G=c(5,U),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=c(ra,q)}function ft(r,s,u,g){n(r!=null),n(s!=null),n(2147483648>g),r.Ca=254,r.I=0,r.b=-8,r.Ka=0,r.oa=s,r.pa=u,r.Jd=s,r.Yc=u+g,r.Zc=4<=g?u+g-4+1:u,rt(r)}function pt(r,s){for(var u=0;0<s--;)u|=dt(r,128)<<s;return u}function nt(r,s){var u=pt(r,s);return at(r)?-u:u}function ut(r,s,u,g){var v,w=0;for(n(r!=null),n(s!=null),n(4294967288>g),r.Sb=g,r.Ra=0,r.u=0,r.h=0,4<g&&(g=4),v=0;v<g;++v)w+=s[u+v]<<8*v;r.Ra=w,r.bb=g,r.oa=s,r.pa=u}function At(r){for(;8<=r.u&&r.bb<r.Sb;)r.Ra>>>=8,r.Ra+=r.oa[r.pa+r.bb]<<Nn-8>>>0,++r.bb,r.u-=8;G(r)&&(r.h=1,r.u=0)}function yt(r,s){if(n(0<=s),!r.h&&s<=za){var u=B(r)&Lr[s];return r.u+=s,At(r),u}return r.h=1,r.u=0}function y(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function R(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function B(r){return r.Ra>>>(r.u&Nn-1)>>>0}function G(r){return n(r.bb<=r.Sb),r.h||r.bb==r.Sb&&r.u>Nn}function Y(r,s){r.u=s,r.h=G(r)}function Q(r){r.u>=En&&(n(r.u>=En),At(r))}function rt(r){n(r!=null&&r.oa!=null),r.pa<r.Zc?(r.I=(r.oa[r.pa++]|r.I<<8)>>>0,r.b+=8):(n(r!=null&&r.oa!=null),r.pa<r.Yc?(r.b+=8,r.I=r.oa[r.pa++]|r.I<<8):r.Ka?r.b=0:(r.I<<=8,r.b+=8,r.Ka=1))}function at(r){return pt(r,1)}function dt(r,s){var u=r.Ca;0>r.b&&rt(r);var g=r.b,v=u*s>>>8,w=(r.I>>>g>v)+0;for(w?(u-=v,r.I-=v+1<<g>>>0):u=v+1,g=u,v=0;256<=g;)v+=8,g>>=8;return g=7^v+aa[g],r.b-=g,r.Ca=(u<<g)-1,w}function xt(r,s,u){r[s+0]=u>>24&255,r[s+1]=u>>16&255,r[s+2]=u>>8&255,r[s+3]=255&u}function St(r,s){return r[s+0]|r[s+1]<<8}function kt(r,s){return St(r,s)|r[s+2]<<16}function zt(r,s){return St(r,s)|St(r,s+2)<<16}function P(r,s){var u=1<<s;return n(r!=null),n(0<s),r.X=o(u),r.X==null?0:(r.Mb=32-s,r.Xa=s,1)}function Lt(r,s){n(r!=null),n(s!=null),n(r.Xa==s.Xa),i(s.X,0,r.X,0,1<<s.Xa)}function ae(){this.X=[],this.Xa=this.Mb=0}function Ht(r,s,u,g){n(u!=null),n(g!=null);var v=u[0],w=g[0];return v==0&&(v=(r*w+s/2)/s),w==0&&(w=(s*v+r/2)/r),0>=v||0>=w?0:(u[0]=v,g[0]=w,1)}fu
|
|||
|
|
* @license
|
|||
|
|
* jsPDF XMP metadata plugin
|
|||
|
|
* Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
|
|||
|
|
*
|
|||
|
|
* Permission is hereby granted, free of charge, to any person obtaining
|
|||
|
|
* a copy of this software and associated documentation files (the
|
|||
|
|
* "Software"), to deal in the Software without restriction, including
|
|||
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|||
|
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
|||
|
|
* permit persons to whom the Software is furnished to do so, subject to
|
|||
|
|
* the following conditions:
|
|||
|
|
*
|
|||
|
|
* The above copyright notice and this permission notice shall be
|
|||
|
|
* included in all copies or substantial portions of the Software.
|
|||
|
|
*
|
|||
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|||
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|||
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|||
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|||
|
|
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|||
|
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|||
|
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
|
* ====================================================================
|
|||
|
|
*/function N5(){var t,n=this.internal.__metadata__.metadata,e=unescape(encodeURIComponent(n));t=this.internal.__metadata__.rawXml?e:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceUri+'"><jspdf:metadata>'+e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+t.length+" >>"),this.internal.write("stream"),this.internal.write(t),this.internal.write("endstream"),this.internal.write("endobj")}function L5(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(t){var n,e,i,a,o,c,l,f,d,m=function(y){return y=y||{},this.isStrokeTransparent=y.isStrokeTransparent||!1,this.strokeOpacity=y.strokeOpacity||1,this.strokeStyle=y.strokeStyle||"#000000",this.fillStyle=y.fillStyle||"#000000",this.isFillTransparent=y.isFillTransparent||!1,this.fillOpacity=y.fillOpacity||1,this.font=y.font||"10px sans-serif",this.textBaseline=y.textBaseline||"alphabetic",this.textAlign=y.textAlign||"left",this.lineWidth=y.lineWidth||1,this.lineJoin=y.lineJoin||"miter",this.lineCap=y.lineCap||"butt",this.path=y.path||[],this.transform=y.transform!==void 0?y.transform.clone():new f,this.globalCompositeOperation=y.globalCompositeOperation||"normal",this.globalAlpha=y.globalAlpha||1,this.clip_path=y.clip_path||[],this.currentPoint=y.currentPoint||new c,this.miterLimit=y.miterLimit||10,this.lastPoint=y.lastPoint||new c,this.lineDashOffset=y.lineDashOffset||0,this.lineDash=y.lineDash||[],this.margin=y.margin||[0,0,0,0],this.prevPageLastElemOffset=y.prevPageLastElemOffset||0,this.ignoreClearRect=typeof y.ignoreClearRect!="boolean"||y.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new A(this),n=this.internal.f2,e=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,c=this.internal.Point,l=this.internal.Rectangle,f=this.internal.Matrix,d=new m}]);var A=function(y){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var R=y;Object.defineProperty(this,"pdf",{get:function(){return R}});var B=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return B},set:function(P){B=!!P}});var G=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return G},set:function(P){G=!!P}});var Y=0;Object.defineProperty(this,"posX",{get:function(){return Y},set:function(P){isNaN(P)||(Y=P)}});var Q=0;Object.defineProperty(this,"posY",{get:function(){return Q},set:function(P){isNaN(P)||(Q=P)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(P){var Lt;typeof P=="number"?Lt=[P,P,P,P]:((Lt=new Array(4))[0]=P[0],Lt[1]=P.length>=2?P[1]:Lt[0],Lt[2]=P.length>=3?P[2]:Lt[0],Lt[3]=P.length>=4?P[3]:Lt[1]),d.margin=Lt}});var rt=!1;Object.defineProperty(this,"autoPaging",{get:function(){return rt},set:function(P){rt=P}});var at=0;Object.defineProperty(this,"lastBreak",{get:function(){return at},set:function(P){at=P}});var dt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return dt},set:function(P){dt=P}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(P){P instanceof m&&(d=P)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(P){d.path=P}});var xt=[];Object.defineProperty(this,"ctxStack",{get:function(){return xt},set:function(P){xt=P}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(P){var Lt;Lt=L(P),this.ctx.fillStyle=Lt.style,this.ctx.isFillTransparent=Lt.a===0,this.ctx.fillOpacity=Lt.a,this.pdf.setFillColor(Lt.r,Lt.g,Lt.b,{a:Lt.a}),this.pdf.setTextColor(Lt.r,Lt.g,Lt.b,{a:Lt.a})}}),Object.d
|
|||
|
|
`},e.outline.makeRef=function(i){return i.id+" 0 R"},e.outline.makeString=function(i){return"("+e.internal.pdfEscape(i)+")"},e.outline.objStart=function(i){this.ctx.val+=`\r
|
|||
|
|
`+i.id+` 0 obj\r
|
|||
|
|
<<\r
|
|||
|
|
`},e.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|||
|
|
endobj\r
|
|||
|
|
`},e.outline.count_r=function(i,a){for(var o=0;o<a.children.length;o++)i.count++,this.count_r(i,a.children[o]);return i.count}}])})(Dt.API),(function(t){var n=[192,193,194,195,196,197,198,199];t.processJPEG=function(e,i,a,o,c,l){var f,d=this.decode.DCT_DECODE,m=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=c||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,f=(function(A){for(var L,p=256*A.charCodeAt(4)+A.charCodeAt(5),T=A.length,O={width:0,height:0,numcomponents:1},j=4;j<T;j+=2){if(j+=p,n.indexOf(A.charCodeAt(j+1))!==-1){L=256*A.charCodeAt(j+5)+A.charCodeAt(j+6),O={width:256*A.charCodeAt(j+7)+A.charCodeAt(j+8),height:L,numcomponents:A.charCodeAt(j+9)};break}p=256*A.charCodeAt(j+2)+A.charCodeAt(j+3)}return O})(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),f.numcomponents){case 1:l=this.color_spaces.DEVICE_GRAY;break;case 4:l=this.color_spaces.DEVICE_CMYK;break;case 3:l=this.color_spaces.DEVICE_RGB}m={data:e,width:f.width,height:f.height,colorSpace:l,bitsPerComponent:8,filter:d,index:i,alias:a}}return m}})(Dt.API),Dt.API.processPNG=function(t,n,e,i){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var a,o=n5(t,{checkCrc:!0}),c=o.width,l=o.height,f=o.channels,d=o.palette,m=o.depth;a=d&&f===1?(function(tt){for(var z=tt.width,et=tt.height,N=tt.data,F=tt.palette,U=tt.depth,q=!1,it=[],ft=[],pt=void 0,nt=!1,ut=0,At=0;At<F.length;At++){var yt=jh(F[At],4),y=yt[0],R=yt[1],B=yt[2],G=yt[3];it.push(y,R,B),G!=null&&(G===0?(ut++,ft.length<1&&ft.push(At)):G<255&&(nt=!0))}if(nt||ut>1){q=!0,ft=void 0;var Y=z*et;pt=new Uint8Array(Y);for(var Q=new DataView(N.buffer),rt=0;rt<Y;rt++){var at=Pl(Q,rt,U),dt=jh(F[at],4)[3];pt[rt]=dt}}else ut===0&&(ft=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:q?8:void 0,colorBytes:N,alphaBytes:pt,needSMask:q,palette:it,mask:ft}})(o):f===2||f===4?(function(tt){for(var z=tt.data,et=tt.width,N=tt.height,F=tt.channels,U=tt.depth,q=F===2?"DeviceGray":"DeviceRGB",it=F-1,ft=et*N,pt=it,nt=ft*pt,ut=1*ft,At=Math.ceil(nt*U/8),yt=Math.ceil(ut*U/8),y=new Uint8Array(At),R=new Uint8Array(yt),B=new DataView(z.buffer),G=new DataView(y.buffer),Y=new DataView(R.buffer),Q=!1,rt=0;rt<ft;rt++){for(var at=rt*F,dt=0;dt<pt;dt++)Yc(G,Pl(B,at+dt,U),rt*pt+dt,U);var xt=Pl(B,at+pt,U);xt<(1<<U)-1&&(Q=!0),Yc(Y,xt,1*rt,U)}return{colorSpace:q,colorsPerPixel:it,sMaskBitsPerComponent:Q?U:void 0,colorBytes:y,alphaBytes:R,needSMask:Q}})(o):(function(tt){var z=tt.data,et=tt.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:et,colorsPerPixel:et==="DeviceGray"?1:3,colorBytes:z instanceof Uint16Array?(function(N){for(var F=N.length,U=new Uint8Array(2*F),q=new DataView(U.buffer,U.byteOffset,U.byteLength),it=0;it<F;it++)q.setUint16(2*it,N[it],!1);return U})(z):z,needSMask:!1}})(o);var A,L,p,T=a,O=T.colorSpace,j=T.colorsPerPixel,k=T.sMaskBitsPerComponent,Z=T.colorBytes,$=T.alphaBytes,M=T.needSMask,lt=T.palette,_t=T.mask,mt=null;return i!==Dt.API.image_compression.NONE&&typeof Il=="function"?(mt=(function(tt){var z;switch(tt){case Dt.API.image_compression.FAST:z=11;break;case Dt.API.image_compression.MEDIUM:z=13;break;case Dt.API.image_compression.SLOW:z=14;break;default:z=12}return z})(i),A=this.decode.FLATE_DECODE,L="/Predictor ".concat(mt," /Colors ").concat(j," /BitsPerComponent ").concat(m," /Columns ").concat(c),t=Wc(Z,Math.ceil(c*j*m/8),j,m,i),M&&(p=Wc($,Math.ceil(c*k/8),1,k,i))):(A=void 0,L=void 0,t=Z,M&&(p=$)),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(p&&this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),{alias:e,data:t,index:n,filter:A,decodeParameters:L,transparency:_t,palette:lt,sMask:p,predictor:mt,width:c,height:l,bitsPerComponent:m,sMaskBitsPerComponent:k,colorSpace:O}}},(function(t){t.processGIF89A=function(n,e,i,a){var o=new A5(n),c=o.width,l=o.height,f=[];o.decodeAndBli
|
|||
|
|
`:"")+lt})):Z.push(M[0])}),O=Z,f=qc.apply(this,[k,e])}for(o=0,c=O.length;o<c;o++){var $=0;if(i=O[o],f&&i[0]==`
|
|||
|
|
`&&(i=i.substr(1),$=1),L+p+(T=(a=as.apply(this,[i,e])).reduce(function(M,lt){return M+lt},0))>n||$){if(T>n){for(l=zc.apply(this,[i,a,n-(L+p),n]),m.push(l.shift()),m=[l.pop()];l.length;)A.push([l.shift()]);T=a.slice(i.length-(m[0]?m[0].length:0)).reduce(function(M,lt){return M+lt},0)}else m=[i];A.push(m),L=T+f,p=j}else m.push(i),L+=p+T,p=j}return d=f?function(M,lt){return(lt?k:"")+M.join(" ")}:function(M){return M.join(" ")},A.map(d)},pa.splitTextToSize=function(t,n,e){var i,a=(e=e||{}).fontSize||this.internal.getFontSize(),o=function(m){if(m.widths&&m.kerning)return{widths:m.widths,kerning:m.kerning};var A=this.internal.getFont(m.fontName,m.fontStyle),L="Unicode";return A.metadata[L]?{widths:A.metadata[L].widths||{0:1},kerning:A.metadata[L].kerning||{}}:{font:A.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,e);i=Array.isArray(t)?t:String(t).split(/\r?\n/);var c=1*this.internal.scaleFactor*n/a;o.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/a:0,o.lineIndent=e.lineIndent;var l,f,d=[];for(l=0,f=i.length;l<f;l++)d=d.concat(Hc.apply(this,[i[l],c,o]));return d},(function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var n="0123456789abcdef",e="klmnopqrstuvwxyz",i={},a={},o=0;o<16;o++)i[e[o]]=n[o],a[n[o]]=e[o];var c=function(L){return"0x"+parseInt(L,10).toString(16)},l=t.__fontmetrics__.compress=function(L){var p,T,O,j,k=["{"];for(var Z in L){if(p=L[Z],isNaN(parseInt(Z,10))?T="'"+Z+"'":(Z=parseInt(Z,10),T=(T=c(Z).slice(2)).slice(0,-1)+a[T.slice(-1)]),typeof p=="number")p<0?(O=c(p).slice(3),j="-"):(O=c(p).slice(2),j=""),O=j+O.slice(0,-1)+a[O.slice(-1)];else{if(Pe(p)!=="object")throw new Error("Don't know what to do with value type "+Pe(p)+".");O=l(p)}k.push(T+O)}return k.push("}"),k.join("")},f=t.__fontmetrics__.uncompress=function(L){if(typeof L!="string")throw new Error("Invalid argument passed to uncompress.");for(var p,T,O,j,k={},Z=1,$=k,M=[],lt="",_t="",mt=L.length-1,tt=1;tt<mt;tt+=1)(j=L[tt])=="'"?p?(O=p.join(""),p=void 0):p=[]:p?p.push(j):j=="{"?(M.push([$,O]),$={},O=void 0):j=="}"?((T=M.pop())[0][T[1]]=$,O=void 0,$=T[0]):j=="-"?Z=-1:O===void 0?i.hasOwnProperty(j)?(lt+=i[j],O=parseInt(lt,16)*Z,Z=1,lt=""):lt+=j:i.hasOwnProperty(j)?(_t+=i[j],$[O]=parseInt(_t,16)*Z,Z=1,O=void 0,_t=""):_t+=j;return k},d={codePages:["WinAnsiEncoding"],WinAnsiEncoding:f("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},m={Unicode:{Courier:d,"Courier-Bold":d,"Courier-BoldOblique":d,"Courier-Oblique":d,Helvetica:d,"Helvetica-Bold":d,"Helvetica-BoldOblique":d,"Helvetica-Oblique":d,"Times-Roman":d,"Times-Bold":d,"Times-BoldItalic":d,"Times-Italic":d}},A={Unicode:{"Courier-Oblique":f("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":f("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'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{4q
|
|||
|
|
<<
|
|||
|
|
`+O.join(`
|
|||
|
|
`)+`
|
|||
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},Dt.API.addMetadata=function(t,n){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:t,namespaceUri:n!=null?n:"http://jspdf.default.namespaceuri/",rawXml:typeof n=="boolean"&&n},this.internal.events.subscribe("putCatalog",L5),this.internal.events.subscribe("postPutResources",N5)),this},(function(t){var n=t.API,e=n.pdfEscape16=function(o,c){for(var l,f=c.metadata.Unicode.widths,d=["","0","00","000","0000"],m=[""],A=0,L=o.length;A<L;++A){if(l=c.metadata.characterToGlyph(o.charCodeAt(A)),c.metadata.glyIdsUsed.push(l),c.metadata.toUnicode[l]=o.charCodeAt(A),f.indexOf(l)==-1&&(f.push(l),f.push([parseInt(c.metadata.widthOfGlyph(l),10)])),l=="0")return m.join("");l=l.toString(16),m.push(d[4-l.length],l)}return m.join("")},i=function(o){var c,l,f,d,m,A,L;for(m=`/CIDInit /ProcSet findresource begin
|
|||
|
|
12 dict begin
|
|||
|
|
begincmap
|
|||
|
|
/CIDSystemInfo <<
|
|||
|
|
/Registry (Adobe)
|
|||
|
|
/Ordering (UCS)
|
|||
|
|
/Supplement 0
|
|||
|
|
>> def
|
|||
|
|
/CMapName /Adobe-Identity-UCS def
|
|||
|
|
/CMapType 2 def
|
|||
|
|
1 begincodespacerange
|
|||
|
|
<0000><ffff>
|
|||
|
|
endcodespacerange`,f=[],A=0,L=(l=Object.keys(o).sort(function(p,T){return p-T})).length;A<L;A++)c=l[A],f.length>=100&&(m+=`
|
|||
|
|
`+f.length+` beginbfchar
|
|||
|
|
`+f.join(`
|
|||
|
|
`)+`
|
|||
|
|
endbfchar`,f=[]),o[c]!==void 0&&o[c]!==null&&typeof o[c].toString=="function"&&(d=("0000"+o[c].toString(16)).slice(-4),c=("0000"+(+c).toString(16)).slice(-4),f.push("<"+c+"><"+d+">"));return f.length&&(m+=`
|
|||
|
|
`+f.length+` beginbfchar
|
|||
|
|
`+f.join(`
|
|||
|
|
`)+`
|
|||
|
|
endbfchar
|
|||
|
|
`),m+`endcmap
|
|||
|
|
CMapName currentdict /CMap defineresource pop
|
|||
|
|
end
|
|||
|
|
end`};n.events.push(["putFont",function(o){(function(c){var l=c.font,f=c.out,d=c.newObject,m=c.putStream;if(l.metadata instanceof t.API.TTFFont&&l.encoding==="Identity-H"){for(var A=l.metadata.Unicode.widths,L=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),p="",T=0;T<L.length;T++)p+=String.fromCharCode(L[T]);var O=d();m({data:p,addLength1:!0,objectId:O}),f("endobj");var j=d();m({data:i(l.metadata.toUnicode),addLength1:!0,objectId:j}),f("endobj");var k=d();f("<<"),f("/Type /FontDescriptor"),f("/FontName /"+ma(l.fontName)),f("/FontFile2 "+O+" 0 R"),f("/FontBBox "+t.API.PDFObject.convert(l.metadata.bbox)),f("/Flags "+l.metadata.flags),f("/StemV "+l.metadata.stemV),f("/ItalicAngle "+l.metadata.italicAngle),f("/Ascent "+l.metadata.ascender),f("/Descent "+l.metadata.decender),f("/CapHeight "+l.metadata.capHeight),f(">>"),f("endobj");var Z=d();f("<<"),f("/Type /Font"),f("/BaseFont /"+ma(l.fontName)),f("/FontDescriptor "+k+" 0 R"),f("/W "+t.API.PDFObject.convert(A)),f("/CIDToGIDMap /Identity"),f("/DW 1000"),f("/Subtype /CIDFontType2"),f("/CIDSystemInfo"),f("<<"),f("/Supplement 0"),f("/Registry (Adobe)"),f("/Ordering ("+l.encoding+")"),f(">>"),f(">>"),f("endobj"),l.objectNumber=d(),f("<<"),f("/Type /Font"),f("/Subtype /Type0"),f("/ToUnicode "+j+" 0 R"),f("/BaseFont /"+ma(l.fontName)),f("/Encoding /"+l.encoding),f("/DescendantFonts ["+Z+" 0 R]"),f(">>"),f("endobj"),l.isAlreadyPutted=!0}})(o)}]),n.events.push(["putFont",function(o){(function(c){var l=c.font,f=c.out,d=c.newObject,m=c.putStream;if(l.metadata instanceof t.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var A=l.metadata.rawData,L="",p=0;p<A.length;p++)L+=String.fromCharCode(A[p]);var T=d();m({data:L,addLength1:!0,objectId:T}),f("endobj");var O=d();m({data:i(l.metadata.toUnicode),addLength1:!0,objectId:O}),f("endobj");var j=d();f("<<"),f("/Descent "+l.metadata.decender),f("/CapHeight "+l.metadata.capHeight),f("/StemV "+l.metadata.stemV),f("/Type /FontDescriptor"),f("/FontFile2 "+T+" 0 R"),f("/Flags 96"),f("/FontBBox "+t.API.PDFObject.convert(l.metadata.bbox)),f("/FontName /"+ma(l.fontName)),f("/ItalicAngle "+l.metadata.italicAngle),f("/Ascent "+l.metadata.ascender),f(">>"),f("endobj"),l.objectNumber=d();for(var k=0;k<l.metadata.hmtx.widths.length;k++)l.metadata.hmtx.widths[k]=parseInt(l.metadata.hmtx.widths[k]*(1e3/l.metadata.head.unitsPerEm));f("<</Subtype/TrueType/Type/Font/ToUnicode "+O+" 0 R/BaseFont/"+ma(l.fontName)+"/FontDescriptor "+j+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),f("endobj"),l.isAlreadyPutted=!0}})(o)}]);var a=function(o){var c,l=o.text||"",f=o.x,d=o.y,m=o.options||{},A=o.mutex||{},L=A.pdfEscape,p=A.activeFontKey,T=A.fonts,O=p,j="",k=0,Z="",$=T[O].encoding;if(T[O].encoding!=="Identity-H")return{text:l,x:f,y:d,options:m,mutex:A};for(Z=l,O=p,Array.isArray(l)&&(Z=l[0]),k=0;k<Z.length;k+=1)T[O].metadata.hasOwnProperty("cmap")&&(c=T[O].metadata.cmap.unicode.codeMap[Z[k].charCodeAt(0)]),c||Z[k].charCodeAt(0)<256&&T[O].metadata.hasOwnProperty("Unicode")?j+=Z[k]:j+="";var M="";return parseInt(O.slice(1))<14||$==="WinAnsiEncoding"?M=L(j,O).split("").map(function(lt){return lt.charCodeAt(0).toString(16)}).join(""):$==="Identity-H"&&(M=e(j,T[O])),A.isHex=!0,{text:M,x:f,y:d,options:m,mutex:A}};n.events.push(["postProcessText",function(o){var c=o.text||"",l=[],f={text:c,x:o.x,y:o.y,options:o.options,mutex:o.mutex};if(Array.isArray(c)){var d=0;for(d=0;d<c.length;d+=1)Array.isArray(c[d])&&c[d].length===3?l.push([a(Object.assign({},f,{text:c[d][0]})).text,c[d][1],c[d][2]]):l.push(a(Object.assign({},f,{text:c[d]})).text);o.text=l}else o.text=a(Object.assign({},f,{text:c})).text}])})(Dt),(function(t){var n=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(e){return n.call(this),this.internal.vFS[e]!==void 0},t.addFileToVFS=function(e,i){return n.call(this),this.internal.vFS[e]=i,this},t.getFileFromVFS=function(e){return n.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}})(Dt.API),(function(t){t.__bidiEngine__=t.proto
|
|||
|
|
`)}return""+e},n})();export{td as AcroForm,It as AcroFormAppearance,sn as AcroFormButton,fs as AcroFormCheckBox,wa as AcroFormChoiceField,ya as AcroFormComboBox,hs as AcroFormEditBox,_a as AcroFormListBox,us as AcroFormPasswordField,cs as AcroFormPushButton,xa as AcroFormRadioButton,jr as AcroFormTextField,ms as GState,Fr as ShadingPattern,ba as TilingPattern,Dt as default,Dt as jsPDF};
|