265 lines
558 KiB
JavaScript
265 lines
558 KiB
JavaScript
|
|
import{Q as Nl}from"./QTooltip-5ceb1b84.js";import{ar as fB,aq as nf,a as zr,d as Ku,a9 as sf,c as Hl,o as Tu,w as iu,e as ut,f as ht,A as _A,g as ur,as as BB,m as Ie,D as Et,z as gB,F as xe,i as Ur,v as vr,at as dB,au as pB,ag as Sl,ab as wB,j as Mn,ac as Pl,C as kl,a4 as mB,a2 as CB,ah as FB,s as QB}from"./index-3a2b6cd5.js";import{a as yB,Q as vB}from"./QBreadcrumbs-8582ad34.js";import{c as Dl}from"./app.config-a8647d06.js";import{u as bB}from"./mixin-183f301b.js";/*!
|
|||
|
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|||
|
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|||
|
|
* Released under MIT License
|
|||
|
|
*//*! *****************************************************************************
|
|||
|
|
Copyright (c) Microsoft Corporation.
|
|||
|
|
|
|||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|||
|
|
purpose with or without fee is hereby granted.
|
|||
|
|
|
|||
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|||
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|||
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|||
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|||
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|||
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|||
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|||
|
|
***************************************************************************** */var su=function(e,A){return su=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},su(e,A)};function hr(e,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");su(e,A);function t(){this.constructor=e}e.prototype=A===null?Object.create(A):(t.prototype=A.prototype,new t)}var ou=function(){return ou=Object.assign||function(e){for(var A,t=1,r=arguments.length;t<r;t++){A=arguments[t];for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&(e[n]=A[n])}return e},ou.apply(this,arguments)};function we(e,A,t,r){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function c(B){try{f(r.next(B))}catch(p){o(p)}}function u(B){try{f(r.throw(B))}catch(p){o(p)}}function f(B){B.done?i(B.value):n(B.value).then(c,u)}f((r=r.apply(e,A||[])).next())})}function ge(e,A){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,n,i,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(f){return function(B){return u([f,B])}}function u(f){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=f[0]&2?n.return:f[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,f[1])).done)return i;switch(n=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,n=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){t.label=f[1];break}if(f[0]===6&&t.label<i[1]){t.label=i[1],i=f;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(f);break}i[2]&&t.ops.pop(),t.trys.pop();continue}f=A.call(e,t)}catch(B){f=[6,B],n=0}finally{r=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function Po(e,A,t){if(t||arguments.length===2)for(var r=0,n=A.length,i;r<n;r++)(i||!(r in A))&&(i||(i=Array.prototype.slice.call(A,0,r)),i[r]=A[r]);return e.concat(i||A)}var Yr=function(){function e(A,t,r,n){this.left=A,this.top=t,this.width=r,this.height=n}return e.prototype.add=function(A,t,r,n){return new e(this.left+A,this.top+t,this.width+r,this.height+n)},e.fromClientRect=function(A,t){return new e(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height)},e.fromDOMRectList=function(A,t){var r=Array.from(t).find(function(n){return n.width!==0});return r?new e(r.left+A.windowBounds.left,r.top+A.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),Ia=function(e,A){return Yr.fromClientRect(e,A.getBoundingClientRect())},UB=function(e){var A=e.body,t=e.documentElement;if(!A||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(A.scrollWidth,t.scrollWidth),Math.max(A.offsetWidth,t.offsetWidth),Math.max(A.clientWidth,t.clientWidth)),n=Math.max(Math.max(A.scrollHeight,t.scrollHeight),Math.max(A.offsetHeight,t.offsetHeight),Math.max(A.clientHeight,t.clientHeight));return new Yr(0,0,r,n)},xa=function(e){for(var A=[],t=0,r=e.length;t<r;){var n=e.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=e.charCodeAt(t++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),t--)}else A.push(n)}return A},Tt=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";for(var r=[],n=-1,i="";++n<t;){var o=e[n];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(n+1===t||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},_l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",LB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ko=0;ko<_l.length;ko++)LB[_l.charCodeAt(ko)]=ko;var Ml="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrst
|
|||
|
|
content: "" !important;
|
|||
|
|
display: none !important;
|
|||
|
|
}`,l5=function(e){h5(e,"."+Uu+c5+Sh+`
|
|||
|
|
.`+Lu+u5+Sh)},h5=function(e,A){var t=e.ownerDocument;if(t){var r=t.createElement("style");r.textContent=A,e.appendChild(r)}},r1=function(){function e(){}return e.getOrigin=function(A){var t=e._link;return t?(t.href=A,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement("a"),e._origin=e.getOrigin(A.location.href)},e._origin="about:blank",e}(),f5=function(){function e(A,t){this.context=A,this._options=t,this._cache={}}return e.prototype.addImage=function(A){var t=Promise.resolve();return this.has(A)||(Xc(A)||p5(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),t},e.prototype.match=function(A){return this._cache[A]},e.prototype.loadImage=function(A){return we(this,void 0,void 0,function(){var t,r,n,i,o=this;return ge(this,function(c){switch(c.label){case 0:return t=r1.isSameOrigin(A),r=!zc(A)&&this._options.useCORS===!0&&se.SUPPORT_CORS_IMAGES&&!t,n=!zc(A)&&!t&&!Xc(A)&&typeof this._options.proxy=="string"&&se.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!zc(A)&&!Xc(A)&&!n&&!r?[2]:(i=A,n?[4,this.proxy(i)]:[3,2]);case 1:i=c.sent(),c.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(u,f){var B=new Image;B.onload=function(){return u(B)},B.onerror=f,(w5(i)||r)&&(B.crossOrigin="anonymous"),B.src=i,B.complete===!0&&setTimeout(function(){return u(B)},500),o._options.imageTimeout>0&&setTimeout(function(){return f("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,c.sent()]}})})},e.prototype.has=function(A){return typeof this._cache[A]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(A){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise(function(i,o){var c=se.SUPPORT_RESPONSE_TYPE?"blob":"text",u=new XMLHttpRequest;u.onload=function(){if(u.status===200)if(c==="text")i(u.response);else{var p=new FileReader;p.addEventListener("load",function(){return i(p.result)},!1),p.addEventListener("error",function(w){return o(w)},!1),p.readAsDataURL(u.response)}else o("Failed to proxy resource "+n+" with status code "+u.status)},u.onerror=o;var f=r.indexOf("?")>-1?"&":"?";if(u.open("GET",""+r+f+"url="+encodeURIComponent(A)+"&responseType="+c),c!=="text"&&u instanceof XMLHttpRequest&&(u.responseType=c),t._options.imageTimeout){var B=t._options.imageTimeout;u.timeout=B,u.ontimeout=function(){return o("Timed out ("+B+"ms) proxying "+n)}}u.send()})},e}(),B5=/^data:image\/svg\+xml/i,g5=/^data:image\/.*;base64,/i,d5=/^data:image\/.*/i,p5=function(e){return se.SUPPORT_SVG_DRAWING||!m5(e)},zc=function(e){return d5.test(e)},w5=function(e){return g5.test(e)},Xc=function(e){return e.substr(0,4)==="blob"},m5=function(e){return e.substr(-3).toLowerCase()==="svg"||B5.test(e)},NA=function(){function e(A,t){this.type=0,this.x=A,this.y=t}return e.prototype.add=function(A,t){return new e(this.x+A,this.y+t)},e}(),Ui=function(e,A,t){return new NA(e.x+(A.x-e.x)*t,e.y+(A.y-e.y)*t)},$o=function(){function e(A,t,r,n){this.type=1,this.start=A,this.startControl=t,this.endControl=r,this.end=n}return e.prototype.subdivide=function(A,t){var r=Ui(this.start,this.startControl,A),n=Ui(this.startControl,this.endControl,A),i=Ui(this.endControl,this.end,A),o=Ui(r,n,A),c=Ui(n,i,A),u=Ui(o,c,A);return t?new e(this.start,r,o,u):new e(u,c,i,this.end)},e.prototype.add=function(A,t){return new e(this.start.add(A,t),this.startControl.add(A,t),this.endControl.add(A,t),this.end.add(A,t))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),je=function(e){return e.type===1},C5=function(){function e(A){var t=A.styles,r=A.bounds,n=Es(t.borderTopLeftRadius,r.width,r.height),i=n[0],o=n[1],c=Es(t.borderTopRightRadius,r.width,r.height),u=c[0],f=c[1],B=Es(t.borderBottomRightRadius,r.width,r.height),p=B[0],w=B[1],g=Es(t.borderBottomLeftRadius,r.width,r.height)
|
|||
|
|
*
|
|||
|
|
* jsPDF - PDF Document creation from JavaScript
|
|||
|
|
* Version 2.5.1 Built on 2022-01-28T15:37:57.791Z
|
|||
|
|
* CommitID 00000000
|
|||
|
|
*
|
|||
|
|
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
|
|||
|
|
* 2015-2021 yWorks GmbH, http://www.yworks.com
|
|||
|
|
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
|
|||
|
|
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
|
|||
|
|
* 2010 Aaron Spike, https://github.com/acspike
|
|||
|
|
* 2012 Willow Systems Corporation, https://github.com/willowsystems
|
|||
|
|
* 2012 Pablo Hess, https://github.com/pablohess
|
|||
|
|
* 2012 Florian Jenett, https://github.com/fjenett
|
|||
|
|
* 2013 Warren Weckesser, https://github.com/warrenweckesser
|
|||
|
|
* 2013 Youssef Beddad, https://github.com/lifof
|
|||
|
|
* 2013 Lee Driscoll, https://github.com/lsdriscoll
|
|||
|
|
* 2013 Stefan Slonevskiy, https://github.com/stefslon
|
|||
|
|
* 2013 Jeremy Morel, https://github.com/jmorel
|
|||
|
|
* 2013 Christoph Hartmann, https://github.com/chris-rock
|
|||
|
|
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
|
|||
|
|
* 2014 James Makes, https://github.com/dollaruw
|
|||
|
|
* 2014 Diego Casorran, https://github.com/diegocr
|
|||
|
|
* 2014 Steven Spungin, https://github.com/Flamenco
|
|||
|
|
* 2014 Kenneth Glassey, https://github.com/Gavvers
|
|||
|
|
*
|
|||
|
|
* Permission is hereby granted, free of charge, to any person obtaining
|
|||
|
|
* a copy of this software and associated documentation files (the
|
|||
|
|
* "Software"), to deal in the Software without restriction, including
|
|||
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|||
|
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
|||
|
|
* permit persons to whom the Software is furnished to do so, subject to
|
|||
|
|
* the following conditions:
|
|||
|
|
*
|
|||
|
|
* The above copyright notice and this permission notice shall be
|
|||
|
|
* included in all copies or substantial portions of the Software.
|
|||
|
|
*
|
|||
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|||
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|||
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|||
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|||
|
|
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|||
|
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|||
|
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
|
*
|
|||
|
|
* Contributor(s):
|
|||
|
|
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
|
|||
|
|
* kim3er, mfo, alnorth, Flamenco
|
|||
|
|
*/var qA=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Au(){qA.console&&typeof qA.console.log=="function"&&qA.console.log.apply(qA.console,arguments)}var vt={log:Au,warn:function(e){qA.console&&(typeof qA.console.warn=="function"?qA.console.warn.apply(qA.console,arguments):Au.call(null,arguments))},error:function(e){qA.console&&(typeof qA.console.error=="function"?qA.console.error.apply(qA.console,arguments):Au(e))}};function tu(e,A,t){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Kn(r.response,A,t)},r.onerror=function(){vt.error("could not download file")},r.send()}function Kh(e){var A=new XMLHttpRequest;A.open("HEAD",e,!1);try{A.send()}catch{}return A.status>=200&&A.status<=299}function ra(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(A)}}var Ms,Pu,Kn=qA.saveAs||((typeof window>"u"?"undefined":wt(window))!=="object"||window!==qA?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,A,t){var r=qA.URL||qA.webkitURL,n=document.createElement("a");A=A||e.name||"download",n.download=A,n.rel="noopener",typeof e=="string"?(n.href=e,n.origin!==location.origin?Kh(n.href)?tu(e,A,t):ra(n,n.target="_blank"):ra(n)):(n.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){ra(n)},0))}:"msSaveOrOpenBlob"in navigator?function(e,A,t){if(A=A||e.name||"download",typeof e=="string")if(Kh(e))tu(e,A,t);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){ra(r)})}else navigator.msSaveOrOpenBlob(function(n,i){return i===void 0?i={autoBom:!1}:wt(i)!=="object"&&(vt.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob([String.fromCharCode(65279),n],{type:n.type}):n}(e,t),A)}:function(e,A,t,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return tu(e,A,t);var n=e.type==="application/octet-stream",i=/constructor/i.test(qA.HTMLElement)||qA.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||n&&i)&&(typeof FileReader>"u"?"undefined":wt(FileReader))==="object"){var c=new FileReader;c.onloadend=function(){var B=c.result;B=o?B:B.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=B:location=B,r=null},c.readAsDataURL(e)}else{var u=qA.URL||qA.webkitURL,f=u.createObjectURL(e);r?r.location=f:location.href=f,r=null,setTimeout(function(){u.revokeObjectURL(f)},4e4)}});/**
|
|||
|
|
* 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 d1(e){var A;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={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"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(c){return[parseInt(c[1]),parseInt(c[2]),parseInt(c[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(c){return[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(c){return[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]}}],r=0;r<t.length;r++){var n=t[r].re,i=t[r].process,o=n.exec(e);o&&(A=i(o),this.r=A[0],this.g=A[1],this.b=A[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 c=this.r.toString(16),u=this.g.toString(16),f=this.b.toString(16);return c.length==1&&(c="0"+c),u.length==1&&(u="0"+u),f.length==1&&(f="0"+f),"#"+c+u+f}}/**
|
|||
|
|
* @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 eu(e,A){var t=e[0],r=e[1],n=e[2],i=e[3];t=le(t,r,n,i,A[0],7,-680876936),i=le(i,t,r,n,A[1],12,-389564586),n=le(n,i,t,r,A[2],17,606105819),r=le(r,n,i,t,A[3],22,-1044525330),t=le(t,r,n,i,A[4],7,-176418897),i=le(i,t,r,n,A[5],12,1200080426),n=le(n,i,t,r,A[6],17,-1473231341),r=le(r,n,i,t,A[7],22,-45705983),t=le(t,r,n,i,A[8],7,1770035416),i=le(i,t,r,n,A[9],12,-1958414417),n=le(n,i,t,r,A[10],17,-42063),r=le(r,n,i,t,A[11],22,-1990404162),t=le(t,r,n,i,A[12],7,1804603682),i=le(i,t,r,n,A[13],12,-40341101),n=le(n,i,t,r,A[14],17,-1502002290),t=he(t,r=le(r,n,i,t,A[15],22,1236535329),n,i,A[1],5,-165796510),i=he(i,t,r,n,A[6],9,-1069501632),n=he(n,i,t,r,A[11],14,643717713),r=he(r,n,i,t,A[0],20,-373897302),t=he(t,r,n,i,A[5],5,-701558691),i=he(i,t,r,n,A[10],9,38016083),n=he(n,i,t,r,A[15],14,-660478335),r=he(r,n,i,t,A[4],20,-405537848),t=he(t,r,n,i,A[9],5,568446438),i=he(i,t,r,n,A[14],9,-1019803690),n=he(n,i,t,r,A[3],14,-187363961),r=he(r,n,i,t,A[8],20,1163531501),t=he(t,r,n,i,A[13],5,-1444681467),i=he(i,t,r,n,A[2],9,-51403784),n=he(n,i,t,r,A[7],14,1735328473),t=fe(t,r=he(r,n,i,t,A[12],20,-1926607734),n,i,A[5],4,-378558),i=fe(i,t,r,n,A[8],11,-2022574463),n=fe(n,i,t,r,A[11],16,1839030562),r=fe(r,n,i,t,A[14],23,-35309556),t=fe(t,r,n,i,A[1],4,-1530992060),i=fe(i,t,r,n,A[4],11,1272893353),n=fe(n,i,t,r,A[7],16,-155497632),r=fe(r,n,i,t,A[10],23,-1094730640),t=fe(t,r,n,i,A[13],4,681279174),i=fe(i,t,r,n,A[0],11,-358537222),n=fe(n,i,t,r,A[3],16,-722521979),r=fe(r,n,i,t,A[6],23,76029189),t=fe(t,r,n,i,A[9],4,-640364487),i=fe(i,t,r,n,A[12],11,-421815835),n=fe(n,i,t,r,A[15],16,530742520),t=Be(t,r=fe(r,n,i,t,A[2],23,-995338651),n,i,A[0],6,-198630844),i=Be(i,t,r,n,A[7],10,1126891415),n=Be(n,i,t,r,A[14],15,-1416354905),r=Be(r,n,i,t,A[5],21,-57434055),t=Be(t,r,n,i,A[12],6,1700485571),i=Be(i,t,r,n,A[3],10,-1894986606),n=Be(n,i,t,r,A[10],15,-1051523),r=Be(r,n,i,t,A[1],21,-2054922799),t=Be(t,r,n,i,A[8],6,1873313359),i=Be(i,t,r,n,A[15],10,-30611744),n=Be(n,i,t,r,A[6],15,-1560198380),r=Be(r,n,i,t,A[13],21,1309151649),t=Be(t,r,n,i,A[4],6,-145523070),i=Be(i,t,r,n,A[11],10,-1120210379),n=Be(n,i,t,r,A[2],15,718787259),r=Be(r,n,i,t,A[9],21,-343485551),e[0]=Qn(t,e[0]),e[1]=Qn(r,e[1]),e[2]=Qn(n,e[2]),e[3]=Qn(i,e[3])}function Ka(e,A,t,r,n,i){return A=Qn(Qn(A,e),Qn(r,i)),Qn(A<<n|A>>>32-n,t)}function le(e,A,t,r,n,i,o){return Ka(A&t|~A&r,e,A,n,i,o)}function he(e,A,t,r,n,i,o){return Ka(A&r|t&~r,e,A,n,i,o)}function fe(e,A,t,r,n,i,o){return Ka(A^t^r,e,A,n,i,o)}function Be(e,A,t,r,n,i,o){return Ka(t^(A|~r),e,A,n,i,o)}function p1(e){var A,t=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(A=64;A<=e.length;A+=64)eu(r,hp(e.substring(A-64,A)));e=e.substring(A-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(A=0;A<e.length;A++)n[A>>2]|=e.charCodeAt(A)<<(A%4<<3);if(n[A>>2]|=128<<(A%4<<3),A>55)for(eu(r,n),A=0;A<16;A++)n[A]=0;return n[14]=8*t,eu(r,n),r}function hp(e){var A,t=[];for(A=0;A<64;A+=4)t[A>>2]=e.charCodeAt(A)+(e.charCodeAt(A+1)<<8)+(e.charCodeAt(A+2)<<16)+(e.charCodeAt(A+3)<<24);return t}Ms=qA.atob.bind(qA),Pu=qA.btoa.bind(qA);var Th="0123456789abcdef".split("");function fp(e){for(var A="",t=0;t<4;t++)A+=Th[e>>8*t+4&15]+Th[e>>8*t&15];return A}function Bp(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function ku(e){return p1(e).map(Bp).join("")}var gp=function(e){for(var A=0;A<e.length;A++)e[A]=fp(e[A]);return e.join("")}(p1("hello"))!="5d41402abc4b2a76b9719d911017c592";function Qn(e,A){if(gp){var t=(65535&e)+(65535&A);return(e>>16)+(A>>16)+(t>>16)<<16|65535&t}return e+A&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 Du(e,A){var t,r,n,i;if(e!==t){for(var o=(n=e,i=1+(256/e.length>>0),new Array(i+1).join(n)),c=[],u=0;u<256;u++)c[u]=u;var f=0;for(u=0;u<256;u++){var B=c[u];f=(f+B+o.charCodeAt(u))%256,c[u]=c[f],c[f]=B}t=e,r=c}else c=r;var p=A.length,w=0,g=0,L="";for(u=0;u<p;u++)g=(g+(B=c[w=(w+1)%256]))%256,c[w]=c[g],c[g]=B,o=c[(c[w]+c[g])%256],L+=String.fromCharCode(A.charCodeAt(u)^o);return L}/**
|
|||
|
|
* @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 Rh={print:4,modify:8,copy:16,"annot-forms":32};function Hi(e,A,t,r){this.v=1,this.r=2;var n=192;e.forEach(function(c){if(Rh.perm!==void 0)throw new Error("Invalid permission: "+c);n+=Rh[c]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(A+this.padding).substr(0,32),o=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,o),this.P=-(1+(255^n)),this.encryptionKey=ku(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Du(this.encryptionKey,this.padding)}function Si(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var A="",t=e.length,r=0;r<t;r++){var n=e.charCodeAt(r);n<33||n===35||n===37||n===40||n===41||n===47||n===60||n===62||n===91||n===93||n===123||n===125||n>126?A+="#"+("0"+n.toString(16)).slice(-2):A+=e[r]}return A}function Gh(e){if(wt(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var A={};this.subscribe=function(t,r,n){if(n=n||!1,typeof t!="string"||typeof r!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");A.hasOwnProperty(t)||(A[t]={});var i=Math.random().toString(35);return A[t][i]=[r,!!n],i},this.unsubscribe=function(t){for(var r in A)if(A[r][t])return delete A[r][t],Object.keys(A[r]).length===0&&delete A[r],!0;return!1},this.publish=function(t){if(A.hasOwnProperty(t)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in A[t]){var o=A[t][i];try{o[0].apply(e,r)}catch(c){qA.console&&vt.error("jsPDF PubSub Error",c.message,c)}o[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return A}}function Ua(e){if(!(this instanceof Ua))return new Ua(e);var A="opacity,stroke-opacity".split(",");for(var t in e)e.hasOwnProperty(t)&&A.indexOf(t)>=0&&(this[t]=e[t]);this.id="",this.objectNumber=-1}function w1(e,A){this.gState=e,this.matrix=A,this.id="",this.objectNumber=-1}function Tn(e,A,t,r,n){if(!(this instanceof Tn))return new Tn(e,A,t,r,n);this.type=e==="axial"?2:3,this.coords=A,this.colors=t,w1.call(this,r,n)}function Di(e,A,t,r,n){if(!(this instanceof Di))return new Di(e,A,t,r,n);this.boundingBox=e,this.xStep=A,this.yStep=t,this.stream="",this.cloneIndex=0,w1.call(this,r,n)}function VA(e){var A,t=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],o=[],c=1,u=16,f="S",B=null;wt(e=e||{})==="object"&&(t=e.orientation,r=e.unit||r,n=e.format||n,i=e.compress||e.compressPdf||i,(B=e.encryption||null)!==null&&(B.userPassword=B.userPassword||"",B.ownerPassword=B.ownerPassword||"",B.userPermissions=B.userPermissions||[]),c=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(A=e.precision),e.floatPrecision!==void 0&&(u=e.floatPrecision),f=e.defaultPathOperation||"S"),o=e.filters||(i===!0?["FlateEncode"]:o),r=r||"mm",t=(""+(t||"P")).toLowerCase();var p=e.putOnlyUsedFonts||!1,w={},g={internal:{},__private__:{}};g.__private__.PubSub=Gh;var L="1.3",b=g.__private__.getPdfVersion=function(){return L};g.__private__.setPdfVersion=function(l){L=l};var S={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]};g.__private__.getPageFormats=function(){return S};var y=g.__private__.getPageFormat=function(l){return S[l]};n=n||"a4";var I={COMPAT:"compat",ADVANCED:"advanc
|
|||
|
|
`),Qe(l,C),Bt.publish("endTilingPattern",C),pr.pop().restore()};var Yt=g.__private__.newObject=function(){var l=Vt();return He(l,!0),l},Vt=g.__private__.newObjectDeferred=function(){return X++,nA[X]=function(){return cA},X},He=function(l,C){return C=typeof C=="boolean"&&C,nA[l]=cA,C&&O(l+" 0 obj"),l},zn=g.__private__.newAdditionalObject=function(){var l={objId:Vt(),content:""};return yA.push(l),l},Pr=Vt(),Ye=Vt(),Je=g.__private__.decodeColorString=function(l){var C=l.split(" ");if(C.length!==2||C[1]!=="g"&&C[1]!=="G")C.length===5&&(C[4]==="k"||C[4]==="K")&&(C=[(1-C[0])*(1-C[3]),(1-C[1])*(1-C[3]),(1-C[2])*(1-C[3]),"r"]);else{var k=parseFloat(C[0]);C=[k,k,k,"r"]}for(var R="#",$=0;$<3;$++)R+=("0"+Math.floor(255*parseFloat(C[$])).toString(16)).slice(-2);return R},Ze=g.__private__.encodeColorString=function(l){var C;typeof l=="string"&&(l={ch1:l});var k=l.ch1,R=l.ch2,$=l.ch3,BA=l.ch4,CA=l.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof k=="string"&&k.charAt(0)!=="#"){var SA=new d1(k);if(SA.ok)k=SA.toHex();else if(!/^\d*\.?\d*$/.test(k))throw new Error('Invalid color "'+k+'" passed to jsPDF.encodeColorString.')}if(typeof k=="string"&&/^#[0-9A-Fa-f]{3}$/.test(k)&&(k="#"+k[1]+k[1]+k[2]+k[2]+k[3]+k[3]),typeof k=="string"&&/^#[0-9A-Fa-f]{6}$/.test(k)){var TA=parseInt(k.substr(1),16);k=TA>>16&255,R=TA>>8&255,$=255&TA}if(R===void 0||BA===void 0&&k===R&&R===$)if(typeof k=="string")C=k+" "+CA[0];else switch(l.precision){case 2:C=sA(k/255)+" "+CA[0];break;case 3:default:C=E(k/255)+" "+CA[0]}else if(BA===void 0||wt(BA)==="object"){if(BA&&!isNaN(BA.a)&&BA.a===0)return C=["1.","1.","1.",CA[1]].join(" ");if(typeof k=="string")C=[k,R,$,CA[1]].join(" ");else switch(l.precision){case 2:C=[sA(k/255),sA(R/255),sA($/255),CA[1]].join(" ");break;default:case 3:C=[E(k/255),E(R/255),E($/255),CA[1]].join(" ")}}else if(typeof k=="string")C=[k,R,$,BA,CA[2]].join(" ");else switch(l.precision){case 2:C=[sA(k),sA(R),sA($),sA(BA),CA[2]].join(" ");break;case 3:default:C=[E(k),E(R),E($),E(BA),CA[2]].join(" ")}return C},mr=g.__private__.getFilters=function(){return o},_e=g.__private__.putStream=function(l){var C=(l=l||{}).data||"",k=l.filters||mr(),R=l.alreadyAppliedFilters||[],$=l.addLength1||!1,BA=C.length,CA=l.objectId,SA=function(ue){return ue};if(B!==null&&CA===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");B!==null&&(SA=ce.encryptor(CA,0));var TA={};k===!0&&(k=["FlateEncode"]);var $A=l.additionalKeyValues||[],et=(TA=VA.API.processDataByFilters!==void 0?VA.API.processDataByFilters(C,k):{data:C,reverseChain:[]}).reverseChain+(Array.isArray(R)?R.join(" "):R.toString());if(TA.data.length!==0&&($A.push({key:"Length",value:TA.data.length}),$===!0&&$A.push({key:"Length1",value:BA})),et.length!=0)if(et.split("/").length-1==1)$A.push({key:"Filter",value:et});else{$A.push({key:"Filter",value:"["+et+"]"});for(var st=0;st<$A.length;st+=1)if($A[st].key==="DecodeParms"){for(var Ht=[],Mt=0;Mt<TA.reverseChain.split("/").length-1;Mt+=1)Ht.push("null");Ht.push($A[st].value),$A[st].value="["+Ht.join(" ")+"]"}}O("<<");for(var qt=0;qt<$A.length;qt++)O("/"+$A[qt].key+" "+$A[qt].value);O(">>"),TA.data.length!==0&&(O("stream"),O(SA(TA.data)),O("endstream"))},Cr=g.__private__.putPage=function(l){var C=l.number,k=l.data,R=l.objId,$=l.contentsObjId;He(R,!0),O("<</Type /Page"),O("/Parent "+l.rootDictionaryObjId+" 0 R"),O("/Resources "+l.resourceDictionaryObjId+" 0 R"),O("/MediaBox ["+parseFloat(z(l.mediaBox.bottomLeftX))+" "+parseFloat(z(l.mediaBox.bottomLeftY))+" "+z(l.mediaBox.topRightX)+" "+z(l.mediaBox.topRightY)+"]"),l.cropBox!==null&&O("/CropBox ["+z(l.cropBox.bottomLeftX)+" "+z(l.cropBox.bottomLeftY)+" "+z(l.cropBox.topRightX)+" "+z(l.cropBox.topRightY)+"]"),l.bleedBox!==null&&O("/BleedBox ["+z(l.bleedBox.bottomLeftX)+" "+z(l.bleedBox.bottomLeftY)+" "+z(l.bleedBox.topRightX)+" "+z(l.bleedBox.topRightY)+"]"),l.trimBox!==null&&O("/TrimBox ["+z(l.trimBox.bottomLeftX)+" "+z(l.trimBox.bottomLeftY)+" "+z(l.trimBox.topRightX)+" "+z(l.trimBox.topRightY)+"]"),l.artBox!==null&&O("/ArtBox ["+z(l.artBox.bottomLeftX)+" "+z(l.artBox.bott
|
|||
|
|
`);return T===I.ADVANCED&&(BA+=`
|
|||
|
|
Q`),He($,!0),_e({data:BA,filters:mr(),objectId:$}),O("endobj"),R},En=g.__private__.putPages=function(){var l,C,k=[];for(l=1;l<=Pt;l++)YA[l].objId=Vt(),YA[l].contentsObjId=Vt();for(l=1;l<=Pt;l++)k.push(Cr({number:l,data:QA[l],objId:YA[l].objId,contentsObjId:YA[l].contentsObjId,mediaBox:YA[l].mediaBox,cropBox:YA[l].cropBox,bleedBox:YA[l].bleedBox,trimBox:YA[l].trimBox,artBox:YA[l].artBox,userUnit:YA[l].userUnit,rootDictionaryObjId:Pr,resourceDictionaryObjId:Ye}));He(Pr,!0),O("<</Type /Pages");var R="/Kids [";for(C=0;C<Pt;C++)R+=k[C]+" 0 R ";O(R+"]"),O("/Count "+Pt),O(">>"),O("endobj"),Bt.publish("postPutPages")},Xn=function(l){Bt.publish("putFont",{font:l,out:O,newObject:Yt,putStream:_e}),l.isAlreadyPutted!==!0&&(l.objectNumber=Yt(),O("<<"),O("/Type /Font"),O("/BaseFont /"+Si(l.postScriptName)),O("/Subtype /Type1"),typeof l.encoding=="string"&&O("/Encoding /"+l.encoding),O("/FirstChar 32"),O("/LastChar 255"),O(">>"),O("endobj"))},Yn=function(){for(var l in Qt)Qt.hasOwnProperty(l)&&(p===!1||p===!0&&w.hasOwnProperty(l))&&Xn(Qt[l])},Jn=function(l){l.objectNumber=Yt();var C=[];C.push({key:"Type",value:"/XObject"}),C.push({key:"Subtype",value:"/Form"}),C.push({key:"BBox",value:"["+[z(l.x),z(l.y),z(l.x+l.width),z(l.y+l.height)].join(" ")+"]"}),C.push({key:"Matrix",value:"["+l.matrix.toString()+"]"});var k=l.pages[1].join(`
|
|||
|
|
`);_e({data:k,additionalKeyValues:C,objectId:l.objectNumber}),O("endobj")},Zn=function(){for(var l in ne)ne.hasOwnProperty(l)&&Jn(ne[l])},qs=function(l,C){var k,R=[],$=1/(C-1);for(k=0;k<1;k+=$)R.push(k);if(R.push(1),l[0].offset!=0){var BA={offset:0,color:l[0].color};l.unshift(BA)}if(l[l.length-1].offset!=1){var CA={offset:1,color:l[l.length-1].color};l.push(CA)}for(var SA="",TA=0,$A=0;$A<R.length;$A++){for(k=R[$A];k>l[TA+1].offset;)TA++;var et=l[TA].offset,st=(k-et)/(l[TA+1].offset-et),Ht=l[TA].color,Mt=l[TA+1].color;SA+=G(Math.round((1-st)*Ht[0]+st*Mt[0]).toString(16))+G(Math.round((1-st)*Ht[1]+st*Mt[1]).toString(16))+G(Math.round((1-st)*Ht[2]+st*Mt[2]).toString(16))}return SA.trim()},Ta=function(l,C){C||(C=21);var k=Yt(),R=qs(l.colors,C),$=[];$.push({key:"FunctionType",value:"0"}),$.push({key:"Domain",value:"[0.0 1.0]"}),$.push({key:"Size",value:"["+C+"]"}),$.push({key:"BitsPerSample",value:"8"}),$.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),$.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),_e({data:R,additionalKeyValues:$,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:k}),O("endobj"),l.objectNumber=Yt(),O("<< /ShadingType "+l.type),O("/ColorSpace /DeviceRGB");var BA="/Coords ["+z(parseFloat(l.coords[0]))+" "+z(parseFloat(l.coords[1]))+" ";l.type===2?BA+=z(parseFloat(l.coords[2]))+" "+z(parseFloat(l.coords[3])):BA+=z(parseFloat(l.coords[2]))+" "+z(parseFloat(l.coords[3]))+" "+z(parseFloat(l.coords[4]))+" "+z(parseFloat(l.coords[5])),O(BA+="]"),l.matrix&&O("/Matrix ["+l.matrix.toString()+"]"),O("/Function "+k+" 0 R"),O("/Extend [true true]"),O(">>"),O("endobj")},Ra=function(l,C){var k=Vt(),R=Yt();C.push({resourcesOid:k,objectOid:R}),l.objectNumber=R;var $=[];$.push({key:"Type",value:"/Pattern"}),$.push({key:"PatternType",value:"1"}),$.push({key:"PaintType",value:"1"}),$.push({key:"TilingType",value:"1"}),$.push({key:"BBox",value:"["+l.boundingBox.map(z).join(" ")+"]"}),$.push({key:"XStep",value:z(l.xStep)}),$.push({key:"YStep",value:z(l.yStep)}),$.push({key:"Resources",value:k+" 0 R"}),l.matrix&&$.push({key:"Matrix",value:"["+l.matrix.toString()+"]"}),_e({data:l.stream,additionalKeyValues:$,objectId:l.objectNumber}),O("endobj")},$n=function(l){var C;for(C in ft)ft.hasOwnProperty(C)&&(ft[C]instanceof Tn?Ta(ft[C]):ft[C]instanceof Di&&Ra(ft[C],l))},Ws=function(l){for(var C in l.objectNumber=Yt(),O("<<"),l)switch(C){case"opacity":O("/ca "+sA(l[C]));break;case"stroke-opacity":O("/CA "+sA(l[C]))}O(">>"),O("endobj")},Ga=function(){var l;for(l in St)St.hasOwnProperty(l)&&Ws(St[l])},Vi=function(){for(var l in O("/XObject <<"),ne)ne.hasOwnProperty(l)&&ne[l].objectNumber>=0&&O("/"+l+" "+ne[l].objectNumber+" 0 R");Bt.publish("putXobjectDict"),O(">>")},ja=function(){ce.oid=Yt(),O("<<"),O("/Filter /Standard"),O("/V "+ce.v),O("/R "+ce.r),O("/U <"+ce.toHexString(ce.U)+">"),O("/O <"+ce.toHexString(ce.O)+">"),O("/P "+ce.P),O(">>"),O("endobj")},zs=function(){for(var l in O("/Font <<"),Qt)Qt.hasOwnProperty(l)&&(p===!1||p===!0&&w.hasOwnProperty(l))&&O("/"+l+" "+Qt[l].objectNumber+" 0 R");O(">>")},Va=function(){if(Object.keys(ft).length>0){for(var l in O("/Shading <<"),ft)ft.hasOwnProperty(l)&&ft[l]instanceof Tn&&ft[l].objectNumber>=0&&O("/"+l+" "+ft[l].objectNumber+" 0 R");Bt.publish("putShadingPatternDict"),O(">>")}},Ai=function(l){if(Object.keys(ft).length>0){for(var C in O("/Pattern <<"),ft)ft.hasOwnProperty(C)&&ft[C]instanceof g.TilingPattern&&ft[C].objectNumber>=0&&ft[C].objectNumber<l&&O("/"+C+" "+ft[C].objectNumber+" 0 R");Bt.publish("putTilingPatternDict"),O(">>")}},qa=function(){if(Object.keys(St).length>0){var l;for(l in O("/ExtGState <<"),St)St.hasOwnProperty(l)&&St[l].objectNumber>=0&&O("/"+l+" "+St[l].objectNumber+" 0 R");Bt.publish("putGStateDict"),O(">>")}},_t=function(l){He(l.resourcesOid,!0),O("<<"),O("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),zs(),Va(),Ai(l.objectOid),qa(),Vi(),O(">>"),O("endobj")},Xs=function(){var l=[];Yn(),Ga(),Zn(),$n(l),Bt.publish("putResources"),l.forEach(_t),_t({resourcesOid:Ye,objectOid:Number.MAX_SAFE_INTEGER}),Bt.publish("postPutResources")},Ys=function(){Bt.publish("p
|
|||
|
|
`)[0].split("<")[0]+": "+R.message;if(!qA.console)throw new Error(k);qA.console.error(k,R),qA.alert&&alert(k)}},l.foo.bar=l,l.foo},ti=function(l,C){var k,R,$,BA,CA,SA,TA,$A,et;if($=(C=C||{}).sourceEncoding||"Unicode",CA=C.outputEncoding,(C.autoencode||CA)&&Qt[nt].metadata&&Qt[nt].metadata[$]&&Qt[nt].metadata[$].encoding&&(BA=Qt[nt].metadata[$].encoding,!CA&&Qt[nt].encoding&&(CA=Qt[nt].encoding),!CA&&BA.codePages&&(CA=BA.codePages[0]),typeof CA=="string"&&(CA=BA[CA]),CA)){for(TA=!1,SA=[],k=0,R=l.length;k<R;k++)($A=CA[l.charCodeAt(k)])?SA.push(String.fromCharCode($A)):SA.push(l[k]),SA[k].charCodeAt(0)>>8&&(TA=!0);l=SA.join("")}for(k=l.length;TA===void 0&&k!==0;)l.charCodeAt(k-1)>>8&&(TA=!0),k--;if(!TA)return l;for(SA=C.noBOM?[]:[254,255],k=0,R=l.length;k<R;k++){if((et=($A=l.charCodeAt(k))>>8)>>8)throw new Error("Character at position "+k+" of string '"+l+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");SA.push(et),SA.push($A-(et<<8))}return String.fromCharCode.apply(void 0,SA)},ye=g.__private__.pdfEscape=g.pdfEscape=function(l,C){return ti(l,C).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Wi=g.__private__.beginPage=function(l){QA[++Pt]=[],YA[Pt]={objId:0,contentsObjId:0,userUnit:Number(c),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(l[0]),topRightY:Number(l[1])}},$s(Pt),gA(QA[P])},Zs=function(l,C){var k,R,$;switch(t=C||t,typeof l=="string"&&(k=y(l.toLowerCase()),Array.isArray(k)&&(R=k[0],$=k[1])),Array.isArray(l)&&(R=l[0]*EA,$=l[1]*EA),isNaN(R)&&(R=n[0],$=n[1]),(R>14400||$>14400)&&(vt.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),R=Math.min(14400,R),$=Math.min(14400,$)),n=[R,$],t.substr(0,1)){case"l":$>R&&(n=[$,R]);break;case"p":R>$&&(n=[$,R])}Wi(n),io(Ji),O(Ar),$i!==0&&O($i+" J"),As!==0&&O(As+" j"),Bt.publish("addPage",{pageNumber:Pt})},za=function(l){l>0&&l<=Pt&&(QA.splice(l,1),YA.splice(l,1),Pt--,P>Pt&&(P=Pt),this.setPage(P))},$s=function(l){l>0&&l<=Pt&&(P=l)},Xa=g.__private__.getNumberOfPages=g.getNumberOfPages=function(){return QA.length-1},Ao=function(l,C,k){var R,$=void 0;return k=k||{},l=l!==void 0?l:Qt[nt].fontName,C=C!==void 0?C:Qt[nt].fontStyle,R=l.toLowerCase(),xt[R]!==void 0&&xt[R][C]!==void 0?$=xt[R][C]:xt[l]!==void 0&&xt[l][C]!==void 0?$=xt[l][C]:k.disableWarning===!1&&vt.warn("Unable to look up font label for font '"+l+"', '"+C+"'. Refer to getFontList() for available fonts."),$||k.noFallback||($=xt.times[C])==null&&($=xt.times.normal),$},Ya=g.__private__.putInfo=function(){var l=Yt(),C=function(R){return R};for(var k in B!==null&&(C=ce.encryptor(l,0)),O("<<"),O("/Producer ("+ye(C("jsPDF "+VA.version))+")"),WA)WA.hasOwnProperty(k)&&WA[k]&&O("/"+k.substr(0,1).toUpperCase()+k.substr(1)+" ("+ye(C(WA[k]))+")");O("/CreationDate ("+ye(C(aA))+")"),O(">>"),O("endobj")},zi=g.__private__.putCatalog=function(l){var C=(l=l||{}).rootDictionaryObjId||Pr;switch(Yt(),O("<<"),O("/Type /Catalog"),O("/Pages "+C+" 0 R"),xA||(xA="fullwidth"),xA){case"fullwidth":O("/OpenAction [3 0 R /FitH null]");break;case"fullheight":O("/OpenAction [3 0 R /FitV null]");break;case"fullpage":O("/OpenAction [3 0 R /Fit]");break;case"original":O("/OpenAction [3 0 R /XYZ null null 1]");break;default:var k=""+xA;k.substr(k.length-1)==="%"&&(xA=parseInt(xA)/100),typeof xA=="number"&&O("/OpenAction [3 0 R /XYZ null null "+sA(xA)+"]")}switch(rt||(rt="continuous"),rt){case"continuous":O("/PageLayout /OneColumn");break;case"single":O("/PageLayout /SinglePage");break;case"two":case"twoleft":O("/PageLayout /TwoColumnLeft");break;case"tworight":O("/PageLayout /TwoColumnRight")}XA&&O("/PageMode /"+XA),Bt.publish("putCatalog"),O(">>"),O("endobj")},Ja=g.__private__.putTrailer=function(){O("trailer"),O("<<"),O("/Size "+(X+1)),O("/Root "+X+" 0 R"),O("/Info "+(X-1)+" 0 R"),B!==null&&O("/Encrypt "+ce.oid+" 0 R"),O("/ID [ <"+iA+"> <"+iA+"> ]"),O(">>")},Za=g.__private__.putHeader=function(){O("%PDF-"+L),O("%ºß¬à")},$a=g.__private__.putXRef=function(){var l="0000000000";O("xref"),O("0 "+(X+1)),O("0000000000 65535
|
|||
|
|
`)},ei=g.__private__.getBlob=function(l){return new Blob([OA(l)],{type:"application/pdf"})},ri=g.output=g.__private__.output=$e(function(l,C){switch(typeof(C=C||{})=="string"?C={filename:C}:C.filename=C.filename||"generated.pdf",l){case void 0:return kr();case"save":g.save(C.filename);break;case"arraybuffer":return OA(kr());case"blob":return ei(kr());case"bloburi":case"bloburl":if(qA.URL!==void 0&&typeof qA.URL.createObjectURL=="function")return qA.URL&&qA.URL.createObjectURL(ei(kr()))||void 0;vt.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var k="",R=kr();try{k=Pu(R)}catch{k=Pu(unescape(encodeURIComponent(R)))}return"data:application/pdf;filename="+C.filename+";base64,"+k;case"pdfobjectnewwindow":if(Object.prototype.toString.call(qA)==="[object Window]"){var $="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",BA=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';C.pdfObjectUrl&&($=C.pdfObjectUrl,BA="");var CA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+$+'"'+BA+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(C)+");<\/script></body></html>",SA=qA.open();return SA!==null&&SA.document.write(CA),SA}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(qA)==="[object Window]"){var TA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(C.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+C.filename+'" width="500px" height="400px" /></body></html>',$A=qA.open();if($A!==null){$A.document.write(TA);var et=this;$A.document.documentElement.querySelector("#pdfViewer").onload=function(){$A.document.title=C.filename,$A.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(et.output("bloburl"))}}return $A}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(qA)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var st='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",C)+'"></iframe></body></html>',Ht=qA.open();if(Ht!==null&&(Ht.document.write(st),Ht.document.title=C.filename),Ht||typeof safari>"u")return Ht;break;case"datauri":case"dataurl":return qA.document.location.href=this.output("datauristring",C);default:return null}}),to=function(l){return Array.isArray(xn)===!0&&xn.indexOf(l)>-1};switch(r){case"pt":EA=1;break;case"mm":EA=72/25.4;break;case"cm":EA=72/2.54;break;case"in":EA=72;break;case"px":EA=to("px_scaling")==1?.75:96/72;break;case"pc":case"em":EA=12;break;case"ex":EA=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);EA=r}var ce=null;vA(),tA();var Ac=function(l){return B!==null?ce.encryptor(l,0):function(C){return C}},eo=g.__private__.getPageInfo=g.getPageInfo=function(l){if(isNaN(l)||l%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:YA[l].objId,pageNumber:l,pageContext:YA[l]}},zA=g.__private__.getPageInfoByObjId=function(l){if(isNaN(l)||l%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var C in YA)if(YA[C].objId===l)break;return eo(C)},tc=g.__private__.getCurrentPageInfo=g.getCurrentPageInfo=function(){return{objId:YA[P].objId,pageNumber:P,pageContext:YA[P]}};g.addPage=function(){return Zs.apply(this,arguments),this},g.setPage=function(){return $s.apply(this,arguments),gA.call(this,QA[P]),this},g.insertPage=function(l){return this.addPage(),this.movePage(P,l),this},g.movePage=function(l,C){var k,R;if(l>C){k=QA[l],R=YA[
|
|||
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(Ht=R.horizontalScale)!==void 0&&($t+=z(100*Ht)+` Tz
|
|||
|
|
`),R.lang;var be=-1,lc=R.renderingMode!==void 0?R.renderingMode:R.stroke,us=qt.internal.getCurrentPageInfo().pageContext;switch(lc){case 0:case!1:case"fill":be=0;break;case 1:case!0:case"stroke":be=1;break;case 2:case"fillThenStroke":be=2;break;case 3:case"invisible":be=3;break;case 4:case"fillAndAddForClipping":be=4;break;case 5:case"strokeAndAddPathForClipping":be=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":be=6;break;case 7:case"addToPathForClipping":be=7}var ho=us.usedRenderingMode!==void 0?us.usedRenderingMode:-1;be!==-1?$t+=be+` Tr
|
|||
|
|
`:ho!==-1&&($t+=`0 Tr
|
|||
|
|
`),be!==-1&&(us.usedRenderingMode=be),TA=R.align||"left";var er,ls=bA*Me,hc=qt.internal.pageSize.getWidth(),fc=Qt[nt];$A=R.charSpace||si,et=R.maxWidth||0,st=Object.assign({autoencode:!0,noBOM:!0},R.flags);var tn=[];if(Object.prototype.toString.call(l)==="[object Array]"){var Oe;CA=is(l),TA!=="left"&&(er=CA.map(function(bt){return qt.getStringUnitWidth(bt,{font:fc,charSpace:$A,fontSize:bA,doKerning:!1})*bA/_r}));var rr,en=0;if(TA==="right"){C-=er[0],l=[],ve=CA.length;for(var Qr=0;Qr<ve;Qr++)Qr===0?(rr=Dr(C),Oe=Zr(k)):(rr=N(en-er[Qr]),Oe=-ls),l.push([CA[Qr],rr,Oe]),en=er[Qr]}else if(TA==="center"){C-=er[0]/2,l=[],ve=CA.length;for(var Mr=0;Mr<ve;Mr++)Mr===0?(rr=Dr(C),Oe=Zr(k)):(rr=N((en-er[Mr])/2),Oe=-ls),l.push([CA[Mr],rr,Oe]),en=er[Mr]}else if(TA==="left"){l=[],ve=CA.length;for(var Bi=0;Bi<ve;Bi++)l.push(CA[Bi])}else{if(TA!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');l=[],ve=CA.length,et=et!==0?et:hc;for(var nr=0;nr<ve;nr++)Oe=nr===0?Zr(k):-ls,rr=nr===0?Dr(C):0,nr<ve-1?tn.push(z(N((et-er[nr])/(CA[nr].split(" ").length-1)))):tn.push(0),l.push([CA[nr],rr,Oe])}}var gi=typeof R.R2L=="boolean"?R.R2L:KA;gi===!0&&(l=ss(l,function(bt,Ut,Ot){return[bt.split("").reverse().join(""),Ut,Ot]})),BA={text:l,x:C,y:k,options:R,mutex:{pdfEscape:ye,activeFontKey:nt,fonts:Qt,activeFontSize:bA}},Bt.publish("postProcessText",BA),l=BA.text,tr=BA.mutex.isHex||!1;var hs=Qt[nt].encoding;hs!=="WinAnsiEncoding"&&hs!=="StandardEncoding"||(l=ss(l,function(bt,Ut,Ot){return[lo(bt),Ut,Ot]})),CA=is(l),l=[];for(var rn,ir,Or,kn=0,di=1,Dn=Array.isArray(CA[0])?di:kn,nn="",fs=function(bt,Ut,Ot){var Jt="";return Ot instanceof GA?(Ot=typeof R.angle=="number"?Xe(Ot,new GA(1,0,0,1,bt,Ut)):Xe(new GA(1,0,0,1,bt,Ut),Ot),T===I.ADVANCED&&(Ot=Xe(new GA(1,0,0,-1,0,0),Ot)),Jt=Ot.join(" ")+` Tm
|
|||
|
|
`):Jt=z(bt)+" "+z(Ut)+` Td
|
|||
|
|
`,Jt},Ke=0;Ke<CA.length;Ke++){switch(nn="",Dn){case di:Or=(tr?"<":"(")+CA[Ke][0]+(tr?">":")"),rn=parseFloat(CA[Ke][1]),ir=parseFloat(CA[Ke][2]);break;case kn:Or=(tr?"<":"(")+CA[Ke]+(tr?">":")"),rn=Dr(C),ir=Zr(k)}tn!==void 0&&tn[Ke]!==void 0&&(nn=tn[Ke]+` Tw
|
|||
|
|
`),Ke===0?l.push(nn+fs(rn,ir,Mt)+Or):Dn===kn?l.push(nn+Or):Dn===di&&l.push(nn+fs(rn,ir,Mt)+Or)}l=Dn===kn?l.join(` Tj
|
|||
|
|
T* `):l.join(` Tj
|
|||
|
|
`),l+=` Tj
|
|||
|
|
`;var Kr=`BT
|
|||
|
|
/`;return Kr+=nt+" "+bA+` Tf
|
|||
|
|
`,Kr+=z(bA*Me)+` TL
|
|||
|
|
`,Kr+=Sn+`
|
|||
|
|
`,Kr+=$t,Kr+=l,O(Kr+="ET"),w[nt]=!0,qt};var ec=g.__private__.clip=g.clip=function(l){return O(l==="evenodd"?"W*":"W"),this};g.clipEvenOdd=function(){return ec("evenodd")},g.__private__.discardPath=g.discardPath=function(){return O("n"),this};var Fr=g.__private__.isValidStyle=function(l){var C=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(l)!==-1&&(C=!0),C};g.__private__.setDefaultPathOperation=g.setDefaultPathOperation=function(l){return Fr(l)&&(f=l),this};var ro=g.__private__.getStyle=g.getStyle=function(l){var C=f;switch(l){case"D":case"S":C="S";break;case"F":C="f";break;case"FD":case"DF":C="B";break;case"f":case"f*":case"B":case"B*":C=l}return C},no=g.close=function(){return O("h"),this};g.stroke=function(){return O("S"),this},g.fill=function(l){return ni("f",l),this},g.fillEvenOdd=function(l){return ni("f*",l),this},g.fillStroke=function(l){return ni("B",l),this},g.fillStrokeEvenOdd=function(l){return ni("B*",l),this};var ni=function(l,C){wt(C)==="object"?nc(C,l):O(l)},Xi=function(l){l===null||T===I.ADVANCED&&l===void 0||(l=ro(l),O(l))};function rc(l,C,k,R,$){var BA=new Di(C||this.boundingBox,k||this.xStep,R||this.yStep,this.gState,$||this.matrix);BA.stream=this.stream;var CA=l+"$$"+this.cloneIndex+++"$$";return Qe(CA,BA),BA}var nc=function(l,C){var k=In[l.key],R=ft[k];if(R instanceof Tn)O("q"),O(ic(C)),R.gState&&g.setGState(R.gState),O(l.matrix.toString()+" cm"),O("/"+k+" sh"),O("Q");else if(R instanceof Di){var $=new GA(1,0,0,-1,0,An());l.matrix&&($=$.multiply(l.matrix||wr),k=rc.call(R,l.key,l.boundingBox,l.xStep,l.yStep,$).id),O("q"),O("/Pattern cs"),O("/"+k+" scn"),R.gState&&g.setGState(R.gState),O(C),O("Q")}},ic=function(l){switch(l){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Yi=g.moveTo=function(l,C){return O(z(N(l))+" "+z(M(C))+" m"),this},Nn=g.lineTo=function(l,C){return O(z(N(l))+" "+z(M(C))+" l"),this},Jr=g.curveTo=function(l,C,k,R,$,BA){return O([z(N(l)),z(M(C)),z(N(k)),z(M(R)),z(N($)),z(M(BA)),"c"].join(" ")),this};g.__private__.line=g.line=function(l,C,k,R,$){if(isNaN(l)||isNaN(C)||isNaN(k)||isNaN(R)||!Fr($))throw new Error("Invalid arguments passed to jsPDF.line");return T===I.COMPAT?this.lines([[k-l,R-C]],l,C,[1,1],$||"S"):this.lines([[k-l,R-C]],l,C,[1,1]).stroke()},g.__private__.lines=g.lines=function(l,C,k,R,$,BA){var CA,SA,TA,$A,et,st,Ht,Mt,qt,ue,$t,tr;if(typeof l=="number"&&(tr=k,k=C,C=l,l=tr),R=R||[1,1],BA=BA||!1,isNaN(C)||isNaN(k)||!Array.isArray(l)||!Array.isArray(R)||!Fr($)||typeof BA!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Yi(C,k),CA=R[0],SA=R[1],$A=l.length,ue=C,$t=k,TA=0;TA<$A;TA++)(et=l[TA]).length===2?(ue=et[0]*CA+ue,$t=et[1]*SA+$t,Nn(ue,$t)):(st=et[0]*CA+ue,Ht=et[1]*SA+$t,Mt=et[2]*CA+ue,qt=et[3]*SA+$t,ue=et[4]*CA+ue,$t=et[5]*SA+$t,Jr(st,Ht,Mt,qt,ue,$t));return BA&&no(),Xi($),this},g.path=function(l){for(var C=0;C<l.length;C++){var k=l[C],R=k.c;switch(k.op){case"m":Yi(R[0],R[1]);break;case"l":Nn(R[0],R[1]);break;case"c":Jr.apply(this,R);break;case"h":no()}}return this},g.__private__.rect=g.rect=function(l,C,k,R,$){if(isNaN(l)||isNaN(C)||isNaN(k)||isNaN(R)||!Fr($))throw new Error("Invalid arguments passed to jsPDF.rect");return T===I.COMPAT&&(R=-R),O([z(N(l)),z(M(C)),z(N(k)),z(N(R)),"re"].join(" ")),Xi($),this},g.__private__.triangle=g.triangle=function(l,C,k,R,$,BA,CA){if(isNaN(l)||isNaN(C)||isNaN(k)||isNaN(R)||isNaN($)||isNaN(BA)||!Fr(CA))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[k-l,R-C],[$-k,BA-R],[l-$,C-BA]],l,C,[1,1],CA,!0),this},g.__private__.roundedRect=g.roundedRect=function(l,C,k,R,$,BA,CA){if(isNaN(l)||isNaN(C)||isNaN(k)||isNaN(R)||isNaN($)||isNaN(BA)||!Fr(CA))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var SA=4/3*(Math.SQRT2-1);return $=Math.min($,.5*k),BA=Math.min(BA,.5*R),this.lines([[k-2*$,0],[$*SA,0,$,BA-BA*SA,$,BA],[0,R-2*BA],[0,BA*SA,-$*SA,BA,-$,BA],[2*$-k,0],[-$*SA,0,-$,-BA*SA,-$,-BA],[0,2*BA-R],[0,-BA*SA,$*SA,-BA,$,-BA]],l+$,C,[1,1],CA,!0),this},g.__private__
|
|||
|
|
`),i}},_u=function(e,A){var t=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},n=(A=(A=A.substr(0,1)=="("?A.substr(1):A).substr(A.length-1)==")"?A.substr(0,A.length-1):A).split(" ");n=e.multiline?n.map(function(E){return E.split(`
|
|||
|
|
`)}):n.map(function(E){return[E]});var i=t,o=MA.internal.getHeight(e)||0;o=o<0?-o:o;var c=MA.internal.getWidth(e)||0;c=c<0?-c:c;var u=function(E,N,K){if(E+1<n.length){var M=N+" "+n[E+1][0];return na(M,e,K).width<=c-4}return!1};i++;A:for(;i>0;){A="",i--;var f,B,p=na("3",e,i).height,w=e.multiline?o-i:(o-p)/2,g=w+=2,L=0,b=0,S=0;if(i<=0){A=`(...) Tj
|
|||
|
|
`,A+="% Width of Text: "+na(A,e,i=12).width+", FieldWidth:"+c+`
|
|||
|
|
`;break}for(var y="",I=0,T=0;T<n.length;T++)if(n.hasOwnProperty(T)){var J=!1;if(n[T].length!==1&&S!==n[T].length-1){if((p+2)*(I+2)+2>o)continue A;y+=n[T][S],J=!0,b=T,T--}else{y=(y+=n[T][S]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var q=parseInt(T),Z=u(q,y,i),z=T>=n.length-1;if(Z&&!z){y+=" ",S=0;continue}if(Z||z){if(z)b=q;else if(e.multiline&&(p+2)*(I+2)+2>o)continue A}else{if(!e.multiline||(p+2)*(I+2)+2>o)continue A;b=q}}for(var _="",AA=L;AA<=b;AA++){var sA=n[AA];if(e.multiline){if(AA===b){_+=sA[S]+" ",S=(S+1)%sA.length;continue}if(AA===L){_+=sA[sA.length-1]+" ";continue}}_+=sA[0]+" "}switch(_=_.substr(_.length-1)==" "?_.substr(0,_.length-1):_,B=na(_,e,i).width,e.textAlign){case"right":f=c-B-2;break;case"center":f=(c-B)/2;break;case"left":default:f=2}A+=JA(f)+" "+JA(g)+` Td
|
|||
|
|
`,A+="("+Wn(_)+`) Tj
|
|||
|
|
`,A+=-JA(f)+` 0 Td
|
|||
|
|
`,g=-(i+2),B=0,L=J?b:b+1,I++,y=""}break}return r.text=A,r.fontSize=i,r},na=function(e,A,t){var r=A.scope.internal.getFont(A.fontName,A.fontStyle),n=A.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:A.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:n}},Fp={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Qp=function(e,A){var t={type:"reference",object:e};A.internal.getPageInfo(e.page).pageContext.annotations.find(function(r){return r.type===t.type&&r.object===t.object})===void 0&&A.internal.getPageInfo(e.page).pageContext.annotations.push(t)},yp=function(e,A){for(var t in e)if(e.hasOwnProperty(t)){var r=t,n=e[t];A.internal.newObjectDeferredBegin(n.objId,!0),wt(n)==="object"&&typeof n.putStream=="function"&&n.putStream(),delete e[r]}},vp=function(e,A){if(A.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(fr.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(Fp)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Yu=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new F1,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in r)if(r.hasOwnProperty(n)){var i=r[n];i.objId=void 0,i.hasAnnotation&&Qp(i,t)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(t){if(t.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(t){(function(r,n){var i=!r;for(var o in r||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(o)){var c=r[o],u=[],f=c.Rect;if(c.Rect&&(c.Rect=mp(c.Rect,n)),n.internal.newObjectDeferredBegin(c.objId,!0),c.DA=MA.createDefaultAppearanceStream(c),wt(c)==="object"&&typeof c.getKeyValueListForStream=="function"&&(u=c.getKeyValueListForStream()),c.Rect=f,c.hasAppearanceStream&&!c.appearanceStreamContent){var B=Cp(c);u.push({key:"AP",value:"<</N "+B+">>"}),n.internal.acroformPlugin.xForms.push(B)}if(c.appearanceStreamContent){var p="";for(var w in c.appearanceStreamContent)if(c.appearanceStreamContent.hasOwnProperty(w)){var g=c.appearanceStreamContent[w];if(p+="/"+w+" ",p+="<<",Object.keys(g).length>=1||Array.isArray(g)){for(var o in g)if(g.hasOwnProperty(o)){var L=g[o];typeof L=="function"&&(L=L.call(n,c)),p+="/"+o+" "+L+" ",n.internal.acroformPlugin.xForms.indexOf(L)>=0||n.internal.acroformPlugin.xForms.push(L)}}else typeof(L=g)=="function"&&(L=L.call(n,c)),p+="/"+o+" "+L,n.internal.acroformPlugin.xForms.indexOf(L)>=0||n.internal.acroformPlugin.xForms.push(L);p+=">>"}u.push({key:"AP",value:`<<
|
|||
|
|
`+p+">>"})}n.internal.putStream({additionalKeyValues:u,objectId:c.objId}),n.internal.out("endobj")}i&&yp(n.internal.acroformPlugin.xForms,n)})(t,e)}),e.internal.acroformPlugin.isInitialized=!0}},m1=Dt.__acroform__.arrayToPdfArray=function(e,A,t){var r=function(o){return o};if(Array.isArray(e)){for(var n="[",i=0;i<e.length;i++)switch(i!==0&&(n+=" "),wt(e[i])){case"boolean":case"number":case"object":n+=e[i].toString();break;case"string":e[i].substr(0,1)!=="/"?(A!==void 0&&t&&(r=t.internal.getEncryptor(A)),n+="("+Wn(r(e[i].toString()))+")"):n+=e[i].toString()}return n+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ru=function(e,A,t){var r=function(n){return n};return A!==void 0&&t&&(r=t.internal.getEncryptor(A)),(e=e||"").toString(),e="("+Wn(r(e))+")"},Ir=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(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Ir.prototype.toString=function(){return this.objId+" 0 R"},Ir.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Ir.prototype.getKeyValueListForStream=function(){var e=[],A=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var t in A)if(Object.getOwnPropertyDescriptor(this,A[t]).configurable===!1){var r=A[t],n=this[r];n&&(Array.isArray(n)?e.push({key:r,value:m1(n,this.objId,this.scope)}):n instanceof Ir?(n.scope=this.scope,e.push({key:r,value:n.objId+" 0 R"})):typeof n!="function"&&e.push({key:r,value:n}))}return e};var C1=function(){Ir.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 e,A=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};Ne(C1,Ir);var F1=function(){Ir.call(this);var e,A=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return A.length>0?A:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return A}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(r){return r};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Wn(t(e))+")"}},set:function(t){e=t}})};Ne(F1,Ir);var fr=function e(){Ir.call(this);var A=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return A},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute F supplied.');A=y}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Rt(A,3)},set:function(y){y?this.F=Gt(A,3):this.F=jt(A,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute Ff supplied.');t=y}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(y){r=y!==void 0?y:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(y){r[0]=y}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(y){r[1]=y}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r
|
|||
|
|
`)}},set:function(t){wt(t)==="object"&&(A=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return A.CA||""},set:function(t){typeof t=="string"&&(A.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};Ne(re,fr);var fa=function(){re.call(this),this.pushButton=!0};Ne(fa,re);var Ti=function(){re.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(A){e=A!==void 0?A:[]}})};Ne(Ti,re);var La=function(){var e,A;fr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return A},set:function(n){A=n}});var t,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(c){return c};this.scope&&(n=this.scope.internal.getEncryptor(this.objId));var i,o=[];for(i in o.push("<<"),r)o.push("/"+i+" ("+Wn(n(r[i]))+")");return o.push(">>"),o.join(`
|
|||
|
|
`)},set:function(n){wt(n)==="object"&&(r=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(n){typeof n=="string"&&(r.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(n){t="/"+n}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=MA.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Ne(La,fr),Ti.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var A in this.Kids)if(this.Kids.hasOwnProperty(A)){var t=this.Kids[A];t.appearanceStreamContent=e.createAppearanceStream(t.optionName),t.caption=e.getCA()}},Ti.prototype.createOption=function(e){var A=new La;return A.Parent=this,A.optionName=e,this.Kids.push(A),bp.call(this.scope,A),A};var Ba=function(){re.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=MA.CheckBox.createAppearanceStream()};Ne(Ba,re);var qn=function(){fr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Rt(this.Ff,13)},set:function(A){A?this.Ff=Gt(this.Ff,13):this.Ff=jt(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Rt(this.Ff,21)},set:function(A){A?this.Ff=Gt(this.Ff,21):this.Ff=jt(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Rt(this.Ff,23)},set:function(A){A?this.Ff=Gt(this.Ff,23):this.Ff=jt(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Rt(this.Ff,24)},set:function(A){A?this.Ff=Gt(this.Ff,24):this.Ff=jt(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Rt(this.Ff,25)},set:function(A){A?this.Ff=Gt(this.Ff,25):this.Ff=jt(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Rt(this.Ff,26)},set:function(A){A?this.Ff=Gt(this.Ff,26):this.Ff=jt(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(A){e=A}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(A){Number.isInteger(A)&&(e=A)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Ne(qn,fr);var ga=function(){qn.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Rt(this.Ff,14)},set:function(e){e?this.Ff=Gt(this.Ff,14):this.Ff=jt(this.Ff,14)}}),this.password=!0};Ne(ga,qn);var MA={CheckBox:{createAppearanceStream:function(){return{N:{On:MA.CheckBox.YesNormal},D:{On:MA.CheckBox.YesPushDown,Off:MA.CheckBox.OffPushDown}}},YesPushDown:function(e){var A=Lr(e);A.scope=e.scope;var t=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),i=_u(e,e.caption);return t.push("0.749023 g"),t.push("0 0 "+JA(MA.internal.getWidth(e))+" "+JA(MA.internal.getHeight(e))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+r+" "+JA(i.fontSize)+" Tf "+n),t.push("BT"),t.push(i.text),t.push("ET"),t.push("Q"),t.push("EMC"),A.stream=t.join(`
|
|||
|
|
`),A},YesNormal:function(e){var A=Lr(e);A.scope=e.scope;var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),n=[],i=MA.internal.getHeight(e),o=MA.internal.getWidth(e),c=_u(e,e.caption);return n.push("1 g"),n.push("0 0 "+JA(o)+" "+JA(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+JA(o-1)+" "+JA(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+t+" "+JA(c.fontSize)+" Tf "+r),n.push(c.text),n.push("ET"),n.push("Q"),A.stream=n.join(`
|
|||
|
|
`),A},OffPushDown:function(e){var A=Lr(e);A.scope=e.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+JA(MA.internal.getWidth(e))+" "+JA(MA.internal.getHeight(e))+" re"),t.push("f"),A.stream=t.join(`
|
|||
|
|
`),A}},RadioButton:{Circle:{createAppearanceStream:function(e){var A={D:{Off:MA.RadioButton.Circle.OffPushDown},N:{}};return A.N[e]=MA.RadioButton.Circle.YesNormal,A.D[e]=MA.RadioButton.Circle.YesPushDown,A},getCA:function(){return"l"},YesNormal:function(e){var A=Lr(e);A.scope=e.scope;var t=[],r=MA.internal.getWidth(e)<=MA.internal.getHeight(e)?MA.internal.getWidth(e)/4:MA.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=MA.internal.Bezier_C,i=Number((r*n).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+gn(MA.internal.getWidth(e)/2)+" "+gn(MA.internal.getHeight(e)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),t.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),t.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),t.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),t.push("f"),t.push("Q"),A.stream=t.join(`
|
|||
|
|
`),A},YesPushDown:function(e){var A=Lr(e);A.scope=e.scope;var t=[],r=MA.internal.getWidth(e)<=MA.internal.getHeight(e)?MA.internal.getWidth(e)/4:MA.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*MA.internal.Bezier_C).toFixed(5)),o=Number((r*MA.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+gn(MA.internal.getWidth(e)/2)+" "+gn(MA.internal.getHeight(e)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),t.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),t.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),t.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),t.push("f"),t.push("Q"),t.push("0 g"),t.push("q"),t.push("1 0 0 1 "+gn(MA.internal.getWidth(e)/2)+" "+gn(MA.internal.getHeight(e)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),t.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),t.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),t.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),t.push("f"),t.push("Q"),A.stream=t.join(`
|
|||
|
|
`),A},OffPushDown:function(e){var A=Lr(e);A.scope=e.scope;var t=[],r=MA.internal.getWidth(e)<=MA.internal.getHeight(e)?MA.internal.getWidth(e)/4:MA.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*MA.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+gn(MA.internal.getWidth(e)/2)+" "+gn(MA.internal.getHeight(e)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),t.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),t.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),t.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),t.push("f"),t.push("Q"),A.stream=t.join(`
|
|||
|
|
`),A}},Cross:{createAppearanceStream:function(e){var A={D:{Off:MA.RadioButton.Cross.OffPushDown},N:{}};return A.N[e]=MA.RadioButton.Cross.YesNormal,A.D[e]=MA.RadioButton.Cross.YesPushDown,A},getCA:function(){return"8"},YesNormal:function(e){var A=Lr(e);A.scope=e.scope;var t=[],r=MA.internal.calculateCross(e);return t.push("q"),t.push("1 1 "+JA(MA.internal.getWidth(e)-2)+" "+JA(MA.internal.getHeight(e)-2)+" re"),t.push("W"),t.push("n"),t.push(JA(r.x1.x)+" "+JA(r.x1.y)+" m"),t.push(JA(r.x2.x)+" "+JA(r.x2.y)+" l"),t.push(JA(r.x4.x)+" "+JA(r.x4.y)+" m"),t.push(JA(r.x3.x)+" "+JA(r.x3.y)+" l"),t.push("s"),t.push("Q"),A.stream=t.join(`
|
|||
|
|
`),A},YesPushDown:function(e){var A=Lr(e);A.scope=e.scope;var t=MA.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+JA(MA.internal.getWidth(e))+" "+JA(MA.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+JA(MA.internal.getWidth(e)-2)+" "+JA(MA.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(JA(t.x1.x)+" "+JA(t.x1.y)+" m"),r.push(JA(t.x2.x)+" "+JA(t.x2.y)+" l"),r.push(JA(t.x4.x)+" "+JA(t.x4.y)+" m"),r.push(JA(t.x3.x)+" "+JA(t.x3.y)+" l"),r.push("s"),r.push("Q"),A.stream=r.join(`
|
|||
|
|
`),A},OffPushDown:function(e){var A=Lr(e);A.scope=e.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+JA(MA.internal.getWidth(e))+" "+JA(MA.internal.getHeight(e))+" re"),t.push("f"),A.stream=t.join(`
|
|||
|
|
`),A}}},createDefaultAppearanceStream:function(e){var A=e.scope.internal.getFont(e.fontName,e.fontStyle).id,t=e.scope.__private__.encodeColorString(e.color);return"/"+A+" "+e.fontSize+" Tf "+t}};MA.internal={Bezier_C:.551915024494,calculateCross:function(e){var A=MA.internal.getWidth(e),t=MA.internal.getHeight(e),r=Math.min(A,t);return{x1:{x:(A-r)/2,y:(t-r)/2+r},x2:{x:(A-r)/2+r,y:(t-r)/2},x3:{x:(A-r)/2,y:(t-r)/2},x4:{x:(A-r)/2+r,y:(t-r)/2+r}}}},MA.internal.getWidth=function(e){var A=0;return wt(e)==="object"&&(A=jh(e.Rect[2])),A},MA.internal.getHeight=function(e){var A=0;return wt(e)==="object"&&(A=jh(e.Rect[3])),A};var bp=Dt.addField=function(e){if(vp(this,e),!(e instanceof fr))throw new Error("Invalid argument passed to jsPDF.addField.");var A;return(A=e).scope.internal.acroformPlugin.printedOut&&(A.scope.internal.acroformPlugin.printedOut=!1,A.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),A.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(A),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};Dt.AcroFormChoiceField=Mi,Dt.AcroFormListBox=Oi,Dt.AcroFormComboBox=Ki,Dt.AcroFormEditBox=ha,Dt.AcroFormButton=re,Dt.AcroFormPushButton=fa,Dt.AcroFormRadioButton=Ti,Dt.AcroFormCheckBox=Ba,Dt.AcroFormTextField=qn,Dt.AcroFormPasswordField=ga,Dt.AcroFormAppearance=MA,Dt.AcroForm={ChoiceField:Mi,ListBox:Oi,ComboBox:Ki,EditBox:ha,Button:re,PushButton:fa,RadioButton:Ti,CheckBox:Ba,TextField:qn,PasswordField:ga,Appearance:MA},VA.AcroForm={ChoiceField:Mi,ListBox:Oi,ComboBox:Ki,EditBox:ha,Button:re,PushButton:fa,RadioButton:Ti,CheckBox:Ba,TextField:qn,PasswordField:ga,Appearance:MA};function Q1(e){return e.reduce(function(A,t,r){return A[t]=r,A},{})}(function(e){e.__addimage__={};var A="UNKNOWN",t={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=e.__addimage__.getImageFileTypeByImageData=function(E,N){var K,M,aA,iA,uA,tA=A;if((N=N||A)==="RGBA"||E.data!==void 0&&E.data instanceof Uint8ClampedArray&&"height"in E&&"width"in E)return"RGBA";if(Z(E))for(uA in t)for(aA=t[uA],K=0;K<aA.length;K+=1){for(iA=!0,M=0;M<aA[K].length;M+=1)if(aA[K][M]!==void 0&&aA[K][M]!==E[M]){iA=!1;break}if(iA===!0){tA=uA;break}}else for(uA in t)for(aA=t[uA],K=0;K<aA.length;K+=1){for(iA=!0,M=0;M<aA[K].length;M+=1)if(aA[K][M]!==void 0&&aA[K][M]!==E.charCodeAt(M)){iA=!1;break}if(iA===!0){tA=uA;break}}return tA===A&&N!==A&&(tA=N),tA},n=function E(N){for(var K=this.internal.write,M=this.internal.putStream,aA=(0,this.internal.getFilters)();aA.indexOf("FlateEncode")!==-1;)aA.splice(aA.indexOf("FlateEncode"),1);N.objectId=this.internal.newObject();var iA=[];if(iA.push({key:"Type",value:"/XObject"}),iA.push({key:"Subtype",value:"/Image"}),iA.push({key:"Width",value:N.width}),iA.push({key:"Height",value:N.height}),N.colorSpace===S.INDEXED?iA.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(N.palette.length/3-1)+" "+("sMask"in N&&N.sMask!==void 0?N.objectId+2:N.objectId+1)+" 0 R]"}):(iA.push({key:"ColorSpace",value:"/"+N.colorSpace}),N.colorSpace===S.DEVICE_CMYK&&iA.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),iA.push({key:"BitsPerComponent",value:N.bitsPerComponent}),"decodeParameters"in N&&N.decodeParameters!==void 0&&iA.push({key:"DecodeParms",value:"<<"+N.decodeParameters+">>"}),"transparency"in N&&Array.isArray(N.transparency)){for(var uA="",tA=0,fA=N.transparency.length;tA<fA;tA++)uA+=N.transparency[tA]+" "+N.transparency[tA]+" ";iA.push({key:"Mask",value:"["+uA+"]"})}N.sMask!==void 0&&iA.push({key:"SMask",value:N.objectId+1+" 0 R"});var hA=N.filter!==void 0?["/"+N.filter]:void 0;if(M({data:N.data,additionalKeyValues:iA,alreadyAppliedFilters:hA,objectId:N.objectId}),K("endobj"),"sMask"in N&&N.sMask!==void 0){var vA="/Predictor "+N.predictor+" /Colors 1 /BitsPerComponent "+N.bi
|
|||
|
|
`},t.outline.makeRef=function(r){return r.id+" 0 R"},t.outline.makeString=function(r){return"("+t.internal.pdfEscape(r)+")"},t.outline.objStart=function(r){this.ctx.val+=`\r
|
|||
|
|
`+r.id+` 0 obj\r
|
|||
|
|
<<\r
|
|||
|
|
`},t.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|||
|
|
endobj\r
|
|||
|
|
`},t.outline.count_r=function(r,n){for(var i=0;i<n.children.length;i++)r.count++,this.count_r(r,n.children[i]);return r.count}}])}(VA.API),function(e){var A=[192,193,194,195,196,197,198,199];e.processJPEG=function(t,r,n,i,o,c){var u,f=this.decode.DCT_DECODE,B=null;if(typeof t=="string"||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=o||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(u=function(p){for(var w,g=256*p.charCodeAt(4)+p.charCodeAt(5),L=p.length,b={width:0,height:0,numcomponents:1},S=4;S<L;S+=2){if(S+=g,A.indexOf(p.charCodeAt(S+1))!==-1){w=256*p.charCodeAt(S+5)+p.charCodeAt(S+6),b={width:256*p.charCodeAt(S+7)+p.charCodeAt(S+8),height:w,numcomponents:p.charCodeAt(S+9)};break}g=256*p.charCodeAt(S+2)+p.charCodeAt(S+3)}return b}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:c=this.color_spaces.DEVICE_GRAY;break;case 4:c=this.color_spaces.DEVICE_CMYK;break;case 3:c=this.color_spaces.DEVICE_RGB}B={data:t,width:u.width,height:u.height,colorSpace:c,bitsPerComponent:8,filter:f,index:r,alias:n}}return B}}(VA.API);var xi,sa,Zh,$h,Af,Np=function(){var e,A,t;function r(i){var o,c,u,f,B,p,w,g,L,b,S,y,I,T;for(this.data=i,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},p=null;;){switch(o=this.readUInt32(),L=function(){var J,q;for(q=[],J=0;J<4;++J)q.push(String.fromCharCode(this.data[this.pos++]));return q}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(o);break;case"fcTL":p&&this.animation.frames.push(p),this.pos+=4,p={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},B=this.readUInt16(),f=this.readUInt16()||100,p.delay=1e3*B/f,p.disposeOp=this.data[this.pos++],p.blendOp=this.data[this.pos++],p.data=[];break;case"IDAT":case"fdAT":for(L==="fdAT"&&(this.pos+=4,o-=4),i=p?.data||this.imgData,y=0;0<=o?y<o:y>o;0<=o?++y:--y)i.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(u=this.palette.length/3,this.transparency.indexed=this.read(o),this.transparency.indexed.length>u)throw new Error("More transparent colors than palette size");if((b=u-this.transparency.indexed.length)>0)for(I=0;0<=b?I<b:I>b;0<=b?++I:--I)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(o)[0];break;case 2:this.transparency.rgb=this.read(o)}break;case"tEXt":w=(S=this.read(o)).indexOf(0),g=String.fromCharCode.apply(String,S.slice(0,w)),this.text[g]=String.fromCharCode.apply(String,S.slice(w+1));break;case"IEND":return p&&this.animation.frames.push(p),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(T=this.colorType)===4||T===6,c=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*c,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=o}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(i){var o,c;for(c=[],o=0;0<=i?o<i:o>i;0<=i?++o:--o)c.push(this.data[this.pos++]);return c},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(i){var o=this.pixelBitlength/8,c=new Uint8Array(this.width*this.height*o),u=0,f=this;if(i==null&&(i=this.imgData),i.length===0)return new Uint8Array(0);function B(p,w,g,L){
|
|||
|
|
* @license
|
|||
|
|
*
|
|||
|
|
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
|
|||
|
|
*
|
|||
|
|
* 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.
|
|||
|
|
* ====================================================================
|
|||
|
|
*//**
|
|||
|
|
* @license
|
|||
|
|
* (c) Dean McNamee <dean@gmail.com>, 2013.
|
|||
|
|
*
|
|||
|
|
* https://github.com/deanm/omggif
|
|||
|
|
*
|
|||
|
|
* 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.
|
|||
|
|
*
|
|||
|
|
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
|
|||
|
|
* including animation and compression. It does not rely on any specific
|
|||
|
|
* underlying system, so should run in the browser, Node, or Plask.
|
|||
|
|
*/function Hp(e){var A=0;if(e[A++]!==71||e[A++]!==73||e[A++]!==70||e[A++]!==56||(e[A++]+1&253)!=56||e[A++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=e[A++]|e[A++]<<8,r=e[A++]|e[A++]<<8,n=e[A++],i=n>>7,o=1<<(7&n)+1;e[A++],e[A++];var c=null,u=null;i&&(c=A,u=o,A+=3*o);var f=!0,B=[],p=0,w=null,g=0,L=null;for(this.width=t,this.height=r;f&&A<e.length;)switch(e[A++]){case 33:switch(e[A++]){case 255:if(e[A]!==11||e[A+1]==78&&e[A+2]==69&&e[A+3]==84&&e[A+4]==83&&e[A+5]==67&&e[A+6]==65&&e[A+7]==80&&e[A+8]==69&&e[A+9]==50&&e[A+10]==46&&e[A+11]==48&&e[A+12]==3&&e[A+13]==1&&e[A+16]==0)A+=14,L=e[A++]|e[A++]<<8,A++;else for(A+=12;;){if(!((E=e[A++])>=0))throw Error("Invalid block size");if(E===0)break;A+=E}break;case 249:if(e[A++]!==4||e[A+4]!==0)throw new Error("Invalid graphics extension block.");var b=e[A++];p=e[A++]|e[A++]<<8,w=e[A++],!(1&b)&&(w=null),g=b>>2&7,A++;break;case 254:for(;;){if(!((E=e[A++])>=0))throw Error("Invalid block size");if(E===0)break;A+=E}break;default:throw new Error("Unknown graphic control label: 0x"+e[A-1].toString(16))}break;case 44:var S=e[A++]|e[A++]<<8,y=e[A++]|e[A++]<<8,I=e[A++]|e[A++]<<8,T=e[A++]|e[A++]<<8,J=e[A++],q=J>>6&1,Z=1<<(7&J)+1,z=c,_=u,AA=!1;J>>7&&(AA=!0,z=A,_=Z,A+=3*Z);var sA=A;for(A++;;){var E;if(!((E=e[A++])>=0))throw Error("Invalid block size");if(E===0)break;A+=E}B.push({x:S,y,width:I,height:T,has_local_palette:AA,palette_offset:z,palette_size:_,data_offset:sA,data_length:A-sA,transparent_index:w,interlaced:!!q,delay:p,disposal:g});break;case 59:f=!1;break;default:throw new Error("Unknown gif block: 0x"+e[A-1].toString(16))}this.numFrames=function(){return B.length},this.loopCount=function(){return L},this.frameInfo=function(N){if(N<0||N>=B.length)throw new Error("Frame index out of range.");return B[N]},this.decodeAndBlitFrameBGRA=function(N,K){var M=this.frameInfo(N),aA=M.width*M.height,iA=new Uint8Array(aA);tf(e,M.data_offset,iA,aA);var uA=M.palette_offset,tA=M.transparent_index;tA===null&&(tA=256);var fA=M.width,hA=t-fA,vA=fA,Q=4*(M.y*t+M.x),P=4*((M.y+M.height)*t+M.x),D=Q,G=4*hA;M.interlaced===!0&&(G+=4*t*7);for(var X=8,nA=0,oA=iA.length;nA<oA;++nA){var cA=iA[nA];if(vA===0&&(vA=fA,(D+=G)>=P&&(G=4*hA+4*t*(X-1),D=Q+(fA+hA)*(X<<1),X>>=1)),cA===tA)D+=4;else{var yA=e[uA+3*cA],QA=e[uA+3*cA+1],HA=e[uA+3*cA+2];K[D++]=HA,K[D++]=QA,K[D++]=yA,K[D++]=255}--vA}},this.decodeAndBlitFrameRGBA=function(N,K){var M=this.frameInfo(N),aA=M.width*M.height,iA=new Uint8Array(aA);tf(e,M.data_offset,iA,aA);var uA=M.palette_offset,tA=M.transparent_index;tA===null&&(tA=256);var fA=M.width,hA=t-fA,vA=fA,Q=4*(M.y*t+M.x),P=4*((M.y+M.height)*t+M.x),D=Q,G=4*hA;M.interlaced===!0&&(G+=4*t*7);for(var X=8,nA=0,oA=iA.length;nA<oA;++nA){var cA=iA[nA];if(vA===0&&(vA=fA,(D+=G)>=P&&(G=4*hA+4*t*(X-1),D=Q+(fA+hA)*(X<<1),X>>=1)),cA===tA)D+=4;else{var yA=e[uA+3*cA],QA=e[uA+3*cA+1],HA=e[uA+3*cA+2];K[D++]=yA,K[D++]=QA,K[D++]=HA,K[D++]=255}--vA}}}function tf(e,A,t,r){for(var n=e[A++],i=1<<n,o=i+1,c=o+1,u=n+1,f=(1<<u)-1,B=0,p=0,w=0,g=e[A++],L=new Int32Array(4096),b=null;;){for(;B<16&&g!==0;)p|=e[A++]<<B,B+=8,g===1?g=e[A++]:--g;if(B<u)break;var S=p&f;if(p>>=u,B-=u,S!==i){if(S===o)break;for(var y=S<c?S:b,I=0,T=y;T>i;)T=L[T]>>8,++I;var J=T;if(w+I+(y!==S?1:0)>r)return void vt.log("Warning, gif stream longer than expected.");t[w++]=J;var q=w+=I;for(y!==S&&(t[w++]=J),T=y;I--;)T=L[T],t[--q]=255&T,T>>=8;b!==null&&c<4096&&(L[c++]=b<<8|J,c>=f+1&&u<12&&(++u,f=f<<1|1)),b=S}else c=o+1,f=(1<<(u=n+1))-1,b=null}return w!==r&&vt.log("Warning, gif stream shorter than expected."),t}/**
|
|||
|
|
* @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 nu(e){var A,t,r,n,i,o=Math.floor,c=new Array(64),u=new Array(64),f=new Array(64),B=new Array(64),p=new Array(65535),w=new Array(65535),g=new Array(64),L=new Array(64),b=[],S=0,y=7,I=new Array(64),T=new Array(64),J=new Array(64),q=new Array(256),Z=new Array(2048),z=[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],_=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],AA=[0,1,2,3,4,5,6,7,8,9,10,11],sA=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],E=[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],N=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],K=[0,1,2,3,4,5,6,7,8,9,10,11],M=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],aA=[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 iA(Q,P){for(var D=0,G=0,X=new Array,nA=1;nA<=16;nA++){for(var oA=1;oA<=Q[nA];oA++)X[P[G]]=[],X[P[G]][0]=D,X[P[G]][1]=nA,G++,D++;D*=2}return X}function uA(Q){for(var P=Q[0],D=Q[1]-1;D>=0;)P&1<<D&&(S|=1<<y),D--,--y<0&&(S==255?(tA(255),tA(0)):tA(S),y=7,S=0)}function tA(Q){b.push(Q)}function fA(Q){tA(Q>>8&255),tA(255&Q)}function hA(Q,P,D,G,X){for(var nA,oA=X[0],cA=X[240],yA=function(FA,bA){var xA,IA,KA,XA,tt,rt,ot,mt,WA,nt,EA=0;for(WA=0;WA<8;++WA){xA=FA[EA],IA=FA[EA+1],KA=FA[EA+2],XA=FA[EA+3],tt=FA[EA+4],rt=FA[EA+5],ot=FA[EA+6];var ae=xA+(mt=FA[EA+7]),ct=xA-mt,We=IA+ot,Qt=IA-ot,xt=KA+rt,gr=KA-rt,ft=XA+tt,In=XA-tt,St=ae+ft,ze=ae-ft,Sr=We+xt,Pt=We-xt;FA[EA]=St+Sr,FA[EA+4]=St-Sr;var YA=.707106781*(Pt+ze);FA[EA+2]=ze+YA,FA[EA+6]=ze-YA;var Bt=.382683433*((St=In+gr)-(Pt=Qt+ct)),xn=.5411961*St+Bt,ne=1.306562965*Pt+Bt,dr=.707106781*(Sr=gr+Qt),pr=ct+dr,GA=ct-dr;FA[EA+5]=GA+xn,FA[EA+3]=GA-xn,FA[EA+1]=pr+ne,FA[EA+7]=pr-ne,EA+=8}for(EA=0,WA=0;WA<8;++WA){xA=FA[EA],IA=FA[EA+8],KA=FA[EA+16],XA=FA[EA+24],tt=FA[EA+32],rt=FA[EA+40],ot=FA[EA+48];var Xe=xA+(mt=FA[EA+56]),wr=xA-mt,Qe=IA+ot,Yt=IA-ot,Vt=KA+rt,He=KA-rt,zn=XA+tt,Pr=XA-tt,Ye=Xe+zn,Je=Xe-zn,Ze=Qe+Vt,mr=Qe-Vt;FA[EA]=Ye+Ze,FA[EA+32]=Ye-Ze;var _e=.707106781*(mr+Je);FA[EA+16]=Je+_e,FA[EA+48]=Je-_e;var Cr=.382683433*((Ye=Pr+He)-(mr=Yt+wr)),En=.5411961*Ye+Cr,Xn=1.306562965*mr+Cr,Yn=.707106781*(Ze=He+Yt),Jn=wr+Yn,Zn=wr-Yn;FA[EA+40]=Zn+En,FA[EA+24]=Zn-En,FA[EA+8]=Jn+Xn,FA[EA+56]=Jn-Xn,EA++}for(WA=0;WA<64;++WA)nt=FA[WA]*bA[WA],g[WA]=nt>0?nt+.5|0:nt-.5|0;return g}(Q,P),QA=0;QA<64;++QA)L[z[QA]]=yA[QA];var HA=L[0]-D;D=L[0],HA==0?uA(G[0]):(uA(G[w[nA=32767+HA]]),uA(p[nA]));for(var kA=63;kA>0&&L[kA]==0;)kA--;if(kA==0)return uA(oA),D;for(var jA,gA=1;gA<=kA;){for(var O=gA;L[gA]==0&&gA<=kA;)++gA;var ZA=gA-O;if(ZA>=16){jA=ZA>>4;for(var OA=1;OA<=jA;++OA)uA(cA);ZA&=15}nA=32767+L[gA],uA(X[(ZA<<4)+w[nA]]),uA(p[nA]),gA++}return kA!=63&&uA(oA),D}function vA(Q){Q=Math.min(Math.max(Q,1),100),i!=Q&&(function(P){for(var D=[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 X=o((D[G]*P+50)/100);X=Math.min(Math.max(X,1),255),c[z[G]]=X}for
|
|||
|
|
* @license
|
|||
|
|
* Copyright (c) 2017 Aras Abbasi
|
|||
|
|
*
|
|||
|
|
* Licensed under the MIT License.
|
|||
|
|
* http://opensource.org/licenses/mit-license
|
|||
|
|
*/function cr(e,A){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!A,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 ef(e){function A(_){if(!_)throw Error("assert :P")}function t(_,AA,sA){for(var E=0;4>E;E++)if(_[AA+E]!=sA.charCodeAt(E))return!0;return!1}function r(_,AA,sA,E,N){for(var K=0;K<N;K++)_[AA+K]=sA[E+K]}function n(_,AA,sA,E){for(var N=0;N<E;N++)_[AA+N]=sA}function i(_){return new Int32Array(_)}function o(_,AA){for(var sA=[],E=0;E<_;E++)sA.push(new AA);return sA}function c(_,AA){var sA=[];return function E(N,K,M){for(var aA=M[K],iA=0;iA<aA&&(N.push(M.length>K+1?[]:new AA),!(M.length<K+1));iA++)E(N[iA],K+1,M)}(sA,0,_),sA}var u=function(){var _=this;function AA(s,a){for(var h=1<<a-1>>>0;s&h;)h>>>=1;return h?(s&h-1)+h:s}function sA(s,a,h,d,m){A(!(d%h));do s[a+(d-=h)]=m;while(0<d)}function E(s,a,h,d,m){if(A(2328>=m),512>=m)var F=i(512);else if((F=i(m))==null)return 0;return function(v,U,x,H,j,eA){var rA,Y,wA=U,lA=1<<x,V=i(16),W=i(16);for(A(j!=0),A(H!=null),A(v!=null),A(0<x),Y=0;Y<j;++Y){if(15<H[Y])return 0;++V[H[Y]]}if(V[0]==j)return 0;for(W[1]=0,rA=1;15>rA;++rA){if(V[rA]>1<<rA)return 0;W[rA+1]=W[rA]+V[rA]}for(Y=0;Y<j;++Y)rA=H[Y],0<H[Y]&&(eA[W[rA]++]=Y);if(W[15]==1)return(H=new N).g=0,H.value=eA[0],sA(v,wA,1,lA,H),lA;var dA,mA=-1,pA=lA-1,PA=0,UA=1,RA=1,LA=1<<x;for(Y=0,rA=1,j=2;rA<=x;++rA,j<<=1){if(UA+=RA<<=1,0>(RA-=V[rA]))return 0;for(;0<V[rA];--V[rA])(H=new N).g=rA,H.value=eA[Y++],sA(v,wA+PA,j,LA,H),PA=AA(PA,rA)}for(rA=x+1,j=2;15>=rA;++rA,j<<=1){if(UA+=RA<<=1,0>(RA-=V[rA]))return 0;for(;0<V[rA];--V[rA]){if(H=new N,(PA&pA)!=mA){for(wA+=LA,dA=1<<(mA=rA)-x;15>mA&&!(0>=(dA-=V[mA]));)++mA,dA<<=1;lA+=LA=1<<(dA=mA-x),v[U+(mA=PA&pA)].g=dA+x,v[U+mA].value=wA-U-mA}H.g=rA-x,H.value=eA[Y++],sA(v,wA+(PA>>x),j,LA,H),PA=AA(PA,rA)}}return UA!=2*W[15]-1?0:lA}(s,a,h,d,m,F)}function N(){this.value=this.g=0}function K(){this.value=this.g=0}function M(){this.G=o(5,N),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(ve,K)}function aA(s,a,h,d){A(s!=null),A(a!=null),A(2147483648>d),s.Ca=254,s.I=0,s.b=-8,s.Ka=0,s.oa=a,s.pa=h,s.Jd=a,s.Yc=h+d,s.Zc=4<=d?h+d-4+1:h,nA(s)}function iA(s,a){for(var h=0;0<a--;)h|=cA(s,128)<<a;return h}function uA(s,a){var h=iA(s,a);return oA(s)?-h:h}function tA(s,a,h,d){var m,F=0;for(A(s!=null),A(a!=null),A(4294967288>d),s.Sb=d,s.Ra=0,s.u=0,s.h=0,4<d&&(d=4),m=0;m<d;++m)F+=a[h+m]<<8*m;s.Ra=F,s.bb=d,s.oa=a,s.pa=h}function fA(s){for(;8<=s.u&&s.bb<s.Sb;)s.Ra>>>=8,s.Ra+=s.oa[s.pa+s.bb]<<fi-8>>>0,++s.bb,s.u-=8;D(s)&&(s.h=1,s.u=0)}function hA(s,a){if(A(0<=a),!s.h&&a<=hi){var h=P(s)&li[a];return s.u+=a,fA(s),h}return s.h=1,s.u=0}function vA(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Q(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function P(s){return s.Ra>>>(s.u&fi-1)>>>0}function D(s){return A(s.bb<=s.Sb),s.h||s.bb==s.Sb&&s.u>fi}function G(s,a){s.u=a,s.h=D(s)}function X(s){s.u>=cs&&(A(s.u>=cs),fA(s))}function nA(s){A(s!=null&&s.oa!=null),s.pa<s.Zc?(s.I=(s.oa[s.pa++]|s.I<<8)>>>0,s.b+=8):(A(s!=null&&s.oa!=null),s.pa<s.Yc?(s.b+=8,s.I=s.oa[s.pa++]|s.I<<8):s.Ka?s.b=0:(s.I<<=8,s.b+=8,s.Ka=1))}function oA(s){return iA(s,1)}function cA(s,a){var h=s.Ca;0>s.b&&nA(s);var d=s.b,m=h*a>>>8,F=(s.I>>>d>m)+0;for(F?(h-=m,s.I-=m+1<<d>>>0):h=m+1,d=h,m=0;256<=d;)m+=8,d>>=8;return d=7^m+be[d],s.b-=d,s.Ca=(h<<d)-1,F}function yA(s,a,h){s[a+0]=h>>24&255,s[a+1]=h>>16&255,s[a+2]=h>>8&255,s[a+3]=h>>0&255}function QA(s,a){return s[a+0]<<0|s[a+1]<<8}function HA(s,a){return QA(s,a)|s[a+2]<<16}function kA(s,a){return QA(s,a)|QA(s,a+2)<<16}function jA(s,a){var h=1<<a;return A(s!=null),A(0<a),s.X=i(h),s.X==null?0:(s.Mb=32-a,s.Xa=a,1)}function gA(s,a){A(s!=null),A(a!=null),A(s.Xa==a.Xa),r(a.X,0,s.X,0,1<<a.Xa)}function O(){this.X=[],this.Xa=this.Mb=0}function ZA(s,a,h,d){A(h!=null),A(d!=null);var m=h[0],F=d[0];return m==0&&(m=(s*F+a/2)/a),F==0&&(F
|
|||
|
|
`:"")+q})):I.push(J[0])}),b=I,u=Zh.apply(this,[y,t])}for(i=0,o=b.length;i<o;i++){var T=0;if(r=b[i],u&&r[0]==`
|
|||
|
|
`&&(r=r.substr(1),T=1),w+g+(L=(n=sa.apply(this,[r,t])).reduce(function(J,q){return J+q},0))>A||T){if(L>A){for(c=$h.apply(this,[r,n,A-(w+g),A]),B.push(c.shift()),B=[c.pop()];c.length;)p.push([c.shift()]);L=n.slice(r.length-(B[0]?B[0].length:0)).reduce(function(J,q){return J+q},0)}else B=[r];p.push(B),w=L+u,g=S}else B.push(r),w+=g+L,g=S}return f=u?function(J,q){return(q?y:"")+J.join(" ")}:function(J){return J.join(" ")},p.map(f)},xi.splitTextToSize=function(e,A,t){var r,n=(t=t||{}).fontSize||this.internal.getFontSize(),i=function(B){if(B.widths&&B.kerning)return{widths:B.widths,kerning:B.kerning};var p=this.internal.getFont(B.fontName,B.fontStyle);return p.metadata.Unicode?{widths:p.metadata.Unicode.widths||{0:1},kerning:p.metadata.Unicode.kerning||{}}:{font:p.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,t);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*A/n;i.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=t.lineIndent;var c,u,f=[];for(c=0,u=r.length;c<u;c++)f=f.concat(Af.apply(this,[r[c],o,i]));return f},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var A="klmnopqrstuvwxyz",t={},r={},n=0;n<A.length;n++)t[A[n]]="0123456789abcdef"[n],r["0123456789abcdef"[n]]=A[n];var i=function(p){return"0x"+parseInt(p,10).toString(16)},o=e.__fontmetrics__.compress=function(p){var w,g,L,b,S=["{"];for(var y in p){if(w=p[y],isNaN(parseInt(y,10))?g="'"+y+"'":(y=parseInt(y,10),g=(g=i(y).slice(2)).slice(0,-1)+r[g.slice(-1)]),typeof w=="number")w<0?(L=i(w).slice(3),b="-"):(L=i(w).slice(2),b=""),L=b+L.slice(0,-1)+r[L.slice(-1)];else{if(wt(w)!=="object")throw new Error("Don't know what to do with value type "+wt(w)+".");L=o(w)}S.push(g+L)}return S.push("}"),S.join("")},c=e.__fontmetrics__.uncompress=function(p){if(typeof p!="string")throw new Error("Invalid argument passed to uncompress.");for(var w,g,L,b,S={},y=1,I=S,T=[],J="",q="",Z=p.length-1,z=1;z<Z;z+=1)(b=p[z])=="'"?w?(L=w.join(""),w=void 0):w=[]:w?w.push(b):b=="{"?(T.push([I,L]),I={},L=void 0):b=="}"?((g=T.pop())[0][g[1]]=I,L=void 0,I=g[0]):b=="-"?y=-1:L===void 0?t.hasOwnProperty(b)?(J+=t[b],L=parseInt(J,16)*y,y=1,J=""):J+=b:t.hasOwnProperty(b)?(q+=t[b],I[L]=parseInt(q,16)*y,y=1,L=void 0,q=""):q+=b;return S},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},f={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},B={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'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{4qu
|
|||
|
|
<<
|
|||
|
|
`+b.join(`
|
|||
|
|
`)+`
|
|||
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=t,this},function(e){var A=function(){var r='<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>',n=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),i=unescape(encodeURIComponent(r)),o=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),c=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),u=unescape(encodeURIComponent("</x:xmpmeta>")),f=i.length+o.length+c.length+n.length+u.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+f+" >>"),this.internal.write("stream"),this.internal.write(n+i+o+c+u),this.internal.write("endstream"),this.internal.write("endobj")},t=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(r,n){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:n||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",t),this.internal.events.subscribe("postPutResources",A)),this}}(VA.API),function(e){var A=e.API,t=A.pdfEscape16=function(i,o){for(var c,u=o.metadata.Unicode.widths,f=["","0","00","000","0000"],B=[""],p=0,w=i.length;p<w;++p){if(c=o.metadata.characterToGlyph(i.charCodeAt(p)),o.metadata.glyIdsUsed.push(c),o.metadata.toUnicode[c]=i.charCodeAt(p),u.indexOf(c)==-1&&(u.push(c),u.push([parseInt(o.metadata.widthOfGlyph(c),10)])),c=="0")return B.join("");c=c.toString(16),B.push(f[4-c.length],c)}return B.join("")},r=function(i){var o,c,u,f,B,p,w;for(B=`/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`,u=[],p=0,w=(c=Object.keys(i).sort(function(g,L){return g-L})).length;p<w;p++)o=c[p],u.length>=100&&(B+=`
|
|||
|
|
`+u.length+` beginbfchar
|
|||
|
|
`+u.join(`
|
|||
|
|
`)+`
|
|||
|
|
endbfchar`,u=[]),i[o]!==void 0&&i[o]!==null&&typeof i[o].toString=="function"&&(f=("0000"+i[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),u.push("<"+o+"><"+f+">"));return u.length&&(B+=`
|
|||
|
|
`+u.length+` beginbfchar
|
|||
|
|
`+u.join(`
|
|||
|
|
`)+`
|
|||
|
|
endbfchar
|
|||
|
|
`),B+=`endcmap
|
|||
|
|
CMapName currentdict /CMap defineresource pop
|
|||
|
|
end
|
|||
|
|
end`};A.events.push(["putFont",function(i){(function(o){var c=o.font,u=o.out,f=o.newObject,B=o.putStream;if(c.metadata instanceof e.API.TTFFont&&c.encoding==="Identity-H"){for(var p=c.metadata.Unicode.widths,w=c.metadata.subset.encode(c.metadata.glyIdsUsed,1),g="",L=0;L<w.length;L++)g+=String.fromCharCode(w[L]);var b=f();B({data:g,addLength1:!0,objectId:b}),u("endobj");var S=f();B({data:r(c.metadata.toUnicode),addLength1:!0,objectId:S}),u("endobj");var y=f();u("<<"),u("/Type /FontDescriptor"),u("/FontName /"+Si(c.fontName)),u("/FontFile2 "+b+" 0 R"),u("/FontBBox "+e.API.PDFObject.convert(c.metadata.bbox)),u("/Flags "+c.metadata.flags),u("/StemV "+c.metadata.stemV),u("/ItalicAngle "+c.metadata.italicAngle),u("/Ascent "+c.metadata.ascender),u("/Descent "+c.metadata.decender),u("/CapHeight "+c.metadata.capHeight),u(">>"),u("endobj");var I=f();u("<<"),u("/Type /Font"),u("/BaseFont /"+Si(c.fontName)),u("/FontDescriptor "+y+" 0 R"),u("/W "+e.API.PDFObject.convert(p)),u("/CIDToGIDMap /Identity"),u("/DW 1000"),u("/Subtype /CIDFontType2"),u("/CIDSystemInfo"),u("<<"),u("/Supplement 0"),u("/Registry (Adobe)"),u("/Ordering ("+c.encoding+")"),u(">>"),u(">>"),u("endobj"),c.objectNumber=f(),u("<<"),u("/Type /Font"),u("/Subtype /Type0"),u("/ToUnicode "+S+" 0 R"),u("/BaseFont /"+Si(c.fontName)),u("/Encoding /"+c.encoding),u("/DescendantFonts ["+I+" 0 R]"),u(">>"),u("endobj"),c.isAlreadyPutted=!0}})(i)}]),A.events.push(["putFont",function(i){(function(o){var c=o.font,u=o.out,f=o.newObject,B=o.putStream;if(c.metadata instanceof e.API.TTFFont&&c.encoding==="WinAnsiEncoding"){for(var p=c.metadata.rawData,w="",g=0;g<p.length;g++)w+=String.fromCharCode(p[g]);var L=f();B({data:w,addLength1:!0,objectId:L}),u("endobj");var b=f();B({data:r(c.metadata.toUnicode),addLength1:!0,objectId:b}),u("endobj");var S=f();u("<<"),u("/Descent "+c.metadata.decender),u("/CapHeight "+c.metadata.capHeight),u("/StemV "+c.metadata.stemV),u("/Type /FontDescriptor"),u("/FontFile2 "+L+" 0 R"),u("/Flags 96"),u("/FontBBox "+e.API.PDFObject.convert(c.metadata.bbox)),u("/FontName /"+Si(c.fontName)),u("/ItalicAngle "+c.metadata.italicAngle),u("/Ascent "+c.metadata.ascender),u(">>"),u("endobj"),c.objectNumber=f();for(var y=0;y<c.metadata.hmtx.widths.length;y++)c.metadata.hmtx.widths[y]=parseInt(c.metadata.hmtx.widths[y]*(1e3/c.metadata.head.unitsPerEm));u("<</Subtype/TrueType/Type/Font/ToUnicode "+b+" 0 R/BaseFont/"+Si(c.fontName)+"/FontDescriptor "+S+" 0 R/Encoding/"+c.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(c.metadata.hmtx.widths)+">>"),u("endobj"),c.isAlreadyPutted=!0}})(i)}]);var n=function(i){var o,c=i.text||"",u=i.x,f=i.y,B=i.options||{},p=i.mutex||{},w=p.pdfEscape,g=p.activeFontKey,L=p.fonts,b=g,S="",y=0,I="",T=L[b].encoding;if(L[b].encoding!=="Identity-H")return{text:c,x:u,y:f,options:B,mutex:p};for(I=c,b=g,Array.isArray(c)&&(I=c[0]),y=0;y<I.length;y+=1)L[b].metadata.hasOwnProperty("cmap")&&(o=L[b].metadata.cmap.unicode.codeMap[I[y].charCodeAt(0)]),o||I[y].charCodeAt(0)<256&&L[b].metadata.hasOwnProperty("Unicode")?S+=I[y]:S+="";var J="";return parseInt(b.slice(1))<14||T==="WinAnsiEncoding"?J=w(S,b).split("").map(function(q){return q.charCodeAt(0).toString(16)}).join(""):T==="Identity-H"&&(J=t(S,L[b])),p.isHex=!0,{text:J,x:u,y:f,options:B,mutex:p}};A.events.push(["postProcessText",function(i){var o=i.text||"",c=[],u={text:o,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(o)){var f=0;for(f=0;f<o.length;f+=1)Array.isArray(o[f])&&o[f].length===3?c.push([n(Object.assign({},u,{text:o[f][0]})).text,o[f][1],o[f][2]]):c.push(n(Object.assign({},u,{text:o[f]})).text);i.text=c}else i.text=n(Object.assign({},u,{text:o})).text}])}(VA),function(e){var A=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(t){return A.call(this),this.internal.vFS[t]!==void 0},e.addFileToVFS=function(t,r){return A.call(this),this.internal.vFS[t]=r,this},e.getFileFromVFS=function(t){return A.call(this),this.internal.vFS[t]!==void 0?this.internal.vFS[t]:null}}(VA.API),function(e){e.__bidiEngine__=e.prototype._
|
|||
|
|
`)}return""+t},A}();const I1=fB("StructStore",()=>{const e=zr({minZoom:.5,maxZoom:2}),A=zr(),t=zr();return{config:e,dataSource:A,selectedElement:t}}),ji=e=>(dB("data-v-2fe285ed"),e=e(),pB(),e),zp={class:"node-container"},Xp={key:0,class:"root-node"},Yp=["colspan"],Jp={class:"section-primary"},Zp={class:"column-content"},$p={class:"header"},Aw={class:"column-side"},tw={class:"column-content"},ew={class:"header"},rw={class:"column-side"},nw={class:"side-button"},iw={key:1,class:"section-tertiary"},sw={class:"column-content"},ow={class:"header"},aw={class:"column-side"},cw={class:"side-button"},uw={class:"nodeline"},lw=["colspan"],hw=ji(()=>_A("div",{class:"nodeline-down"},null,-1)),fw=[hw],Bw={class:"nodeline"},gw=ji(()=>_A("td",{class:"nodeline-right"},null,-1)),dw=ji(()=>_A("td",{class:"nodeline-left nodeline-top"},null,-1)),pw=ji(()=>_A("td",{class:"nodeline-right nodeline-top"},null,-1)),ww=ji(()=>_A("td",{class:"nodeline-left"},null,-1)),mw={class:"node-children"},Cw=["onClick"],Fw={class:"section-primary"},Qw={class:"column-content"},yw={class:"header"},vw={class:"column-side"},bw={class:"side-button"},Uw={class:"column-content"},Lw={class:"header"},Iw={class:"column-side"},xw={class:"side-button"},Ew={key:1,class:"section-tertiary"},Nw={class:"column-content"},Hw={class:"header"},Sw={class:"column-side"},Pw={class:"side-button"},kw={key:0,class:"subchild-section"},Dw=ji(()=>_A("td",{class:"nodeline-left nodeline-bottom subchild-section-nodeline"},null,-1)),_w={rowspan:"2"},Mw=["onClick"],Ow={class:"section-primary"},Kw={class:"column-content"},Tw={class:"header"},Rw={class:"column-side"},Gw={class:"side-button"},jw={key:0,class:"subchild-more"},Vw={class:"column-content"},qw={class:"header"},Ww={class:"column-side"},zw={class:"side-button"},Xw={key:1,class:"section-tertiary"},Yw={class:"column-content"},Jw={class:"header"},Zw={class:"column-side"},$w={class:"side-button"},A4={key:0,class:"nodeline-left nodeline-top subchild-section-nodeline"},t4={key:1},e4=Ku({__name:"StructChartNode",props:{dataSource:Object},setup(e){const A=e,{dataSource:t,selectedElement:r}=sf(I1()),n=BB(A).dataSource;Tu(()=>{}),iu(()=>A.dataSource,u=>{});const i=u=>{r.value=u},o=u=>{console.log(u)},c=u=>new Intl.NumberFormat().format(u);return(u,f)=>(ut(),ht("table",zp,[_A("tbody",null,[Ie(n)?(ut(),ht("tr",Xp,[_A("td",{colspan:Ie(n).children?.length*2},[_A("div",{class:"element-container root-element",onClick:f[1]||(f[1]=B=>i(Ie(n)?.deptID))},[_A("div",Jp,[_A("div",Zp,[_A("span",$p,Et(Ie(n).departmentName),1)]),_A("div",Aw,[_A("div",{class:"side-button",onClick:f[0]||(f[0]=gB(B=>o("test"),["stop"]))},Et(c(Ie(n).totalPositionCount)),1)])]),Ie(n).heads.length>0?(ut(!0),ht(xe,{key:0},Ur(Ie(n).heads,B=>(ut(),ht("div",{key:B.positionID,class:"section-secondary"},[_A("div",tw,[_A("span",ew,Et(B.positionName)+" "+Et(B.positionNum),1)]),_A("div",rw,[_A("div",nw,Et(c(B.totalPositionCount)),1)])]))),128)):vr("",!0),Ie(n).officer.length>0?(ut(),ht("div",iw,[(ut(!0),ht(xe,null,Ur(Ie(n).officer,B=>(ut(),ht("div",{key:B.positionID,class:"section-list"},[_A("div",sw,[_A("span",ow,Et(B.positionName)+" "+Et(B.positionNum),1)]),_A("div",aw,[_A("div",cw,Et(c(B.totalPositionCount)),1)])]))),128))])):vr("",!0)])],8,Yp)])):vr("",!0),Ie(n)?.children?.length>0?(ut(),ht(xe,{key:1},[_A("tr",uw,[_A("td",{colspan:Ie(n)?.children?.length*2},fw,8,lw)]),_A("tr",Bw,[gw,(ut(!0),ht(xe,null,Ur(Ie(n)?.children?.length-1,B=>(ut(),ht(xe,{key:B},[dw,pw],64))),128)),ww]),_A("tr",mw,[(ut(!0),ht(xe,null,Ur(Ie(n)?.children,B=>(ut(),ht("td",{key:B.deptID,colspan:"2"},[_A("div",{class:"element-container child-element",onClick:p=>i(B?.deptID)},[_A("div",Fw,[_A("div",Qw,[_A("span",yw,Et(B.departmentName),1)]),_A("div",vw,[_A("div",bw,Et(c(B.totalPositionCount)),1)])]),B.heads?.length>0?(ut(!0),ht(xe,{key:0},Ur(B.heads,p=>(ut(),ht("div",{key:p.positionID,class:"section-secondary"},[_A("div",Uw,[_A("span",Lw,Et(p.positionName)+" "+Et(p.positionNum),1)]),_A("div",Iw,[_A("div",xw,Et(c(p.totalPositionCount)),1)])]))),128)):vr("",!0),B.officer?.length>0?(ut(),ht("div",Ew,[(ut(!0),ht(xe,null,Ur(B
|