hrms-manual/node_modules/structure-chart/dist/structure-chart.umd.cjs

284 lines
728 KiB
JavaScript
Raw Normal View History

2023-09-06 14:51:44 +07:00
(function($n,X){typeof exports=="object"&&typeof module<"u"?X(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],X):($n=typeof globalThis<"u"?globalThis:$n||self,X($n.StructureChart={},$n.Vue,$n.pinia))})(this,function($n,X,Mc){"use strict";/*!
* 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 Rc=function(t,A){return Rc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])},Rc(t,A)};function Pr(t,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");Rc(t,A);function e(){this.constructor=t}t.prototype=A===null?Object.create(A):(e.prototype=A.prototype,new e)}var kc=function(){return kc=Object.assign||function(A){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(A[i]=e[i])}return A},kc.apply(this,arguments)};function Xt(t,A,e,r){function n(i){return i instanceof e?i:new e(function(a){a(i)})}return new(e||(e=Promise))(function(i,a){function s(c){try{u(r.next(c))}catch(g){a(g)}}function o(c){try{u(r.throw(c))}catch(g){a(g)}}function u(c){c.done?i(c.value):n(c.value).then(s,o)}u((r=r.apply(t,A||[])).next())})}function Dt(t,A){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,n,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return o([u,c])}}function o(u){if(r)throw new TypeError("Generator is already executing.");for(;e;)try{if(r=1,n&&(i=u[0]&2?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,n=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(i=e.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){e.label=u[1];break}if(u[0]===6&&e.label<i[1]){e.label=i[1],i=u;break}if(i&&e.label<i[2]){e.label=i[2],e.ops.push(u);break}i[2]&&e.ops.pop(),e.trys.pop();continue}u=A.call(t,e)}catch(c){u=[6,c],n=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Vo(t,A,e){if(e||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 t.concat(i||A)}for(var bn=function(){function t(A,e,r,n){this.left=A,this.top=e,this.width=r,this.height=n}return t.prototype.add=function(A,e,r,n){return new t(this.left+A,this.top+e,this.width+r,this.height+n)},t.fromClientRect=function(A,e){return new t(e.left+A.windowBounds.left,e.top+A.windowBounds.top,e.width,e.height)},t.fromDOMRectList=function(A,e){var r=Array.from(e).find(function(n){return n.width!==0});return r?new t(r.left+A.windowBounds.left,r.top+A.windowBounds.top,r.width,r.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),jo=function(t,A){return bn.fromClientRect(t,A.getBoundingClientRect())},Nm=function(t){var A=t.body,e=t.documentElement;if(!A||!e)throw new Error("Unable to get document size");var r=Math.max(Math.max(A.scrollWidth,e.scrollWidth),Math.max(A.offsetWidth,e.offsetWidth),Math.max(A.clientWidth,e.clientWidth)),n=Math.max(Math.max(A.scrollHeight,e.scrollHeight),Math.max(A.offsetHeight,e.offsetHeight),Math.max(A.clientHeight,e.clientHeight));return new bn(0,0,r,n)},Go=function(t){for(var A=[],e=0,r=t.length;e<r;){var n=t.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){var i=t.charCodeAt(e++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),e--)}else A.push(n)}return A},tt=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var e=t.length;if(!e)return"";for(var r=[],n=-1,i="";++n<e;){var a=t[n];a<=65535?r.push(a):(a-=65536,r.push((a>>10)+55296,a%1024+56320)),(n+1===e||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},b0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Tm=typeof Uint8Array>"u"?[]:new Uint8Array(256),$o=0;$o<b0.length;$o++)Tm[b0.charCodeAt($o)]=$o;for(var F0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnop
content: "" !important;
display: none !important;
}`,vF=function(t){BF(t,"."+Nf+dF+g1+`
.`+Tf+pF+g1)},BF=function(t,A){var e=t.ownerDocument;if(e){var r=e.createElement("style");r.textContent=A,t.appendChild(r)}},d1=function(){function t(){}return t.getOrigin=function(A){var e=t._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},t.isSameOrigin=function(A){return t.getOrigin(A)===t._origin},t.setContext=function(A){t._link=A.document.createElement("a"),t._origin=t.getOrigin(A.location.href)},t._origin="about:blank",t}(),wF=function(){function t(A,e){this.context=A,this._options=e,this._cache={}}return t.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Of(A)||bF(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},t.prototype.match=function(A){return this._cache[A]},t.prototype.loadImage=function(A){return Xt(this,void 0,void 0,function(){var e,r,n,i,a=this;return Dt(this,function(s){switch(s.label){case 0:return e=d1.isSameOrigin(A),r=!_f(A)&&this._options.useCORS===!0&&_t.SUPPORT_CORS_IMAGES&&!e,n=!_f(A)&&!e&&!Of(A)&&typeof this._options.proxy=="string"&&_t.SUPPORT_CORS_XHR&&!r,!e&&this._options.allowTaint===!1&&!_f(A)&&!Of(A)&&!n&&!r?[2]:(i=A,n?[4,this.proxy(i)]:[3,2]);case 1:i=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(o,u){var c=new Image;c.onload=function(){return o(c)},c.onerror=u,(FF(i)||r)&&(c.crossOrigin="anonymous"),c.src=i,c.complete===!0&&setTimeout(function(){return o(c)},500),a._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+a._options.imageTimeout+"ms) loading image")},a._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},t.prototype.has=function(A){return typeof this._cache[A]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(A){var e=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise(function(i,a){var s=_t.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(o.status===200)if(s==="text")i(o.response);else{var g=new FileReader;g.addEventListener("load",function(){return i(g.result)},!1),g.addEventListener("error",function(v){return a(v)},!1),g.readAsDataURL(o.response)}else a("Failed to proxy resource "+n+" with status code "+o.status)},o.onerror=a;var u=r.indexOf("?")>-1?"&":"?";if(o.open("GET",""+r+u+"url="+encodeURIComponent(A)+"&responseType="+s),s!=="text"&&o instanceof XMLHttpRequest&&(o.responseType=s),e._options.imageTimeout){var c=e._options.imageTimeout;o.timeout=c,o.ontimeout=function(){return a("Timed out ("+c+"ms) proxying "+n)}}o.send()})},t}(),mF=/^data:image\/svg\+xml/i,yF=/^data:image\/.*;base64,/i,CF=/^data:image\/.*/i,bF=function(t){return _t.SUPPORT_SVG_DRAWING||!QF(t)},_f=function(t){return CF.test(t)},FF=function(t){return yF.test(t)},Of=function(t){return t.substr(0,4)==="blob"},QF=function(t){return t.substr(-3).toLowerCase()==="svg"||mF.test(t)},DA=function(){function t(A,e){this.type=0,this.x=A,this.y=e}return t.prototype.add=function(A,e){return new t(this.x+A,this.y+e)},t}(),Ba=function(t,A,e){return new DA(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e)},Sl=function(){function t(A,e,r,n){this.type=1,this.start=A,this.startControl=e,this.endControl=r,this.end=n}return t.prototype.subdivide=function(A,e){var r=Ba(this.start,this.startControl,A),n=Ba(this.startControl,this.endControl,A),i=Ba(this.endControl,this.end,A),a=Ba(r,n,A),s=Ba(n,i,A),o=Ba(a,s,A);return e?new t(this.start,r,a,o):new t(o,s,i,this.end)},t.prototype.add=function(A,e){return new t(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Qr=function(t){return t.type===1},UF=function(){function t(A){var e=A.styles,r=A.bounds,n=Is(e.borderTopLeftRadius,r.width,r.height),i=n[0],a=n[1],s=Is(e.borderTopRightRadius,r.width,r.height),o=s[0],u=s[1],c=Is(e.borderBottomRightRadius,r.width,r.height),g=c[0],v=c[1],h=Is(e.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 ee=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function qf(){ee.console&&typeof ee.console.log=="function"&&ee.console.log.apply(ee.console,arguments)}var He={log:qf,warn:function(t){ee.console&&(typeof ee.console.warn=="function"?ee.console.warn.apply(ee.console,arguments):qf.call(null,arguments))},error:function(t){ee.console&&(typeof ee.console.error=="function"?ee.console.error.apply(ee.console,arguments):qf(t))}};function Wf(t,A,e){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){Oi(r.response,A,e)},r.onerror=function(){He.error("could not download file")},r.send()}function _1(t){var A=new XMLHttpRequest;A.open("HEAD",t,!1);try{A.send()}catch{}return A.status>=200&&A.status<=299}function Ml(t){try{t.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),t.dispatchEvent(A)}}var Ks,Xf,Oi=ee.saveAs||((typeof window>"u"?"undefined":Qe(window))!=="object"||window!==ee?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,A,e){var r=ee.URL||ee.webkitURL,n=document.createElement("a");A=A||t.name||"download",n.download=A,n.rel="noopener",typeof t=="string"?(n.href=t,n.origin!==location.origin?_1(n.href)?Wf(t,A,e):Ml(n,n.target="_blank"):Ml(n)):(n.href=r.createObjectURL(t),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){Ml(n)},0))}:"msSaveOrOpenBlob"in navigator?function(t,A,e){if(A=A||t.name||"download",typeof t=="string")if(_1(t))Wf(t,A,e);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){Ml(r)})}else navigator.msSaveOrOpenBlob(function(n,i){return i===void 0?i={autoBom:!1}:Qe(i)!=="object"&&(He.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}(t,e),A)}:function(t,A,e,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return Wf(t,A,e);var n=t.type==="application/octet-stream",i=/constructor/i.test(ee.HTMLElement)||ee.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||n&&i)&&(typeof FileReader>"u"?"undefined":Qe(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var c=s.result;c=a?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=c:location=c,r=null},s.readAsDataURL(t)}else{var o=ee.URL||ee.webkitURL,u=o.createObjectURL(t);r?r.location=u:location.href=u,r=null,setTimeout(function(){o.revokeObjectURL(u)},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 O1(t){var A;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],r=0;r<e.length;r++){var n=e[r].re,i=e[r].process,a=n.exec(t);a&&(A=i(a),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 s=this.r.toString(16),o=this.g.toString(16),u=this.b.toString(16);return s.length==1&&(s="0"+s),o.length==1&&(o="0"+o),u.length==1&&(u="0"+u),"#"+s+o+u}}/**
* @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 zf(t,A){var e=t[0],r=t[1],n=t[2],i=t[3];e=Rt(e,r,n,i,A[0],7,-680876936),i=Rt(i,e,r,n,A[1],12,-389564586),n=Rt(n,i,e,r,A[2],17,606105819),r=Rt(r,n,i,e,A[3],22,-1044525330),e=Rt(e,r,n,i,A[4],7,-176418897),i=Rt(i,e,r,n,A[5],12,1200080426),n=Rt(n,i,e,r,A[6],17,-1473231341),r=Rt(r,n,i,e,A[7],22,-45705983),e=Rt(e,r,n,i,A[8],7,1770035416),i=Rt(i,e,r,n,A[9],12,-1958414417),n=Rt(n,i,e,r,A[10],17,-42063),r=Rt(r,n,i,e,A[11],22,-1990404162),e=Rt(e,r,n,i,A[12],7,1804603682),i=Rt(i,e,r,n,A[13],12,-40341101),n=Rt(n,i,e,r,A[14],17,-1502002290),e=kt(e,r=Rt(r,n,i,e,A[15],22,1236535329),n,i,A[1],5,-165796510),i=kt(i,e,r,n,A[6],9,-1069501632),n=kt(n,i,e,r,A[11],14,643717713),r=kt(r,n,i,e,A[0],20,-373897302),e=kt(e,r,n,i,A[5],5,-701558691),i=kt(i,e,r,n,A[10],9,38016083),n=kt(n,i,e,r,A[15],14,-660478335),r=kt(r,n,i,e,A[4],20,-405537848),e=kt(e,r,n,i,A[9],5,568446438),i=kt(i,e,r,n,A[14],9,-1019803690),n=kt(n,i,e,r,A[3],14,-187363961),r=kt(r,n,i,e,A[8],20,1163531501),e=kt(e,r,n,i,A[13],5,-1444681467),i=kt(i,e,r,n,A[2],9,-51403784),n=kt(n,i,e,r,A[7],14,1735328473),e=Kt(e,r=kt(r,n,i,e,A[12],20,-1926607734),n,i,A[5],4,-378558),i=Kt(i,e,r,n,A[8],11,-2022574463),n=Kt(n,i,e,r,A[11],16,1839030562),r=Kt(r,n,i,e,A[14],23,-35309556),e=Kt(e,r,n,i,A[1],4,-1530992060),i=Kt(i,e,r,n,A[4],11,1272893353),n=Kt(n,i,e,r,A[7],16,-155497632),r=Kt(r,n,i,e,A[10],23,-1094730640),e=Kt(e,r,n,i,A[13],4,681279174),i=Kt(i,e,r,n,A[0],11,-358537222),n=Kt(n,i,e,r,A[3],16,-722521979),r=Kt(r,n,i,e,A[6],23,76029189),e=Kt(e,r,n,i,A[9],4,-640364487),i=Kt(i,e,r,n,A[12],11,-421815835),n=Kt(n,i,e,r,A[15],16,530742520),e=Vt(e,r=Kt(r,n,i,e,A[2],23,-995338651),n,i,A[0],6,-198630844),i=Vt(i,e,r,n,A[7],10,1126891415),n=Vt(n,i,e,r,A[14],15,-1416354905),r=Vt(r,n,i,e,A[5],21,-57434055),e=Vt(e,r,n,i,A[12],6,1700485571),i=Vt(i,e,r,n,A[3],10,-1894986606),n=Vt(n,i,e,r,A[10],15,-1051523),r=Vt(r,n,i,e,A[1],21,-2054922799),e=Vt(e,r,n,i,A[8],6,1873313359),i=Vt(i,e,r,n,A[15],10,-30611744),n=Vt(n,i,e,r,A[6],15,-1560198380),r=Vt(r,n,i,e,A[13],21,1309151649),e=Vt(e,r,n,i,A[4],6,-145523070),i=Vt(i,e,r,n,A[11],10,-1120210379),n=Vt(n,i,e,r,A[2],15,718787259),r=Vt(r,n,i,e,A[9],21,-343485551),t[0]=ni(e,t[0]),t[1]=ni(r,t[1]),t[2]=ni(n,t[2]),t[3]=ni(i,t[3])}function Rl(t,A,e,r,n,i){return A=ni(ni(A,t),ni(r,i)),ni(A<<n|A>>>32-n,e)}function Rt(t,A,e,r,n,i,a){return Rl(A&e|~A&r,t,A,n,i,a)}function kt(t,A,e,r,n,i,a){return Rl(A&r|e&~r,t,A,n,i,a)}function Kt(t,A,e,r,n,i,a){return Rl(A^e^r,t,A,n,i,a)}function Vt(t,A,e,r,n,i,a){return Rl(e^(A|~r),t,A,n,i,a)}function H1(t){var A,e=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(A=64;A<=t.length;A+=64)zf(r,BQ(t.substring(A-64,A)));t=t.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<t.length;A++)n[A>>2]|=t.charCodeAt(A)<<(A%4<<3);if(n[A>>2]|=128<<(A%4<<3),A>55)for(zf(r,n),A=0;A<16;A++)n[A]=0;return n[14]=8*e,zf(r,n),r}function BQ(t){var A,e=[];for(A=0;A<64;A+=4)e[A>>2]=t.charCodeAt(A)+(t.charCodeAt(A+1)<<8)+(t.charCodeAt(A+2)<<16)+(t.charCodeAt(A+3)<<24);return e}Ks=ee.atob.bind(ee),Xf=ee.btoa.bind(ee);var P1="0123456789abcdef".split("");function wQ(t){for(var A="",e=0;e<4;e++)A+=P1[t>>8*e+4&15]+P1[t>>8*e&15];return A}function mQ(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function Yf(t){return H1(t).map(mQ).join("")}var yQ=function(t){for(var A=0;A<t.length;A++)t[A]=wQ(t[A]);return t.join("")}(H1("hello"))!="5d41402abc4b2a76b9719d911017c592";function ni(t,A){if(yQ){var e=(65535&t)+(65535&A);return(t>>16)+(A>>16)+(e>>16)<<16|65535&e}return t+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 Jf(t,A){var e,r,n,i;if(t!==e){for(var a=(n=t,i=1+(256/t.length>>0),new Array(i+1).join(n)),s=[],o=0;o<256;o++)s[o]=o;var u=0;for(o=0;o<256;o++){var c=s[o];u=(u+c+a.charCodeAt(o))%256,s[o]=s[u],s[u]=c}e=t,r=s}else s=r;var g=A.length,v=0,h=0,m="";for(o=0;o<g;o++)h=(h+(c=s[v=(v+1)%256]))%256,s[v]=s[h],s[h]=c,a=s[(s[v]+s[h])%256],m+=String.fromCharCode(A.charCodeAt(o)^a);return m}/**
* @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 D1={print:4,modify:8,copy:16,"annot-forms":32};function ya(t,A,e,r){this.v=1,this.r=2;var n=192;t.forEach(function(s){if(D1.perm!==void 0)throw new Error("Invalid permission: "+s);n+=D1[s]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var i=(A+this.padding).substr(0,32),a=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,a),this.P=-(1+(255^n)),this.encryptionKey=Yf(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Jf(this.encryptionKey,this.padding)}function Ca(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var A="",e=t.length,r=0;r<e;r++){var n=t.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+=t[r]}return A}function M1(t){if(Qe(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var A={};this.subscribe=function(e,r,n){if(n=n||!1,typeof e!="string"||typeof r!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");A.hasOwnProperty(e)||(A[e]={});var i=Math.random().toString(35);return A[e][i]=[r,!!n],i},this.unsubscribe=function(e){for(var r in A)if(A[r][e])return delete A[r][e],Object.keys(A[r]).length===0&&delete A[r],!0;return!1},this.publish=function(e){if(A.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in A[e]){var a=A[e][i];try{a[0].apply(t,r)}catch(s){ee.console&&He.error("jsPDF PubSub Error",s.message,s)}a[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return A}}function kl(t){if(!(this instanceof kl))return new kl(t);var A="opacity,stroke-opacity".split(",");for(var e in t)t.hasOwnProperty(e)&&A.indexOf(e)>=0&&(this[e]=t[e]);this.id="",this.objectNumber=-1}function R1(t,A){this.gState=t,this.matrix=A,this.id="",this.objectNumber=-1}function Hi(t,A,e,r,n){if(!(this instanceof Hi))return new Hi(t,A,e,r,n);this.type=t==="axial"?2:3,this.coords=A,this.colors=e,R1.call(this,r,n)}function ba(t,A,e,r,n){if(!(this instanceof ba))return new ba(t,A,e,r,n);this.boundingBox=t,this.xStep=A,this.yStep=e,this.stream="",this.cloneIndex=0,R1.call(this,r,n)}function te(t){var A,e=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],a=[],s=1,o=16,u="S",c=null;Qe(t=t||{})==="object"&&(e=t.orientation,r=t.unit||r,n=t.format||n,i=t.compress||t.compressPdf||i,(c=t.encryption||null)!==null&&(c.userPassword=c.userPassword||"",c.ownerPassword=c.ownerPassword||"",c.userPermissions=c.userPermissions||[]),s=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(A=t.precision),t.floatPrecision!==void 0&&(o=t.floatPrecision),u=t.defaultPathOperation||"S"),a=t.filters||(i===!0?["FlateEncode"]:a),r=r||"mm",e=(""+(e||"P")).toLowerCase();var g=t.putOnlyUsedFonts||!1,v={},h={internal:{},__private__:{}};h.__private__.PubSub=M1;var m="1.3",w=h.__private__.getPdfVersion=function(){return m};h.__private__.setPdfVersion=function(d){m=d};var b={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]};h.__private__.getPageFormats=function(){return b};var y=h.__private__.getPageFormat=function(d){return b[d]};n=n||"a4";var U={COMPAT:"compat",ADVANCED:"advanc
`),$e(d,F),be.publish("endTilingPattern",F),Sr.pop().restore()};var qe=h.__private__.newObject=function(){var d=We();return $t(d,!0),d},We=h.__private__.newObjectDeferred=function(){return W++,iA[W]=function(){return gA},W},$t=function(d,F){return F=typeof F=="boolean"&&F,iA[d]=gA,F&&V(d+" 0 obj"),d},fi=h.__private__.newAdditionalObject=function(){var d={objId:We(),content:""};return xA.push(d),d},tr=We(),lt=We(),or=h.__private__.decodeColorString=function(d){var F=d.split(" ");if(F.length!==2||F[1]!=="g"&&F[1]!=="G")F.length===5&&(F[4]==="k"||F[4]==="K")&&(F=[(1-F[0])*(1-F[3]),(1-F[1])*(1-F[3]),(1-F[2])*(1-F[3]),"r"]);else{var D=parseFloat(F[0]);F=[D,D,D,"r"]}for(var q="#",nA=0;nA<3;nA++)q+=("0"+Math.floor(255*parseFloat(F[nA])).toString(16)).slice(-2);return q},lr=h.__private__.encodeColorString=function(d){var F;typeof d=="string"&&(d={ch1:d});var D=d.ch1,q=d.ch2,nA=d.ch3,vA=d.ch4,UA=d.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof D=="string"&&D.charAt(0)!=="#"){var MA=new O1(D);if(MA.ok)D=MA.toHex();else if(!/^\d*\.?\d*$/.test(D))throw new Error('Invalid color "'+D+'" passed to jsPDF.encodeColorString.')}if(typeof D=="string"&&/^#[0-9A-Fa-f]{3}$/.test(D)&&(D="#"+D[1]+D[1]+D[2]+D[2]+D[3]+D[3]),typeof D=="string"&&/^#[0-9A-Fa-f]{6}$/.test(D)){var YA=parseInt(D.substr(1),16);D=YA>>16&255,q=YA>>8&255,nA=255&YA}if(q===void 0||vA===void 0&&D===q&&q===nA)if(typeof D=="string")F=D+" "+UA[0];else switch(d.precision){case 2:F=sA(D/255)+" "+UA[0];break;case 3:default:F=N(D/255)+" "+UA[0]}else if(vA===void 0||Qe(vA)==="object"){if(vA&&!isNaN(vA.a)&&vA.a===0)return F=["1.","1.","1.",UA[1]].join(" ");if(typeof D=="string")F=[D,q,nA,UA[1]].join(" ");else switch(d.precision){case 2:F=[sA(D/255),sA(q/255),sA(nA/255),UA[1]].join(" ");break;default:case 3:F=[N(D/255),N(q/255),N(nA/255),UA[1]].join(" ")}}else if(typeof D=="string")F=[D,q,nA,vA,UA[2]].join(" ");else switch(d.precision){case 2:F=[sA(D),sA(q),sA(nA),sA(vA),UA[2]].join(" ");break;case 3:default:F=[N(D),N(q),N(nA),N(vA),UA[2]].join(" ")}return F},Br=h.__private__.getFilters=function(){return a},rr=h.__private__.putStream=function(d){var F=(d=d||{}).data||"",D=d.filters||Br(),q=d.alreadyAppliedFilters||[],nA=d.addLength1||!1,vA=F.length,UA=d.objectId,MA=function(Wt){return Wt};if(c!==null&&UA===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");c!==null&&(MA=qt.encryptor(UA,0));var YA={};D===!0&&(D=["FlateEncode"]);var ue=d.additionalKeyValues||[],de=(YA=te.API.processDataByFilters!==void 0?te.API.processDataByFilters(F,D):{data:F,reverseChain:[]}).reverseChain+(Array.isArray(q)?q.join(" "):q.toString());if(YA.data.length!==0&&(ue.push({key:"Length",value:YA.data.length}),nA===!0&&ue.push({key:"Length1",value:vA})),de.length!=0)if(de.split("/").length-1==1)ue.push({key:"Filter",value:de});else{ue.push({key:"Filter",value:"["+de+"]"});for(var Ce=0;Ce<ue.length;Ce+=1)if(ue[Ce].key==="DecodeParms"){for(var ze=[],At=0;At<YA.reverseChain.split("/").length-1;At+=1)ze.push("null");ze.push(ue[Ce].value),ue[Ce].value="["+ze.join(" ")+"]"}}V("<<");for(var wt=0;wt<ue.length;wt++)V("/"+ue[wt].key+" "+ue[wt].value);V(">>"),YA.data.length!==0&&(V("stream"),V(MA(YA.data)),V("endstream"))},Lr=h.__private__.putPage=function(d){var F=d.number,D=d.data,q=d.objId,nA=d.contentsObjId;$t(q,!0),V("<</Type /Page"),V("/Parent "+d.rootDictionaryObjId+" 0 R"),V("/Resources "+d.resourceDictionaryObjId+" 0 R"),V("/MediaBox ["+parseFloat(K(d.mediaBox.bottomLeftX))+" "+parseFloat(K(d.mediaBox.bottomLeftY))+" "+K(d.mediaBox.topRightX)+" "+K(d.mediaBox.topRightY)+"]"),d.cropBox!==null&&V("/CropBox ["+K(d.cropBox.bottomLeftX)+" "+K(d.cropBox.bottomLeftY)+" "+K(d.cropBox.topRightX)+" "+K(d.cropBox.topRightY)+"]"),d.bleedBox!==null&&V("/BleedBox ["+K(d.bleedBox.bottomLeftX)+" "+K(d.bleedBox.bottomLeftY)+" "+K(d.bleedBox.topRightX)+" "+K(d.bleedBox.topRightY)+"]"),d.trimBox!==null&&V("/TrimBox ["+K(d.trimBox.bottomLeftX)+" "+K(d.trimBox.bottomLeftY)+" "+K(d.trimBox.topRightX)+" "+K(d.trimBox.topRightY)+"]"),d.artBox!==null&&V("/ArtBox ["+K(d.artBox.bottomLeftX)+" "
`);return T===U.ADVANCED&&(vA+=`
Q`),$t(nA,!0),rr({data:vA,filters:Br(),objectId:nA}),V("endobj"),q},qA=h.__private__.putPages=function(){var d,F,D=[];for(d=1;d<=Le;d++)ie[d].objId=We(),ie[d].contentsObjId=We();for(d=1;d<=Le;d++)D.push(Lr({number:d,data:EA[d],objId:ie[d].objId,contentsObjId:ie[d].contentsObjId,mediaBox:ie[d].mediaBox,cropBox:ie[d].cropBox,bleedBox:ie[d].bleedBox,trimBox:ie[d].trimBox,artBox:ie[d].artBox,userUnit:ie[d].userUnit,rootDictionaryObjId:tr,resourceDictionaryObjId:lt}));$t(tr,!0),V("<</Type /Pages");var q="/Kids [";for(F=0;F<Le;F++)q+=D[F]+" 0 R ";V(q+"]"),V("/Count "+Le),V(">>"),V("endobj"),be.publish("postPutPages")},J=function(d){be.publish("putFont",{font:d,out:V,newObject:qe,putStream:rr}),d.isAlreadyPutted!==!0&&(d.objectNumber=qe(),V("<<"),V("/Type /Font"),V("/BaseFont /"+Ca(d.postScriptName)),V("/Subtype /Type1"),typeof d.encoding=="string"&&V("/Encoding /"+d.encoding),V("/FirstChar 32"),V("/LastChar 255"),V(">>"),V("endobj"))},QA=function(){for(var d in pe)pe.hasOwnProperty(d)&&(g===!1||g===!0&&v.hasOwnProperty(d))&&J(pe[d])},_A=function(d){d.objectNumber=qe();var F=[];F.push({key:"Type",value:"/XObject"}),F.push({key:"Subtype",value:"/Form"}),F.push({key:"BBox",value:"["+[K(d.x),K(d.y),K(d.x+d.width),K(d.y+d.height)].join(" ")+"]"}),F.push({key:"Matrix",value:"["+d.matrix.toString()+"]"});var D=d.pages[1].join(`
`);rr({data:D,additionalKeyValues:F,objectId:d.objectNumber}),V("endobj")},ve=function(){for(var d in vt)vt.hasOwnProperty(d)&&_A(vt[d])},bt=function(d,F){var D,q=[],nA=1/(F-1);for(D=0;D<1;D+=nA)q.push(D);if(q.push(1),d[0].offset!=0){var vA={offset:0,color:d[0].color};d.unshift(vA)}if(d[d.length-1].offset!=1){var UA={offset:1,color:d[d.length-1].color};d.push(UA)}for(var MA="",YA=0,ue=0;ue<q.length;ue++){for(D=q[ue];D>d[YA+1].offset;)YA++;var de=d[YA].offset,Ce=(D-de)/(d[YA+1].offset-de),ze=d[YA].color,At=d[YA+1].color;MA+=$(Math.round((1-Ce)*ze[0]+Ce*At[0]).toString(16))+$(Math.round((1-Ce)*ze[1]+Ce*At[1]).toString(16))+$(Math.round((1-Ce)*ze[2]+Ce*At[2]).toString(16))}return MA.trim()},Bt=function(d,F){F||(F=21);var D=qe(),q=bt(d.colors,F),nA=[];nA.push({key:"FunctionType",value:"0"}),nA.push({key:"Domain",value:"[0.0 1.0]"}),nA.push({key:"Size",value:"["+F+"]"}),nA.push({key:"BitsPerSample",value:"8"}),nA.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),nA.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),rr({data:q,additionalKeyValues:nA,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:D}),V("endobj"),d.objectNumber=qe(),V("<< /ShadingType "+d.type),V("/ColorSpace /DeviceRGB");var vA="/Coords ["+K(parseFloat(d.coords[0]))+" "+K(parseFloat(d.coords[1]))+" ";d.type===2?vA+=K(parseFloat(d.coords[2]))+" "+K(parseFloat(d.coords[3])):vA+=K(parseFloat(d.coords[2]))+" "+K(parseFloat(d.coords[3]))+" "+K(parseFloat(d.coords[4]))+" "+K(parseFloat(d.coords[5])),V(vA+="]"),d.matrix&&V("/Matrix ["+d.matrix.toString()+"]"),V("/Function "+D+" 0 R"),V("/Extend [true true]"),V(">>"),V("endobj")},ut=function(d,F){var D=We(),q=qe();F.push({resourcesOid:D,objectOid:q}),d.objectNumber=q;var nA=[];nA.push({key:"Type",value:"/Pattern"}),nA.push({key:"PatternType",value:"1"}),nA.push({key:"PaintType",value:"1"}),nA.push({key:"TilingType",value:"1"}),nA.push({key:"BBox",value:"["+d.boundingBox.map(K).join(" ")+"]"}),nA.push({key:"XStep",value:K(d.xStep)}),nA.push({key:"YStep",value:K(d.yStep)}),nA.push({key:"Resources",value:D+" 0 R"}),d.matrix&&nA.push({key:"Matrix",value:"["+d.matrix.toString()+"]"}),rr({data:d.stream,additionalKeyValues:nA,objectId:d.objectNumber}),V("endobj")},Yr=function(d){var F;for(F in we)we.hasOwnProperty(F)&&(we[F]instanceof Hi?Bt(we[F]):we[F]instanceof ba&&ut(we[F],d))},Xe=function(d){for(var F in d.objectNumber=qe(),V("<<"),d)switch(F){case"opacity":V("/ca "+sA(d[F]));break;case"stroke-opacity":V("/CA "+sA(d[F]))}V(">>"),V("endobj")},ea=function(){var d;for(d in Ie)Ie.hasOwnProperty(d)&&Xe(Ie[d])},hi=function(){for(var d in V("/XObject <<"),vt)vt.hasOwnProperty(d)&&vt[d].objectNumber>=0&&V("/"+d+" "+vt[d].objectNumber+" 0 R");be.publish("putXobjectDict"),V(">>")},Zu=function(){qt.oid=qe(),V("<<"),V("/Filter /Standard"),V("/V "+qt.v),V("/R "+qt.r),V("/U <"+qt.toHexString(qt.U)+">"),V("/O <"+qt.toHexString(qt.O)+">"),V("/P "+qt.P),V(">>"),V("endobj")},Ac=function(){for(var d in V("/Font <<"),pe)pe.hasOwnProperty(d)&&(g===!1||g===!0&&v.hasOwnProperty(d))&&V("/"+d+" "+pe[d].objectNumber+" 0 R");V(">>")},Pd=function(){if(Object.keys(we).length>0){for(var d in V("/Shading <<"),we)we.hasOwnProperty(d)&&we[d]instanceof Hi&&we[d].objectNumber>=0&&V("/"+d+" "+we[d].objectNumber+" 0 R");be.publish("putShadingPatternDict"),V(">>")}},Xa=function(d){if(Object.keys(we).length>0){for(var F in V("/Pattern <<"),we)we.hasOwnProperty(F)&&we[F]instanceof h.TilingPattern&&we[F].objectNumber>=0&&we[F].objectNumber<d&&V("/"+F+" "+we[F].objectNumber+" 0 R");be.publish("putTilingPatternDict"),V(">>")}},Dd=function(){if(Object.keys(Ie).length>0){var d;for(d in V("/ExtGState <<"),Ie)Ie.hasOwnProperty(d)&&Ie[d].objectNumber>=0&&V("/"+d+" "+Ie[d].objectNumber+" 0 R");be.publish("putGStateDict"),V(">>")}},ct=function(d){$t(d.resourcesOid,!0),V("<<"),V("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Ac(),Pd(),Xa(d.objectOid),Dd(),hi(),V(">>"),V("endobj")},ec=function(){var d=[];QA(),ea(),ve(),Yr(d),be.publish("putResources"),d.forEach(ct),ct({resourcesOid:lt,objectOid:Number.MAX_SAFE_INTEGER}),be.publish("postPutResources")},tc=fun
`)[0].split("<")[0]+": "+q.message;if(!ee.console)throw new Error(D);ee.console.error(D,q),ee.alert&&alert(D)}},d.foo.bar=d,d.foo},za=function(d,F){var D,q,nA,vA,UA,MA,YA,ue,de;if(nA=(F=F||{}).sourceEncoding||"Unicode",UA=F.outputEncoding,(F.autoencode||UA)&&pe[ne].metadata&&pe[ne].metadata[nA]&&pe[ne].metadata[nA].encoding&&(vA=pe[ne].metadata[nA].encoding,!UA&&pe[ne].encoding&&(UA=pe[ne].encoding),!UA&&vA.codePages&&(UA=vA.codePages[0]),typeof UA=="string"&&(UA=vA[UA]),UA)){for(YA=!1,MA=[],D=0,q=d.length;D<q;D++)(ue=UA[d.charCodeAt(D)])?MA.push(String.fromCharCode(ue)):MA.push(d[D]),MA[D].charCodeAt(0)>>8&&(YA=!0);d=MA.join("")}for(D=d.length;YA===void 0&&D!==0;)d.charCodeAt(D-1)>>8&&(YA=!0),D--;if(!YA)return d;for(MA=F.noBOM?[]:[254,255],D=0,q=d.length;D<q;D++){if((de=(ue=d.charCodeAt(D))>>8)>>8)throw new Error("Character at position "+D+" of string '"+d+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");MA.push(de),MA.push(ue-(de<<8))}return String.fromCharCode.apply(void 0,MA)},ur=h.__private__.pdfEscape=h.pdfEscape=function(d,F){return za(d,F).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},po=h.__private__.beginPage=function(d){EA[++Le]=[],ie[Le]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(d[0]),topRightY:Number(d[1])}},ic(Le),dA(EA[H])},nc=function(d,F){var D,q,nA;switch(e=F||e,typeof d=="string"&&(D=y(d.toLowerCase()),Array.isArray(D)&&(q=D[0],nA=D[1])),Array.isArray(d)&&(q=d[0]*TA,nA=d[1]*TA),isNaN(q)&&(q=n[0],nA=n[1]),(q>14400||nA>14400)&&(He.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),q=Math.min(14400,q),nA=Math.min(14400,nA)),n=[q,nA],e.substr(0,1)){case"l":nA>q&&(n=[nA,q]);break;case"p":q>nA&&(n=[nA,q])}po(n),cc(mo),V(Zr),Co!==0&&V(Co+" J"),bo!==0&&V(bo+" j"),be.publish("addPage",{pageNumber:Le})},Rd=function(d){d>0&&d<=Le&&(EA.splice(d,1),ie.splice(d,1),Le--,H>Le&&(H=Le),this.setPage(H))},ic=function(d){d>0&&d<=Le&&(H=d)},kd=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return EA.length-1},ac=function(d,F,D){var q,nA=void 0;return D=D||{},d=d!==void 0?d:pe[ne].fontName,F=F!==void 0?F:pe[ne].fontStyle,q=d.toLowerCase(),Ue[q]!==void 0&&Ue[q][F]!==void 0?nA=Ue[q][F]:Ue[d]!==void 0&&Ue[d][F]!==void 0?nA=Ue[d][F]:D.disableWarning===!1&&He.warn("Unable to look up font label for font '"+d+"', '"+F+"'. Refer to getFontList() for available fonts."),nA||D.noFallback||(nA=Ue.times[F])==null&&(nA=Ue.times.normal),nA},Kd=h.__private__.putInfo=function(){var d=qe(),F=function(q){return q};for(var D in c!==null&&(F=qt.encryptor(d,0)),V("<<"),V("/Producer ("+ur(F("jsPDF "+te.version))+")"),XA)XA.hasOwnProperty(D)&&XA[D]&&V("/"+D.substr(0,1).toUpperCase()+D.substr(1)+" ("+ur(F(XA[D]))+")");V("/CreationDate ("+ur(F(aA))+")"),V(">>"),V("endobj")},vo=h.__private__.putCatalog=function(d){var F=(d=d||{}).rootDictionaryObjId||tr;switch(qe(),V("<<"),V("/Type /Catalog"),V("/Pages "+F+" 0 R"),LA||(LA="fullwidth"),LA){case"fullwidth":V("/OpenAction [3 0 R /FitH null]");break;case"fullheight":V("/OpenAction [3 0 R /FitV null]");break;case"fullpage":V("/OpenAction [3 0 R /Fit]");break;case"original":V("/OpenAction [3 0 R /XYZ null null 1]");break;default:var D=""+LA;D.substr(D.length-1)==="%"&&(LA=parseInt(LA)/100),typeof LA=="number"&&V("/OpenAction [3 0 R /XYZ null null "+sA(LA)+"]")}switch(re||(re="continuous"),re){case"continuous":V("/PageLayout /OneColumn");break;case"single":V("/PageLayout /SinglePage");break;case"two":case"twoleft":V("/PageLayout /TwoColumnLeft");break;case"tworight":V("/PageLayout /TwoColumnRight")}GA&&V("/PageMode /"+GA),be.publish("putCatalog"),V(">>"),V("endobj")},Vd=h.__private__.putTrailer=function(){V("trailer"),V("<<"),V("/Size "+(W+1)),V("/Root "+W+" 0 R"),V("/Info "+(W-1)+" 0 R"),c!==null&&V("/Encrypt "+qt.oid+" 0 R"),V("/ID [ <"+rA+"> <"+rA+"> ]"),V(">>")},jd=h.__private__.putHeader=function(){V("%PDF-"+m),V("%ºß¬à")},Gd=h.__private__.putXRef=function(){var d="0000000000";V("xref"),V("0 "+(W
`)},Ya=h.__private__.getBlob=function(d){return new Blob([KA(d)],{type:"application/pdf"})},Ja=h.output=h.__private__.output=Jr(function(d,F){switch(typeof(F=F||{})=="string"?F={filename:F}:F.filename=F.filename||"generated.pdf",d){case void 0:return Hn();case"save":h.save(F.filename);break;case"arraybuffer":return KA(Hn());case"blob":return Ya(Hn());case"bloburi":case"bloburl":if(ee.URL!==void 0&&typeof ee.URL.createObjectURL=="function")return ee.URL&&ee.URL.createObjectURL(Ya(Hn()))||void 0;He.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var D="",q=Hn();try{D=Xf(q)}catch{D=Xf(unescape(encodeURIComponent(q)))}return"data:application/pdf;filename="+F.filename+";base64,"+D;case"pdfobjectnewwindow":if(Object.prototype.toString.call(ee)==="[object Window]"){var nA="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",vA=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';F.pdfObjectUrl&&(nA=F.pdfObjectUrl,vA="");var UA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+nA+'"'+vA+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(F)+");<\/script></body></html>",MA=ee.open();return MA!==null&&MA.document.write(UA),MA}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(ee)==="[object Window]"){var YA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(F.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+F.filename+'" width="500px" height="400px" /></body></html>',ue=ee.open();if(ue!==null){ue.document.write(YA);var de=this;ue.document.documentElement.querySelector("#pdfViewer").onload=function(){ue.document.title=F.filename,ue.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(de.output("bloburl"))}}return ue}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(ee)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Ce='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",F)+'"></iframe></body></html>',ze=ee.open();if(ze!==null&&(ze.document.write(Ce),ze.document.title=F.filename),ze||typeof safari>"u")return ze;break;case"datauri":case"dataurl":return ee.document.location.href=this.output("datauristring",F);default:return null}}),sc=function(d){return Array.isArray(zr)===!0&&zr.indexOf(d)>-1};switch(r){case"pt":TA=1;break;case"mm":TA=72/25.4;break;case"cm":TA=72/2.54;break;case"in":TA=72;break;case"px":TA=sc("px_scaling")==1?.75:96/72;break;case"pc":case"em":TA=12;break;case"ex":TA=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);TA=r}var qt=null;bA(),tA();var $d=function(d){return c!==null?qt.encryptor(d,0):function(F){return F}},oc=h.__private__.getPageInfo=h.getPageInfo=function(d){if(isNaN(d)||d%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:ie[d].objId,pageNumber:d,pageContext:ie[d]}},ae=h.__private__.getPageInfoByObjId=function(d){if(isNaN(d)||d%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var F in ie)if(ie[F].objId===d)break;return oc(F)},qd=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:ie[H].objId,pageNumber:H,pageContext:ie[H]}};h.addPage=function(){return nc.apply(this,arguments),this},h.setPage=function(){return ic.apply(this,arguments),dA.call(this,EA[H]),this},h.insertPage=function(d){return this.addPage(),this.movePage(H,d),this},h.movePage=function(d,F){var D,q;if(d>F){D=EA[d],q=
`,this.setCharSpace(this.getCharSpace()||0)),(ze=q.horizontalScale)!==void 0&&(It+=K(100*ze)+` Tz
`),q.lang;var fr=-1,r0=q.renderingMode!==void 0?q.renderingMode:q.stroke,To=wt.internal.getCurrentPageInfo().pageContext;switch(r0){case 0:case!1:case"fill":fr=0;break;case 1:case!0:case"stroke":fr=1;break;case 2:case"fillThenStroke":fr=2;break;case 3:case"invisible":fr=3;break;case 4:case"fillAndAddForClipping":fr=4;break;case 5:case"strokeAndAddPathForClipping":fr=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":fr=6;break;case 7:case"addToPathForClipping":fr=7}var Bc=To.usedRenderingMode!==void 0?To.usedRenderingMode:-1;fr!==-1?It+=fr+` Tr
`:Bc!==-1&&(It+=`0 Tr
`),fr!==-1&&(To.usedRenderingMode=fr),YA=q.align||"left";var en,_o=SA*wr,n0=wt.internal.pageSize.getWidth(),i0=pe[ne];ue=q.charSpace||es,de=q.maxWidth||0,Ce=Object.assign({autoencode:!0,noBOM:!0},q.flags);var Bi=[];if(Object.prototype.toString.call(d)==="[object Array]"){var Nr;UA=xo(d),YA!=="left"&&(en=UA.map(function(ke){return wt.getStringUnitWidth(ke,{font:i0,charSpace:ue,fontSize:SA,doKerning:!1})*SA/Dn}));var tn,wi=0;if(YA==="right"){F-=en[0],d=[],cr=UA.length;for(var yn=0;yn<cr;yn++)yn===0?(tn=Pn(F),Nr=di(D)):(tn=I(wi-en[yn]),Nr=-_o),d.push([UA[yn],tn,Nr]),wi=en[yn]}else if(YA==="center"){F-=en[0]/2,d=[],cr=UA.length;for(var Mn=0;Mn<cr;Mn++)Mn===0?(tn=Pn(F),Nr=di(D)):(tn=I((wi-en[Mn])/2),Nr=-_o),d.push([UA[Mn],tn,Nr]),wi=en[Mn]}else if(YA==="left"){d=[],cr=UA.length;for(var ls=0;ls<cr;ls++)d.push(UA[ls])}else{if(YA!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');d=[],cr=UA.length,de=de!==0?de:n0;for(var rn=0;rn<cr;rn++)Nr=rn===0?di(D):-_o,tn=rn===0?Pn(F):0,rn<cr-1?Bi.push(K(I((de-en[rn])/(UA[rn].split(" ").length-1)))):Bi.push(0),d.push([UA[rn],tn,Nr])}}var us=typeof q.R2L=="boolean"?q.R2L:VA;us===!0&&(d=So(d,function(ke,Ke,ft){return[ke.split("").reverse().join(""),Ke,ft]})),vA={text:d,x:F,y:D,options:q,mutex:{pdfEscape:ur,activeFontKey:ne,fonts:pe,activeFontSize:SA}},be.publish("postProcessText",vA),d=vA.text,An=vA.mutex.isHex||!1;var Oo=pe[ne].encoding;Oo!=="WinAnsiEncoding"&&Oo!=="StandardEncoding"||(d=So(d,function(ke,Ke,ft){return[vc(ke),Ke,ft]})),UA=xo(d),d=[];for(var mi,nn,Rn,aa=0,cs=1,sa=Array.isArray(UA[0])?cs:aa,yi="",Ho=function(ke,Ke,ft){var Ft="";return ft instanceof zA?(ft=typeof q.angle=="number"?er(ft,new zA(1,0,0,1,ke,Ke)):er(new zA(1,0,0,1,ke,Ke),ft),T===U.ADVANCED&&(ft=er(new zA(1,0,0,-1,0,0),ft)),Ft=ft.join(" ")+` Tm
`):Ft=K(ke)+" "+K(Ke)+` Td
`,Ft},Tr=0;Tr<UA.length;Tr++){switch(yi="",sa){case cs:Rn=(An?"<":"(")+UA[Tr][0]+(An?">":")"),mi=parseFloat(UA[Tr][1]),nn=parseFloat(UA[Tr][2]);break;case aa:Rn=(An?"<":"(")+UA[Tr]+(An?">":")"),mi=Pn(F),nn=di(D)}Bi!==void 0&&Bi[Tr]!==void 0&&(yi=Bi[Tr]+` Tw
`),Tr===0?d.push(yi+Ho(mi,nn,At)+Rn):sa===aa?d.push(yi+Rn):sa===cs&&d.push(yi+Ho(mi,nn,At)+Rn)}d=sa===aa?d.join(` Tj
T* `):d.join(` Tj
`),d+=` Tj
`;var kn=`BT
/`;return kn+=ne+" "+SA+` Tf
`,kn+=K(SA*wr)+` TL
`,kn+=na+`
`,kn+=It,kn+=d,V(kn+="ET"),v[ne]=!0,wt};var Wd=h.__private__.clip=h.clip=function(d){return V(d==="evenodd"?"W*":"W"),this};h.clipEvenOdd=function(){return Wd("evenodd")},h.__private__.discardPath=h.discardPath=function(){return V("n"),this};var mn=h.__private__.isValidStyle=function(d){var F=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(d)!==-1&&(F=!0),F};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(d){return mn(d)&&(u=d),this};var lc=h.__private__.getStyle=h.getStyle=function(d){var F=u;switch(d){case"D":case"S":F="S";break;case"F":F="f";break;case"FD":case"DF":F="B";break;case"f":case"f*":case"B":case"B*":F=d}return F},uc=h.close=function(){return V("h"),this};h.stroke=function(){return V("S"),this},h.fill=function(d){return Za("f",d),this},h.fillEvenOdd=function(d){return Za("f*",d),this},h.fillStroke=function(d){return Za("B",d),this},h.fillStrokeEvenOdd=function(d){return Za("B*",d),this};var Za=function(d,F){Qe(F)==="object"?zd(F,d):V(d)},Bo=function(d){d===null||T===U.ADVANCED&&d===void 0||(d=lc(d),V(d))};function Xd(d,F,D,q,nA){var vA=new ba(F||this.boundingBox,D||this.xStep,q||this.yStep,this.gState,nA||this.matrix);vA.stream=this.stream;var UA=d+"$$"+this.cloneIndex+++"$$";return $e(UA,vA),vA}var zd=function(d,F){var D=pt[d.key],q=we[D];if(q instanceof Hi)V("q"),V(Yd(F)),q.gState&&h.setGState(q.gState),V(d.matrix.toString()+" cm"),V("/"+D+" sh"),V("Q");else if(q instanceof ba){var nA=new zA(1,0,0,-1,0,vi());d.matrix&&(nA=nA.multiply(d.matrix||Ir),D=Xd.call(q,d.key,d.boundingBox,d.xStep,d.yStep,nA).id),V("q"),V("/Pattern cs"),V("/"+D+" scn"),q.gState&&h.setGState(q.gState),V(F),V("Q")}},Yd=function(d){switch(d){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"}},wo=h.moveTo=function(d,F){return V(K(I(d))+" "+K(R(F))+" m"),this},ta=h.lineTo=function(d,F){return V(K(I(d))+" "+K(R(F))+" l"),this},gi=h.curveTo=function(d,F,D,q,nA,vA){return V([K(I(d)),K(R(F)),K(I(D)),K(R(q)),K(I(nA)),K(R(vA)),"c"].join(" ")),this};h.__private__.line=h.line=function(d,F,D,q,nA){if(isNaN(d)||isNaN(F)||isNaN(D)||isNaN(q)||!mn(nA))throw new Error("Invalid arguments passed to jsPDF.line");return T===U.COMPAT?this.lines([[D-d,q-F]],d,F,[1,1],nA||"S"):this.lines([[D-d,q-F]],d,F,[1,1]).stroke()},h.__private__.lines=h.lines=function(d,F,D,q,nA,vA){var UA,MA,YA,ue,de,Ce,ze,At,wt,Wt,It,An;if(typeof d=="number"&&(An=D,D=F,F=d,d=An),q=q||[1,1],vA=vA||!1,isNaN(F)||isNaN(D)||!Array.isArray(d)||!Array.isArray(q)||!mn(nA)||typeof vA!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(wo(F,D),UA=q[0],MA=q[1],ue=d.length,Wt=F,It=D,YA=0;YA<ue;YA++)(de=d[YA]).length===2?(Wt=de[0]*UA+Wt,It=de[1]*MA+It,ta(Wt,It)):(Ce=de[0]*UA+Wt,ze=de[1]*MA+It,At=de[2]*UA+Wt,wt=de[3]*MA+It,Wt=de[4]*UA+Wt,It=de[5]*MA+It,gi(Ce,ze,At,wt,Wt,It));return vA&&uc(),Bo(nA),this},h.path=function(d){for(var F=0;F<d.length;F++){var D=d[F],q=D.c;switch(D.op){case"m":wo(q[0],q[1]);break;case"l":ta(q[0],q[1]);break;case"c":gi.apply(this,q);break;case"h":uc()}}return this},h.__private__.rect=h.rect=function(d,F,D,q,nA){if(isNaN(d)||isNaN(F)||isNaN(D)||isNaN(q)||!mn(nA))throw new Error("Invalid arguments passed to jsPDF.rect");return T===U.COMPAT&&(q=-q),V([K(I(d)),K(R(F)),K(I(D)),K(I(q)),"re"].join(" ")),Bo(nA),this},h.__private__.triangle=h.triangle=function(d,F,D,q,nA,vA,UA){if(isNaN(d)||isNaN(F)||isNaN(D)||isNaN(q)||isNaN(nA)||isNaN(vA)||!mn(UA))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[D-d,q-F],[nA-D,vA-q],[d-nA,F-vA]],d,F,[1,1],UA,!0),this},h.__private__.roundedRect=h.roundedRect=function(d,F,D,q,nA,vA,UA){if(isNaN(d)||isNaN(F)||isNaN(D)||isNaN(q)||isNaN(nA)||isNaN(vA)||!mn(UA))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var MA=4/3*(Math.SQRT2-1);return nA=Math.min(nA,.5*D),vA=Math.min(vA,.5*q),this.lines([[D-2*nA,0],[nA*MA,0,nA,vA-vA*MA,nA,vA],[0,q-2*vA],[0,vA*MA,-nA*MA,vA,-nA,vA],[2*nA-D,0],[-nA*MA,0,-nA,-vA*MA,-nA,-vA],[0,2*vA-q],[0,-vA*MA,nA*MA,-vA,nA,-vA]],d
`),i}},Ah=function(t,A){var e=t.fontSize===0?t.maxFontSize:t.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=t.multiline?n.map(function(N){return N.split(`
`)}):n.map(function(N){return[N]});var i=e,a=$A.internal.getHeight(t)||0;a=a<0?-a:a;var s=$A.internal.getWidth(t)||0;s=s<0?-s:s;var o=function(N,I,M){if(N+1<n.length){var R=I+" "+n[N+1][0];return Kl(R,t,M).width<=s-4}return!1};i++;A:for(;i>0;){A="",i--;var u,c,g=Kl("3",t,i).height,v=t.multiline?a-i:(a-g)/2,h=v+=2,m=0,w=0,b=0;if(i<=0){A=`(...) Tj
`,A+="% Width of Text: "+Kl(A,t,i=12).width+", FieldWidth:"+s+`
`;break}for(var y="",U=0,T=0;T<n.length;T++)if(n.hasOwnProperty(T)){var k=!1;if(n[T].length!==1&&b!==n[T].length-1){if((g+2)*(U+2)+2>a)continue A;y+=n[T][b],k=!0,w=T,T--}else{y=(y+=n[T][b]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var G=parseInt(T),j=o(G,y,i),K=T>=n.length-1;if(j&&!K){y+=" ",b=0;continue}if(j||K){if(K)w=G;else if(t.multiline&&(g+2)*(U+2)+2>a)continue A}else{if(!t.multiline||(g+2)*(U+2)+2>a)continue A;w=G}}for(var _="",AA=m;AA<=w;AA++){var sA=n[AA];if(t.multiline){if(AA===w){_+=sA[b]+" ",b=(b+1)%sA.length;continue}if(AA===m){_+=sA[sA.length-1]+" ";continue}}_+=sA[0]+" "}switch(_=_.substr(_.length-1)==" "?_.substr(0,_.length-1):_,c=Kl(_,t,i).width,t.textAlign){case"right":u=s-c-2;break;case"center":u=(s-c)/2;break;case"left":default:u=2}A+=se(u)+" "+se(h)+` Td
`,A+="("+Pi(_)+`) Tj
`,A+=-se(u)+` 0 Td
`,h=-(i+2),c=0,m=k?w:w+1,U++,y=""}break}return r.text=A,r.fontSize=i,r},Kl=function(t,A,e){var r=A.scope.internal.getFont(A.fontName,A.fontStyle),n=A.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:A.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:n}},EQ={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},xQ=function(t,A){var e={type:"reference",object:t};A.internal.getPageInfo(t.page).pageContext.annotations.find(function(r){return r.type===e.type&&r.object===e.object})===void 0&&A.internal.getPageInfo(t.page).pageContext.annotations.push(e)},SQ=function(t,A){for(var e in t)if(t.hasOwnProperty(e)){var r=e,n=t[e];A.internal.newObjectDeferredBegin(n.objId,!0),Qe(n)==="object"&&typeof n.putStream=="function"&&n.putStream(),delete t[r]}},IQ=function(t,A){if(A.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(Rr.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(EQ)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Zf=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new j1,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){(function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})(t)}),t.internal.events.subscribe("buildDocument",function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in r)if(r.hasOwnProperty(n)){var i=r[n];i.objId=void 0,i.hasAnnotation&&xQ(i,e)}})(t)}),t.internal.events.subscribe("putCatalog",function(){(function(e){if(e.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(t)}),t.internal.events.subscribe("postPutPages",function(e){(function(r,n){var i=!r;for(var a 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(a)){var s=r[a],o=[],u=s.Rect;if(s.Rect&&(s.Rect=QQ(s.Rect,n)),n.internal.newObjectDeferredBegin(s.objId,!0),s.DA=$A.createDefaultAppearanceStream(s),Qe(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(o=s.getKeyValueListForStream()),s.Rect=u,s.hasAppearanceStream&&!s.appearanceStreamContent){var c=UQ(s);o.push({key:"AP",value:"<</N "+c+">>"}),n.internal.acroformPlugin.xForms.push(c)}if(s.appearanceStreamContent){var g="";for(var v in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(v)){var h=s.appearanceStreamContent[v];if(g+="/"+v+" ",g+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var a in h)if(h.hasOwnProperty(a)){var m=h[a];typeof m=="function"&&(m=m.call(n,s)),g+="/"+a+" "+m+" ",n.internal.acroformPlugin.xForms.indexOf(m)>=0||n.internal.acroformPlugin.xForms.push(m)}}else typeof(m=h)=="function"&&(m=m.call(n,s)),g+="/"+a+" "+m,n.internal.acroformPlugin.xForms.indexOf(m)>=0||n.internal.acroformPlugin.xForms.push(m);g+=">>"}o.push({key:"AP",value:`<<
`+g+">>"})}n.internal.putStream({additionalKeyValues:o,objectId:s.objId}),n.internal.out("endobj")}i&&SQ(n.internal.acroformPlugin.xForms,n)})(e,t)}),t.internal.acroformPlugin.isInitialized=!0}},K1=Ye.__acroform__.arrayToPdfArray=function(t,A,e){var r=function(a){return a};if(Array.isArray(t)){for(var n="[",i=0;i<t.length;i++)switch(i!==0&&(n+=" "),Qe(t[i])){case"boolean":case"number":case"object":n+=t[i].toString();break;case"string":t[i].substr(0,1)!=="/"?(A!==void 0&&e&&(r=e.internal.getEncryptor(A)),n+="("+Pi(r(t[i].toString()))+")"):n+=t[i].toString()}return n+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},eh=function(t,A,e){var r=function(n){return n};return A!==void 0&&e&&(r=e.internal.getEncryptor(A)),(t=t||"").toString(),t="("+Pi(r(t))+")"},hn=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};hn.prototype.toString=function(){return this.objId+" 0 R"},hn.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},hn.prototype.getKeyValueListForStream=function(){var t=[],A=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var e in A)if(Object.getOwnPropertyDescriptor(this,A[e]).configurable===!1){var r=A[e],n=this[r];n&&(Array.isArray(n)?t.push({key:r,value:K1(n,this.objId,this.scope)}):n instanceof hn?(n.scope=this.scope,t.push({key:r,value:n.objId+" 0 R"})):typeof n!="function"&&t.push({key:r,value:n}))}return t};var V1=function(){hn.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,A=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return A},set:function(e){A=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};ar(V1,hn);var j1=function(){hn.call(this);var t,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(t){var e=function(r){return r};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Pi(e(t))+")"}},set:function(e){t=e}})};ar(j1,hn);var Rr=function t(){hn.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!!nt(A,3)},set:function(y){y?this.F=it(A,3):this.F=at(A,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute Ff supplied.');e=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(e){Qe(e)==="object"&&(A=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return A.CA||""},set:function(e){typeof e=="string"&&(A.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};ar(Ut,Rr);var jl=function(){Ut.call(this),this.pushButton=!0};ar(jl,Ut);var xa=function(){Ut.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(A){t=A!==void 0?A:[]}})};ar(xa,Ut);var Gl=function(){var t,A;Rr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return A},set:function(n){A=n}});var e,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(s){return s};this.scope&&(n=this.scope.internal.getEncryptor(this.objId));var i,a=[];for(i in a.push("<<"),r)a.push("/"+i+" ("+Pi(n(r[i]))+")");return a.push(">>"),a.join(`
`)},set:function(n){Qe(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 e},set:function(n){e=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+n}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=$A.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};ar(Gl,Rr),xa.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var A in this.Kids)if(this.Kids.hasOwnProperty(A)){var e=this.Kids[A];e.appearanceStreamContent=t.createAppearanceStream(e.optionName),e.caption=t.getCA()}},xa.prototype.createOption=function(t){var A=new Gl;return A.Parent=this,A.optionName=t,this.Kids.push(A),LQ.call(this.scope,A),A};var $l=function(){Ut.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=$A.CheckBox.createAppearanceStream()};ar($l,Ut);var Di=function(){Rr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,13)},set:function(A){A?this.Ff=it(this.Ff,13):this.Ff=at(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,21)},set:function(A){A?this.Ff=it(this.Ff,21):this.Ff=at(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,23)},set:function(A){A?this.Ff=it(this.Ff,23):this.Ff=at(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,24)},set:function(A){A?this.Ff=it(this.Ff,24):this.Ff=at(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,25)},set:function(A){A?this.Ff=it(this.Ff,25):this.Ff=at(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,26)},set:function(A){A?this.Ff=it(this.Ff,26):this.Ff=at(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(A){t=A}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(A){Number.isInteger(A)&&(t=A)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};ar(Di,Rr);var ql=function(){Di.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,14)},set:function(t){t?this.Ff=it(this.Ff,14):this.Ff=at(this.Ff,14)}}),this.password=!0};ar(ql,Di);var $A={CheckBox:{createAppearanceStream:function(){return{N:{On:$A.CheckBox.YesNormal},D:{On:$A.CheckBox.YesPushDown,Off:$A.CheckBox.OffPushDown}}},YesPushDown:function(t){var A=fn(t);A.scope=t.scope;var e=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color),i=Ah(t,t.caption);return e.push("0.749023 g"),e.push("0 0 "+se($A.internal.getWidth(t))+" "+se($A.internal.getHeight(t))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+r+" "+se(i.fontSize)+" Tf "+n),e.push("BT"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC"),A.stream=e.join(`
`),A},YesNormal:function(t){var A=fn(t);A.scope=t.scope;var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),n=[],i=$A.internal.getHeight(t),a=$A.internal.getWidth(t),s=Ah(t,t.caption);return n.push("1 g"),n.push("0 0 "+se(a)+" "+se(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+se(a-1)+" "+se(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+e+" "+se(s.fontSize)+" Tf "+r),n.push(s.text),n.push("ET"),n.push("Q"),A.stream=n.join(`
`),A},OffPushDown:function(t){var A=fn(t);A.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+se($A.internal.getWidth(t))+" "+se($A.internal.getHeight(t))+" re"),e.push("f"),A.stream=e.join(`
`),A}},RadioButton:{Circle:{createAppearanceStream:function(t){var A={D:{Off:$A.RadioButton.Circle.OffPushDown},N:{}};return A.N[t]=$A.RadioButton.Circle.YesNormal,A.D[t]=$A.RadioButton.Circle.YesPushDown,A},getCA:function(){return"l"},YesNormal:function(t){var A=fn(t);A.scope=t.scope;var e=[],r=$A.internal.getWidth(t)<=$A.internal.getHeight(t)?$A.internal.getWidth(t)/4:$A.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var n=$A.internal.Bezier_C,i=Number((r*n).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+ii($A.internal.getWidth(t)/2)+" "+ii($A.internal.getHeight(t)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),e.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),e.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),e.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),e.push("f"),e.push("Q"),A.stream=e.join(`
`),A},YesPushDown:function(t){var A=fn(t);A.scope=t.scope;var e=[],r=$A.internal.getWidth(t)<=$A.internal.getHeight(t)?$A.internal.getWidth(t)/4:$A.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*$A.internal.Bezier_C).toFixed(5)),a=Number((r*$A.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+ii($A.internal.getWidth(t)/2)+" "+ii($A.internal.getHeight(t)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+ii($A.internal.getWidth(t)/2)+" "+ii($A.internal.getHeight(t)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),e.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),e.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),e.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),e.push("f"),e.push("Q"),A.stream=e.join(`
`),A},OffPushDown:function(t){var A=fn(t);A.scope=t.scope;var e=[],r=$A.internal.getWidth(t)<=$A.internal.getHeight(t)?$A.internal.getWidth(t)/4:$A.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*$A.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+ii($A.internal.getWidth(t)/2)+" "+ii($A.internal.getHeight(t)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),e.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),e.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),e.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),e.push("f"),e.push("Q"),A.stream=e.join(`
`),A}},Cross:{createAppearanceStream:function(t){var A={D:{Off:$A.RadioButton.Cross.OffPushDown},N:{}};return A.N[t]=$A.RadioButton.Cross.YesNormal,A.D[t]=$A.RadioButton.Cross.YesPushDown,A},getCA:function(){return"8"},YesNormal:function(t){var A=fn(t);A.scope=t.scope;var e=[],r=$A.internal.calculateCross(t);return e.push("q"),e.push("1 1 "+se($A.internal.getWidth(t)-2)+" "+se($A.internal.getHeight(t)-2)+" re"),e.push("W"),e.push("n"),e.push(se(r.x1.x)+" "+se(r.x1.y)+" m"),e.push(se(r.x2.x)+" "+se(r.x2.y)+" l"),e.push(se(r.x4.x)+" "+se(r.x4.y)+" m"),e.push(se(r.x3.x)+" "+se(r.x3.y)+" l"),e.push("s"),e.push("Q"),A.stream=e.join(`
`),A},YesPushDown:function(t){var A=fn(t);A.scope=t.scope;var e=$A.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+se($A.internal.getWidth(t))+" "+se($A.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+se($A.internal.getWidth(t)-2)+" "+se($A.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(se(e.x1.x)+" "+se(e.x1.y)+" m"),r.push(se(e.x2.x)+" "+se(e.x2.y)+" l"),r.push(se(e.x4.x)+" "+se(e.x4.y)+" m"),r.push(se(e.x3.x)+" "+se(e.x3.y)+" l"),r.push("s"),r.push("Q"),A.stream=r.join(`
`),A},OffPushDown:function(t){var A=fn(t);A.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+se($A.internal.getWidth(t))+" "+se($A.internal.getHeight(t))+" re"),e.push("f"),A.stream=e.join(`
`),A}}},createDefaultAppearanceStream:function(t){var A=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color);return"/"+A+" "+t.fontSize+" Tf "+e}};$A.internal={Bezier_C:.551915024494,calculateCross:function(t){var A=$A.internal.getWidth(t),e=$A.internal.getHeight(t),r=Math.min(A,e);return{x1:{x:(A-r)/2,y:(e-r)/2+r},x2:{x:(A-r)/2+r,y:(e-r)/2},x3:{x:(A-r)/2,y:(e-r)/2},x4:{x:(A-r)/2+r,y:(e-r)/2+r}}}},$A.internal.getWidth=function(t){var A=0;return Qe(t)==="object"&&(A=k1(t.Rect[2])),A},$A.internal.getHeight=function(t){var A=0;return Qe(t)==="object"&&(A=k1(t.Rect[3])),A};var LQ=Ye.addField=function(t){if(IQ(this,t),!(t instanceof Rr))throw new Error("Invalid argument passed to jsPDF.addField.");var A;return(A=t).scope.internal.acroformPlugin.printedOut&&(A.scope.internal.acroformPlugin.printedOut=!1,A.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),A.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(A),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};Ye.AcroFormChoiceField=Qa,Ye.AcroFormListBox=Ua,Ye.AcroFormComboBox=Ea,Ye.AcroFormEditBox=Vl,Ye.AcroFormButton=Ut,Ye.AcroFormPushButton=jl,Ye.AcroFormRadioButton=xa,Ye.AcroFormCheckBox=$l,Ye.AcroFormTextField=Di,Ye.AcroFormPasswordField=ql,Ye.AcroFormAppearance=$A,Ye.AcroForm={ChoiceField:Qa,ListBox:Ua,ComboBox:Ea,EditBox:Vl,Button:Ut,PushButton:jl,RadioButton:xa,CheckBox:$l,TextField:Di,PasswordField:ql,Appearance:$A},te.AcroForm={ChoiceField:Qa,ListBox:Ua,ComboBox:Ea,EditBox:Vl,Button:Ut,PushButton:jl,RadioButton:xa,CheckBox:$l,TextField:Di,PasswordField:ql,Appearance:$A};function G1(t){return t.reduce(function(A,e,r){return A[e]=r,A},{})}(function(t){t.__addimage__={};var A="UNKNOWN",e={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=t.__addimage__.getImageFileTypeByImageData=function(N,I){var M,R,aA,rA,cA,tA=A;if((I=I||A)==="RGBA"||N.data!==void 0&&N.data instanceof Uint8ClampedArray&&"height"in N&&"width"in N)return"RGBA";if(j(N))for(cA in e)for(aA=e[cA],M=0;M<aA.length;M+=1){for(rA=!0,R=0;R<aA[M].length;R+=1)if(aA[M][R]!==void 0&&aA[M][R]!==N[R]){rA=!1;break}if(rA===!0){tA=cA;break}}else for(cA in e)for(aA=e[cA],M=0;M<aA.length;M+=1){for(rA=!0,R=0;R<aA[M].length;R+=1)if(aA[M][R]!==void 0&&aA[M][R]!==N.charCodeAt(R)){rA=!1;break}if(rA===!0){tA=cA;break}}return tA===A&&I!==A&&(tA=I),tA},n=function N(I){for(var M=this.internal.write,R=this.internal.putStream,aA=(0,this.internal.getFilters)();aA.indexOf("FlateEncode")!==-1;)aA.splice(aA.indexOf("FlateEncode"),1);I.objectId=this.internal.newObject();var rA=[];if(rA.push({key:"Type",value:"/XObject"}),rA.push({key:"Subtype",value:"/Image"}),rA.push({key:"Width",value:I.width}),rA.push({key:"Height",value:I.height}),I.colorSpace===b.INDEXED?rA.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(I.palette.length/3-1)+" "+("sMask"in I&&I.sMask!==void 0?I.objectId+2:I.objectId+1)+" 0 R]"}):(rA.push({key:"ColorSpace",value:"/"+I.colorSpace}),I.colorSpace===b.DEVICE_CMYK&&rA.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),rA.push({key:"BitsPerComponent",value:I.bitsPerComponent}),"decodeParameters"in I&&I.decodeParameters!==void 0&&rA.push({key:"DecodeParms",value:"<<"+I.decodeParameters+">>"}),"transparency"in I&&Array.isArray(I.transparency)){for(var cA="",tA=0,fA=I.transparency.length;tA<fA;tA++)cA+=I.transparency[tA]+" "+I.transparency[tA]+" ";rA.push({key:"Mask",value:"["+cA+"]"})}I.sMask!==void 0&&rA.push({key:"SMask",value:I.objectId+1+" 0 R"});var oA=I.filter!==void 0?["/"+I.filter]:void 0;if(R({data:I.data,additionalKeyValues:rA,alreadyAppliedFilters:oA,objectId:I.objectId}),M("endobj"),"sMask"in I&&I.sMask!==void 0){var bA="/Predictor "+I.predictor+" /Colors 1 /BitsPerComponent "+I.bi
`},e.outline.makeRef=function(r){return r.id+" 0 R"},e.outline.makeString=function(r){return"("+e.internal.pdfEscape(r)+")"},e.outline.objStart=function(r){this.ctx.val+=`\r
`+r.id+` 0 obj\r
<<\r
`},e.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},e.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}}])}(te.API),function(t){var A=[192,193,194,195,196,197,198,199];t.processJPEG=function(e,r,n,i,a,s){var o,u=this.decode.DCT_DECODE,c=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=a||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,(o=function(g){for(var v,h=256*g.charCodeAt(4)+g.charCodeAt(5),m=g.length,w={width:0,height:0,numcomponents:1},b=4;b<m;b+=2){if(b+=h,A.indexOf(g.charCodeAt(b+1))!==-1){v=256*g.charCodeAt(b+5)+g.charCodeAt(b+6),w={width:256*g.charCodeAt(b+7)+g.charCodeAt(b+8),height:v,numcomponents:g.charCodeAt(b+9)};break}h=256*g.charCodeAt(b+2)+g.charCodeAt(b+3)}return w}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e)).numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}c={data:e,width:o.width,height:o.height,colorSpace:s,bitsPerComponent:8,filter:u,index:r,alias:n}}return c}}(te.API);var Sa,Xl,e2,t2,r2,PQ=function(){var t,A,e;function r(i){var a,s,o,u,c,g,v,h,m,w,b,y,U,T;for(this.data=i,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},g=null;;){switch(a=this.readUInt32(),m=function(){var k,G;for(G=[],k=0;k<4;++k)G.push(String.fromCharCode(this.data[this.pos++]));return G}.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(a);break;case"fcTL":g&&this.animation.frames.push(g),this.pos+=4,g={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},c=this.readUInt16(),u=this.readUInt16()||100,g.delay=1e3*c/u,g.disposeOp=this.data[this.pos++],g.blendOp=this.data[this.pos++],g.data=[];break;case"IDAT":case"fdAT":for(m==="fdAT"&&(this.pos+=4,a-=4),i=g?.data||this.imgData,y=0;0<=a?y<a:y>a;0<=a?++y:--y)i.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(o=this.palette.length/3,this.transparency.indexed=this.read(a),this.transparency.indexed.length>o)throw new Error("More transparent colors than palette size");if((w=o-this.transparency.indexed.length)>0)for(U=0;0<=w?U<w:U>w;0<=w?++U:--U)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(a)[0];break;case 2:this.transparency.rgb=this.read(a)}break;case"tEXt":v=(b=this.read(a)).indexOf(0),h=String.fromCharCode.apply(String,b.slice(0,v)),this.text[h]=String.fromCharCode.apply(String,b.slice(v+1));break;case"IEND":return g&&this.animation.frames.push(g),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,s=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*s,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+=a}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(i){var a,s;for(s=[],a=0;0<=i?a<i:a>i;0<=i?++a:--a)s.push(this.data[this.pos++]);return s},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 a=this.pixelBitlength/8,s=new Uint8Array(this.width*this.height*a),o=0,u=this;if(i==null&&(i=this.imgData),i.length===0)return new Uint8Array(0);function c(g,v,h,m){
* @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 DQ(t){var A=0;if(t[A++]!==71||t[A++]!==73||t[A++]!==70||t[A++]!==56||(t[A++]+1&253)!=56||t[A++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=t[A++]|t[A++]<<8,r=t[A++]|t[A++]<<8,n=t[A++],i=n>>7,a=1<<(7&n)+1;t[A++],t[A++];var s=null,o=null;i&&(s=A,o=a,A+=3*a);var u=!0,c=[],g=0,v=null,h=0,m=null;for(this.width=e,this.height=r;u&&A<t.length;)switch(t[A++]){case 33:switch(t[A++]){case 255:if(t[A]!==11||t[A+1]==78&&t[A+2]==69&&t[A+3]==84&&t[A+4]==83&&t[A+5]==67&&t[A+6]==65&&t[A+7]==80&&t[A+8]==69&&t[A+9]==50&&t[A+10]==46&&t[A+11]==48&&t[A+12]==3&&t[A+13]==1&&t[A+16]==0)A+=14,m=t[A++]|t[A++]<<8,A++;else for(A+=12;;){if(!((N=t[A++])>=0))throw Error("Invalid block size");if(N===0)break;A+=N}break;case 249:if(t[A++]!==4||t[A+4]!==0)throw new Error("Invalid graphics extension block.");var w=t[A++];g=t[A++]|t[A++]<<8,v=t[A++],!(1&w)&&(v=null),h=w>>2&7,A++;break;case 254:for(;;){if(!((N=t[A++])>=0))throw Error("Invalid block size");if(N===0)break;A+=N}break;default:throw new Error("Unknown graphic control label: 0x"+t[A-1].toString(16))}break;case 44:var b=t[A++]|t[A++]<<8,y=t[A++]|t[A++]<<8,U=t[A++]|t[A++]<<8,T=t[A++]|t[A++]<<8,k=t[A++],G=k>>6&1,j=1<<(7&k)+1,K=s,_=o,AA=!1;k>>7&&(AA=!0,K=A,_=j,A+=3*j);var sA=A;for(A++;;){var N;if(!((N=t[A++])>=0))throw Error("Invalid block size");if(N===0)break;A+=N}c.push({x:b,y,width:U,height:T,has_local_palette:AA,palette_offset:K,palette_size:_,data_offset:sA,data_length:A-sA,transparent_index:v,interlaced:!!G,delay:g,disposal:h});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[A-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return m},this.frameInfo=function(I){if(I<0||I>=c.length)throw new Error("Frame index out of range.");return c[I]},this.decodeAndBlitFrameBGRA=function(I,M){var R=this.frameInfo(I),aA=R.width*R.height,rA=new Uint8Array(aA);n2(t,R.data_offset,rA,aA);var cA=R.palette_offset,tA=R.transparent_index;tA===null&&(tA=256);var fA=R.width,oA=e-fA,bA=fA,Q=4*(R.y*e+R.x),H=4*((R.y+R.height)*e+R.x),P=Q,$=4*oA;R.interlaced===!0&&($+=4*e*7);for(var W=8,iA=0,hA=rA.length;iA<hA;++iA){var gA=rA[iA];if(bA===0&&(bA=fA,(P+=$)>=H&&($=4*oA+4*e*(W-1),P=Q+(fA+oA)*(W<<1),W>>=1)),gA===tA)P+=4;else{var xA=t[cA+3*gA],EA=t[cA+3*gA+1],HA=t[cA+3*gA+2];M[P++]=HA,M[P++]=EA,M[P++]=xA,M[P++]=255}--bA}},this.decodeAndBlitFrameRGBA=function(I,M){var R=this.frameInfo(I),aA=R.width*R.height,rA=new Uint8Array(aA);n2(t,R.data_offset,rA,aA);var cA=R.palette_offset,tA=R.transparent_index;tA===null&&(tA=256);var fA=R.width,oA=e-fA,bA=fA,Q=4*(R.y*e+R.x),H=4*((R.y+R.height)*e+R.x),P=Q,$=4*oA;R.interlaced===!0&&($+=4*e*7);for(var W=8,iA=0,hA=rA.length;iA<hA;++iA){var gA=rA[iA];if(bA===0&&(bA=fA,(P+=$)>=H&&($=4*oA+4*e*(W-1),P=Q+(fA+oA)*(W<<1),W>>=1)),gA===tA)P+=4;else{var xA=t[cA+3*gA],EA=t[cA+3*gA+1],HA=t[cA+3*gA+2];M[P++]=xA,M[P++]=EA,M[P++]=HA,M[P++]=255}--bA}}}function n2(t,A,e,r){for(var n=t[A++],i=1<<n,a=i+1,s=a+1,o=n+1,u=(1<<o)-1,c=0,g=0,v=0,h=t[A++],m=new Int32Array(4096),w=null;;){for(;c<16&&h!==0;)g|=t[A++]<<c,c+=8,h===1?h=t[A++]:--h;if(c<o)break;var b=g&u;if(g>>=o,c-=o,b!==i){if(b===a)break;for(var y=b<s?b:w,U=0,T=y;T>i;)T=m[T]>>8,++U;var k=T;if(v+U+(y!==b?1:0)>r)return void He.log("Warning, gif stream longer than expected.");e[v++]=k;var G=v+=U;for(y!==b&&(e[v++]=k),T=y;U--;)T=m[T],e[--G]=255&T,T>>=8;w!==null&&s<4096&&(m[s++]=w<<8|k,s>=u+1&&o<12&&(++o,u=u<<1|1)),w=b}else s=a+1,u=(1<<(o=n+1))-1,w=null}return v!==r&&He.log("Warning, gif stream shorter than expected."),e}/**
* @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 ih(t){var A,e,r,n,i,a=Math.floor,s=new Array(64),o=new Array(64),u=new Array(64),c=new Array(64),g=new Array(65535),v=new Array(65535),h=new Array(64),m=new Array(64),w=[],b=0,y=7,U=new Array(64),T=new Array(64),k=new Array(64),G=new Array(256),j=new Array(2048),K=[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],N=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],I=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],M=[0,1,2,3,4,5,6,7,8,9,10,11],R=[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 rA(Q,H){for(var P=0,$=0,W=new Array,iA=1;iA<=16;iA++){for(var hA=1;hA<=Q[iA];hA++)W[H[$]]=[],W[H[$]][0]=P,W[H[$]][1]=iA,$++,P++;P*=2}return W}function cA(Q){for(var H=Q[0],P=Q[1]-1;P>=0;)H&1<<P&&(b|=1<<y),P--,--y<0&&(b==255?(tA(255),tA(0)):tA(b),y=7,b=0)}function tA(Q){w.push(Q)}function fA(Q){tA(Q>>8&255),tA(255&Q)}function oA(Q,H,P,$,W){for(var iA,hA=W[0],gA=W[240],xA=function(FA,SA){var LA,IA,VA,GA,ZA,re,he,ye,XA,ne,TA=0;for(XA=0;XA<8;++XA){LA=FA[TA],IA=FA[TA+1],VA=FA[TA+2],GA=FA[TA+3],ZA=FA[TA+4],re=FA[TA+5],he=FA[TA+6];var Re=LA+(ye=FA[TA+7]),ge=LA-ye,Ge=IA+he,pe=IA-he,Ue=VA+re,St=VA-re,we=GA+ZA,pt=GA-ZA,Ie=Re+we,Ht=Re-we,le=Ge+Ue,Le=Ge-Ue;FA[TA]=Ie+le,FA[TA+4]=Ie-le;var ie=.707106781*(Le+Ht);FA[TA+2]=Ht+ie,FA[TA+6]=Ht-ie;var be=.382683433*((Ie=pt+St)-(Le=pe+ge)),zr=.5411961*Ie+be,vt=1.306562965*Le+be,vr=.707106781*(le=St+pe),Sr=ge+vr,zA=ge-vr;FA[TA+5]=zA+zr,FA[TA+3]=zA-zr,FA[TA+1]=Sr+vt,FA[TA+7]=Sr-vt,TA+=8}for(TA=0,XA=0;XA<8;++XA){LA=FA[TA],IA=FA[TA+8],VA=FA[TA+16],GA=FA[TA+24],ZA=FA[TA+32],re=FA[TA+40],he=FA[TA+48];var er=LA+(ye=FA[TA+56]),Ir=LA-ye,$e=IA+he,qe=IA-he,We=VA+re,$t=VA-re,fi=GA+ZA,tr=GA-ZA,lt=er+fi,or=er-fi,lr=$e+We,Br=$e-We;FA[TA]=lt+lr,FA[TA+32]=lt-lr;var rr=.707106781*(Br+or);FA[TA+16]=or+rr,FA[TA+48]=or-rr;var Lr=.382683433*((lt=tr+$t)-(Br=qe+Ir)),qA=.5411961*lt+Lr,J=1.306562965*Br+Lr,QA=.707106781*(lr=$t+qe),_A=Ir+QA,ve=Ir-QA;FA[TA+40]=ve+qA,FA[TA+24]=ve-qA,FA[TA+8]=_A+J,FA[TA+56]=_A-J,TA++}for(XA=0;XA<64;++XA)ne=FA[XA]*SA[XA],h[XA]=ne>0?ne+.5|0:ne-.5|0;return h}(Q,H),EA=0;EA<64;++EA)m[K[EA]]=xA[EA];var HA=m[0]-P;P=m[0],HA==0?cA($[0]):(cA($[v[iA=32767+HA]]),cA(g[iA]));for(var NA=63;NA>0&&m[NA]==0;)NA--;if(NA==0)return cA(hA),P;for(var jA,dA=1;dA<=NA;){for(var V=dA;m[dA]==0&&dA<=NA;)++dA;var JA=dA-V;if(JA>=16){jA=JA>>4;for(var KA=1;KA<=jA;++KA)cA(gA);JA&=15}iA=32767+m[dA],cA(W[(JA<<4)+v[iA]]),cA(g[iA]),dA++}return NA!=63&&cA(hA),P}function bA(Q){Q=Math.min(Math.max(Q,1),100),i!=Q&&(function(H){for(var P=[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],$=0;$<64;$++){var W=a((P[$]*H+50)/100);W=Math.min(Math.max(W,1),255),s[K[$]]=W}fo
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function kr(t,A){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.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 i2(t){function A(_){if(!_)throw Error("assert :P")}function e(_,AA,sA){for(var N=0;4>N;N++)if(_[AA+N]!=sA.charCodeAt(N))return!0;return!1}function r(_,AA,sA,N,I){for(var M=0;M<I;M++)_[AA+M]=sA[N+M]}function n(_,AA,sA,N){for(var I=0;I<N;I++)_[AA+I]=sA}function i(_){return new Int32Array(_)}function a(_,AA){for(var sA=[],N=0;N<_;N++)sA.push(new AA);return sA}function s(_,AA){var sA=[];return function N(I,M,R){for(var aA=R[M],rA=0;rA<aA&&(I.push(R.length>M+1?[]:new AA),!(R.length<M+1));rA++)N(I[rA],M+1,R)}(sA,0,_),sA}var o=function(){var _=this;function AA(l,f){for(var p=1<<f-1>>>0;l&p;)p>>>=1;return p?(l&p-1)+p:l}function sA(l,f,p,B,C){A(!(B%p));do l[f+(B-=p)]=C;while(0<B)}function N(l,f,p,B,C){if(A(2328>=C),512>=C)var E=i(512);else if((E=i(C))==null)return 0;return function(x,S,L,O,z,lA){var uA,eA,mA=S,pA=1<<L,Y=i(16),Z=i(16);for(A(z!=0),A(O!=null),A(x!=null),A(0<L),eA=0;eA<z;++eA){if(15<O[eA])return 0;++Y[O[eA]]}if(Y[0]==z)return 0;for(Z[1]=0,uA=1;15>uA;++uA){if(Y[uA]>1<<uA)return 0;Z[uA+1]=Z[uA]+Y[uA]}for(eA=0;eA<z;++eA)uA=O[eA],0<O[eA]&&(lA[Z[uA]++]=eA);if(Z[15]==1)return(O=new I).g=0,O.value=lA[0],sA(x,mA,1,pA,O),pA;var BA,yA=-1,wA=pA-1,RA=0,OA=1,Ae=1,PA=1<<L;for(eA=0,uA=1,z=2;uA<=L;++uA,z<<=1){if(OA+=Ae<<=1,0>(Ae-=Y[uA]))return 0;for(;0<Y[uA];--Y[uA])(O=new I).g=uA,O.value=lA[eA++],sA(x,mA+RA,z,PA,O),RA=AA(RA,uA)}for(uA=L+1,z=2;15>=uA;++uA,z<<=1){if(OA+=Ae<<=1,0>(Ae-=Y[uA]))return 0;for(;0<Y[uA];--Y[uA]){if(O=new I,(RA&wA)!=yA){for(mA+=PA,BA=1<<(yA=uA)-L;15>yA&&!(0>=(BA-=Y[yA]));)++yA,BA<<=1;pA+=PA=1<<(BA=yA-L),x[S+(yA=RA&wA)].g=BA+L,x[S+yA].value=mA-S-yA}O.g=uA-L,O.value=lA[eA++],sA(x,mA+(RA>>L),z,PA,O),RA=AA(RA,uA)}}return OA!=2*Z[15]-1?0:pA}(l,f,p,B,C,E)}function I(){this.value=this.g=0}function M(){this.value=this.g=0}function R(){this.G=a(5,I),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(cr,M)}function aA(l,f,p,B){A(l!=null),A(f!=null),A(2147483648>B),l.Ca=254,l.I=0,l.b=-8,l.Ka=0,l.oa=f,l.pa=p,l.Jd=f,l.Yc=p+B,l.Zc=4<=B?p+B-4+1:p,iA(l)}function rA(l,f){for(var p=0;0<f--;)p|=gA(l,128)<<f;return p}function cA(l,f){var p=rA(l,f);return hA(l)?-p:p}function tA(l,f,p,B){var C,E=0;for(A(l!=null),A(f!=null),A(4294967288>B),l.Sb=B,l.Ra=0,l.u=0,l.h=0,4<B&&(B=4),C=0;C<B;++C)E+=f[p+C]<<8*C;l.Ra=E,l.bb=B,l.oa=f,l.pa=p}function fA(l){for(;8<=l.u&&l.bb<l.Sb;)l.Ra>>>=8,l.Ra+=l.oa[l.pa+l.bb]<<os-8>>>0,++l.bb,l.u-=8;P(l)&&(l.h=1,l.u=0)}function oA(l,f){if(A(0<=f),!l.h&&f<=ss){var p=H(l)&as[f];return l.u+=f,fA(l),p}return l.h=1,l.u=0}function bA(){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 H(l){return l.Ra>>>(l.u&os-1)>>>0}function P(l){return A(l.bb<=l.Sb),l.h||l.bb==l.Sb&&l.u>os}function $(l,f){l.u=f,l.h=P(l)}function W(l){l.u>=No&&(A(l.u>=No),fA(l))}function iA(l){A(l!=null&&l.oa!=null),l.pa<l.Zc?(l.I=(l.oa[l.pa++]|l.I<<8)>>>0,l.b+=8):(A(l!=null&&l.oa!=null),l.pa<l.Yc?(l.b+=8,l.I=l.oa[l.pa++]|l.I<<8):l.Ka?l.b=0:(l.I<<=8,l.b+=8,l.Ka=1))}function hA(l){return rA(l,1)}function gA(l,f){var p=l.Ca;0>l.b&&iA(l);var B=l.b,C=p*f>>>8,E=(l.I>>>B>C)+0;for(E?(p-=C,l.I-=C+1<<B>>>0):p=C+1,B=p,C=0;256<=B;)C+=8,B>>=8;return B=7^C+fr[B],l.b-=B,l.Ca=(p<<B)-1,E}function xA(l,f,p){l[f+0]=p>>24&255,l[f+1]=p>>16&255,l[f+2]=p>>8&255,l[f+3]=p>>0&255}function EA(l,f){return l[f+0]<<0|l[f+1]<<8}function HA(l,f){return EA(l,f)|l[f+2]<<16}function NA(l,f){return EA(l,f)|EA(l,f+2)<<16}function jA(l,f){var p=1<<f;return A(l!=null),A(0<f),l.X=i(p),l.X==null?0:(l.Mb=32-f,l.Xa=f,1)}function dA(l,f){A(l!=null),A(f!=null),A(l.Xa==f.Xa),r(f.X,0,l.X,0,1<<f.Xa)}function V(){this.X=[],this.Xa=this.Mb=0}function JA(l,f,p,B){A(p!=null),A(B!=null);var C=p[0],E=B[0];return C==0&&(C=(l*E+f
`:"")+G})):U.push(k[0])}),w=U,o=e2.apply(this,[y,e])}for(i=0,a=w.length;i<a;i++){var T=0;if(r=w[i],o&&r[0]==`
`&&(r=r.substr(1),T=1),v+h+(m=(n=Xl.apply(this,[r,e])).reduce(function(k,G){return k+G},0))>A||T){if(m>A){for(s=t2.apply(this,[r,n,A-(v+h),A]),c.push(s.shift()),c=[s.pop()];s.length;)g.push([s.shift()]);m=n.slice(r.length-(c[0]?c[0].length:0)).reduce(function(k,G){return k+G},0)}else c=[r];g.push(c),v=m+o,h=b}else c.push(r),v+=h+m,h=b}return u=o?function(k,G){return(G?y:"")+k.join(" ")}:function(k){return k.join(" ")},g.map(u)},Sa.splitTextToSize=function(t,A,e){var r,n=(e=e||{}).fontSize||this.internal.getFontSize(),i=function(c){if(c.widths&&c.kerning)return{widths:c.widths,kerning:c.kerning};var g=this.internal.getFont(c.fontName,c.fontStyle);return g.metadata.Unicode?{widths:g.metadata.Unicode.widths||{0:1},kerning:g.metadata.Unicode.kerning||{}}:{font:g.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,e);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var a=1*this.internal.scaleFactor*A/n;i.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=e.lineIndent;var s,o,u=[];for(s=0,o=r.length;s<o;s++)u=u.concat(r2.apply(this,[r[s],a,i]));return u},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var A="klmnopqrstuvwxyz",e={},r={},n=0;n<A.length;n++)e[A[n]]="0123456789abcdef"[n],r["0123456789abcdef"[n]]=A[n];var i=function(g){return"0x"+parseInt(g,10).toString(16)},a=t.__fontmetrics__.compress=function(g){var v,h,m,w,b=["{"];for(var y in g){if(v=g[y],isNaN(parseInt(y,10))?h="'"+y+"'":(y=parseInt(y,10),h=(h=i(y).slice(2)).slice(0,-1)+r[h.slice(-1)]),typeof v=="number")v<0?(m=i(v).slice(3),w="-"):(m=i(v).slice(2),w=""),m=w+m.slice(0,-1)+r[m.slice(-1)];else{if(Qe(v)!=="object")throw new Error("Don't know what to do with value type "+Qe(v)+".");m=a(v)}b.push(h+m)}return b.push("}"),b.join("")},s=t.__fontmetrics__.uncompress=function(g){if(typeof g!="string")throw new Error("Invalid argument passed to uncompress.");for(var v,h,m,w,b={},y=1,U=b,T=[],k="",G="",j=g.length-1,K=1;K<j;K+=1)(w=g[K])=="'"?v?(m=v.join(""),v=void 0):v=[]:v?v.push(w):w=="{"?(T.push([U,m]),U={},m=void 0):w=="}"?((h=T.pop())[0][h[1]]=U,m=void 0,U=h[0]):w=="-"?y=-1:m===void 0?e.hasOwnProperty(w)?(k+=e[w],m=parseInt(k,16)*y,y=1,k=""):k+=w:e.hasOwnProperty(w)?(G+=e[w],U[m]=parseInt(G,16)*y,y=1,m=void 0,G=""):G+=w;return b},o={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:o,"Courier-Bold":o,"Courier-BoldOblique":o,"Courier-Oblique":o,Helvetica:o,"Helvetica-Bold":o,"Helvetica-BoldOblique":o,"Helvetica-Oblique":o,"Times-Roman":o,"Times-Bold":o,"Times-BoldItalic":o,"Times-Italic":o}},c={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'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
<<
`+w.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},function(t){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)),a=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),u=i.length+a.length+s.length+n.length+o.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+u+" >>"),this.internal.write("stream"),this.internal.write(n+i+a+s+o),this.internal.write("endstream"),this.internal.write("endobj")},e=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.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",e),this.internal.events.subscribe("postPutResources",A)),this}}(te.API),function(t){var A=t.API,e=A.pdfEscape16=function(i,a){for(var s,o=a.metadata.Unicode.widths,u=["","0","00","000","0000"],c=[""],g=0,v=i.length;g<v;++g){if(s=a.metadata.characterToGlyph(i.charCodeAt(g)),a.metadata.glyIdsUsed.push(s),a.metadata.toUnicode[s]=i.charCodeAt(g),o.indexOf(s)==-1&&(o.push(s),o.push([parseInt(a.metadata.widthOfGlyph(s),10)])),s=="0")return c.join("");s=s.toString(16),c.push(u[4-s.length],s)}return c.join("")},r=function(i){var a,s,o,u,c,g,v;for(c=`/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`,o=[],g=0,v=(s=Object.keys(i).sort(function(h,m){return h-m})).length;g<v;g++)a=s[g],o.length>=100&&(c+=`
`+o.length+` beginbfchar
`+o.join(`
`)+`
endbfchar`,o=[]),i[a]!==void 0&&i[a]!==null&&typeof i[a].toString=="function"&&(u=("0000"+i[a].toString(16)).slice(-4),a=("0000"+(+a).toString(16)).slice(-4),o.push("<"+a+"><"+u+">"));return o.length&&(c+=`
`+o.length+` beginbfchar
`+o.join(`
`)+`
endbfchar
`),c+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};A.events.push(["putFont",function(i){(function(a){var s=a.font,o=a.out,u=a.newObject,c=a.putStream;if(s.metadata instanceof t.API.TTFFont&&s.encoding==="Identity-H"){for(var g=s.metadata.Unicode.widths,v=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),h="",m=0;m<v.length;m++)h+=String.fromCharCode(v[m]);var w=u();c({data:h,addLength1:!0,objectId:w}),o("endobj");var b=u();c({data:r(s.metadata.toUnicode),addLength1:!0,objectId:b}),o("endobj");var y=u();o("<<"),o("/Type /FontDescriptor"),o("/FontName /"+Ca(s.fontName)),o("/FontFile2 "+w+" 0 R"),o("/FontBBox "+t.API.PDFObject.convert(s.metadata.bbox)),o("/Flags "+s.metadata.flags),o("/StemV "+s.metadata.stemV),o("/ItalicAngle "+s.metadata.italicAngle),o("/Ascent "+s.metadata.ascender),o("/Descent "+s.metadata.decender),o("/CapHeight "+s.metadata.capHeight),o(">>"),o("endobj");var U=u();o("<<"),o("/Type /Font"),o("/BaseFont /"+Ca(s.fontName)),o("/FontDescriptor "+y+" 0 R"),o("/W "+t.API.PDFObject.convert(g)),o("/CIDToGIDMap /Identity"),o("/DW 1000"),o("/Subtype /CIDFontType2"),o("/CIDSystemInfo"),o("<<"),o("/Supplement 0"),o("/Registry (Adobe)"),o("/Ordering ("+s.encoding+")"),o(">>"),o(">>"),o("endobj"),s.objectNumber=u(),o("<<"),o("/Type /Font"),o("/Subtype /Type0"),o("/ToUnicode "+b+" 0 R"),o("/BaseFont /"+Ca(s.fontName)),o("/Encoding /"+s.encoding),o("/DescendantFonts ["+U+" 0 R]"),o(">>"),o("endobj"),s.isAlreadyPutted=!0}})(i)}]),A.events.push(["putFont",function(i){(function(a){var s=a.font,o=a.out,u=a.newObject,c=a.putStream;if(s.metadata instanceof t.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var g=s.metadata.rawData,v="",h=0;h<g.length;h++)v+=String.fromCharCode(g[h]);var m=u();c({data:v,addLength1:!0,objectId:m}),o("endobj");var w=u();c({data:r(s.metadata.toUnicode),addLength1:!0,objectId:w}),o("endobj");var b=u();o("<<"),o("/Descent "+s.metadata.decender),o("/CapHeight "+s.metadata.capHeight),o("/StemV "+s.metadata.stemV),o("/Type /FontDescriptor"),o("/FontFile2 "+m+" 0 R"),o("/Flags 96"),o("/FontBBox "+t.API.PDFObject.convert(s.metadata.bbox)),o("/FontName /"+Ca(s.fontName)),o("/ItalicAngle "+s.metadata.italicAngle),o("/Ascent "+s.metadata.ascender),o(">>"),o("endobj"),s.objectNumber=u();for(var y=0;y<s.metadata.hmtx.widths.length;y++)s.metadata.hmtx.widths[y]=parseInt(s.metadata.hmtx.widths[y]*(1e3/s.metadata.head.unitsPerEm));o("<</Subtype/TrueType/Type/Font/ToUnicode "+w+" 0 R/BaseFont/"+Ca(s.fontName)+"/FontDescriptor "+b+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),o("endobj"),s.isAlreadyPutted=!0}})(i)}]);var n=function(i){var a,s=i.text||"",o=i.x,u=i.y,c=i.options||{},g=i.mutex||{},v=g.pdfEscape,h=g.activeFontKey,m=g.fonts,w=h,b="",y=0,U="",T=m[w].encoding;if(m[w].encoding!=="Identity-H")return{text:s,x:o,y:u,options:c,mutex:g};for(U=s,w=h,Array.isArray(s)&&(U=s[0]),y=0;y<U.length;y+=1)m[w].metadata.hasOwnProperty("cmap")&&(a=m[w].metadata.cmap.unicode.codeMap[U[y].charCodeAt(0)]),a||U[y].charCodeAt(0)<256&&m[w].metadata.hasOwnProperty("Unicode")?b+=U[y]:b+="";var k="";return parseInt(w.slice(1))<14||T==="WinAnsiEncoding"?k=v(b,w).split("").map(function(G){return G.charCodeAt(0).toString(16)}).join(""):T==="Identity-H"&&(k=e(b,m[w])),g.isHex=!0,{text:k,x:o,y:u,options:c,mutex:g}};A.events.push(["postProcessText",function(i){var a=i.text||"",s=[],o={text:a,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(a)){var u=0;for(u=0;u<a.length;u+=1)Array.isArray(a[u])&&a[u].length===3?s.push([n(Object.assign({},o,{text:a[u][0]})).text,a[u][1],a[u][2]]):s.push(n(Object.assign({},o,{text:a[u]})).text);i.text=s}else i.text=n(Object.assign({},o,{text:a})).text}])}(te),function(t){var A=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(e){return A.call(this),this.internal.vFS[e]!==void 0},t.addFileToVFS=function(e,r){return A.call(this),this.internal.vFS[e]=r,this},t.getFileFromVFS=function(e){return A.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}}(te.API),function(t){t.__bidiEngine__=t.prototype._
`)}return""+e},A}();const l2=Mc.defineStore("StructStore",()=>{const t=X.ref({minZoom:.5,maxZoom:2}),A=X.ref(),e=X.ref();return{config:t,dataSource:A,selectedElement:e}}),Ia=t=>(X.pushScopeId("data-v-2fe285ed"),t=t(),X.popScopeId(),t),AU={class:"node-container"},eU={key:0,class:"root-node"},tU=["colspan"],rU={class:"section-primary"},nU={class:"column-content"},iU={class:"header"},aU={class:"column-side"},sU={class:"column-content"},oU={class:"header"},lU={class:"column-side"},uU={class:"side-button"},cU={key:1,class:"section-tertiary"},fU={class:"column-content"},hU={class:"header"},gU={class:"column-side"},dU={class:"side-button"},pU={class:"nodeline"},vU=["colspan"],BU=[Ia(()=>X.createElementVNode("div",{class:"nodeline-down"},null,-1))],wU={class:"nodeline"},mU=Ia(()=>X.createElementVNode("td",{class:"nodeline-right"},null,-1)),yU=Ia(()=>X.createElementVNode("td",{class:"nodeline-left nodeline-top"},null,-1)),CU=Ia(()=>X.createElementVNode("td",{class:"nodeline-right nodeline-top"},null,-1)),bU=Ia(()=>X.createElementVNode("td",{class:"nodeline-left"},null,-1)),FU={class:"node-children"},QU=["onClick"],UU={class:"section-primary"},EU={class:"column-content"},xU={class:"header"},SU={class:"column-side"},IU={class:"side-button"},LU={class:"column-content"},NU={class:"header"},TU={class:"column-side"},_U={class:"side-button"},OU={key:1,class:"section-tertiary"},HU={class:"column-content"},PU={class:"header"},DU={class:"column-side"},MU={class:"side-button"},RU={key:0,class:"subchild-section"},kU=Ia(()=>X.createElementVNode("td",{class:"nodeline-left nodeline-bottom subchild-section-nodeline"},null,-1)),KU={rowspan:"2"},VU=["onClick"],jU={class:"section-primary"},GU={class:"column-content"},$U={class:"header"},qU={class:"column-side"},WU={class:"side-button"},XU={key:0,class:"subchild-more"},zU={class:"column-content"},YU={class:"header"},JU={class:"column-side"},ZU={class:"side-button"},A3={key:1,class:"section-tertiary"},e3={class:"column-content"},t3={class:"header"},r3={class:"column-side"},n3={class:"side-button"},i3={key:0,class:"nodeline-left nodeline-top subchild-section-nodeline"},a3={key:1},s3=X.defineComponent({__name:"StructChartNode",props:{dataSource:Object},setup(t){const A=t,{dataSource:e,selectedElement:r}=Mc.storeToRefs(l2()),n=X.toRefs(A).dataSource;X.onMounted(()=>{}),X.watch(()=>A.dataSource,o=>{});const i=o=>{r.value=o},a=o=>{console.log(o)},s=o=>new Intl.NumberFormat().format(o);return(o,u)=>(X.openBlock(),X.createElementBlock("table",AU,[X.createElementVNode("tbody",null,[X.unref(n)?(X.openBlock(),X.createElementBlock("tr",eU,[X.createElementVNode("td",{colspan:X.unref(n).children?.length*2},[X.createElementVNode("div",{class:"element-container root-element",onClick:u[1]||(u[1]=c=>i(X.unref(n)?.deptID))},[X.createElementVNode("div",rU,[X.createElementVNode("div",nU,[X.createElementVNode("span",iU,X.toDisplayString(X.unref(n).departmentName),1)]),X.createElementVNode("div",aU,[X.createElementVNode("div",{class:"side-button",onClick:u[0]||(u[0]=X.withModifiers(c=>a("test"),["stop"]))},X.toDisplayString(s(X.unref(n).totalPositionCount)),1)])]),X.unref(n).heads.length>0?(X.openBlock(!0),X.createElementBlock(X.Fragment,{key:0},X.renderList(X.unref(n).heads,c=>(X.openBlock(),X.createElementBlock("div",{key:c.positionID,class:"section-secondary"},[X.createElementVNode("div",sU,[X.createElementVNode("span",oU,X.toDisplayString(c.positionName)+" "+X.toDisplayString(c.positionNum),1)]),X.createElementVNode("div",lU,[X.createElementVNode("div",uU,X.toDisplayString(s(c.totalPositionCount)),1)])]))),128)):X.createCommentVNode("",!0),X.unref(n).officer.length>0?(X.openBlock(),X.createElementBlock("div",cU,[(X.openBlock(!0),X.createElementBlock(X.Fragment,null,X.renderList(X.unref(n).officer,c=>(X.openBlock(),X.createElementBlock("div",{key:c.positionID,class:"section-list"},[X.createElementVNode("div",fU,[X.createElementVNode("span",hU,X.toDisplayString(c.positionName)+" "+X.toDisplayString(c.positionNum),1)]),X.createElementVNode("div",gU,[X.createElementVNode("div",dU,X.toDisplayString(s(c.totalPositionCount)
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B3=Object.hasOwnProperty,c2=Object.setPrototypeOf,w3=Object.isFrozen,m3=Object.getPrototypeOf,y3=Object.getOwnPropertyDescriptor,Jt=Object.freeze,jr=Object.seal,C3=Object.create,f2=typeof Reflect<"u"&&Reflect,Yl=f2.apply,oh=f2.construct;Yl||(Yl=function(A,e,r){return A.apply(e,r)}),Jt||(Jt=function(A){return A}),jr||(jr=function(A){return A}),oh||(oh=function(A,e){return zl(A,Vr(e))});var b3=Er(Array.prototype.forEach),h2=Er(Array.prototype.pop),Vs=Er(Array.prototype.push),Jl=Er(String.prototype.toLowerCase),lh=Er(String.prototype.toString),F3=Er(String.prototype.match),Gr=Er(String.prototype.replace),Q3=Er(String.prototype.indexOf),U3=Er(String.prototype.trim),Zt=Er(RegExp.prototype.test),uh=E3(TypeError);function Er(t){return function(A){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return Yl(t,A,r)}}function E3(t){return function(){for(var A=arguments.length,e=new Array(A),r=0;r<A;r++)e[r]=arguments[r];return oh(t,e)}}function fe(t,A,e){e=e||Jl,c2&&c2(t,null);for(var r=A.length;r--;){var n=A[r];if(typeof n=="string"){var i=e(n);i!==n&&(w3(A)||(A[r]=i),n=i)}t[n]=!0}return t}function Mi(t){var A=C3(null),e;for(e in t)Yl(B3,t,[e])===!0&&(A[e]=t[e]);return A}function Zl(t,A){for(;t!==null;){var e=y3(t,A);if(e){if(e.get)return Er(e.get);if(typeof e.value=="function")return Er(e.value)}t=m3(t)}function r(n){return console.warn("fallback value for",n),null}return r}var g2=Jt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ch=Jt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),fh=Jt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),x3=Jt(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),hh=Jt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),S3=Jt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),d2=Jt(["#text"]),p2=Jt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class
`+Xe),NA&&(Xe=Gr(Xe,R," "),Xe=Gr(Xe,aA," "),Xe=Gr(Xe,rA," ")),k&&FA?k.createHTML(Xe):Xe},A.setConfig=function(qA){zr(qA),dA=!0},A.clearConfig=function(){Le=null,dA=!1},A.isValidAttribute=function(qA,J,QA){Le||zr({});var _A=le(qA),ve=le(J);return lr(_A,ve,QA)},A.addHook=function(qA,J){typeof J=="function"&&(M[qA]=M[qA]||[],Vs(M[qA],J))},A.removeHook=function(qA){if(M[qA])return h2(M[qA])},A.removeHooks=function(qA){M[qA]&&(M[qA]=[])},A.removeAllHooks=function(){M={}},A}var k3=B2();const K3=Object.freeze(Object.defineProperty({__proto__:null,default:k3},Symbol.toStringTag,{value:"Module"}));var eu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},tu=function(t){return t&&t.Math==Math&&t},Et=tu(typeof globalThis=="object"&&globalThis)||tu(typeof window=="object"&&window)||tu(typeof self=="object"&&self)||tu(typeof eu=="object"&&eu)||function(){return this}()||Function("return this")(),La={},st=function(t){try{return!!t()}catch{return!0}},V3=st,dn=!V3(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),j3=st,ru=!j3(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),G3=ru,nu=Function.prototype.call,Ot=G3?nu.bind(nu):function(){return nu.apply(nu,arguments)},w2={},m2={}.propertyIsEnumerable,y2=Object.getOwnPropertyDescriptor,$3=y2&&!m2.call({1:2},1);w2.f=$3?function(A){var e=y2(this,A);return!!e&&e.enumerable}:m2;var iu=function(t,A){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:A}},C2=ru,b2=Function.prototype,dh=b2.call,q3=C2&&b2.bind.bind(dh,dh),ot=C2?q3:function(t){return function(){return dh.apply(t,arguments)}},F2=ot,W3=F2({}.toString),X3=F2("".slice),Ri=function(t){return X3(W3(t),8,-1)},z3=ot,Y3=st,J3=Ri,ph=Object,Z3=z3("".split),Q2=Y3(function(){return!ph("z").propertyIsEnumerable(0)})?function(t){return J3(t)=="String"?Z3(t,""):ph(t)}:ph,ki=function(t){return t==null},AE=ki,eE=TypeError,pn=function(t){if(AE(t))throw eE("Can't call method on "+t);return t},tE=Q2,rE=pn,js=function(t){return tE(rE(t))},vh=typeof document=="object"&&document.all,nE=typeof vh>"u"&&vh!==void 0,U2={all:vh,IS_HTMLDDA:nE},E2=U2,iE=E2.all,Je=E2.IS_HTMLDDA?function(t){return typeof t=="function"||t===iE}:function(t){return typeof t=="function"},x2=Je,S2=U2,aE=S2.all,xn=S2.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:x2(t)||t===aE}:function(t){return typeof t=="object"?t!==null:x2(t)},Bh=Et,sE=Je,oE=function(t){return sE(t)?t:void 0},Ki=function(t,A){return arguments.length<2?oE(Bh[t]):Bh[t]&&Bh[t][A]},lE=ot,au=lE({}.isPrototypeOf),su=typeof navigator<"u"&&String(navigator.userAgent)||"",I2=Et,wh=su,L2=I2.process,N2=I2.Deno,T2=L2&&L2.versions||N2&&N2.version,_2=T2&&T2.v8,$r,ou;_2&&($r=_2.split("."),ou=$r[0]>0&&$r[0]<4?1:+($r[0]+$r[1])),!ou&&wh&&($r=wh.match(/Edge\/(\d+)/),(!$r||$r[1]>=74)&&($r=wh.match(/Chrome\/(\d+)/),$r&&(ou=+$r[1])));var mh=ou,O2=mh,uE=st,H2=!!Object.getOwnPropertySymbols&&!uE(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&O2&&O2<41}),cE=H2,P2=cE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",fE=Ki,hE=Je,gE=au,dE=P2,pE=Object,D2=dE?function(t){return typeof t=="symbol"}:function(t){var A=fE("Symbol");return hE(A)&&gE(A.prototype,pE(t))},vE=String,lu=function(t){try{return vE(t)}catch{return"Object"}},BE=Je,wE=lu,mE=TypeError,Sn=function(t){if(BE(t))return t;throw mE(wE(t)+" is not a function")},yE=Sn,CE=ki,Na=function(t,A){var e=t[A];return CE(e)?void 0:yE(e)},yh=Ot,Ch=Je,bh=xn,bE=TypeError,FE=function(t,A){var e,r;if(A==="string"&&Ch(e=t.toString)&&!bh(r=yh(e,t))||Ch(e=t.valueOf)&&!bh(r=yh(e,t))||A!=="string"&&Ch(e=t.toString)&&!bh(r=yh(e,t)))return r;throw bE("Can't convert object to primitive value")},Gs={},QE={get exports(){return Gs},set exports(t){Gs=t}},M2=Et,UE=Object.defineProperty,Fh=function(t,A){try{UE(M2,t,{value:A,configurable:!0,writable:!0})}catch{M2[t]=A}return A},EE=Et,xE=Fh,R2="__core-js_shared__",SE=EE[R2]||xE(R2,{}),Qh=SE,k2=Qh;(QE.exports=function(t,A){return k2[t]||(k2[t]=A!==void 0?A:{})})("versi
`)&&t.flags==="s")}),W6=st,X6=Et,z6=X6.RegExp,Y6=W6(function(){var t=z6("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Ka=Ot,Pu=ot,J6=wn,Z6=xB,AT=SB,eT=Gs,tT=Sg,rT=vu.get,nT=q6,iT=Y6,aT=eT("native-string-replace",String.prototype.replace),Du=RegExp.prototype.exec,Ig=Du,sT=Pu("".charAt),oT=Pu("".indexOf),lT=Pu("".replace),Lg=Pu("".slice),Ng=function(){var t=/a/,A=/b*/g;return Ka(Du,t,"a"),Ka(Du,A,"a"),t.lastIndex!==0||A.lastIndex!==0}(),PB=AT.BROKEN_CARET,Tg=/()??/.exec("")[1]!==void 0,uT=Ng||Tg||PB||nT||iT;uT&&(Ig=function(A){var e=this,r=rT(e),n=J6(A),i=r.raw,a,s,o,u,c,g,v;if(i)return i.lastIndex=e.lastIndex,a=Ka(Ig,i,n),e.lastIndex=i.lastIndex,a;var h=r.groups,m=PB&&e.sticky,w=Ka(Z6,e),b=e.source,y=0,U=n;if(m&&(w=lT(w,"y",""),oT(w,"g")===-1&&(w+="g"),U=Lg(n,e.lastIndex),e.lastIndex>0&&(!e.multiline||e.multiline&&sT(n,e.lastIndex-1)!==`
`)&&(b="(?: "+b+")",U=" "+U,y++),s=new RegExp("^(?:"+b+")",w)),Tg&&(s=new RegExp("^"+b+"$(?!\\s)",w)),Ng&&(o=e.lastIndex),u=Ka(Du,m?s:e,U),m?u?(u.input=Lg(u.input,y),u[0]=Lg(u[0],y),u.index=e.lastIndex,e.lastIndex+=u[0].length):e.lastIndex=0:Ng&&u&&(e.lastIndex=e.global?u.index+u[0].length:o),Tg&&u&&u.length>1&&Ka(aT,u[0],s,function(){for(c=1;c<arguments.length-2;c++)arguments[c]===void 0&&(u[c]=void 0)}),u&&h)for(u.groups=g=tT(null),c=0;c<h.length;c++)v=h[c],g[v[0]]=u[v[1]];return u});var Mu=Ig,cT=Ar,DB=Mu;cT({target:"RegExp",proto:!0,forced:/./.exec!==DB},{exec:DB});var MB=Ys,RB=Vi,fT=Mu,kB=st,KB=xt,hT=$s,gT=KB("species"),_g=RegExp.prototype,Og=function(t,A,e,r){var n=KB(t),i=!kB(function(){var u={};return u[n]=function(){return 7},""[t](u)!=7}),a=i&&!kB(function(){var u=!1,c=/a/;return t==="split"&&(c={},c.constructor={},c.constructor[gT]=function(){return c},c.flags="",c[n]=/./[n]),c.exec=function(){return u=!0,null},c[n](""),!u});if(!i||!a||e){var s=MB(/./[n]),o=A(n,""[t],function(u,c,g,v,h){var m=MB(u),w=c.exec;return w===fT||w===_g.exec?i&&!h?{done:!0,value:s(c,g,v)}:{done:!0,value:m(g,c,v)}:{done:!1}});RB(String.prototype,t,o[0]),RB(_g,n,o[1])}r&&hT(_g[n],"sham",!0)},Hg=ot,dT=mu,pT=wn,vT=pn,BT=Hg("".charAt),VB=Hg("".charCodeAt),wT=Hg("".slice),jB=function(t){return function(A,e){var r=pT(vT(A)),n=dT(e),i=r.length,a,s;return n<0||n>=i?t?"":void 0:(a=VB(r,n),a<55296||a>56319||n+1===i||(s=VB(r,n+1))<56320||s>57343?t?BT(r,n):a:t?wT(r,n,n+2):(a-55296<<10)+(s-56320)+65536)}},mT={codeAt:jB(!1),charAt:jB(!0)},yT=mT.charAt,Pg=function(t,A,e){return A+(e?yT(t,A).length:1)},GB=Ot,CT=jt,bT=Je,FT=Ri,QT=Mu,UT=TypeError,Dg=function(t,A){var e=t.exec;if(bT(e)){var r=GB(e,t,A);return r!==null&&CT(r),r}if(FT(t)==="RegExp")return GB(QT,t,A);throw UT("RegExp#exec called on incompatible receiver")},ET=Ot,xT=Og,ST=jt,IT=ki,LT=Oa,Mg=wn,NT=pn,TT=Na,_T=Pg,$B=Dg;xT("match",function(t,A,e){return[function(n){var i=NT(this),a=IT(n)?void 0:TT(n,t);return a?ET(a,n,i):new RegExp(n)[t](Mg(i))},function(r){var n=ST(this),i=Mg(r),a=e(A,n,i);if(a.done)return a.value;if(!n.global)return $B(n,i);var s=n.unicode;n.lastIndex=0;for(var o=[],u=0,c;(c=$B(n,i))!==null;){var g=Mg(c[0]);o[u]=g,g===""&&(n.lastIndex=_T(i,LT(n.lastIndex),s)),u++}return u===0?null:o}]});var Rg=ot,OT=uu,HT=Math.floor,kg=Rg("".charAt),PT=Rg("".replace),Kg=Rg("".slice),DT=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,MT=/\$([$&'`]|\d{1,2})/g,RT=function(t,A,e,r,n,i){var a=e+t.length,s=r.length,o=MT;return n!==void 0&&(n=OT(n),o=DT),PT(i,o,function(u,c){var g;switch(kg(c,0)){case"$":return"$";case"&":return t;case"`":return Kg(A,0,e);case"'":return Kg(A,a);case"<":g=n[Kg(c,1,-1)];break;default:var v=+c;if(v===0)return u;if(v>s){var h=HT(v/10);return h===0?u:h<=s?r[h-1]===void 0?kg(c,1):r[h-1]+kg(c,1):u}g=r[v-1]}return g===void 0?"":g})},kT=zh,qB=Ot,Ru=ot,KT=Og,VT=st,jT=jt,GT=Je,$T=ki,qT=mu,WT=Oa,Va=wn,XT=pn,zT=Pg,YT=Na,JT=RT,ZT=Dg,A8=xt,Vg=A8("replace"),e8=Math.max,t8=Math.min,r8=Ru([].concat),jg=Ru([].push),WB=Ru("".indexOf),XB=Ru("".slice),n8=function(t){return t===void 0?t:String(t)},i8=function(){return"a".replace(/./,"$0")==="$0"}(),zB=function(){return/./[Vg]?/./[Vg]("a","$0")==="":!1}(),a8=!VT(function(){var t=/./;return t.exec=function(){var A=[];return A.groups={a:"7"},A},"".replace(t,"$<a>")!=="7"});KT("replace",function(t,A,e){var r=zB?"$":"$0";return[function(i,a){var s=XT(this),o=$T(i)?void 0:YT(i,Vg);return o?qB(o,i,s,a):qB(A,Va(s),i,a)},function(n,i){var a=jT(this),s=Va(n);if(typeof i=="string"&&WB(i,r)===-1&&WB(i,"$<")===-1){var o=e(A,a,s,i);if(o.done)return o.value}var u=GT(i);u||(i=Va(i));var c=a.global;if(c){var g=a.unicode;a.lastIndex=0}for(var v=[];;){var h=ZT(a,s);if(h===null||(jg(v,h),!c))break;var m=Va(h[0]);m===""&&(a.lastIndex=zT(s,WT(a.lastIndex),g))}for(var w="",b=0,y=0;y<v.length;y++){h=v[y];for(var U=Va(h[0]),T=e8(t8(qT(h.index),s.length),0),k=[],G=1;G<h.length;G++)jg(k,n8(h[G]));var j=h.groups;if(u){var K=r8([U],k,T,s);j!==void 0&&jg(K,j);var _=Va(kT(i,void 0,K))}else _=JT(U,s,T,k,j,i);T>=b&&(w+=XB(s,b,T)+_,b=T+U.length)}return w+XB(s,b)}]},!a8||!i8||zB);var s8=xn,o
\v\f\r    \u2028\u2029\uFEFF`,pO=ot,vO=pn,BO=wn,cd=Dw,Mw=pO("".replace),wO=RegExp("^["+cd+"]+"),mO=RegExp("(^|[^"+cd+"])["+cd+"]+$"),fd=function(t){return function(A){var e=BO(vO(A));return t&1&&(e=Mw(e,wO,"")),t&2&&(e=Mw(e,mO,"$1")),e}},yO={start:fd(1),end:fd(2),trim:fd(3)},CO=gu.PROPER,bO=st,Rw=Dw,kw="…",FO=function(t){return bO(function(){return!!Rw[t]()||kw[t]()!==kw||CO&&Rw[t].name!==t})},QO=Ar,UO=yO.trim,EO=FO;QO({target:"String",proto:!0,forced:EO("trim")},{trim:function(){return UO(this)}});var hd=function(t){this.ok=!1,this.alpha=1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t=t.replace(/ /g,""),t=t.toLowerCase();var A={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",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=A[t]||t;for(var e=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3]),parseFloat(o[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(
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 Gw=function(t,A){return(Gw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])})(t,A)};function $w(t,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function e(){this.constructor=t}Gw(t,A),t.prototype=A===null?Object.create(A):(e.prototype=A.prototype,new e)}function GO(t){var A="";Array.isArray(t)||(t=[t]);for(var e=0;e<t.length;e++){var r=t[e];if(r.type===CA.CLOSE_PATH)A+="z";else if(r.type===CA.HORIZ_LINE_TO)A+=(r.relative?"h":"H")+r.x;else if(r.type===CA.VERT_LINE_TO)A+=(r.relative?"v":"V")+r.y;else if(r.type===CA.MOVE_TO)A+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===CA.LINE_TO)A+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===CA.CURVE_TO)A+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===CA.SMOOTH_CURVE_TO)A+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===CA.QUAD_TO)A+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===CA.SMOOTH_QUAD_TO)A+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==CA.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+e+".");A+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return A}function dd(t,A){var e=t[0],r=t[1];return[e*Math.cos(A)-r*Math.sin(A),e*Math.sin(A)+r*Math.cos(A)]}function Wr(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];for(var e=0;e<t.length;e++)if(typeof t[e]!="number")throw new Error("assertNumbers arguments["+e+"] is not a number. "+typeof t[e]+" == typeof "+t[e]);return!0}var li=Math.PI;function pd(t,A,e){t.lArcFlag=t.lArcFlag===0?0:1,t.sweepFlag=t.sweepFlag===0?0:1;var r=t.rX,n=t.rY,i=t.x,a=t.y;r=Math.abs(t.rX),n=Math.abs(t.rY);var s=dd([(A-i)/2,(e-a)/2],-t.xRot/180*li),o=s[0],u=s[1],c=Math.pow(o,2)/Math.pow(r,2)+Math.pow(u,2)/Math.pow(n,2);1<c&&(r*=Math.sqrt(c),n*=Math.sqrt(c)),t.rX=r,t.rY=n;var g=Math.pow(r,2)*Math.pow(u,2)+Math.pow(n,2)*Math.pow(o,2),v=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(n,2)-g)/g)),h=r*u/n*v,m=-n*o/r*v,w=dd([h,m],t.xRot/180*li);t.cX=w[0]+(A+i)/2,t.cY=w[1]+(e+a)/2,t.phi1=Math.atan2((u-m)/n,(o-h)/r),t.phi2=Math.atan2((-u-m)/n,(-o-h)/r),t.sweepFlag===0&&t.phi2>t.phi1&&(t.phi2-=2*li),t.sweepFlag===1&&t.phi2<t.phi1&&(t.phi2+=2*li),t.phi1*=180/li,t.phi2*=180/li}function qw(t,A,e){Wr(t,A,e);var r=t*t+A*A-e*e;if(0>r)return[];if(r===0)return[[t*e/(t*t+A*A),A*e/(t*t+A*A)]];var n=Math.sqrt(r);return[[(t*e+A*n)/(t*t+A*A),(A*e-t*n)/(t*t+A*A)],[(t*e-A*n)/(t*t+A*A),(A*e+t*n)/(t*t+A*A)]]}var gt,Nn=Math.PI/180;function Ww(t,A,e){return(1-e)*t+e*A}function Xw(t,A,e,r){return t+Math.cos(r/180*li)*A+Math.sin(r/180*li)*e}function zw(t,A,e,r){var n=1e-6,i=A-t,a=e-A,s=3*i+3*(r-e)-6*a,o=6*(a-i),u=3*i;return Math.abs(s)<n?[-u/o]:function(c,g,v){v===void 0&&(v=1e-6);var h=c*c/4-g;if(h<-v)return[];if(h<=v)return[-c/2];var m=Math.sqrt(h);return[-c/2-m,-c/2+m]}(o/s,u/s,n)}function Yw(t,A,e,r,n){var i=1-n;return t*(i*i*i)+A*(3*i*i*n)+e*(3*i*n*n)+r*(n*n*n)}(function(t){function A(){return n(function(s,o,u){return s.relative&&(s.x1!==void 0&&(s.x1+=o),s.y1!==void 0&&(s.y1+=u),s.x2!==void 0&&(s.x2+=o),s.y2!==void 0&&(s.y2+=u),s.x!==void 0&&(s.x+=o),s.y!==void 0&&(s.y+=u),s.relative=!1),s})}function e(){var s=NaN,o=NaN,u=NaN,c=NaN;return n(function(g,v,h){return g.type&CA.SMOOTH_CURVE_TO&&(g.type=CA.CURVE_TO,s=isNaN(s)?v:s,o=isNaN(o)?h:o,g.x1=g.relative?v-s:2*v-s,g.y1=g.relative?h-o:2*h-o),g.type&CA.CURVE_TO?(s=g.relative?v+g.x2:g.x2,o=g.relative?h+g.y2:g.y2):(s=NaN,o=NaN),g.type&CA.SMOOTH_QUAD_TO&&(g.type=CA.QUAD_TO,u=isNaN(u)?v:u,c=isNaN(c)?h:c,g.x1=g.relative?v-u:2*v-u,g.y1=g.relative?h-c:2*h-c),g.type&CA.QUAD_TO?(u=g.relative?v+g.x1:g.x1,c=g.relative?h+g.y1:g.y1):(u=NaN,c=NaN),g})}function r(){var s=NaN,o=NaN;return n(function(u,c,g){if(u.type&CA.SMOOTH_QUAD_TO&&(u.type=CA.QUAD_TO,s=isNaN(s)?c:s,o
`},Zw=function(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)},qO=function(t){function A(){var e=t.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return $w(A,t),A.prototype.finish=function(e){if(e===void 0&&(e=[]),this.parse(" ",e),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},A.prototype.parse=function(e,r){var n=this;r===void 0&&(r=[]);for(var i=function(g){r.push(g),n.curArgs.length=0,n.canParseCommandOrComma=!0},a=0;a<e.length;a++){var s=e[a],o=!(this.curCommandType!==CA.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),u=Zw(s)&&(this.curNumber==="0"&&s==="0"||o);if(!Zw(s)||u)if(s!=="e"&&s!=="E")if(s!=="-"&&s!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(s!=="."||this.curNumberHasExp||this.curNumberHasDecimal||o){if(this.curNumber&&this.curCommandType!==-1){var c=Number(this.curNumber);if(isNaN(c))throw new SyntaxError("Invalid number ending at "+a);if(this.curCommandType===CA.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>c)throw new SyntaxError('Expected positive number, got "'+c+'" at index "'+a+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+a+'"')}this.curArgs.push(c),this.curArgs.length===WO[this.curCommandType]&&(CA.HORIZ_LINE_TO===this.curCommandType?i({type:CA.HORIZ_LINE_TO,relative:this.curCommandRelative,x:c}):CA.VERT_LINE_TO===this.curCommandType?i({type:CA.VERT_LINE_TO,relative:this.curCommandRelative,y:c}):this.curCommandType===CA.MOVE_TO||this.curCommandType===CA.LINE_TO||this.curCommandType===CA.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),CA.MOVE_TO===this.curCommandType&&(this.curCommandType=CA.LINE_TO)):this.curCommandType===CA.CURVE_TO?i({type:CA.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===CA.SMOOTH_CURVE_TO?i({type:CA.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===CA.QUAD_TO?i({type:CA.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===CA.ARC&&i({type:CA.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!$O(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(u)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+a+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+a+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=CA.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=CA.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=CA.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=CA.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=CA.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=CA.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=CA.QUAD_TO,this.curCommandRelative=s===